Advertisement
Guest User

Untitled

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