Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. local playerInformation = Instance.new("StringValue",workspace)
  2. playerInformation.Name = "PlayerValue"
  3. local Event = Instance.new("RemoteEvent",workspace)
  4. Event.Name = "NameChange"
  5. Event.OnServerEvent:connect(function(nope,Value)
  6. playerInformation.Value = Value
  7. end)
  8. repeat wait() until playerInformation.Value ~= ""
  9. local Player = game:GetService("Players"):FindFirstChild(playerInformation.Value)
  10. repeat wait() until Player.Character
  11. local Character = Player.Character
  12. local ScreenGui = Instance.new("ScreenGui")
  13. local AnimationScreen = Instance.new("Frame")
  14. local Title = Instance.new("TextLabel")
  15. local RopeImage = Instance.new("ImageLabel")
  16. local Keyframe = 1
  17. local PtKeyFrame = 1
  18. local DelayFrame = 0
  19. local PtDelayFrame = 0
  20. local PtMaxDelay = 3
  21. local MaxDelay = 2
  22. local RunState = 0
  23. local MusicPlay = 0
  24. local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  25. local Music = Instance.new("Sound",Character:FindFirstChild("Torso"))
  26. local JumpRopeTextUi = Instance.new("ImageLabel")
  27. local CurrentSound = Instance.new("Sound",Character:FindFirstChild("Torso"))
  28. local MainText = Instance.new("ImageLabel")
  29. local Numbers = Instance.new("ImageLabel")
  30. local PtBillBoard =Instance.new("BillboardGui")
  31. local ImagePt =Instance.new("ImageLabel")
  32. local PlaytimeImages = {1890933541,1890933942,1890934453,1890934875,1890935343,1890935748,1890936113}
  33. local RopeTextures = {"http://www.roblox.com/asset/?id=4489605308","http://www.roblox.com/asset/?id=4489606097","http://www.roblox.com/asset/?id=4489606745","http://www.roblox.com/asset/?id=4489607796","http://www.roblox.com/asset/?id=4489609123","http://www.roblox.com/asset/?id=4489610195","http://www.roblox.com/asset/?id=4489611315","http://www.roblox.com/asset/?id=4489611922"}
  34. local RunButton = Instance.new("TextButton")
  35. --Properties:
  36. RunButton.Name = "RunButton"
  37. RunButton.Parent = AnimationScreen
  38. RunButton.AnchorPoint = Vector2.new(0, 1)
  39. RunButton.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  40. RunButton.BackgroundTransparency = 0.5
  41. RunButton.BorderColor3 = Color3.new(0.403922, 0.0862745, 0.0901961)
  42. RunButton.Size = UDim2.new(0, 71, 0, 27)
  43. RunButton.Font = Enum.Font.SourceSansLight
  44. RunButton.Text = "Run/Walk"
  45. RunButton.TextColor3 = Color3.new(0, 0, 0)
  46. RunButton.TextSize = 14
  47.  
  48. ScreenGui.Parent = Player:WaitForChild("PlayerGui")
  49. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  50.  
  51. AnimationScreen.Name = "AnimationScreen"
  52. AnimationScreen.Parent = ScreenGui
  53. AnimationScreen.BackgroundColor3 = Color3.new(1, 1, 1)
  54. AnimationScreen.BackgroundTransparency = 0.5
  55. AnimationScreen.Position = UDim2.new(0.0485074632, 0, 0.611987352, 0)
  56. AnimationScreen.Size = UDim2.new(0, 332, 0, 232)
  57.  
  58. ImagePt.Image = "http://www.roblox.com/asset/?id="..PlaytimeImages[1]
  59. ImagePt.Size=UDim2.new(1,0,1,0)
  60. ImagePt.Position=UDim2.new(0,0,0,0)
  61. ImagePt.BackgroundTransparency = 1
  62. ImagePt.Parent=PtBillBoard
  63.  
  64. PtBillBoard.Parent = Character.Torso
  65. PtBillBoard.Adornee = Character.Torso
  66. PtBillBoard.Size=UDim2.new(6,0,6,0)
  67. PtBillBoard.StudsOffset=Vector3.new(0,0.2,0)
  68. PtBillBoard.AlwaysOnTop = false
  69.  
  70. Title.Name = "Title"
  71. Title.Parent = AnimationScreen
  72. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  73. Title.BackgroundTransparency = 1
  74. Title.Size = UDim2.new(0, 332, 0, 31)
  75. Title.Font = Enum.Font.SourceSansLight
  76. Title.Text = "Current rope animation:"
  77. Title.TextColor3 = Color3.new(0, 0, 0)
  78. Title.TextSize = 20
  79.  
  80. RopeImage.Name = "RopeImage"
  81. RopeImage.Parent = AnimationScreen
  82. RopeImage.BackgroundColor3 = Color3.new(1, 1, 1)
  83. RopeImage.Position = UDim2.new(0.0572289154, 0, 0.133620694, 0)
  84. RopeImage.Size = UDim2.new(0, 299, 0, 184)
  85. RopeImage.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  86. RopeImage.BackgroundTransparency = 1
  87.  
  88. JumpRopeTextUi.Name = "JumpRopeTextUi"
  89. JumpRopeTextUi.Parent = ScreenGui
  90. JumpRopeTextUi.AnchorPoint = Vector2.new(0.5, 0.5)
  91. JumpRopeTextUi.BackgroundColor3 = Color3.new(1, 1, 1)
  92. JumpRopeTextUi.BackgroundTransparency = 1
  93. JumpRopeTextUi.Position = UDim2.new(0.5, 0, 0.5, 0)
  94. JumpRopeTextUi.Size = UDim2.new(0.100000001, 523, 0.0500000007, 188)
  95. JumpRopeTextUi.Image = "http://www.roblox.com/asset/?id=4489655941"
  96. JumpRopeTextUi.Visible = false
  97.  
  98. MainText.Name = "MainText"
  99. MainText.Parent = JumpRopeTextUi
  100. MainText.AnchorPoint = Vector2.new(0.5, 0)
  101. MainText.BackgroundColor3 = Color3.new(1, 1, 1)
  102. MainText.BackgroundTransparency = 1
  103. MainText.Position = UDim2.new(0.495028168, 0, 0.70599997, 0)
  104. MainText.Size = UDim2.new(0, 78, 0, 41)
  105. MainText.Image = "http://www.roblox.com/asset/?id=4489668257"
  106. MainText.ScaleType = Enum.ScaleType.Tile
  107. MainText.TileSize = UDim2.new(2, 0, 2, 0)
  108.  
  109. Numbers.Name = "Numbers"
  110. Numbers.Parent = JumpRopeTextUi
  111. Numbers.AnchorPoint = Vector2.new(0.5, 0)
  112. Numbers.BackgroundColor3 = Color3.new(1, 1, 1)
  113. Numbers.BackgroundTransparency = 1
  114. Numbers.Position = UDim2.new(0.540000021, 0, 0.70599997, 0)
  115. Numbers.Size = UDim2.new(0, 28, 0, 38)
  116. Numbers.Image = "http://www.roblox.com/asset/?id=4489668257"
  117. Numbers.ImageRectOffset = Vector2.new(0, 118)
  118. Numbers.ImageRectSize = Vector2.new(60, 80)
  119. Numbers.SliceCenter = Rect.new(0, 0, 0, 119)
  120. Numbers.TileSize = UDim2.new(2, 0, 2, 0)
  121.  
  122. Music.Looped = true
  123. Music.SoundId = "rbxassetid://1953605962"
  124. Music.Volume = 2
  125.  
  126. CurrentSound.Volume = 2
  127. -- Scripts:
  128. -- To remove each part/thing from the player
  129. repeat wait() until Character:FindFirstChildOfClass("Accessory")
  130. Humanoid.Animator:Destroy()
  131. Character.Animate:Destroy()
  132. for i,v in pairs(Character:GetChildren()) do
  133. if v.ClassName then
  134. if v.ClassName == "Union" or v.ClassName == "Part" or v.ClassName == "MeshPart" then
  135. v.Transparency = 1
  136. end
  137. if v.ClassName == "Accessory" then
  138. if v.Handle then
  139. v.Handle:Destroy()
  140. end
  141. end
  142. end
  143. end
  144. if Character.Head then
  145. Character.Head.face:Destroy()
  146. end
  147. -- idk but playtime is SLOOOW
  148. Humanoid.WalkSpeed = 12
  149. function UpdateKeyframe()
  150. if Keyframe >= #RopeTextures then
  151. Keyframe = 0
  152. end
  153. DelayFrame = DelayFrame+1
  154. if DelayFrame >= MaxDelay then
  155. DelayFrame = 0
  156. Keyframe = Keyframe + 1
  157. RopeImage.Image = RopeTextures[Keyframe]
  158. end
  159. end
  160. function UpdatePlayTime()
  161. if PtKeyFrame >= #PlaytimeImages then
  162. PtKeyFrame = 0
  163. end
  164. PtDelayFrame = PtDelayFrame+1
  165. if PtDelayFrame >= PtMaxDelay then
  166. PtDelayFrame = 0
  167. PtKeyFrame = PtKeyFrame + 1
  168. ImagePt.Image = "http://www.roblox.com/asset/?id="..PlaytimeImages[PtKeyFrame]
  169. end
  170. end
  171. RunButton.MouseButton1Click:connect(function()
  172. if RunState == 0 then
  173. RunState = 1
  174. Humanoid.WalkSpeed = 20
  175. else
  176. RunState = 0
  177. Humanoid.WalkSpeed = 12
  178. end
  179. end)
  180. Mouse.KeyDown:connect(function(K)
  181. if string.lower(K) == "q" then
  182. CurrentSound.SoundId = "rbxassetid://1891351859"
  183. CurrentSound:Play()
  184. end
  185. if string.lower(K) == "n" then
  186. if MusicPlay == 0 then
  187. MusicPlay = 1
  188. Music:Play()
  189. else
  190. MusicPlay = 0
  191. Music:Stop()
  192. end
  193. end
  194. end)
  195. while true do
  196. wait(1/60)
  197. UpdateKeyframe()
  198. UpdatePlayTime()
  199. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement