Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local playerInformation = Instance.new("StringValue",workspace)
- playerInformation.Name = "PlayerValue"
- local Event = Instance.new("RemoteEvent",workspace)
- Event.Name = "NameChange"
- Event.OnServerEvent:connect(function(nope,Value)
- playerInformation.Value = Value
- end)
- repeat wait() until playerInformation.Value ~= ""
- local Player = game:GetService("Players"):FindFirstChild(playerInformation.Value)
- repeat wait() until Player.Character
- local Character = Player.Character
- local ScreenGui = Instance.new("ScreenGui")
- local AnimationScreen = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local RopeImage = Instance.new("ImageLabel")
- local Keyframe = 1
- local PtKeyFrame = 1
- local DelayFrame = 0
- local PtDelayFrame = 0
- local PtMaxDelay = 3
- local MaxDelay = 2
- local RunState = 0
- local MusicPlay = 0
- local Humanoid = Character:FindFirstChildOfClass("Humanoid")
- local Music = Instance.new("Sound",Character:FindFirstChild("Torso"))
- local JumpRopeTextUi = Instance.new("ImageLabel")
- local CurrentSound = Instance.new("Sound",Character:FindFirstChild("Torso"))
- local MainText = Instance.new("ImageLabel")
- local Numbers = Instance.new("ImageLabel")
- local PtBillBoard =Instance.new("BillboardGui")
- local ImagePt =Instance.new("ImageLabel")
- local PlaytimeImages = {1890933541,1890933942,1890934453,1890934875,1890935343,1890935748,1890936113}
- 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"}
- local RunButton = Instance.new("TextButton")
- --Properties:
- RunButton.Name = "RunButton"
- RunButton.Parent = AnimationScreen
- RunButton.AnchorPoint = Vector2.new(0, 1)
- RunButton.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- RunButton.BackgroundTransparency = 0.5
- RunButton.BorderColor3 = Color3.new(0.403922, 0.0862745, 0.0901961)
- RunButton.Size = UDim2.new(0, 71, 0, 27)
- RunButton.Font = Enum.Font.SourceSansLight
- RunButton.Text = "Run/Walk"
- RunButton.TextColor3 = Color3.new(0, 0, 0)
- RunButton.TextSize = 14
- ScreenGui.Parent = Player:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- AnimationScreen.Name = "AnimationScreen"
- AnimationScreen.Parent = ScreenGui
- AnimationScreen.BackgroundColor3 = Color3.new(1, 1, 1)
- AnimationScreen.BackgroundTransparency = 0.5
- AnimationScreen.Position = UDim2.new(0.0485074632, 0, 0.611987352, 0)
- AnimationScreen.Size = UDim2.new(0, 332, 0, 232)
- ImagePt.Image = "http://www.roblox.com/asset/?id="..PlaytimeImages[1]
- ImagePt.Size=UDim2.new(1,0,1,0)
- ImagePt.Position=UDim2.new(0,0,0,0)
- ImagePt.BackgroundTransparency = 1
- ImagePt.Parent=PtBillBoard
- PtBillBoard.Parent = Character.Torso
- PtBillBoard.Adornee = Character.Torso
- PtBillBoard.Size=UDim2.new(6,0,6,0)
- PtBillBoard.StudsOffset=Vector3.new(0,0.2,0)
- PtBillBoard.AlwaysOnTop = false
- Title.Name = "Title"
- Title.Parent = AnimationScreen
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(0, 332, 0, 31)
- Title.Font = Enum.Font.SourceSansLight
- Title.Text = "Current rope animation:"
- Title.TextColor3 = Color3.new(0, 0, 0)
- Title.TextSize = 20
- RopeImage.Name = "RopeImage"
- RopeImage.Parent = AnimationScreen
- RopeImage.BackgroundColor3 = Color3.new(1, 1, 1)
- RopeImage.Position = UDim2.new(0.0572289154, 0, 0.133620694, 0)
- RopeImage.Size = UDim2.new(0, 299, 0, 184)
- RopeImage.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
- RopeImage.BackgroundTransparency = 1
- JumpRopeTextUi.Name = "JumpRopeTextUi"
- JumpRopeTextUi.Parent = ScreenGui
- JumpRopeTextUi.AnchorPoint = Vector2.new(0.5, 0.5)
- JumpRopeTextUi.BackgroundColor3 = Color3.new(1, 1, 1)
- JumpRopeTextUi.BackgroundTransparency = 1
- JumpRopeTextUi.Position = UDim2.new(0.5, 0, 0.5, 0)
- JumpRopeTextUi.Size = UDim2.new(0.100000001, 523, 0.0500000007, 188)
- JumpRopeTextUi.Image = "http://www.roblox.com/asset/?id=4489655941"
- JumpRopeTextUi.Visible = false
- MainText.Name = "MainText"
- MainText.Parent = JumpRopeTextUi
- MainText.AnchorPoint = Vector2.new(0.5, 0)
- MainText.BackgroundColor3 = Color3.new(1, 1, 1)
- MainText.BackgroundTransparency = 1
- MainText.Position = UDim2.new(0.495028168, 0, 0.70599997, 0)
- MainText.Size = UDim2.new(0, 78, 0, 41)
- MainText.Image = "http://www.roblox.com/asset/?id=4489668257"
- MainText.ScaleType = Enum.ScaleType.Tile
- MainText.TileSize = UDim2.new(2, 0, 2, 0)
- Numbers.Name = "Numbers"
- Numbers.Parent = JumpRopeTextUi
- Numbers.AnchorPoint = Vector2.new(0.5, 0)
- Numbers.BackgroundColor3 = Color3.new(1, 1, 1)
- Numbers.BackgroundTransparency = 1
- Numbers.Position = UDim2.new(0.540000021, 0, 0.70599997, 0)
- Numbers.Size = UDim2.new(0, 28, 0, 38)
- Numbers.Image = "http://www.roblox.com/asset/?id=4489668257"
- Numbers.ImageRectOffset = Vector2.new(0, 118)
- Numbers.ImageRectSize = Vector2.new(60, 80)
- Numbers.SliceCenter = Rect.new(0, 0, 0, 119)
- Numbers.TileSize = UDim2.new(2, 0, 2, 0)
- Music.Looped = true
- Music.SoundId = "rbxassetid://1953605962"
- Music.Volume = 2
- CurrentSound.Volume = 2
- -- Scripts:
- -- To remove each part/thing from the player
- repeat wait() until Character:FindFirstChildOfClass("Accessory")
- Humanoid.Animator:Destroy()
- Character.Animate:Destroy()
- for i,v in pairs(Character:GetChildren()) do
- if v.ClassName then
- if v.ClassName == "Union" or v.ClassName == "Part" or v.ClassName == "MeshPart" then
- v.Transparency = 1
- end
- if v.ClassName == "Accessory" then
- if v.Handle then
- v.Handle:Destroy()
- end
- end
- end
- end
- if Character.Head then
- Character.Head.face:Destroy()
- end
- -- idk but playtime is SLOOOW
- Humanoid.WalkSpeed = 12
- function UpdateKeyframe()
- if Keyframe >= #RopeTextures then
- Keyframe = 0
- end
- DelayFrame = DelayFrame+1
- if DelayFrame >= MaxDelay then
- DelayFrame = 0
- Keyframe = Keyframe + 1
- RopeImage.Image = RopeTextures[Keyframe]
- end
- end
- function UpdatePlayTime()
- if PtKeyFrame >= #PlaytimeImages then
- PtKeyFrame = 0
- end
- PtDelayFrame = PtDelayFrame+1
- if PtDelayFrame >= PtMaxDelay then
- PtDelayFrame = 0
- PtKeyFrame = PtKeyFrame + 1
- ImagePt.Image = "http://www.roblox.com/asset/?id="..PlaytimeImages[PtKeyFrame]
- end
- end
- RunButton.MouseButton1Click:connect(function()
- if RunState == 0 then
- RunState = 1
- Humanoid.WalkSpeed = 20
- else
- RunState = 0
- Humanoid.WalkSpeed = 12
- end
- end)
- Mouse.KeyDown:connect(function(K)
- if string.lower(K) == "q" then
- CurrentSound.SoundId = "rbxassetid://1891351859"
- CurrentSound:Play()
- end
- if string.lower(K) == "n" then
- if MusicPlay == 0 then
- MusicPlay = 1
- Music:Play()
- else
- MusicPlay = 0
- Music:Stop()
- end
- end
- end)
- while true do
- wait(1/60)
- UpdateKeyframe()
- UpdatePlayTime()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement