Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make a W A S D dash system?

Asked by 2 years ago
Edited by T3_MasterGamer 2 years ago

I want to make a WASD Dash System however all the things I tried didn't work. I already have created animations for ASD and I want no animations for W. All I want is a simple teleport into your direction and set the animation based on it. It would also be great if it would have I-Frames.

I saved the animations into a folder called "Dash" in ReplicatedStorage. The names are DashL, DashR and DashB, for Left, Right and Back respectively.

I also want to implement some anime teleport particles (like this: https://tenor.com/view/teleportation-goku-dragon-ball-z-super-saiyan-dbz-gif-17300403) . They are going to be just simple particles eminating from the player. Nothing special.

Here is the code I tried using. Instead of teleporting, it just gives a speed boost.

01local UserInputService = game:GetService("UserInputService")
02local Players = game:GetService("Players")
03local ReplicatedStorage = game:GetService("ReplicatedStorage")
04 
05local Character = script.Parent
06local Humanoid = Character:WaitForChild("Humanoid")
07 
08local DashL = Humanoid:LoadAnimation(ReplicatedStorage.Dash.DashL)
09local DashR = Humanoid:LoadAnimation(ReplicatedStorage.Dash.DashR)
10local DashB = Humanoid:LoadAnimation(ReplicatedStorage.Dash.DashB)
11 
12local Properties = {
13    Velocity = 50,
14    Duration = 1,
15    Keybind = Enum.KeyCode.Q,
View all 43 lines...
0
We can't make a whole script for you but if you could show the script that failed we could help. Puppy_lovertheawsome 84 — 2y

Answer this question