local UIS = game:GetService(“UserInputService”)
local char = script.Parent
local dasheffect = game.ReplicatedStorage.dasheffect
local slideAnim = Instance.new(“Animation”)
slideAnim.AnimationId = “rbxassetid://15109376531” – Enter your AnimtionID
local keybind = Enum.KeyCode.Q – 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
local playAnim = char.Humanoid:LoadAnimation(slideAnim)
playAnim:Play()
local dash3 = dasheffect:Clone()
dash3.Parent = game.Workspace
dash3.Position =
local slide = Instance.new("BodyVelocity")
slide.MaxForce = Vector3.new(1,0,1) * 30000
slide.Velocity = char.HumanoidRootPart.CFrame.lookVector * 200
slide.Parent = char.HumanoidRootPart
for count = 1, 8 do
wait(0.05)
slide.Velocity*= 0.7
end
playAnim:Stop()
slide:Destroy()
dash3:Destroy()
canslide = true
end
end)
how i get it to go behind my back dash3 is the effect