Stick In Weight Lifting Simulator Roblox

Roblox

Stick In Weight Lifting Simulator Roblox Id

Home Body Building Roblox Studio: How to Make a Weight Lifting Simulator. How to Make a Weight Lifting Simulator. Admin - January 25, 2021. Is there a list of the Ids for the default r15 animations anywhere (like /e dance or wave?). I remember finding it once but after several google and dev forum searches I can’t seem to find it again. I tried to search through Roblox’s inventory but that doesn’t seem to be possible anymore 😦. In today's video i play on roblox it was very cool funny and funFOLLOW ME ON Twitter -https://instagram.com/jayi.

Jan 21st, 2017
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. local child = parent:findFirstChild(childName)
  2. while true do
  3. if child.NamechildName then return child end
  4. end
  5. local Figure = script.Parent
  6. local RightShoulder = waitForChild(Torso, 'Right Shoulder')
  7. local LeftShoulder = waitForChild(Torso, 'Left Shoulder')
  8. local RightHip = waitForChild(Torso, 'Right Hip')
  9. local Neck = waitForChild(Torso, 'Neck')
  10. local Humanoid = waitForChild(Figure, 'Humanoid')
  11. local currentAnimInstance = nil
  12. local currentAnimKeyframeHandler = nil
  13. local animTable = {}
  14. idle = {
  15. { id = 'http://www.roblox.com/asset/?id=180435571', weight = 9 },
  16. { id = 'http://www.roblox.com/asset/?id=180435792', weight = 1 }
  17. walk = {
  18. { id = 'http://www.roblox.com/asset/?id=180426354', weight = 10 }
  19. run = {
  20. },
  21. { id = 'http://www.roblox.com/asset/?id=125750702', weight = 10 }
  22. fall = {
  23. { id = 'http://www.roblox.com/asset/?id=180436148', weight = 10 }
  24. climb = {
  25. { id = 'http://www.roblox.com/asset/?id=180436334', weight = 10 }
  26. sit = {
  27. { id = 'http://www.roblox.com/asset/?id=178130996', weight = 10 }
  28. toolnone = {
  29. { id = 'http://www.roblox.com/asset/?id=182393478', weight = 10 }
  30. toolslash = {
  31. { id = 'http://www.roblox.com/asset/?id=129967390', weight = 10 }
  32. },
  33. { id = 'http://www.roblox.com/asset/?id=129967478', weight = 10 }
  34. wave = {
  35. { id = 'http://www.roblox.com/asset/?id=128777973', weight = 10 }
  36. point = {
  37. { id = 'http://www.roblox.com/asset/?id=128853357', weight = 10 }
  38. dance1 = {
  39. { id = 'http://www.roblox.com/asset/?id=182435998', weight = 10 },
  40. { id = 'http://www.roblox.com/asset/?id=182491037', weight = 10 },
  41. { id = 'http://www.roblox.com/asset/?id=182491065', weight = 10 }
  42. dance2 = {
  43. { id = 'http://www.roblox.com/asset/?id=182436842', weight = 10 },
  44. { id = 'http://www.roblox.com/asset/?id=182491248', weight = 10 },
  45. { id = 'http://www.roblox.com/asset/?id=182491277', weight = 10 }
  46. dance3 = {
  47. { id = 'http://www.roblox.com/asset/?id=182436935', weight = 10 },
  48. { id = 'http://www.roblox.com/asset/?id=182491368', weight = 10 },
  49. { id = 'http://www.roblox.com/asset/?id=182491423', weight = 10 }
  50. laugh = {
  51. { id = 'http://www.roblox.com/asset/?id=129423131', weight = 10 }
  52. cheer = {
  53. { id = 'http://www.roblox.com/asset/?id=129423030', weight = 10 }
  54. }
  55. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  56. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  57. function configureAnimationSet(name, fileList)
  58. for _, connection in pairs(animTable[name].connections) do
  59. end
  60. animTable[name] = {}
  61. animTable[name].totalWeight = 0
  62. local config = script:FindFirstChild(name)
  63. -- print('Loading anims ' .. name)
  64. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  65. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  66. for _, childPart in pairs(config:GetChildren()) do
  67. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  68. animTable[name][idx].anim = childPart
  69. local weightObject = childPart:FindFirstChild('Weight')
  70. animTable[name][idx].weight = 1
  71. animTable[name][idx].weight = weightObject.Value
  72. animTable[name].count = animTable[name].count + 1
  73. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  74. -- print(name .. ' [' .. idx .. '] ' .. animTable[name][idx].anim.AnimationId .. ' (' .. animTable[name][idx].weight .. ')')
  75. end
  76. end
  77. -- fallback to defaults
  78. for idx, anim in pairs(fileList) do
  79. animTable[name][idx].anim = Instance.new('Animation')
  80. animTable[name][idx].anim.AnimationId = anim.id
  81. animTable[name].count = animTable[name].count + 1
  82. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  83. -- print(name .. ' [' .. idx .. '] ' .. anim.id .. ' (' .. anim.weight .. ')')
  84. end
  85. function scriptChildModified(child)
  86. if (fileList ~= nil) then
  87. end
  88. script.ChildRemoved:connect(scriptChildModified)
  89. configureAnimationSet(name, fileList)
  90. local toolAnim = 'None'
  91. local jumpAnimDuration = 0.3
  92. local toolTransitionTime = 0.1
  93. local jumpMaxLimbVelocity = 0.75
  94. -- functions
  95. function stopAllAnimations()
  96. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] false) then
  97. end
  98. currentAnim = '
  99. if (currentAnimKeyframeHandler ~= nil) then
  100. end
  101. if (currentAnimTrack ~= nil) then
  102. currentAnimTrack:Destroy()
  103. end
  104. end
  105. function setAnimationSpeed(speed)
  106. currentAnimSpeed = speed
  107. end
  108. if (frameName 'End') then
  109. local repeatAnim = currentAnim
  110. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] false) then
  111. end
  112. local animSpeed = currentAnimSpeed
  113. setAnimationSpeed(animSpeed)
  114. end
  115. -- Preload animations
  116. function playAnimation(animName, transitionTime, humanoid)
  117. local roll = math.random(1, animTable[animName].totalWeight)
  118. local idx = 1
  119. while (roll > animTable[animName][idx].weight) do
  120. idx = idx + 1
  121. -- print(animName .. ' ' .. idx .. ' [' .. origRoll .. ']')
  122. if (anim ~= currentAnimInstance) then
  123. if (currentAnimTrack ~= nil) then
  124. currentAnimTrack:Destroy()
  125. currentAnimTrack = humanoid:LoadAnimation(anim)
  126. -- play the animation
  127. currentAnim = animName
  128. if (currentAnimKeyframeHandler ~= nil) then
  129. end
  130. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  131. end
  132. end
  133. -------------------------------------------------------------------------------------------
  134. -------------------------------------------------------------------------------------------
  135. local toolAnimName = '
  136. local toolAnimInstance = nil
  137. if (frameName 'End') then
  138. playToolAnimation(toolAnimName, 0.0, Humanoid)
  139. end
  140. function playToolAnimation(animName, transitionTime, humanoid)
  141. local roll = math.random(1, animTable[animName].totalWeight)
  142. local idx = 1
  143. while (roll > animTable[animName][idx].weight) do
  144. idx = idx + 1
  145. -- print(animName .. ' * ' .. idx .. ' [' .. origRoll .. ']')
  146. toolAnimTrack:Stop()
  147. transitionTime = 0
  148. toolAnimTrack = humanoid:LoadAnimation(anim)
  149. -- play the animation
  150. toolAnimName = animName
  151. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  152. end
  153. function stopToolAnimations()
  154. currentToolAnimKeyframeHandler:disconnect()
  155. toolAnimInstance = nil
  156. toolAnimTrack:Stop()
  157. toolAnimTrack = nil
  158. return oldAnim
  159. -------------------------------------------------------------------------------------------
  160. -------------------------------------------------------------------------------------------
  161. if speed>0.01 then
  162. if currentAnimInstance and currentAnimInstance.AnimationId 'http://www.roblox.com/asset/?id=180426354' then
  163. end
  164. else
  165. playAnimation('idle', 0.1, Humanoid)
  166. end
  167. end
  168. function onDied()
  169. end
  170. function onJumping()
  171. jumpAnimTime = jumpAnimDuration
  172. end
  173. function onClimbing(speed)
  174. setAnimationSpeed(speed / 12.0)
  175. end
  176. function onGettingUp()
  177. end
  178. function onFreeFall()
  179. playAnimation('fall', fallTransitionTime, Humanoid)
  180. pose = 'FreeFall'
  181. pose = 'FallingDown'
  182. pose = 'Seated'
  183. pose = 'PlatformStanding'
  184. if speed>0 then
  185. else
  186. end
  187. for _, kid in ipairs(Figure:GetChildren()) do
  188. end
  189. end
  190. function getToolAnim(tool)
  191. if c.Name 'toolanim' and c.className 'StringValue' then
  192. end
  193. return nil
  194. playToolAnimation('toolnone', toolTransitionTime, Humanoid)
  195. end
  196. if (toolAnim 'Slash') then
  197. return
  198. playToolAnimation('toollunge', 0, Humanoid)
  199. end
  200. RightShoulder.MaxVelocity = 0.15
  201. RightShoulder:SetDesiredAngle(3.14 /2)
  202. RightHip:SetDesiredAngle(3.14 /2)
  203. end
  204. local lastTick = 0
  205. function move(time)
  206. local frequency = 1
  207. lastTick = time
  208. local climbFudge = 0
  209. jumpAnimTime = jumpAnimTime - deltaTime
  210. if (pose 'FreeFall' and jumpAnimTime <= 0) then
  211. playAnimation('fall', fallTransitionTime, Humanoid)
  212. playAnimation('sit', 0.5, Humanoid)
  213. elseif (pose 'Running') then
  214. elseif (pose 'Dead' or pose 'GettingUp' or pose 'FallingDown' or pose 'Seated' or pose 'PlatformStanding') then
  215. stopAllAnimations()
  216. frequency = 1
  217. end
  218. if (setAngles) then
  219. desiredAngle = amplitude * math.sin(time * frequency)
  220. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  221. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  222. LeftHip:SetDesiredAngle(-desiredAngle)
  223. local tool = getTool()
  224. toolAnim = animStringValueObject.Value
  225. animStringValueObject.Parent = nil
  226. end
  227. if time > toolAnimTime then
  228. toolAnim = 'None'
  229. else
  230. toolAnim = 'None'
  231. toolAnimTime = 0
  232. end
  233. -- connect events
  234. Humanoid.Running:connect(onRunning)
  235. Humanoid.Climbing:connect(onClimbing)
  236. Humanoid.FreeFalling:connect(onFreeFall)
  237. Humanoid.Seated:connect(onSeated)
  238. Humanoid.PlatformStanding:connect(onPlatformStanding)
  239. game.Players.LocalPlayer.Chatted:connect(function(msg)
  240. if msg '/e dance' then
  241. elseif (string.sub(msg, 1, 3) '/e ') then
  242. elseif (string.sub(msg, 1, 7) '/emote ') then
  243. end
  244. if (pose 'Standing' and emoteNames[emote] ~= nil) then
  245. end
  246. end)
  247. playAnimation('idle', 0.1, Humanoid)
  248. local _, time = wait(0.1)
  249. end
Aug 26th, 2017
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
  1. Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  2. -- Objects
  3. local Weight = Instance.new('ScreenGui')
  4. local Close = Instance.new('TextButton')
  5. local Shrink = Instance.new('TextButton')
  6. local TextLabel = Instance.new('TextLabel')
  7. local Open = Instance.new('Frame')
  8. Weight.Parent = game.CoreGui
  9. Frame.Parent = Weight
  10. Frame.Position = UDim2.new(0.291666657, 0, 0.252964437, 0)
  11. Frame.Visible = false
  12. Close.Parent = Frame
  13. Close.BackgroundTransparency = 0.60000002384186
  14. Close.Size = UDim2.new(0, 25, 0, 27)
  15. Close.FontSize = Enum.FontSize.Size32
  16. Close.TextColor3 = Color3.new(0.0941177, 1, 1)
  17. Strength.Parent = Frame
  18. Strength.BackgroundColor3 = Color3.new(0.768628, 1, 0.466667)
  19. Strength.Position = UDim2.new(0.0273972601, 0, 0.768339753, 0)
  20. Strength.Style = Enum.ButtonStyle.RobloxButton
  21. Strength.FontSize = Enum.FontSize.Size24
  22. Strength.TextColor3 = Color3.new(0.0313726, 0.415686, 0.996078)
  23. Shrink.Parent = Frame
  24. Shrink.BackgroundColor3 = Color3.new(0.768628, 1, 0.466667)
  25. Shrink.Position = UDim2.new(0.0273972601, 0, 0.555984557, 0)
  26. Shrink.Style = Enum.ButtonStyle.RobloxButton
  27. Shrink.FontSize = Enum.FontSize.Size24
  28. Shrink.TextColor3 = Color3.new(0.996078, 0.0901961, 0.360784)
  29. WeightHack.Parent = Frame
  30. WeightHack.BackgroundColor3 = Color3.new(0.768628, 1, 0.466667)
  31. WeightHack.Position = UDim2.new(0.50590837, 0, 0.755215406, 0)
  32. WeightHack.Style = Enum.ButtonStyle.RobloxButton
  33. WeightHack.FontSize = Enum.FontSize.Size24
  34. WeightHack.TextColor3 = Color3.new(0.996078, 0.996078, 0.0745098)
  35. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  36. TextLabel.Position = UDim2.new(0.742465734, 0, 0.552123547, 0)
  37. TextLabel.Font = Enum.Font.SciFi
  38. TextLabel.Text = 'Hold the basic weight and than press this button'
  39. TextLabel.TextColor3 = Color3.new(0.113725, 1, 0.0156863)
  40. TextLabel_2.BackgroundColor3 = Color3.new(0.486275, 0.486275, 0.486275)
  41. TextLabel_2.Position = UDim2.new(0.0219178088, 0, 0.057915058, 0)
  42. TextLabel_2.Font = Enum.Font.SciFi
  43. TextLabel_2.Text = 'Weight Lifting GUI'
  44. TextLabel_2.TextColor3 = Color3.new(0.886275, 0.223529, 0.313726)
  45. Open.Parent = Weight
  46. Open.BackgroundTransparency = 1
  47. Opener.Parent = Open
  48. Opener.Position = UDim2.new(0, 0, 2.55999994, 0)
  49. Opener.Style = Enum.ButtonStyle.RobloxButton
  50. Opener.FontSize = Enum.FontSize.Size32
  51. Opener.TextColor3 = Color3.new(0, 1, 1)
  52. Opener.TextStrokeTransparency = 0.5
  53. game.CoreGui.Weight.Open.Visible = false
  54. end)
  55. Close.MouseButton1Click:connect(function()
  56. game.CoreGui.Weight.Frame.Visible = false
  57. for i=1,1000 do
  58. game:GetService('ReplicatedStorage').addStrength:FireServer(game.Players.LocalPlayer.Character:FindFirstChildOfClass('Tool').Handle,5)
  59. end)
  60. Shrink.MouseButton1Click:connect(function()
  61. game.Players.LocalPlayer.Character.Humanoid.BodyWidthScale.Value = 1.5
  62. game.Players.LocalPlayer.Character.Humanoid.BodyHeightScale.Value = 1.5
  63. game.Players.LocalPlayer.Character.Humanoid.BodyDepthScale.Value = 1.5
  64. game.Players.LocalPlayer.Character.Humanoid.HeadScale.Value = 1
  65. game.Players.LocalPlayer.Character.Humanoid:UnequipTools()
  66. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack.Combat)
  67. for i,v in pairs(game.Players:GetChildren()) do
  68. game.Players.LocalPlayer.Character.Combat.LocalScript.punched:InvokeServer(v.Character.Humanoid, 9e8, v.Character.UpperTorso)
  69. end
  70. game.Players.LocalPlayer.Character.Humanoid:UnequipTools()

Stick In Weight Lifting Simulator Roblox Codes

Stick In Weight Lifting Simulator Roblox Games