This is my attempt using body velocity. in first person. It does dodge but not to the right, just a random direction.
--Developed by Cluster studios, FDFXD
--Dodge Right using E, UT 2004 style
repeat wait() until game.Players.LocalPlayer.Character
player = game.Players.LocalPlayer.Character:WaitForChild("Torso")
debounce = false
function DodgeRight()
if debounce == false
then debounce = true
end
if script.Parent.Parent.powers.Mana.Value >25
then
script.Parent.Parent.powers.Mana.Value = script.Parent.Parent.powers.Mana.Value - 25
Instance.new("BodyVelocity",player)
player.BodyVelocity.Name = "Dodge"
player.Dodge.velocity = Vector3.new(600,0,0)
player.Dodge.maxForce = Vector3.new(140000,0,0)
wait(1)
player.Dodge:Destroy()
debounce = false
end
end
function onKeyPress(inputObject, gameProcessedEvent)-- This is what filters the Keystroke
if inputObject.KeyCode == Enum.KeyCode.Q then
DodgeRight()
end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress) -- This is what outputs the keystroke
