Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- PUT THIS SCRIPT TO STARTERCHARACTER SCRIPTS!
- -- Made By burkistudio
- local UIS = game:GetService("UserInputService")
- local char = script.Parent
- local slideAnim = Instance.new("Animation")
- slideAnim.AnimationId = "rbxassetid://14636040337" -- Enter your AnimtionID
- local sound = Instance.new("Sound")
- sound.Name = "Sliding"
- sound.SoundId = "rbxassetid://4953056011"
- sound.Parent = script.Parent
- sound.TimePosition = 0.5
- local keybind = Enum.KeyCode.LeftControl -- between the key for ability
- local canslide = true
- UIS.InputBegan:Connect(function(input,gameprocessed)
- if gameprocessed then return end
- if not canslide then return end
- if input.KeyCode == keybind then
- canslide = false
- sound.TimePosition = 0.5
- local playAnim = char.Humanoid:LoadAnimation(slideAnim)
- playAnim:Play()
- sound:Play()
- local slide = Instance.new("BodyVelocity")
- slide.MaxForce = Vector3.new(1,0,1) * 12500
- slide.Velocity = char.HumanoidRootPart.CFrame.lookVector * 100
- slide.Parent = char.HumanoidRootPart
- for count = 1, 8 do
- wait(0.1)
- slide.Velocity*= 0.7
- end
- sound:Stop()
- playAnim:Stop()
- slide:Destroy()
- wait(0.5)
- canslide = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment