How To Make A Combat System In Roblox Studio [TUTORIAL]

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 2,5 тыс.

  • @vuukstudios7635
    @vuukstudios7635  Год назад +98

    JOIN OUR ACADEMY HERE: 🌟⬇
    www.whop.com/vuukstudios-academy

    • @MKing912
      @MKing912 Год назад +1

      It didn't work again, he says there is an animation problem. Let's make games together in the studio. Send me a friend request. My name is Muhammed_YTBR44.❤❤

    • @yusufkouba2449
      @yusufkouba2449 Год назад +9

      bruh animation doesnt work :/ i spent long to do it now aint working u know how?

    • @draigyodo5121
      @draigyodo5121 Год назад

      Because just he wants to advertise so that we pay him 20 subscription to have the third 1 on his old discord and he made this video and to make views because it does a lot of cut + we have absolutely nothing and that he has except the basics of the script but that everyone little do it and so there it is.@@yusufkouba2449

    • @Red_Elf1
      @Red_Elf1 Год назад

      ​@@yusufkouba2449If you are having trouble getting the animation to play on a character, it could be that you chose r6 animation, but dont have a r6 avatar, or chose r15 animation but dont have a r15 avatar. This is easily fixed by changing it in build. It is possible that you messed up the animation code.

    • @SS_YT777
      @SS_YT777 Год назад +5

      Moi sa ne marche pdt au moment de la deuxième animation

  • @Tamashinl
    @Tamashinl 8 месяцев назад +2084

    For M1's ;)
    local plr = game.Players.LocalPlayer
    local UIS = game:GetService("UserInputService")
    local count = 0
    local debounce = false
    UIS.InputBegan:Connect(function(Input, IS)
    if IS == true then return end
    if Input.UserInputType==Enum.UserInputType.MouseButton1 then
    if debounce == true then return end
    if count == 0 then
    spawn(function()
    wait(0.1)
    count = count + 1
    end)



    local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
    animation:Play()
    wait(0.2)
    game.ReplicatedStorage.CombatHit:FireServer()
    print ("E key is pressed")

    end
    if count == 1 then
    count = 0

    if debounce == true then return end
    debounce = true

    local animation = plr.Character.Humanoid:LoadAnimation(script.Animation2)
    animation:Play()
    wait(0.2)
    game.ReplicatedStorage.CombatHit:FireServer()
    print ("E key is pressed")
    wait(0.3)
    debounce = false
    end
    end
    end)
    Like this so other people can see this

  • @Igotchubroski
    @Igotchubroski 9 месяцев назад +33

    I figured out a common problem when making this is that your animation wont play. To fix this make sure ur game is published to roblox, then click game settings in the home tab, and then set your avatars to r6 or whatever model type you are using

    • @Peanut0933
      @Peanut0933 7 месяцев назад +1

      You're a life saver

    • @Vapixed
      @Vapixed 7 месяцев назад

      does it have to be public

    • @Vapixed
      @Vapixed 7 месяцев назад

      @@Peanut0933did u make it public it for it to work

    • @Peanut0933
      @Peanut0933 7 месяцев назад

      @@Vapixed no it doesn't👍

    • @ProbablyGlodi
      @ProbablyGlodi 4 месяца назад

      UR THE GOAT

  • @gIitchcakes
    @gIitchcakes 11 месяцев назад +228

    If you're having problems with the animation not working, make sure you have your game set to R6 under game settings in the home tab. If you modeled the animation in R6, your character will need to be in R6 for it to work

    • @willgotmontin6331
      @willgotmontin6331 11 месяцев назад +16

      Thank you. You are a real fucking G and i really appreciate it. You just saved me like 3 hours.

    • @gIitchcakes
      @gIitchcakes 11 месяцев назад +7

      @@willgotmontin6331 Np homie, took me a while to figure out what the problem was myself

    • @frostbyte_2014
      @frostbyte_2014 11 месяцев назад +1

      Bro you just saved my life!
      THANK U THANK U THANK U!!!!

    • @_Cybez
      @_Cybez 11 месяцев назад

      Thanks bro! i appreaciate it

    • @misinputgg
      @misinputgg 10 месяцев назад +1

      You’re the goat I love you

  • @Elijahsteak
    @Elijahsteak 10 месяцев назад +884

    local plr = game.Players.LocalPlayer
    local UIS = game:GetService("UserInputService")
    local debounce = false
    UIS.InputBegan:Connect(function(Input, IS)
    if IS == true then return end
    if Input.KeyCode == Enum.KeyCode.E then
    if debounce == true then return end
    debounce = true
    game.ReplicatedStorage.CombatHit:FireServer()
    local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
    animation:Play()
    print ("E key is pressed")
    wait(3)
    debounce = false
    end
    end)
    Like so people can see this

    • @eleacial
      @eleacial 10 месяцев назад +3

      tysm, i couldn’t find what was wrong with my code but this helped me significantly 😭

    • @Ryan1491
      @Ryan1491 9 месяцев назад

      ive tried everything even copied this but it still doest work anyone know why maybe

    • @gamechange1795
      @gamechange1795 9 месяцев назад

      @@Ryan1491 did you insert animation id?

    • @Kit_jay
      @Kit_jay 9 месяцев назад +1

      thank you idk how to do the quotation marks

    • @vrashy
      @vrashy 9 месяцев назад

      bro thanks

  • @spaceagentleo3524
    @spaceagentleo3524 2 месяца назад +10

    Just an FYI. for any of you where the combo system doesn't work as intended(auto does the second punch even if you didn't click twice) it is because the code automatically makes it so that count = 1 which triggers the second punch. to fix this create a function which tracks how many times the player clicks in lets say one second then if that click_count => 2... do second animation and punch. this should work. also you should generally make your code into a function when coding so that you do not have to type out the whole code again and again in seperate parts it saves quite a lot of time.
    Edit: don’t make it how many clicks in a second that’s a bad example do it by the amount of times the hitbox hit a person and track time along side of iy

    • @marciello__2613
      @marciello__2613 2 месяца назад

      can you tell me what this function looks like?

    • @spaceagentleo3524
      @spaceagentleo3524 Месяц назад +1

      @@marciello__2613 i would do it slightly differently to how he does it. i would create a remote event in replicated storage. then create a script in serverscriptservice which handles the combo.
      im guessing what you really wanted is the script but the script im using is different to what you will need because mine is specifically for a team and for certain situations. honestly chatgpt helps a lot
      but yeah dont listen to this guys combo as tracking clicks is a bad idea as otherwise you always get a combo. good luck

    • @marciello__2613
      @marciello__2613 Месяц назад

      @@spaceagentleo3524 thanks bro

  • @Adrunkduck
    @Adrunkduck Год назад +82

    after the second line of combat server you can add task.wait(time u want to delay) to add windup to attacks

    • @pranksclub8850
      @pranksclub8850 11 месяцев назад +2

      thank you

    • @Nerobzi
      @Nerobzi 8 месяцев назад +1

      2:06 how did i type that simbol

    • @unrealIDK
      @unrealIDK 7 месяцев назад +1

      @@Nerobzi its an equal sign, the video got corrupted

    • @noelbot6545
      @noelbot6545 4 месяца назад

      So how do i add a wind up i dont know how to script.

    • @Adrunkduck
      @Adrunkduck 4 месяца назад

      @@noelbot6545 make an animation and put wait(number) before the hitbox creation

  • @strikingsnow787X
    @strikingsnow787X 6 месяцев назад +76

    Im late, but heres one with 3 moves and a slight cooldown before reseting and if you dont finish the combo (stop by punch 1 or 2) then it resets after a second!:
    local plr = game.Players.LocalPlayer
    local UIS = game:GetService("UserInputService")
    local debounce = false
    local animationCount = 0
    local resetTime = 2
    local lastInputTime = 0
    -- Function to play the animation
    local function playAnimation(animation)
    local anim = plr.Character.Humanoid:LoadAnimation(animation)
    anim:Play()
    wait(0.2)
    game.ReplicatedStorage.CombatHit:FireServer(animationCount)
    end
    -- Function to check if the player is holding a tool
    local function isHoldingTool()
    local tool = plr.Character:FindFirstChildOfClass("Tool")
    return tool ~= nil
    end
    UIS.InputBegan:Connect(function(Input, IS)
    if IS then return end
    if Input.UserInputType == Enum.UserInputType.MouseButton1 then
    if debounce or isHoldingTool() then return end
    debounce = true
    lastInputTime = tick()
    if animationCount == 0 then
    playAnimation(script.Animation)
    print("M1 key is pressed - Animation 1")
    animationCount = 1
    elseif animationCount == 1 then
    playAnimation(script.Animation2)
    print("M1 key is pressed - Animation 2")
    animationCount = 2
    elseif animationCount == 2 then
    playAnimation(script.Animation3)
    print("M1 key is pressed - Animation 3")
    animationCount = 0
    wait(1.5) -- Cooldown before the first animation can be triggered again
    end
    if animationCount ~= 0 then
    wait(0.3) -- Time between animations
    end
    debounce = false
    end
    end)
    -- Coroutine to check for reset condition
    coroutine.wrap(function()
    while true do
    if animationCount ~= 0 and tick() - lastInputTime > resetTime then
    animationCount = 0
    print("Combo reset due to inactivity")
    end
    wait(0.1)
    end
    end)()
    please give credit!

    • @KolopiOff777
      @KolopiOff777 5 месяцев назад +1

      AYOOO, THX SO MUCH MAN, i was searching how to change the "E" to "Click", BUT WHEN U HERE, I DONT NEED TO SEARCH IT AGAIN, I WILL PUT U ON CREDIT

    • @ItsDarknessmaster
      @ItsDarknessmaster 5 месяцев назад +1

      thanks bro, it helped very much. i will give credit

    • @strikingsnow787X
      @strikingsnow787X 5 месяцев назад

      @@ItsDarknessmaster No problem dude

    • @sunnieeg8177
      @sunnieeg8177 5 месяцев назад

      how do i put my own animations in?

    • @Tribalism-q9l
      @Tribalism-q9l 5 месяцев назад

      how do i remove the cooldown

  • @Kimoxdo
    @Kimoxdo 11 месяцев назад +14

    Just checked your store and damn, I am probably buying some assets there for my own game! :) great stuff my dude

  • @Dom5S
    @Dom5S Год назад +92

    I'm very passionate about scripting/programming and I just started, hopefully I could reach the same level as you. Cool script

    • @vuukstudios7635
      @vuukstudios7635  Год назад +16

      Thanks brother, supporting you on the journey

    • @chinecheremedeh
      @chinecheremedeh Год назад

      I just started thanks​@@vuukstudios7635

    • @chinecheremedeh
      @chinecheremedeh Год назад

      ​@@vuukstudios7635I subbed

    • @Nerobzi
      @Nerobzi 8 месяцев назад +2

      2:06 how did i type that simbol

    • @johnmichael946
      @johnmichael946 7 месяцев назад

      @@Nerobzi i think that is debounce = false

  • @hollow6893
    @hollow6893 Год назад +270

    My paralysis demon woke me to watch this video

    • @vuukstudios7635
      @vuukstudios7635  Год назад +40

      notification system is rigged 💀💀💀

    • @CanonMeatEater
      @CanonMeatEater 11 месяцев назад +4

      Babe wakeup vuuk dropped a new video!

    • @Itz_TKae241
      @Itz_TKae241 10 месяцев назад +1

      Fr bro

    • @chezyman90
      @chezyman90 10 месяцев назад

      relatable

    • @Shinssei
      @Shinssei 9 месяцев назад +3

      bros demon said “wake up and get your racks up”

  • @i.a.legacy879
    @i.a.legacy879 Год назад +114

    if you want the attack to be something else like instead of "e" you want it to be left mouse button, then just replace it with this
    if Input.UserInputType == Enum.UserInputType.MouseButton1 then

    • @jannatunnayeem3631
      @jannatunnayeem3631 Год назад +1

      Or we can just get the mouse from the player?

    • @Eevee-bb3in
      @Eevee-bb3in Год назад +2

      Thx it is a great help, i wanted it to be m1.

    • @ParaHard
      @ParaHard Год назад +2

      Handsome profile pic

    • @Chrisisawesome-cn6mn
      @Chrisisawesome-cn6mn Год назад +1

      what about mobile?

    • @MeT2NeeD
      @MeT2NeeD Год назад

      @@jannatunnayeem3631 its more simple but that works you do you

  • @Ribrail
    @Ribrail 9 месяцев назад +477

    game.ReplicatedStorage.CombatHit.OnServerEvent:Connect(function(plr)
    print(plr)


    local hitbox = Instance.new("Part")
    hitbox.Parent = workspace
    hitbox.Anchored = true
    hitbox.CanCollide = false
    hitbox.Transparency = 1
    hitbox.Size = Vector3.new(5,5,5)
    hitbox.CFrame = plr.Character.HumanoidRootPart.CFrame *CFrame.new(0,0,-5)
    game.Debris:AddItem(hitbox,2)
    local Hits = {}
    hitbox.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~=plr.Name then
    if not hit.Parent.Humanoid:FindFirstChild(plr.Name) then
    if Hits[hit.Parent.Name] then
    return
    end
    Hits[hit.Parent.Name] = true
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
    wait(4)
    Hits[hit.Parent.Name] = false
    end
    end
    end)
    end)
    pls like after i had to write this down

    • @Therealpika1
      @Therealpika1 9 месяцев назад +1

      got you

    • @Tyrantwastaken
      @Tyrantwastaken 8 месяцев назад +1

      Lifesaver🔥

    • @guzz263
      @guzz263 8 месяцев назад

      man thanks alot my code it wasn't working for some reason i check everything no idea what i do wrong

    • @Ribrail
      @Ribrail 8 месяцев назад

      @@guzz263 no problem

    • @acc3LYT
      @acc3LYT 8 месяцев назад

      @@Ribrail still doesnt work

  • @Mr_Fr34ky
    @Mr_Fr34ky Год назад +13

    FYI for everyone, figured out that if u made the animation in R6, that animation can only work on an R6 Player Avatar. Probably vice versa with R15 but I'm not sure. I used Moon Animator.

    • @Mr_Fr34ky
      @Mr_Fr34ky Год назад

      @@willywelly6480
      Yes, or you could do what other battleground games do and whenever players spawn in, they automatically become R6.

    • @gunstreak1739
      @gunstreak1739 Год назад

      Bro tysm i didnt why my animation wasn't playing now it works ty

    • @mariuscomorasu6026
      @mariuscomorasu6026 Год назад

      yo can you tell me what did he do at 6:17 to make the animation smoother it dosen't appear in the video

    • @yeast00
      @yeast00 11 месяцев назад

      thank you

    • @Nerobzi
      @Nerobzi 8 месяцев назад

      2:06 how did i type that simbol

  • @noyeah493
    @noyeah493 3 месяца назад +4

    Coming back to this after actually learning to script is a whole different experience

    • @Juniorween
      @Juniorween 3 месяца назад +1

      what guide did you use. im tryna learn

    • @YuuchiOverFiction
      @YuuchiOverFiction 2 месяца назад

      @@JuniorweenTo learn how to code the best channel is BrawlDev, he explains how to script in great detail and goes over a lot of concepts. You can also watch The Dev King but some of his videos are outdated. Also a tip, when watching them take notes of each topic and make sure you understand how it work. Also if you don’t understand something use Ai like Claude or Chat GPT to help you understand.

  • @NoMoveItMoveItPanda
    @NoMoveItMoveItPanda 11 месяцев назад +15

    To everyone wondering how to change the animation from Rotate to Move :
    Press R On your keyboard, it will change the axis or something idk the name

    • @rimspee
      @rimspee 10 месяцев назад +1

      I saw it changing and thought "ain't no way how he do that"

    • @NoMoveItMoveItPanda
      @NoMoveItMoveItPanda 10 месяцев назад +2

      @@rimspee at first, same, till i saw someone comment it, and i wanna spread the message

  • @KineticCascade
    @KineticCascade 11 месяцев назад +37

    one of the most helpful tutorials ive watched yet ngl

  • @wufboo9547
    @wufboo9547 Год назад +55

    your such an amazing developer! i wish to see more eye appealing tutorials and paid assets in the future!

  • @Dunamis-h1h
    @Dunamis-h1h 7 месяцев назад +5

    Im thinking of buying your course. Ive been looking for classes to learn how to animate, script, etc. glad I found you

  • @Adrunkduck
    @Adrunkduck Год назад +36

    the 9th line of combat skill can be replaced with
    if Input.UserInputType == Enum.UserInputType.MouseButton1 then
    to make it activate on left click

    • @isymbol
      @isymbol Год назад +1

      ty man

    • @fluffzidk
      @fluffzidk 11 месяцев назад

      fr
      @@isymbol

    • @Fresh_TheOne
      @Fresh_TheOne 9 месяцев назад

      *MouseButton1Down or MouseButton1Up

    • @amitarajne1906
      @amitarajne1906 9 месяцев назад

      i was finding this only

    • @namnasuu
      @namnasuu 8 месяцев назад

      @@Fresh_TheOne just MouseButton1 is enough

  • @KFC_Crusader25
    @KFC_Crusader25 Год назад +13

    tysm i had to make a game for a project and you made it 10x easier to understand all of theese codes, everyone makes it super complicated and you explain it using your own voice wich helped me a lot since others use robot voices making it harder to understand.

    • @joshuakimanyi6202
      @joshuakimanyi6202 Год назад

      same good luck

    • @cirkit-one
      @cirkit-one 10 месяцев назад

      how do you understand this, I need help 😭

    • @Sakupenny
      @Sakupenny 8 месяцев назад

      ​​@@cirkit-oneI think you might have a learning disability bro

    • @tipeanimates837
      @tipeanimates837 8 месяцев назад +1

      ​@@cirkit-onethis isn't for beginners
      Maybe you should do simple things before moving to complicated stuff like this

    • @cirkit-one
      @cirkit-one 8 месяцев назад

      @@tipeanimates837 alright .

  • @boosted8592
    @boosted8592 Год назад +21

    the tutorial is good, but you could probably color up your steps a little more without saying "then do this, then this, then like this" but overall its very informative.

    • @vuukstudios7635
      @vuukstudios7635  Год назад +4

      👍

    • @Trayer-X
      @Trayer-X 8 месяцев назад +1

      @@vuukstudios7635 yo why cant i do dmg to the rig i copied 1-1 everything and still i couldnt dmg him

    • @Ferotago
      @Ferotago 8 месяцев назад

      @@Trayer-X ye me to

    • @unrealIDK
      @unrealIDK 7 месяцев назад

      @@vuukstudios7635 its not working for me when i press e can you please help

  • @flqnt
    @flqnt 11 месяцев назад +11

    Underrated RUclipsr!! You can explain well and make others understand the concept easily, keep going dude! 🔥🔥

    • @vuukstudios7635
      @vuukstudios7635  11 месяцев назад

      Thank you for the kind words!

    • @SINKTHEREAL
      @SINKTHEREAL 11 месяцев назад

      ​@@vuukstudios7635how do you open the output thing?

    • @pokeShorts-b2c
      @pokeShorts-b2c 6 месяцев назад

      Yea!

  • @rodrininja_31
    @rodrininja_31 4 месяца назад

    For those wondering in the part he says to copy the id you can do it by importing your animation into Roblox on the 3 "..." And then once it uploads you can either copy the id in the screen that shows you "you successfully uploaded to Roblox" or go to the toolbox and go into your animation and copy the id

  • @vipex.v
    @vipex.v Год назад +6

    Tip: instead of doing `if value == true then` just do `if value then`.

  • @onijoetavious
    @onijoetavious 11 месяцев назад +22

    this was my first time coding ever and this tutorial made it so much easier thanks man

  • @rbrzera
    @rbrzera 9 месяцев назад +6

    i have a big project but im Brazilian and dont have many videos in Portuguese about roblox studios, i use captions and ur channel help me so much! thx

    • @BFR_FATALITY
      @BFR_FATALITY 8 месяцев назад

      i think i know u ur thug right?

    • @Enig_yt
      @Enig_yt 7 месяцев назад

      eu também mano

    • @BFR_FATALITY
      @BFR_FATALITY 7 месяцев назад

      @@Enig_yt huh?

  • @Fuggidd
    @Fuggidd Месяц назад

    this is actually so useful, I thank you so much

  • @joshuareed2005
    @joshuareed2005 6 месяцев назад +1

    Thanks for this bro, Now I can start creating this game!!

  • @senseiatlas8967
    @senseiatlas8967 Год назад +4

    Love your videos man you help me so much with my game thank you

    • @vuukstudios7635
      @vuukstudios7635  Год назад +1

      Thank you brother that motivates me 🥳

    • @Nerobzi
      @Nerobzi 8 месяцев назад

      2:06 how did i type that simbol

  • @sgg123gaming6
    @sgg123gaming6 11 месяцев назад +4

    How to add 2 audio effect? 1 when hitting a hitbox and 1 for hitting nothing (air)

  • @CaIIMeVen
    @CaIIMeVen Год назад +11

    At this point i dont even know what i wanna be, a couple days ago i was just watching how to make manga tutorials now im watching how to script and code stuff

    • @ilovecats2767
      @ilovecats2767 Год назад +2

      i feel the same way i suddenly am on a sugar fueled coding rampage then im grinding box fruits then im beating my skull into a wall because damage no damage then im drawing stuff and now im looking into the stock marke- ooh now i am a conputer technicia- wait those books look nice

    • @CaIIMeVen
      @CaIIMeVen Год назад

      ​@@ilovecats2767fr

    • @sipiersx5948
      @sipiersx5948 Год назад

      thats adhd my guy, try knowing more about adhd.....
      😈

    • @elbeesmacros
      @elbeesmacros 11 месяцев назад +3

      @@sipiersx5948 as someone who has adhd that's not what it is at all, he just has a low attention span.

    • @EditEditr
      @EditEditr 8 месяцев назад

      BRO I DID THE EXACT SAME STUFF!!!! fisrt manga tutorial then scripting punching games

  • @GalaxyGamer-v9c
    @GalaxyGamer-v9c Месяц назад

    thank you soo much i couldn't create any combat system thanks to you , you have made my game easy

  • @JOSIAHXInfinite
    @JOSIAHXInfinite 10 месяцев назад +18

    the scrip for ServerScrip I had a problem with my hitting but now it works...
    game.ReplicatedStorage.CombatHit.OnServerEvent:Connect(function(plr)
    print(plr)
    local hitbox = Instance.new("Part")
    hitbox.Parent = workspace
    hitbox.Anchored = true
    hitbox.CanCollide = false
    hitbox.Transparency = 0.4
    hitbox.Size = Vector3.new(5,5,5)
    hitbox.CFrame = plr.Character.HumanoidRootPart.CFrame *CFrame.new(0,0,-5)
    game.Debris:AddItem(hitbox,2)
    local Hits = {}
    hitbox.Touched:Connect(function(hit)
    if hit.Parent :FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
    if not hit.Parent .Humanoid:FindFirstChild(plr.Name) then
    if Hits[hit.Parent.Name] then
    return
    end
    Hits[hit.Parent .name] = true
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(20)
    wait (4)
    Hits[hit.Parent.Name] = false
    end
    end
    end)
    end)
    no problem

    • @JOSIAHXInfinite
      @JOSIAHXInfinite 10 месяцев назад +1

    • @Waltz-f9s
      @Waltz-f9s 9 месяцев назад +1

      thanks pookie!!

    • @TheMoyaiEmperor
      @TheMoyaiEmperor 7 месяцев назад +1

      UR THE GOAT BRO

    • @Andreis.shenanigori
      @Andreis.shenanigori 5 месяцев назад +2

      The hero I needed you literally ARE the star man

    • @noelbot6545
      @noelbot6545 5 месяцев назад

      i did it but it just won't stop like i press 1 time and then it does the m1 multiple time can you find the way

  • @whatehjester8320
    @whatehjester8320 7 месяцев назад +2

    This helped me make combos! Nice video.

  • @SushiGaming_YT
    @SushiGaming_YT Год назад +12

    So to make a combat system like the strongest battle grounds i need to continue the combo until 4 and using knockback effects for the first 3 combo then the ragdoll effect for the 4th, but for the 4th combo system I would need to somehow make the hot key to go in order like for example "space then e" but how am I able to make the 4th combo different based off which hot key you choose, for example one 4th combo does a uppercut while the other 4th combo does a down slam? Also how to I make the hotkey click instead of "e" do I just substitute "e" for "click" in the script? Sorry if it's a long read I have no prior knowledge of scripting and I'm extremely curious. Please make a part 2
    Tldr: how do I make the 4th combo do different set of combo based on the hot key I chose? How do I make the hot key so you click instead? Please make a part 2

    • @tazurajulianseditor7389
      @tazurajulianseditor7389 Год назад

      for the E part, to make it m1s instead of e to punch, just uh replace e with MouseButton1, when its mousebutton1 then it translates it for mobile too, so for mobile just click the screen.

    • @SushiGaming_YT
      @SushiGaming_YT Год назад

      @@tazurajulianseditor7389 thanks bro

    • @RoundStep
      @RoundStep Год назад

      ​@@tazurajulianseditor7389thxxx

    • @fluffzidk
      @fluffzidk 11 месяцев назад

      doesn't work.@@tazurajulianseditor7389

  • @Quirkiestguy1446
    @Quirkiestguy1446 7 месяцев назад +157

    your store is damn expensive
    Edit: nah who the hell liking my comment tell me
    EDIT2:OMG IM FAMOUS THX GUYS

  • @darrenjensen7274
    @darrenjensen7274 10 месяцев назад +12

    bro was going th speed of light ngl

  • @CreatorProductionsOriginal
    @CreatorProductionsOriginal 7 месяцев назад +1

    I have been having some issues with the hitbox position not really being consistent, like, there’s time it will spawn inside the player, or if the player presses E and turns away quickly the hitbox will be behind the player
    Edit: Fixed! It was just the small delay between the animation playing and fireing the server, really shows how even small time amounts can make a huge difference!

    • @jeleppe6164
      @jeleppe6164 7 месяцев назад

      how did you fix the delay? I have a problem where if your walking and punch the hitbox is always behind

    • @CreatorProductionsOriginal
      @CreatorProductionsOriginal 7 месяцев назад

      @@jeleppe6164 oh, I did it by adding that delay he mentions, between the animation and fireing the Remoteevent

  • @kgame3825
    @kgame3825 Год назад +8

    Hello, a question: How do you switch between rotating and moving modes while creating an animation??

  • @accountname6603
    @accountname6603 8 месяцев назад +4

    > Follows tutorial
    > "Oh right time to add the ragdoll"
    > Goes to link to get the asset
    > 20$/month requirement to join the discord

    • @wendadecat
      @wendadecat 4 месяца назад

      lmfaorn

    • @symonnet5990
      @symonnet5990 3 месяца назад

      fr bro im looking for the module script

  • @baconnbs
    @baconnbs 11 месяцев назад +4

    how do you press on the EKD?????

  • @Azure_28dhsg8
    @Azure_28dhsg8 10 месяцев назад

    Man i was so excited to join the discord for the Academy until i found out it cost money but i still respect that since he gotta make money some how

    • @vuukstudios7635
      @vuukstudios7635  10 месяцев назад

      The discord for the assets is free

    • @kubix426
      @kubix426 8 месяцев назад

      @@vuukstudios7635 But the discord link itself isnt in description is it? Maybe im blind

  • @letsgoremroy1146
    @letsgoremroy1146 Месяц назад

    Tip when you animate make sure before you publish you don’t have it on repeat (unless you want it to)

  • @meli_phiaa
    @meli_phiaa 6 месяцев назад +7

    my animation wont play when i press E key but i did exactly as u said...

    • @daiu3d596
      @daiu3d596 6 месяцев назад

      Exactly gotta find a newer version or smth

    • @Luxu29
      @Luxu29 5 месяцев назад

      same

    • @Trees6790
      @Trees6790 5 месяцев назад

      Did you make the game r6 or r15 only?

    • @Sam-tn7cw
      @Sam-tn7cw 5 месяцев назад +1

      @@daiu3d596 nah it does work trust u prob missed typed something

    • @VoidDevelopsLife
      @VoidDevelopsLife 5 месяцев назад +1

      U did it wrong

  • @bentostring428
    @bentostring428 5 месяцев назад +150

    Bro types too fast

    • @Sh4_dw
      @Sh4_dw 5 месяцев назад +6

      Cuz he professional

    • @Who_idk_idc
      @Who_idk_idc 5 месяцев назад +7

      I KNOW RIGHT!!

    • @tusk9134
      @tusk9134 5 месяцев назад +2

      Assuming you have a basic understanding of lua

    • @Big-r9v
      @Big-r9v 5 месяцев назад +4

      I think it's because that he never touches grass and he's always on his computer typing

    • @UnKnownRblxOfficial
      @UnKnownRblxOfficial 5 месяцев назад +5

      Bro types to slow (you)

  • @TokumeiOficial
    @TokumeiOficial Год назад +7

    Is it normal that when i press "E" only one time it does the two M1's?
    I wanted to like, click one time, then click again to do first animation and then second

    • @amshadow
      @amshadow Год назад

      same problem

    • @robloxgaming1391
      @robloxgaming1391 11 месяцев назад

      try this script
      local plr = game.Players.LocalPlayer
      local UIS = game:GetService("UserInputService")
      local count = 0
      local debounce = false
      UIS.InputBegan:Connect(function(Input, IS)
      if IS == true then return end
      if debounce == true then return end
      if Input.UserInputType == Enum.UserInputType.MouseButton1 then
      if count == 0 then
      count = count + 1
      local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
      animation:Play()
      game.ReplicatedStorage.CombatHit:FireServer()
      wait(0.2)
      print("MouseButton1 is Pressed")
      wait(0.6)
      debounce = false
      elseif count == 1 then
      count = 0
      debounce = true
      game.ReplicatedStorage.CombatHit:FireServer()
      local animation = plr.Character.Humanoid:LoadAnimation(script.Animation2)
      animation:Play()
      wait(0.2)
      print("MouseButton1 is Pressed")
      wait(0.2)
      debounce = false
      end
      end
      end)

    • @robloxgaming1391
      @robloxgaming1391 11 месяцев назад

      it worked for me

    • @zachPlushgaming
      @zachPlushgaming 9 месяцев назад

      You know an m1 means left mouse click right?

    • @king.playz-1
      @king.playz-1 7 месяцев назад

      I found out the problem after line 22 of combat skill. Press enter and type "wait(0.5)" then press enter and put this "debounce = false" idk how to make it you click once. It does one animation. Click again it does the other animation.

  • @DA-hd7vt
    @DA-hd7vt 4 месяца назад

    bro tysm this vid helped so much
    Keep up the good work!!!

  • @JamesY2K
    @JamesY2K 3 месяца назад +1

    loki, this vid the reason i subbed to you

  • @Gematrio_1
    @Gematrio_1 Год назад +4

    How do you make a script where you can equip and unequip a sword? And how do you add it to the animation?

    • @joelrobin9485
      @joelrobin9485 4 месяца назад

      To equip a sword put it in the starter pack

    • @joelrobin9485
      @joelrobin9485 4 месяца назад

      I don't know how to animate

    • @symonnet5990
      @symonnet5990 3 месяца назад

      @@joelrobin9485 I do! literally just do what he did in this video! make sure to put the script in the sword though!

  • @rolpol8536
    @rolpol8536 11 месяцев назад +7

    what is missing here:
    local plr = game.Players.LocalPlayer
    local UIS = game:GetService("UserInputService")
    local debounce = false
    UIS.InputBegan:Connect(function(Input, IS)
    if IS == true then return end
    if Input.KeyCode == Enum.KeyCode.E then
    if debounce == true then return end
    debounce = true
    game.ReplicatedStorage.CombatHit:FireServer()
    local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
    animation:Play()
    print ("E key is pressed")
    wait(3)
    debounce = false
    end
    end)

    • @Mabbdaa
      @Mabbdaa 11 месяцев назад

      There is nothing wrong and nothing is missing. Are there any errors in the output?

    • @SoulerI
      @SoulerI 10 месяцев назад

      r6 game setting

    • @The_sqt
      @The_sqt 8 месяцев назад

      Can u do a left click mouse one

  • @ArabicScience-
    @ArabicScience- Год назад +7

    The animation didn t play for me

    • @parishilpi
      @parishilpi Год назад

      same

    • @fluffypeat2191
      @fluffypeat2191 10 месяцев назад

      Sometime it doesn't work try publishing the game and playing it like someone and see if it works that's how I got it to work

    • @sujatasunagar8596
      @sujatasunagar8596 9 месяцев назад

      ​@BraydenPlayz03where do you get the r6 avatar?

    • @FlintZ7
      @FlintZ7 9 месяцев назад

      ​@@fluffypeat2191you don't need to do that maybe you typed. Instead of : or misspelled animation

    • @Khyroi
      @Khyroi 8 месяцев назад

      @BraydenDoes_Stuffit said my animation failed to load

  • @JamesY2K
    @JamesY2K 3 месяца назад

    this video helped me make anims for my game so thank u ur the best

  • @eleacial
    @eleacial 10 месяцев назад +2

    if this helps anyone a common mistake i kept making is misspelling humanoid! so make sure to always check spelling 💕

  • @ArtsBacon
    @ArtsBacon 6 месяцев назад +7

    I... I.. my brain hurts.

  • @E1k0n
    @E1k0n 11 месяцев назад +2

    Anyone struggling at 8:18 on line 11 try replacing CFrame.new with Vector3.new
    The rewritten line is something like this
    hitbox.CFrame = plyr.Character.HumanoidRootPart.CFrame +Vector3.new(0,0,-5)

  • @scottherring-q9j
    @scottherring-q9j 7 месяцев назад +4

    Help! I am at 6:00, and it is working but the animation is like, its sloppy, the animation I made is amazing, but whenever I click e my character just goes "eh" and barely throws the punch and I don't know why!

    • @scottherring-q9j
      @scottherring-q9j 7 месяцев назад +2

      Wait I fixed it, if someone has this error, make sure your animation is set to Action, then it works!

    • @C0ldSpace
      @C0ldSpace 6 месяцев назад

      You are actually a lifesaver tysm

    • @Mintelm184
      @Mintelm184 3 месяца назад

      @@scottherring-q9j spent 2 hours tryna fix and your comment saved me

  • @MysticalEd
    @MysticalEd 2 месяца назад +5

    17:57 WTH 💀

  • @Dudefrom2010
    @Dudefrom2010 Месяц назад

    OH MY GOD THANK YOU SO MUCH THIS ACTUALLY WORKED I LOVE YOUR TUTORIALS IM SUBSCRIBING TO YOU IVE SEARCHED FOR MANY M1 TUTORIALS THEY ALL DIDNT WORK BUT YOURS DID SO THANK YOU!!! (This isn’t a glaze, so shut up)

  • @obleached
    @obleached 11 месяцев назад +2

    this video made me realize that I will not be able to make the game I wanted to

  • @catherinesnow781
    @catherinesnow781 10 месяцев назад +40

    Why didn't the code for the animation work

    • @pumpkin1997
      @pumpkin1997 8 месяцев назад +4

      Does not work for me either

    • @pumpkin1997
      @pumpkin1997 8 месяцев назад +7

      @SkepticSage_ posted a comment a bit below and it fixed it, but for summary in game settings you have to make the characters R6

    • @Myl3sPMC
      @Myl3sPMC 8 месяцев назад +3

      My games in r6 and it still didn’t work

    • @itssam2975
      @itssam2975 8 месяцев назад

      ​@@pumpkin1997 where the part to make ur game r6

    • @mahirahmed4992
      @mahirahmed4992 8 месяцев назад +4

      Maybe actually understand the code instead of copy and pasting

  • @VinnyLook
    @VinnyLook 9 месяцев назад +4

    its not working so far i think im cooked

  • @MusicMaster320
    @MusicMaster320 11 месяцев назад +8

    why cant you just paste everything you wrote in the description?

    • @SayouPla
      @SayouPla 9 месяцев назад +6

      @MusicMaster320 cus you will not learn anything and copy paste it

    • @Leo44256
      @Leo44256 9 месяцев назад +1

      ⁠@@SayouPlaI don’t think you ever will by just watching a video

    • @MusicMaster320
      @MusicMaster320 9 месяцев назад +1

      @@SayouPla This isn't school, buddy

    • @GGG65.
      @GGG65. 9 месяцев назад +1

      lazy ahh why dont you just watch the video try learning the script not just copy and pasting

    • @p0tat0o0
      @p0tat0o0 9 месяцев назад +1

      ​@@Leo44256you will though depending on the video if he just shows the code ofc not but if he actually explains what everything does you can learn from it.

  • @fastshine-404
    @fastshine-404 2 месяца назад

    cool that there are people that are coding and does that sorts of things, i wish i could be that person...

  • @RelaxingSounds-j8n
    @RelaxingSounds-j8n 6 месяцев назад

    On my opinion This is probably the second best script video😊

  • @OldSport_VR
    @OldSport_VR 9 месяцев назад +4

    it didn't work for me🙁

    • @jaelee1934
      @jaelee1934 9 месяцев назад +1

      Did do everything right ?

    • @colcolnutt
      @colcolnutt 9 месяцев назад

      You need to be r6

    • @R1v3r_is_H1m
      @R1v3r_is_H1m 2 месяца назад

      @@colcolnutt u can be r15 as long as your animation is r15

  • @aimeedavis-donne4980
    @aimeedavis-donne4980 4 месяца назад +1

    This helped me so much to follow my dream of making a fighting game it will be hard but will be great hopefully in the end! Because of you, you have made my day by watching this and because of that I subbed and joined the discord. I hope I will manage to do this because it is very hard and very big. I think you will help other people as well with this and other videos. Thanks a lot!

  • @slimematteo
    @slimematteo 7 месяцев назад

    w video, needed to know how hitboxes work so that i could make my own combat game, very cool.

  • @golem5605
    @golem5605 9 месяцев назад

    THANK YOU SO MUCH BRO I LOVE YOU YOU MADE MY WHOLE LIFE

  • @Phuc95angThanh
    @Phuc95angThanh 4 месяца назад

    your video is very useful, THANK YOU SO MUCH BRO

  • @Deck-Ta-Gon
    @Deck-Ta-Gon 11 месяцев назад

    For new people who found this your animation has to be publish to your group if the game your making is made with your group

    • @TheVrother17
      @TheVrother17 11 месяцев назад

      Thank you so much! i didn't know this and was wondering what was happening

  • @Qbbyist
    @Qbbyist 8 дней назад +1

    how to make a punch!:
    I wont teach you how just copy exactly what I did!

  • @Zamasublack123
    @Zamasublack123 10 месяцев назад

    Thank you so much after learning scripting this video helped me understand more abt everything like bro thank you

  • @bunnycuddles
    @bunnycuddles 7 месяцев назад

    can you make a video showing how to make gui that shows the buttons to press for each attack, with a cool down counter. and maybe show us how to apply this code so you can use a controller to attack as well.

  • @AdrienBoles-qy3kr
    @AdrienBoles-qy3kr 12 дней назад

    9:11
    here
    if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then
    if not hit.Parent.Humanoid:FindFirstChild(plr.Name) then
    return
    end
    Hits[hit.Parent.Name] = true
    wait(4)
    Hits[hit.Parent.Name] = false
    end
    end)

    end)

  • @gedagediprodesignmax
    @gedagediprodesignmax 10 месяцев назад

    omg thank you dude now am making a game using this tutorial i'll credit u!!!

  • @sychyanchea3433
    @sychyanchea3433 9 месяцев назад

    tysm man i can finally create my own game :)

  • @rodrininja_31
    @rodrininja_31 4 месяца назад

    This man deserves way more followers he saved our lifes 🔥🤝🙏

  • @Yukki_ID
    @Yukki_ID 10 месяцев назад +2

    When I'm working on the animation, I can't press the bada on the character, how come???

  • @UnCostarricenseMasXD
    @UnCostarricenseMasXD 10 месяцев назад +2

    BRO IM NEW TO SCRIPTING PLS SHOW ME HOW TO PUBLISH AND COPY ID BC I CANT, IT DOESNT EVEN SHOW ANYTHING WHEN I CLICK PUBLISH TO ROBLOX, PLS HELP

    • @xiancamua4952
      @xiancamua4952 10 месяцев назад

      click file in the top left

  • @MistedAiden
    @MistedAiden 8 месяцев назад +1

    Sometimes there's errors in the COmbatServer script, if so replace it with this:
    game.ReplicatedStorage.CombatHit.OnServerEvent:Connect(function(plr)
    print(plr)
    local hitbox = Instance.new("Part")
    hitbox.Parent = workspace
    hitbox.Anchored = true
    hitbox.CanCollide = false
    hitbox.Transparency = 0
    hitbox.Size = Vector3.new(10, 10, 10)
    hitbox.CFrame = plr.Character.HumanoidRootPart.CFrame *CFrame.new(0, 0, -5)
    game.Debris:AddItem(hitbox,2)
    end)

  • @earthvirgo381
    @earthvirgo381 10 месяцев назад

    yo W vid, i would like to see basketball tutorial. i always wanted to create basketball game like basketball legends. I will be glad if you will do a tutorial on doing how to make this game.

  • @AxoDoesAlotlLOL
    @AxoDoesAlotlLOL 18 дней назад +2

    it is playing animation when i press any key instead of just e, does anyone know what the error is? or have any suggestions?

    • @iyed_DZ
      @iyed_DZ 18 дней назад

      did u make sure to put the animation play code line after "input = e ect ect"

    • @AxoDoesAlotlLOL
      @AxoDoesAlotlLOL 18 дней назад

      @@iyed_DZ no i didnt do that but i eventually did figure it out, ty tho

  • @TotallyAlex123
    @TotallyAlex123 10 месяцев назад

    this is amazing, but could you also make a tutorial for blocking? like blocking the attacks

  • @Not_VAxyz
    @Not_VAxyz 10 месяцев назад +2

    everything is perfect but i can't rotate the torso of r6 rig

  • @DioZa-Hando
    @DioZa-Hando 2 месяца назад

    the box does damage and dissapears but the animations will not play, and yes it is set to R6

  • @DefaultDynasty
    @DefaultDynasty 9 месяцев назад +1

    My laptop got off thank god I save it and my hearth was beating fast 😂

  • @AdmDi
    @AdmDi 28 дней назад

    Yo, if I am too late then okay but if I am not then can you explain 2 things. 1. Can I make the m1s (multiple m1 moves) the exact same but 3 scripts out of 4 are disabled and when you press the key then you punch and then it enables the second script and disables itself and the last (fourth) script there is a debounce that makes it have longer cooldown that others (m1 cooldown) with the help of debounce, once debounce is over it enables first script and disables itself. 2. Why sometimes when I Enable scripts with another script (using Local Script) it works fine and works but when I enable the script it doesn't work until some action happens like for example another script activating. I call that "Script forgot to wake up" cause there cannot be errors cause as I said it starts working after action happens.

  • @spawnpointrblx
    @spawnpointrblx 29 дней назад +1

    How can you make it so instead of it taking damage to you, it makes you ragdoll? (im making a slap battles type of game)

  • @r1tz536
    @r1tz536 10 месяцев назад +2

    My animation wont appear when i press E and i have all the coding right, what could be my problem?

  • @Rune..
    @Rune.. 2 месяца назад +1

    Yo can someone help me, I set my game setting and rig to the same r6 I have the correct animation id and code and it doesn’t play, it prints out the things in the output but doesn’t play the animation

  • @somebody4864
    @somebody4864 3 месяца назад +1

    make a local script into starter pack name it whatever u want and now make a folder in it call it Animations and capitalise the A or else it'll not work and then make three punch anims name them M1 M2 and M3 capitalize M as well or it will not work and paste the id in them and in replicated storage add a remote event name it MainEvent make sure its capitalized like i did or else it'll not work again so delete the "print("Hello World!")" and paste this in
    local UIS = game:GetService("UserInputService")
    local plr = game.Players.LocalPlayer
    local character = plr.Character or plr.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
    local M1 = humanoid:LoadAnimation(script.Animations.M1)
    local M2 = humanoid:LoadAnimation(script.Animations.M2)
    local M3 = humanoid:LoadAnimation(script.Animations.M3)
    local combo = 1
    local cooldown = false
    local lastcooldown = false
    UIS.InputEnded:Connect(function(I,E)
    if E then return end
    if I.UserInputType == Enum.UserInputType.MouseButton1 then
    if cooldown == true then return end
    if lastcooldown == true then return end
    spawn(function()
    cooldown = true
    task.wait(.63)
    cooldown = false
    end)
    if combo == 3 then
    game.ReplicatedStorage.MainEvent:FireServer()
    M3:Play()
    spawn(function()
    lastcooldown = true
    task.wait(2.3)
    lastcooldown = false
    end)
    spawn(function()
    task.wait(.1)
    combo = 1
    end)
    elseif combo == 2 then
    game.ReplicatedStorage.MainEvent:FireServer()
    M2:Play()
    combo = combo + 1
    elseif combo == 1 then
    game.ReplicatedStorage.MainEvent:FireServer()
    M1:Play()
    combo = combo + 1
    end

    end
    end)
    and then it should work peeeeeeeeeeeerfectly alright!

  • @thekirbysquad253
    @thekirbysquad253 10 месяцев назад

    LOL THANKS FOR THE BEST CODING VID EVER

  • @Zlovk6310
    @Zlovk6310 7 месяцев назад

    this is awesome
    thx for the help

  • @TechTannock
    @TechTannock 6 месяцев назад

    wow very nice video!

  • @OmarJamal-g9x
    @OmarJamal-g9x 8 часов назад

    16:49 confused me because i did the exact same thing and the “if count == 0 then” on the 10th line, the count is underlined red for some reason

  • @BAKYBOYMAHN-fe6lg
    @BAKYBOYMAHN-fe6lg 7 месяцев назад

    This is really usefulll ❤❤❤❤

  • @WolfPaqYT07
    @WolfPaqYT07 10 месяцев назад

    Oh men, thanks +1 sub

  • @Dunno-d8o
    @Dunno-d8o Месяц назад

    W vid this helped me so much

  • @ArmanPanesar
    @ArmanPanesar 9 месяцев назад +1

    How do you publish it to eoblox and get ID?