How to make a DASH SYSTEM in Roblox Studio 2024!

Поділитися
Вставка
  • Опубліковано 17 січ 2025

КОМЕНТАРІ • 201

  • @beaney2211
    @beaney2211 4 місяці тому +8

    0:49 bro's grades are better than mine

  • @Astro-Playrooms
    @Astro-Playrooms 4 місяці тому +35

    if anyone is to lazy
    local uis = game:GetService("UserInputService")
    local player = game.Players.LocalPlayer
    local mouse = player:GetMouse()
    local char = player.Character or player.CharacterAdded:Wait()
    local hrp = char:WaitForChild("HumanoidRootPart")
    local debounce = false
    local Wkey = false
    local Akey = false
    local Skey = false
    local Dkey = false
    mouse.KeyDown:Connect(function(key)
    if key == "w" then
    Wkey = true
    elseif key == "a" then
    Akey = true
    elseif key == "s" then
    Skey = true
    elseif key == "d" then
    Dkey = true
    end
    end)
    mouse.KeyUp:Connect(function(key)
    if key == "w" then
    Wkey = false
    elseif key == "a" then
    Akey = false
    elseif key == "s" then
    Skey = false
    elseif key == "d" then
    Dkey = false
    end
    end)
    uis.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.E and not debounce then
    debounce = true
    local vel = Instance.new("BodyVelocity")
    vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
    if Wkey then
    vel.Velocity = hrp.CFrame.LookVector * 100
    elseif Akey then
    vel.Velocity = hrp.CFrame.RightVector * -100
    elseif Skey then
    vel.Velocity = hrp.CFrame.RightVector * 100
    else
    vel.Velocity = Vector3.new(0, 0, 0)
    end
    vel.Parent = hrp
    game.Debris:AddItem(vel, 0.2)
    wait(1)
    debounce = false
    end
    end)

    • @unomasunohjnds
      @unomasunohjnds 4 місяці тому +1

      thanks

    • @Astro-Playrooms
      @Astro-Playrooms 4 місяці тому +1

      @@unomasunohjnds your welcome also there is a little bit broken on the script but it's not that bad it still mostly works because I didn't fully follow the tutorial.

    • @moreSteppz
      @moreSteppz 4 місяці тому +1

      Bro even did a better script

    • @Astro-Playrooms
      @Astro-Playrooms 4 місяці тому +1

      ?

    • @Rf24Rodty
      @Rf24Rodty 4 місяці тому +1

      goat

  • @xRe15x
    @xRe15x 2 місяці тому +5

    funny how it says "advanced dash system" while he makes the most painful and inefficient script ive ever seen

    • @Scryptings
      @Scryptings 26 днів тому +1

      -usage of bodyvel
      -using deprecated mouse.Key events and THEN using uis.Input events right after 😭😭😭😭😭😭😭

  • @henriquebigolin2006
    @henriquebigolin2006 6 місяців тому +4

    Thank you broooo, u make it so simple i understand everything

  • @zink-dev
    @zink-dev 5 місяців тому +5

    the only thing that could be a flaw in this is using body velocity since its depricated. But nice tutorial.

    • @devmelonroblox
      @devmelonroblox  5 місяців тому

      I guess

    • @vrfrenzy8451
      @vrfrenzy8451 5 місяців тому

      body velocity may be depricated but it works perfectly fine, it just doesn't work on attachments like the new systems do (at least this is what I have seen from a bit of research)

    • @kingbluedash
      @kingbluedash 4 місяці тому +2

      LinearVelocity has replaced it, although it's a bit broken, as when i used DevMelon's slide tutorial it started to fling my avatar whenever i tried to slide (which the solution to that was using roblox's new physics character controller.)

  • @vinnietheking
    @vinnietheking 2 місяці тому +2

    Does anyone know how I could edit the script so you'll dash even if youre not moving?

  • @TinyFrem
    @TinyFrem 6 місяців тому +2

    Bro your intros are always fire, love it

  • @syathonjr
    @syathonjr Місяць тому +4

    I made an upgraded system that is a lot shorter:
    local uis = game:GetService("UserInputService")
    local player = game.Players.LocalPlayer
    local char = player.Character or player.CharacterAdded:Wait()
    local hrp = char:WaitForChild("HumanoidRootPart")
    local cam = workspace.CurrentCamera
    local debounce = false
    local cooldown = 1
    uis.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.E and not debounce then
    debounce = true
    local vel = Instance.new("BodyVelocity")
    vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
    if uis:IsKeyDown(Enum.KeyCode.W) then
    local vect = cam.CFrame.LookVector * 100
    vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
    elseif uis:IsKeyDown(Enum.KeyCode.A) then
    local vect = cam.CFrame.RightVector * -100
    vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
    elseif uis:IsKeyDown(Enum.KeyCode.S) then
    local vect = cam.CFrame.LookVector * -100
    vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
    elseif uis:IsKeyDown(Enum.KeyCode.D) then
    local vect = cam.CFrame.RightVector * 100
    vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
    end
    vel.Parent = hrp
    game.Debris:AddItem(vel, 0.2)
    wait(cooldown)
    debounce = false
    end
    end)

    • @Woah-b8r
      @Woah-b8r 4 дні тому +1

      yo tysm it works in my game unlike the other scripts i tried using

    • @LuvasTheGloves
      @LuvasTheGloves 4 дні тому +1

      i found a bug: if you dash without pressing any key, your character will move a bit, i did this to fix:
      (after the "D key" elseif)
      else
      vel.MaxForce = Vector3.new(0,0,0)
      end
      that was just a little bug, still a very good script, you are welcome

    • @LuvasTheGloves
      @LuvasTheGloves 4 дні тому +1

      or you can do something like this:
      else
      local vect = hrp.CFrame.LookVector * 100
      vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
      end

    • @syathonjr
      @syathonjr 4 дні тому

      @@LuvasTheGloves Yo man thank you for taking the time to improve my own code. I actually had already edited it to do that after I had made this comment but I didnt edit it since I had already added elements of my own game to the code but I thank you for your support
      Here is the code with the new edits:
      local uis = game:GetService("UserInputService")
      local player = game.Players.LocalPlayer
      local char = player.Character or player.CharacterAdded:Wait()
      local hrp = char:WaitForChild("HumanoidRootPart")
      local cam = workspace.CurrentCamera
      local debounce = false
      local cooldown = 1
      uis.InputBegan:Connect(function(input, gameProcessed)
      if gameProcessed then return end
      if input.KeyCode == Enum.KeyCode.E and not debounce then
      debounce = true
      local vel = Instance.new("BodyVelocity")
      vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
      if uis:IsKeyDown(Enum.KeyCode.W) then
      local vect = cam.CFrame.LookVector * 100
      vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
      elseif uis:IsKeyDown(Enum.KeyCode.A) then
      local vect = cam.CFrame.RightVector * -100
      vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
      elseif uis:IsKeyDown(Enum.KeyCode.S) then
      local vect = cam.CFrame.LookVector * -100
      vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
      elseif uis:IsKeyDown(Enum.KeyCode.D) then
      local vect = cam.CFrame.RightVector * 100
      vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
      else
      local vect = cam.CFrame.LookVector * 100
      vel.Velocity = Vector3.new(vect.X, 0, vect.Z)
      end
      vel.Parent = hrp
      game.Debris:AddItem(vel, 0.2)
      wait(cooldown)
      debounce = false
      end
      end)

    • @syathonjr
      @syathonjr 4 дні тому

      I cant show my code now but I later used a vector force (It was that or a linear force) instead of a body velocity. That was better for 2 ways: It meant gravity actually had an effect on you and if you dashed in the air it would just make you go foward, and 2nd body velocity is depricated.
      Ill try and post my code within 24 hours Im quite busy atm

  • @rogergaming-b9u
    @rogergaming-b9u Місяць тому +1

    this will come in handy for my doom but in roblox game

  • @happyperkiness746
    @happyperkiness746 6 місяців тому +2

    How can you modify this script to include an animation that plays when you dash in certain directions ?

    • @devmelonroblox
      @devmelonroblox  6 місяців тому +1

      When you add the bodyvelocity you do
      anim = Humanoid:LoadAnimation(Animation)
      anim:Play()

    • @happyperkiness746
      @happyperkiness746 6 місяців тому +1

      @@devmelonrobloxokay thank you :)

    • @turtledude8852
      @turtledude8852 6 місяців тому

      @@devmelonroblox erm it says unknown global humanoid and animation you think you could help me with that?

    • @turtledude8852
      @turtledude8852 6 місяців тому

      @@happyperkiness746hey did this work for you??

    • @SnortingPig88
      @SnortingPig88 Місяць тому

      @@turtledude8852 bro u hv to put the variables for humanoid and char first
      get the plrs character and his humanoid

  • @DefinitelyNotRicho
    @DefinitelyNotRicho Місяць тому +2

    Works thanks but when you dash into wall its just flys away. can you fix ithat?

    • @devmelonroblox
      @devmelonroblox  Місяць тому

      Try using the :GetPartsinPart() to see if the player is overlapping with the wall and not allow the dash. Other than that I’m not really sure I’ll have to look into it

  • @Noodlex69
    @Noodlex69 2 місяці тому +1

    Hey good video but i have one bug. If i side dash and and then hold w i do another dash even tho im not holding q?

  • @ttm3622
    @ttm3622 13 днів тому

    So like, do i literally have to press W,A,S or D to dash, or is there another button, because I’m confused.

  • @INN_FINITYY
    @INN_FINITYY 5 місяців тому +2

    thanks but what key do i press to dash?

    • @bacon_craft385
      @bacon_craft385 5 місяців тому +2

      E you can also change it at string 37 after "Enum.KeyCode.(your key)"

    • @RandomEdittsss
      @RandomEdittsss 5 місяців тому

      @@bacon_craft385 can you make it so you double tap space bar and how will it work for mobile users?

    • @INN_FINITYY
      @INN_FINITYY 5 місяців тому +1

      It doesn’t work😭

    • @Astro-Playrooms
      @Astro-Playrooms 25 днів тому

      @@RandomEdittsss I had this issue but I made a gui button then you have to remake almost the whole script hope you found out how to do before I made this comment

  • @KrozGamerzYT
    @KrozGamerzYT День тому

    idk why it not work for me but when I try ask assistant its actually work

  • @SpiderDev-n4e
    @SpiderDev-n4e 5 місяців тому +1

    How do you make it play an animation?

  • @neosepp3956
    @neosepp3956 6 місяців тому +2

    Pretty new in coding (like new-born baby new) so how can i add my own animations in the dashes, plz help :)

    • @ItzVen6
      @ItzVen6 6 місяців тому +1

      You need to provide the assest Id of your animations that you have published to Roblox, make sure you publish it as a group owned animation and not a animation created by you to avoid future complications. Hope this helps

    • @JetReaper
      @JetReaper 4 місяці тому

      yeah, same issue

    • @DeathDany714
      @DeathDany714 3 місяці тому

      @@ItzVen6 how do i do it? what script i write?

    • @ItzVen6
      @ItzVen6 2 місяці тому

      @@DeathDany714 u just have to edit the script by placing the animation I’d of your animations into the places where the animation is allready put, for example in the script replace the dash id whihh your own dash id

  • @DJAnude
    @DJAnude 6 місяців тому

    "Wow! AI just did the whole script for me, but im not lazy so-"
    BUT I AMMMMMMM

  • @AzcalPlayz
    @AzcalPlayz 6 днів тому

    hello do you know how to add animation to my dash?

  • @petrisano
    @petrisano 10 днів тому

    why is my dash not working even though i did every thing as you did

  • @delustopia
    @delustopia 5 місяців тому +1

    can you tell me what mic you use?

    • @devmelonroblox
      @devmelonroblox  5 місяців тому

      I use some random mic i found in my house i dont even know the name of it ahahah

    • @devmelonroblox
      @devmelonroblox  5 місяців тому

      I think its a Mackie em-usb

    • @delustopia
      @delustopia 5 місяців тому

      @@devmelonroblox love ur vids btw just added a dash system to my game

  • @ShokerMatvey
    @ShokerMatvey 6 місяців тому +1

    Nice vid it will help me alot

  • @sinadostewelde7317
    @sinadostewelde7317 6 місяців тому +2

    Does the game have to be R15 or R6?

    • @Sakplayer
      @Sakplayer 6 місяців тому

      no

    • @sinadostewelde7317
      @sinadostewelde7317 6 місяців тому

      @@Sakplayer Wdym by that?

    • @Sakplayer
      @Sakplayer 6 місяців тому

      @@sinadostewelde7317 I think you ask about the game should R15 or R6 to make dash system. Well it doesn't matter to have R15 or R6 to make dash

  • @MuhammadAamir94
    @MuhammadAamir94 6 місяців тому +1

    i did everything step by step but script didnt work and nothings happening.

  • @IHaveNoIdea_.
    @IHaveNoIdea_. 5 місяців тому

    is there a way to attach a animation onto it, i am a starter scripter and this would help alot.

  • @bacon_craft385
    @bacon_craft385 5 місяців тому

    how do i also apply animations to it? i want to make dashes with animations

  • @GreatNickyJ
    @GreatNickyJ 4 місяці тому

    How do i add an animation to the dash?

  • @airsjorderns
    @airsjorderns 4 місяці тому +2

    Heres the full script
    local UIS = game:GetService("UserInputService")
    local player = game.Players.LocalPlayer
    local Mouse = player:GetMouse()
    local char = script.Parent
    local HRP = char:WaitForChild("HumanoidRootPart")
    local debounce = false
    local WKey = false
    local AKey = false
    local SKey = false
    local DKey = false
    Mouse.KeyDown:Connect(function(key)
    if key == "w" then
    WKey = true
    elseif key == "a" then
    AKey = true
    elseif key == "s" then
    SKey = true
    elseif key == "d" then
    DKey = true
    end
    end)
    Mouse.KeyUp:Connect(function(key)
    if key == "w" then
    WKey = false
    elseif key == "a" then
    AKey = false
    elseif key == "s" then
    SKey = false
    elseif key == "d" then
    DKey = false
    end
    end)
    UIS.InputBegan:Connect(function(Key, gameProcessedEvent)
    if gameProcessedEvent then return end -- Prevent action if the game processes the event
    if Key.KeyCode == Enum.KeyCode.E and not debounce then
    local vel = Instance.new("BodyVelocity")
    vel.MaxForce = Vector3.new(math.huge, 0, math.huge)
    if WKey then
    vel.Velocity = HRP.CFrame.LookVector * 100
    elseif AKey then
    vel.Velocity = HRP.CFrame.RightVector * -100
    elseif SKey then
    vel.Velocity = HRP.CFrame.LookVector * -100
    elseif DKey then
    vel.Velocity = HRP.CFrame.RightVector * 100
    end
    vel.Parent = HRP
    game.Debris:AddItem(vel, 0.2)
    debounce = true
    wait(1)
    debounce = false
    end
    end)

  • @JyelBe
    @JyelBe 19 днів тому

    ey bro it stopped all of my animations ! can you help me

  • @Shernxuengoh
    @Shernxuengoh 6 місяців тому +1

    help! I did everything right but nothing happend what should i do?

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      @@Shernxuengoh then you didn’t do everything right check your output and tell me the error you get

  • @DeathDany714
    @DeathDany714 3 місяці тому

    what is the script to play an animation, i created one but i dont know how to add it when doing dash

    • @venekeT
      @venekeT 2 місяці тому

      local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
      animation:Play() (btw the animation have to be in the script
      )

  • @Drxpyoutube
    @Drxpyoutube 6 місяців тому +4

    local UIS = game;GetService("UserInputService")
    local Player = game.Players.LocalPlayer
    local mouse = Player:GetMouse()
    local char = script.Parent
    local HRP = Char:WaitForChild("HumanoidRootPart")
    local debounce = false
    local WKey = false
    local AKey = false
    local SKey = false
    local DKey = false
    Mouse.KeyDown:Connect(function(key)
    if key == "w" then
    WKey = true
    elseif key == "a" then
    AKey = true
    elseif key == "s" then
    SKey = true
    elseif key == "d" then
    DKey = true
    end
    end)
    Mouse.KeyUp:Connect(function(key)
    if key == "w" then
    WKey = false
    elseif key == "a" then
    AKey = false
    elseif key == "s" then
    SKey = false
    elseif key == "d" then
    DKey = false
    end
    end)
    UIS.InputBegan:Connect(function(key)
    if key.KeyCode == Enum.KeyCode.E then
    if WKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
    vel.Velocity = HRP.CFrame.lookVector*100
    game.Debris:AddItem(vel,.2)
    wait(1)
    debounce = false
    end
    elseif AKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
    vel.Velocity = HRP.CFrame.RightVector*-100
    game.Debris:AddItem(vel,.2)
    wait(1)
    debounce = false
    end
    elseif SKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
    vel.Velocity = HRP.CFrame.LookVector*-100
    game.Debris:AddItem(vel,.2)
    wait(1)
    debounce = false
    end
    elseif DKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
    vel.Velocity = HRP.CFrame.RightVector*100
    game.Debris:AddItem(vel,.2)
    wait(1)
    debounce = false
    end
    end
    end

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      You make a couple typos in the script

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      @@Drxpyoutube at the start where you did local UIS instead of ; do :

    • @Drxpyoutube
      @Drxpyoutube 6 місяців тому

      Still didnt work

    • @Drxpyoutube
      @Drxpyoutube 6 місяців тому

      Says Workspace.guap4088.LocalScript:77: Expected ‘end’ (to close ‘function’ at line 36), got ; did you forget to close ‘then at line 66

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      Read the error at like 66 you to add end to close the function

  • @SnowLord_YT
    @SnowLord_YT 6 місяців тому +4

    THANKS U SO MUCH, I have did ur sword attack tutorial and it was very good,so thank u for this tutorial!🎉

  • @OkMateuz.mp4
    @OkMateuz.mp4 6 місяців тому +1

    Hello Bro, your content is good, don't stop.👍

  • @beverlywilliams8815
    @beverlywilliams8815 5 місяців тому

    I have the same code but every time I press E and any other key it doesn’t work

    • @croosh1467
      @croosh1467 4 місяці тому

      you have to make an animation first

    • @Bobr4
      @Bobr4 4 місяці тому

      @@croosh1467 how to make an animation?

    • @croosh1467
      @croosh1467 4 місяці тому

      ​@@Bobr4it's kinda has a lot of steps but you can animate in the animation editor inside avatar, or get the "Moon Animator" Plugin then paste the animation id to the Animation(Object)

  • @Monkey-c4z
    @Monkey-c4z 3 місяці тому

    now how do i change the animation?

  • @GoroDev23
    @GoroDev23 4 місяці тому

    Why doesnt anything that i do from tutorials not work can u tell me why pls

    • @devmelonroblox
      @devmelonroblox  4 місяці тому

      Probably spelling mistakes like capital letters check your output for errors

  • @cjoliver7274
    @cjoliver7274 4 місяці тому +2

    Did not work ):

  • @RagedCascade359
    @RagedCascade359 6 місяців тому +1

    Nice video! BTW what does body velocity do?

  • @BloxfruitsForyou
    @BloxfruitsForyou 14 днів тому

    how to add a animation to it?

  • @ricemmanuellallana2076
    @ricemmanuellallana2076 6 місяців тому

    Hi dev melon ive been having in this tutorial recently ive been watching for 3 days and still some errors can you send me the script and i can finally make my dash in my future game

  • @user-animation0000
    @user-animation0000 5 місяців тому +1

    Bro is that for R6 too?

  • @Friskerlover
    @Friskerlover 4 місяці тому

    It works but when i click s i dash to the right and when i click d nothing happens

    • @awesomewolf7197
      @awesomewolf7197 3 місяці тому

      theres a but of broken code in the comment you pasted heres the fix i made
      local vel = Instance.new("BodyVelocity")
      vel.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
      if Wkey then
      vel.Velocity = hrp.CFrame.LookVector * 100
      elseif Akey then
      vel.Velocity = hrp.CFrame.RightVector * -100
      elseif Dkey then
      vel.Velocity = hrp.CFrame.RightVector * 100
      elseif Skey then
      vel.Velocity = hrp.CFrame.LookVector * -100
      else
      vel.Velocity = Vector3.new(0, 0, 0)
      end

    • @Friskerlover
      @Friskerlover 3 місяці тому

      @@awesomewolf7197 ty

  • @bartoszzyka9792
    @bartoszzyka9792 6 місяців тому

    Can you make a boomerang weapon basicly a throw weapon that comes back

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      I sure might make a vid on this soon

  • @MansiShah111
    @MansiShah111 4 місяці тому

    Does this work on the server side?¿

  • @CODENAME_balling-tt3zf
    @CODENAME_balling-tt3zf 3 місяці тому

    can you make one with a cd gui in it

  • @doaalra
    @doaalra 6 місяців тому +1

    can u give me the script so i dont have to write it down ;-; ? THANK U

    • @roccosebastian9004
      @roccosebastian9004 6 місяців тому +1

      Ppl do this so other ppl actually watch the video

    • @C00lkidd_Reborn
      @C00lkidd_Reborn 6 місяців тому +1

      local UIS = game;GetService("UserInputService")
      local Player = game.Players.LocalPlayer
      local mouse = Player:GetMouse()
      local char = script.Parent
      local HRP = Char:WaitForChild("HumanoidRootPart")
      local debounce = false
      local WKey = false
      local AKey = false
      local SKey = false
      local DKey = false
      Mouse.KeyDown:Connect(function(key)
      if key == "w" then
      WKey = true
      elseif key == "a" then
      AKey = true
      elseif key == "s" then
      SKey = true
      elseif key == "d" then
      DKey = true
      end
      end)
      Mouse.KeyUp:Connect(function(key)
      if key == "w" then
      WKey = false
      elseif key == "a" then
      AKey = false
      elseif key == "s" then
      SKey = false
      elseif key == "d" then
      DKey = false
      end
      end)
      UIS.InputBegan:Connect(function(key)
      if key.KeyCode == Enum.KeyCode.E then
      if WKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
      vel.Velocity = HRP.CFrame.lookVector*100
      game.Debris:AddItem(vel,.2)
      wait(1)
      debounce = false
      end
      elseif AKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
      vel.Velocity = HRP.CFrame.RightVector*-100
      game.Debris:AddItem(vel,.2)
      wait(1)
      debounce = false
      end
      elseif SKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
      vel.Velocity = HRP.CFrame.LookVector*-100
      game.Debris:AddItem(vel,.2)
      wait(1)
      debounce = false
      end
      elseif DKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,0,math.huge)
      vel.Velocity = HRP.CFrame.RightVector*100
      game.Debris:AddItem(vel,.2)
      wait(1)
      debounce = false
      end
      end
      end

    • @doaalra
      @doaalra 6 місяців тому +2

      @@C00lkidd_Reborn TYSMM

  • @DarkIXsPlays
    @DarkIXsPlays 6 місяців тому

    Tysm this work

  • @АлександрКолесник-щ2ц

    can someone please get a full and working script cuz im aint copying all of that

  • @Burg_blox
    @Burg_blox 27 днів тому

    Can Someone Teach Me On How to put Animation to the dash😅

  • @Dex-RBLX-cool-lol
    @Dex-RBLX-cool-lol 18 днів тому

    I'm leaving this comment here cuz I'm lazy as hell and can't finish this today so I can see this video tomorrow come to my point and keep scripting!
    6:07

  • @Sycro11
    @Sycro11 4 місяці тому

    the script works (only in shift lock) but it is way overcomplicated

    • @devmelonroblox
      @devmelonroblox  4 місяці тому

      @@Sycro11 yeah sorry I’m not perfect at scripting 😅

  • @turtledude8852
    @turtledude8852 6 місяців тому

    I have no clue how to do this I copied it exactly and only added a few lines to add my own animation and it doesn’t work 😭😭

    • @croosh1467
      @croosh1467 4 місяці тому

      u have to make an animation first

  • @voidedspark6494
    @voidedspark6494 2 місяці тому

    I tried it out and nothing happen when I clicked E

  • @ricemmanuellallana2076
    @ricemmanuellallana2076 6 місяців тому

    what key do i press when done

    • @ricemmanuellallana2076
      @ricemmanuellallana2076 6 місяців тому

      heres the script i dont see the problem

    • @ricemmanuellallana2076
      @ricemmanuellallana2076 6 місяців тому

      local UIS = game:GetService("UserInputService")
      local Player = game.Players.LocalPlayer
      local mouse = Player:GetMouse()
      local char = script.Parent
      local HRP = Char.WaitForChild("HumanoidRootPart")
      local debounce = false
      local WKey = false
      local AKey = false
      local SKey = false
      local DKey = false
      Mouse.KeyDown:Connect(function(key)
      if key == "w" then
      WKey = true
      elseif key == "a" then
      AKey = true
      elseif key == "s" then
      SKey = true
      elseif key == "d" then
      DKey = true
      end
      end)
      Mouse.KeyUp:Connect(function(key)
      if key == "w" then
      WKey = false
      elseif key == "a" then
      AKey = false
      elseif key == "s" then
      SKey = false
      elseif key == "d" then
      DKey = false
      end
      end)
      UIS.InputBegan:Connect(function(key)
      if key.KeyCode == Enum.KeyCode.E then
      if WKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,math.huge)
      vel.Velocity = HRP.CFrame.lookVector*100
      game.Debris:AddItem(vel,0.2)
      debounce = true
      wait(1)
      debounce = false
      end
      elseif AKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,math.huge)
      vel.Velocity = HRP.CFrame.RightVector*-100
      game.Debris:AddItem(vel,0.2)
      debounce = true
      wait(1)
      debounce = false
      end
      elseif SKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,math.huge)
      vel.Velocity = HRP.CFrame.LookVector*-100
      game.Debris:AddItem(vel,0.2)
      debounce = true
      wait(1)
      debounce = false
      end
      elseif DKey == true then
      if debounce == false then
      local vel = Instance.new("BodyVelocity",HRP)
      vel.MaxForce = Vector3.new(math.huge,0,math.huge)
      vel.Velocity = HRP.CFrame.RightVector*100
      game.Debris:AddItem(vel,0.2)
      debounce = true
      wait(1)
      debounce = false
      end
      end
      end
      end)

    • @HumanClover
      @HumanClover 5 місяців тому

      ​@ricemmanuellallana2076 You put the variables wrong bro, change the local mouse to local Mouse and local characters to local Char

  • @G12DG12D-jy6ym
    @G12DG12D-jy6ym 4 місяці тому

    isnt body vel deprecated

  • @randycpm
    @randycpm 4 місяці тому

    It doesnt work and i have no errors

  • @CelestixBS
    @CelestixBS 4 місяці тому

    I't doesn't work for me

  • @TheRealAamirPreddie
    @TheRealAamirPreddie 3 місяці тому

    How do I make it work for mobile?

    • @Astro-Playrooms
      @Astro-Playrooms 25 днів тому

      @@TheRealAamirPreddie make a gui button then you just have to remake the whole button script

    • @TheRealAamirPreddie
      @TheRealAamirPreddie 25 днів тому

      @ ok thanks

  • @MatiBugati
    @MatiBugati 4 місяці тому

    Did not work, also heck you for not having the code in the description!

  • @LandonWhitman
    @LandonWhitman 6 місяців тому

    Redo how to make a worming sword jn Roblox

  • @WalkingTaco187
    @WalkingTaco187 6 місяців тому +1

    YESSS

  • @dangerousskull3768
    @dangerousskull3768 3 місяці тому

    not a good idea to use deprecated stuff

  • @Jasonself-l5s
    @Jasonself-l5s 9 днів тому

    it didnt work.

  • @Claire-y8m
    @Claire-y8m 6 місяців тому

    can u put the script in the comments pls

  • @williamisabeliam
    @williamisabeliam 26 днів тому +1

    Lier it never worked and my script is now broke an

    • @devmelonroblox
      @devmelonroblox  26 днів тому

      I’m not lying why woood I lie, just tell me what error u get 🤷‍♂️

    • @anchoredharbour711
      @anchoredharbour711 24 дні тому

      U r using a 5 months old tutorial. Some methods have since been deprecated. So before making this effortless comment, did u try...idk...looking up the forums documentations? Or any other way to make it work?

  • @Years12317
    @Years12317 5 місяців тому

    4:28

  • @Pwr_PlayzYT
    @Pwr_PlayzYT 6 місяців тому +1

    JUST HAD ME WASTE MY TIME IT DIDNT WORK

    • @devmelonroblox
      @devmelonroblox  6 місяців тому +3

      Instead of saying it didn’t work say what actually didn’t work and what error you have so I could help

    • @Snasthesans
      @Snasthesans 5 місяців тому +1

      Skill issue

  • @cap1ninja
    @cap1ninja 6 місяців тому

    can some one post the script in comments?

  • @AHMADKHALIFBINSHARMIZIEMoe
    @AHMADKHALIFBINSHARMIZIEMoe 6 місяців тому

    script
    local UIS = game:GetService("UserInputService")
    local Player = game.Players.LocalPlayer
    local Mouse = Player:GetMouse()
    local Char = script.Parent
    local HRP = Char:WaitForChild("HumanoidRootPart")
    local debounce = false
    local WKey = false
    local AKey = false
    local SKey = false
    local DKey = false
    Mouse.KeyDown:Connect(function(key)
    if key == "w" then
    WKey = true
    elseif key == "a" then
    AKey = true
    elseif key == "s" then
    SKey = true
    elseif key == "d" then
    DKey = true
    end
    end)
    Mouse.KeyUp:Connect(function(key)
    if key == "w" then
    WKey = false
    elseif key == "a" then
    AKey = false
    elseif key == "s" then
    SKey = false
    elseif key == "d" then
    DKey = false
    end
    end)
    UIS.InputBegan:Connect(function(input, gameProcessed)
    if input.KeyCode == Enum.KeyCode.E then
    if WKey or AKey or SKey or DKey then
    if debounce == false then
    local vel = Instance.new("BodyVelocity", HRP)
    vel.MaxForce = Vector3.new(math.huge, 0, math.huge)

    if WKey then
    vel.Velocity = HRP.CFrame.LookVector * 100
    elseif AKey then
    vel.Velocity = -HRP.CFrame.RightVector * 100
    elseif SKey then
    vel.Velocity = -HRP.CFrame.LookVector * 100
    elseif DKey then
    vel.Velocity = HRP.CFrame.RightVector * 100
    end

    game.Debris:AddItem(vel, 0.2)
    debounce = true
    wait(0.5)
    debounce = false
    end
    end
    end
    end)
    Hope this help :)

    • @yraehn
      @yraehn 5 місяців тому

      thx

  • @unknow9000-b1n
    @unknow9000-b1n 5 місяців тому

    Can jou zet de script in de comments

  • @Drxpyoutube
    @Drxpyoutube 6 місяців тому

    Abouta see if it works

    • @Drxpyoutube
      @Drxpyoutube 6 місяців тому

      Did not work

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      You sure you wrote it right did u get any errorsv

    • @Pwr_PlayzYT
      @Pwr_PlayzYT 6 місяців тому

      @@devmelonrobloxI wrote it right

  • @Claire-y8m
    @Claire-y8m 6 місяців тому

    it doesnt work

    • @devmelonroblox
      @devmelonroblox  6 місяців тому

      What does work exactly saying it doesn’t work doesn’t help

  • @PandatheCub
    @PandatheCub 18 днів тому

    mobile players...

  • @レブlevv
    @レブlevv 17 днів тому

    bro u made me waste 5 more mins bc u did't want the ai stuff😢

  • @zmigal
    @zmigal 6 місяців тому +1

    2nd😢

  • @MansiShah111
    @MansiShah111 4 місяці тому

    Does this work on the server side?¿

    • @smashthepie1759
      @smashthepie1759 4 місяці тому

      do you mean would this work in a server script, or does it replicate to the server ?

  • @Lostmidnightegg
    @Lostmidnightegg 6 місяців тому

    local UIS = game:GetService("UserInputService")
    local Player = game.Players.LocalPlayer
    local Mouse = Player:GetMouse()
    local Char = script.Parent
    local HRP Char:WaitForChild("HumanoidRootPart")
    local debounce = false
    local WKey = false
    local AKey = false
    local SKey = false
    local DKey = false
    Mouse.KeyDown:Connect(function(key)
    if key == "w" then
    WKey = true
    elseif key == "a" then
    AKey = true
    elseif key == "s" then
    SKey = true
    elseif key == "d" then
    DKey = true
    end
    end)
    Mouse.KeyUp:Connect(function(key)
    if key == "w" then
    WKey = false
    elseif key == "a" then
    AKey = false
    elseif key == "s" then
    SKey = false
    elseif key == "d" then
    DKey = false
    end
    end)
    UIS.InputBegan:Connect(function(key)
    if key.KeyCode == Enum.KeyCode.C then
    if WKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,math.huge)
    vel.Velocity = HRP.CFrame.LookVector*100
    game.Debris:AddItem(vel,0.2)
    debounce = true
    wait(1)
    debounce = false
    end
    elseif AKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,math.huge)
    vel.Velocity = HRP.CFrame.RightVector*-100
    game.Debris:AddItem(vel,0.2)
    debounce = true
    wait(1)
    debounce = false
    end
    elseif SKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,math.huge)
    vel.Velocity = HRP.CFrame.LookVector*-100
    game.Debris:AddItem(vel,0.2)
    debounce = true
    wait(1)
    debounce = false
    end
    elseif DKey == true then
    if debounce == false then
    local vel = Instance.new("BodyVelocity",HRP)
    vel.MaxForce = Vector3.new(math.huge,0,math.huge)
    vel.Velocity = HRP.CFrame.RightVector*100
    game.Debris:AddItem(vel,0.2)
    debounce = true
    wait(1)
    debounce = false
    end
    end
    end
    end)
    Error :3: attempt to index nil with 'GetMouse'
    anywhere I made a mistake or typo?

    • @Snasthesans
      @Snasthesans 5 місяців тому

      W guy

    • @Reflecterr
      @Reflecterr 4 місяці тому

      you forgot the "=" when classifying HRP as the humanoid root part

  • @jarnamadurinn
    @jarnamadurinn 29 днів тому

    doesnt work