Advertisement
Guest User

Untitled

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