local UserInputService = game:GetService("UserInputService")
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Character = script.Parent
local Humanoid = Character:WaitForChild("Humanoid")
local UIS = game:GetService("UserInputService")
--|| Script ||--
UIS.InputBegan:Connect(function(input, gameProcessedEvent)
if (input.KeyCode == Enum.KeyCode.S and UIS:IsKeyDown(Enum.KeyCode.Q)) or (input.KeyCode == Enum.KeyCode.Q and UIS:IsKeyDown(Enum.KeyCode.S)) then
if tick() - PropertiesQ.LastDash >= PropertiesQ.Cooldown then
end
end
end)
Hello everyone, I'm making this post today because I have a serious problem with my script because a very important line of code is missing. I explain myself, recently I challenged myself to develop a game and right now I'm working on the controls (ex: dash...). However, on my dash script there is a line missing that would allow me to instantly turn my character in a direction to avoid dash bugs. Example: when I move forward with W and then I press S and Q my character instead of making a dash backwards it goes in all directions because my character makes a short rotation of 180 degrees, there is a certain latency that makes me not dash in the right direction. I thank you for your help!
** You are now Level 6! **