You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I have a dash system, and I want to make it so if you jump then dash, it keeps you in the air during the dash.
- What is the issue? Include screenshots / videos if possible!
I have tried to locally set the workspace’s gravity lower to try and keep the player from falling, but this yields inconsistent results with some dashes sending you higher and some keeping you lower.
UIS.InputBegan:Connect(function(i,t)
if t then return end
if i.KeyCode == Enum.KeyCode.Q then
if not candash then return end
workspace.Gravity = 20 --very low gravity
------------
local Data = {
["Action"] = "Dash",
["Direction"] = CurrentDirection
}
Remotes.MainCombat:FireServer(Data)
--sending stuff to the server which will move the player^
candash = false
task.wait(.9)
workspace.Gravity = 196.2--setting the gravity back to normal
task.wait(.1)
candash = true
end
end)
Is there any way to do this that will always have the player stay in a straight forward line through the dash and then have them land after?