local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local character = player.Character
local HumRP = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local torso = character:WaitForChild("Torso")
local tX = torso.Position.X
local tY = torso.Position.Y
local tZ = torso.Position.Z
print(tX, tY, tZ)
uis.InputBegan:Connect(function(input, gpe)
if input.KeyCode == Enum.KeyCode.Q then
if gpe then
return
end
local LV = Instance.new("LinearVelocity")
local AT = Instance.new("Attachment")
LV.Parent = torso
AT.Parent = torso
AT.Name = "DashAttachment"
AT.Position = Vector3.new(tX, tY, tZ)
LV.Attachment0 = AT
LV.MaxForce = 10000
task.wait(1)
LV:Destroy()
AT:Destroy()
end
end)