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

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • JOIN OUR ACADEMY HERE: 🌟⬇️
    www.whop.com/v...
    OUR STORE (60% OFF): 📦
    www.vuukstudio...
    This free combat system package is designed for novice and entry-level game developers embarking on their journey in Roblox. It aims to enhance their proficiency in scripting combat mechanics through a straightforward and effective tutorial video on Creating Combat Systems for Roblox Studio.
    RESELLING THIS IS NOT ALLOWED! You can use it in your own games.
    DM US ON DISCORD FOR COMMISSIONS ⬇️⬇️ [DO NOT DM FOR A LINK, IT IS IN THE DESCRIPTION]
    - Our Discord For Commissions:
    Vuuk#5099 [ADD ME AND DM ME FOR A REQUEST]
    - Our Virtual Store:
    www.vuukstudio...
    - Our Twitter:
    / vuukstudios
    - Doing Roblox Studio Commissions for PayPal / Stripe USD and Robux on Discord
    #Roblox #RobloxStudio
    Roblox is an online platform and storefront where users go to play games. Roblox is not a game, it is a place where people play games made by other developers.
    ---
    combat system,roblox combat system,combat,roblox,roblox combat,roblox sword combat,creating a combat system,combat system roblox,creating a combat system in unity,how to make a combat system | howtoroblox,combat system roblox studio,how to make a combat system in roblox,roblox combat tutorial,unity combat system tutorial,advanced locomotion system,roblox scripting tutorial advanced,combat system engineer,rafael advanced defense system

КОМЕНТАРІ • 2,1 тис.

  • @vuukstudios7635
    @vuukstudios7635  9 місяців тому +79

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

    • @MKing912
      @MKing912 9 місяців тому +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 8 місяців тому +6

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

    • @draigyodo5121
      @draigyodo5121 8 місяців тому

      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

    • @JustAnotherRobloxDev
      @JustAnotherRobloxDev 8 місяців тому

      ​@@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 8 місяців тому +5

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

  • @kirayagami4025
    @kirayagami4025 4 місяці тому +1374

    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

  • @liyflergamer1543
    @liyflergamer1543 5 місяців тому +662

    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 5 місяців тому +2

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

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

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

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

      @@Ryan1491 did you insert animation id?

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

      thank you idk how to do the quotation marks

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

      bro thanks

  • @supafriedd
    @supafriedd 6 місяців тому +156

    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 6 місяців тому +9

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

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

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

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

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

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

      Thanks bro! i appreaciate it

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

      You’re the goat I love you

  • @Adrunkduck
    @Adrunkduck 7 місяців тому +25

    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 7 місяців тому +1

      ty man

    • @user-yr2hm4ox7y
      @user-yr2hm4ox7y 6 місяців тому

      fr
      @@isymbol

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

      *MouseButton1Down or MouseButton1Up

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

      i was finding this only

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

      @@Fresh_TheOne just MouseButton1 is enough

  • @Dom5S
    @Dom5S 9 місяців тому +82

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

    • @vuukstudios7635
      @vuukstudios7635  9 місяців тому +14

      Thanks brother, supporting you on the journey

    • @chinecheremedeh
      @chinecheremedeh 8 місяців тому

      I just started thanks​@@vuukstudios7635

    • @chinecheremedeh
      @chinecheremedeh 8 місяців тому

      ​@@vuukstudios7635I subbed

    • @Nerobzi
      @Nerobzi 3 місяці тому +1

      2:06 how did i type that simbol

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

      @@Nerobzi i think that is debounce = false

  • @Ribrail
    @Ribrail 4 місяці тому +335

    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 4 місяці тому +1

      got you

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

      Lifesaver🔥

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

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

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

      @@guzz263 no problem

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

      @@Ribrail still doesnt work

  • @Adrunkduck
    @Adrunkduck 7 місяців тому +67

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

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

      thank you

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

      2:06 how did i type that simbol

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

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

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

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

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

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

  • @Mr_Fr34ky
    @Mr_Fr34ky 7 місяців тому +11

    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 7 місяців тому

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

    • @gunstreak1739
      @gunstreak1739 7 місяців тому

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

    • @mariuscomorasu6026
      @mariuscomorasu6026 7 місяців тому

      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 6 місяців тому

      thank you

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

      2:06 how did i type that simbol

  • @hollow6893
    @hollow6893 9 місяців тому +234

    My paralysis demon woke me to watch this video

    • @vuukstudios7635
      @vuukstudios7635  9 місяців тому +36

      notification system is rigged 💀💀💀

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

      Babe wakeup vuuk dropped a new video!

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

      Fr bro

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

      relatable

    • @Shinssei
      @Shinssei 4 місяці тому +3

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

  • @strikingsnow787X
    @strikingsnow787X Місяць тому +32

    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!

    • @Kolopi979
      @Kolopi979 Місяць тому +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 Місяць тому +1

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

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

      @@ItsDarknessmaster No problem dude

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

      how do i put my own animations in?

    • @user-us4ip2kd4f
      @user-us4ip2kd4f 17 днів тому

      how do i remove the cooldown

  • @boosted8592
    @boosted8592 9 місяців тому +20

    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  9 місяців тому +4

      👍

    • @Trayer-X
      @Trayer-X 3 місяці тому +1

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

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

      @@Trayer-X ye me to

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

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

  • @i.a.legacy879
    @i.a.legacy879 9 місяців тому +103

    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 9 місяців тому +1

      Or we can just get the mouse from the player?

    • @Eevee-bb3in
      @Eevee-bb3in 8 місяців тому +2

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

    • @ParaHard
      @ParaHard 8 місяців тому +2

      Handsome profile pic

    • @Chrisisawesome-cn6mn
      @Chrisisawesome-cn6mn 8 місяців тому +1

      what about mobile?

    • @MeT2NeeD
      @MeT2NeeD 8 місяців тому

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

  • @NoMoveItMoveItPanda
    @NoMoveItMoveItPanda 7 місяців тому +13

    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 6 місяців тому

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

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

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

  • @Klaris530
    @Klaris530 7 місяців тому +16

    for the poeple that are complaining about the animation beeing on loop. then just type
    local animation = plr.Character.Humanoid:LoadAnimation(script.Animation)
    animation.Looped = false
    animation:Play()
    so your animation isint looping whenever you click "E key"

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

      ty

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

      @@erasmobelt np

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

      @@Klaris530 it still looped for me why?

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

      @@NewbieShineYT you probably pasted it in the wrong place

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

      Under the "local animation =plr.character.humanoid:LoadAnim action(script.animation)
      Type "animation.looped = false"
      And then "animation:Play()"

  • @alitarkakmanoglu7695
    @alitarkakmanoglu7695 8 місяців тому +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 8 місяців тому

      same good luck

    • @cirkit-one
      @cirkit-one 5 місяців тому

      how do you understand this, I need help 😭

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

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

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

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

    • @cirkit-one
      @cirkit-one 3 місяці тому

      @@tipeanimates837 alright .

  • @KineticCascade
    @KineticCascade 7 місяців тому +35

    one of the most helpful tutorials ive watched yet ngl

  • @Kimoxdo
    @Kimoxdo 6 місяців тому +12

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

  • @JOSIAHXInfinite
    @JOSIAHXInfinite 5 місяців тому +11

    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

  • @rbrzera
    @rbrzera 4 місяці тому +5

    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 4 місяці тому

      i think i know u ur thug right?

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

      eu também mano

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

      @@Enig_yt huh?

  • @user-gs2wc6rd3k
    @user-gs2wc6rd3k 3 місяці тому +4

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

  • @wufboo9547
    @wufboo9547 9 місяців тому +54

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

  • @Igotchubroski
    @Igotchubroski 4 місяці тому +3

    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 2 місяці тому

      You're a life saver

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

      does it have to be public

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

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

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

      @@Vapixed no it doesn't👍

  • @rolpol8536
    @rolpol8536 6 місяців тому +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 6 місяців тому

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

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

      r6 game setting

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

      if you made the animation in r6 you need to make the game r6 only and turn ur avatar into r6

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

      Can u do a left click mouse one

  • @vipex.v
    @vipex.v 9 місяців тому +6

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

  • @accountname6603
    @accountname6603 3 місяці тому +3

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

  • @itz._.ameliezzz
    @itz._.ameliezzz Місяць тому +7

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

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

      Exactly gotta find a newer version or smth

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

      same

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

      Did you make the game r6 or r15 only?

    • @Sam-tn7cw
      @Sam-tn7cw 28 днів тому +1

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

    • @VoidDevelopsLife
      @VoidDevelopsLife 20 днів тому +1

      U did it wrong

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

    1st script for local script:
    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
    2nd one for scripts:
    game.ReplicatedStorage.CombatHit.OnServerEvent : Connect(Function(plr)
    print(plr)
    end)

  • @CreatorProductionsOriginal
    @CreatorProductionsOriginal 2 місяці тому +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 2 місяці тому

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

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

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

  • @rangergamestudios3353
    @rangergamestudios3353 6 місяців тому +21

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

  • @venynishikawa
    @venynishikawa 9 місяців тому +10

    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 8 місяців тому +1

      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

    • @venynishikawa
      @venynishikawa 8 місяців тому

      ​@@ilovecats2767fr

    • @sipiersx5948
      @sipiersx5948 7 місяців тому

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

    • @karuaCOM
      @karuaCOM 7 місяців тому +3

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

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

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

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

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

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

    bro was going th speed of light ngl

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

    -- Define players
    local player1 = game.Players.LocalPlayer
    local player2 = nil -- Set player2 to another player, for example, from another device or NPC controlled by the computer
    -- Define player stats
    local player1Health = 100
    local player2Health = 100
    local player1Damage = 10
    local player2Damage = 10
    -- Function to handle player1 attacking player2
    local function player1Attack()
    player2Health = player2Health - player1Damage
    print("Player 1 attacked! Player 2's health is now: " .. player2Health)
    end
    -- Function to handle player2 attacking player1
    local function player2Attack()
    player1Health = player1Health - player2Damage
    print("Player 2 attacked! Player 1's health is now: " .. player1Health)
    end
    -- Connect player1's attack function to a key press (for example, "F" key)
    game:GetService("UserInputService").InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.F then
    player1Attack()
    end
    end)
    -- Connect player2's attack function to a key press (for example, "J" key)
    -- Note: Player2's controls should be handled similarly, but this script assumes a single-player scenario
    --[[
    game:GetService("UserInputService").InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.J then
    player2Attack()
    end
    end)
    --]]
    -- Check players' health and end game if one player's health reaches zero
    game:GetService("RunService").Heartbeat:Connect(function()
    if player1Health

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

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

  • @flqnt
    @flqnt 6 місяців тому +11

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

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

      Thank you for the kind words!

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

      ​@@vuukstudios7635how do you open the output thing?

    • @user-kx9ku4ne6h
      @user-kx9ku4ne6h 2 місяці тому

      Yea!

  • @SushiGaming_YT
    @SushiGaming_YT 9 місяців тому +10

    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 9 місяців тому

      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 9 місяців тому

      @@tazurajulianseditor7389 thanks bro

    • @RoundStep
      @RoundStep 9 місяців тому

      ​@@tazurajulianseditor7389thxxx

    • @user-yr2hm4ox7y
      @user-yr2hm4ox7y 6 місяців тому

      doesn't work.@@tazurajulianseditor7389

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

    I... I.. my brain hurts.

  • @DA-hd7vt
    @DA-hd7vt 17 годин тому

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

  • @Venox2106
    @Venox2106 Місяць тому +1

    Someone else's print("E key is pressed") doesn't print when pressed E?

  • @sgg123gaming6
    @sgg123gaming6 7 місяців тому +3

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

  • @Haroldhai
    @Haroldhai 7 місяців тому +3

    OMG THIS VIDEO IS REALLY REALLY HELPFULL THANKS MAN

  • @E1k0n
    @E1k0n 6 місяців тому +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)

  • @OhioMusicOfficial
    @OhioMusicOfficial 8 місяців тому +3

    im currently learning how to code for roblox so tysm! ur tutorial really helped!

    • @Darklikethevoid
      @Darklikethevoid 7 місяців тому

      How make instance

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

      @@Darklikethevoid Instance.new()

  • @Moon.Commenter_10
    @Moon.Commenter_10 4 місяці тому +1

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

  • @kgame3825
    @kgame3825 8 місяців тому +8

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

  • @user-rq7oo8qg2o
    @user-rq7oo8qg2o 2 місяці тому +3

    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!

    • @user-rq7oo8qg2o
      @user-rq7oo8qg2o 2 місяці тому +1

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

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

      You are actually a lifesaver tysm

  • @senseiatlas8967
    @senseiatlas8967 9 місяців тому +4

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

    • @vuukstudios7635
      @vuukstudios7635  9 місяців тому +1

      Thank you brother that motivates me 🥳

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

      2:06 how did i type that simbol

  • @Shokito09
    @Shokito09 8 місяців тому +2

    YBA devs needs to watch this video fr

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

    animation won't play even though i'm using r6 models for both my animations and character
    and i've pretty much copied this guy's instructions throughout the whole video...
    but the animations still don't load. the 'e key is pressed' notif still pops up but the animation doesn't play. can anyone explain?

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

      Same

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

      Is your animation priority on action4? If not then set it on action4 and then publish it to roblox again.

  • @TokumeiOficial
    @TokumeiOficial 8 місяців тому +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 7 місяців тому

      same problem

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

      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 6 місяців тому

      it worked for me

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

      You know an m1 means left mouse click right?

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

      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.

  • @ExMime3
    @ExMime3 8 місяців тому +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 6 днів тому

      To equip a sword put it in the starter pack

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

      I don't know how to animate

  • @ArabicScience-
    @ArabicScience- 7 місяців тому +6

    The animation didn t play for me

    • @parishilpi
      @parishilpi 7 місяців тому

      same

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

      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

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

      change ur avatar to r6 if you made the animation an r6 animation

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

      ​@@BraydenDoes_Stuffwhere do you get the r6 avatar?

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

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

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

    Me and my friend like making games together, he’s the coder and I’m the animator/builder, but he refuses to make combat games so I sent this to him and said “here dum dum”

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

      He called me a racial slur but that’s ok

  • @bentostring428
    @bentostring428 Місяць тому +45

    Bro types too fast

    • @Sh4dw.
      @Sh4dw. 28 днів тому

      Cuz he professional

    • @Who_idk_idc
      @Who_idk_idc 24 дні тому +1

      I KNOW RIGHT!!

    • @tusk9134
      @tusk9134 22 дні тому

      Assuming you have a basic understanding of lua

    • @Big-r9v
      @Big-r9v 20 днів тому +2

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

    • @TheorginalMan
      @TheorginalMan 17 днів тому

      Bro types to slow (you)

  • @8553animations
    @8553animations 7 місяців тому +3

    Got a question, why when i always click E i get an error that says that "Animation is not a valid member of LocalScript" how can i fix it?

    • @Wise_Phoenix
      @Wise_Phoenix 7 місяців тому

      Same

    • @8553animations
      @8553animations 7 місяців тому

      @@Wise_Phoenix i actually just fixed it, i had to redo the script and put the animation with the local script with its id again, not too hard

    • @Wise_Phoenix
      @Wise_Phoenix 7 місяців тому

      @@8553animations so in on ther word I have to redo it bruhh

    • @8553animations
      @8553animations 7 місяців тому

      @@Wise_Phoenix dont worry bro, if you keep going you will start typing faster

    • @SandraLopez-rk6lu
      @SandraLopez-rk6lu 7 місяців тому

      @@8553animations can you explain it simpler? Happened to me, like what the code should be like 😢

  • @_BaconSupreme_
    @_BaconSupreme_ 7 місяців тому +3

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

  • @ProjectSnail720
    @ProjectSnail720 3 місяці тому +1

    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

  • @savekillqqpsounds8473
    @savekillqqpsounds8473 7 місяців тому +1

    if yall get an error on line 9 at the beginning write input with a small i not a big like in the video that fixed it for me

  • @catherinesnow781
    @catherinesnow781 5 місяців тому +35

    Why didn't the code for the animation work

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

      Does not work for me either

    • @pumpkin1997
      @pumpkin1997 4 місяці тому +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

    • @Pear420
      @Pear420 3 місяці тому +3

      My games in r6 and it still didn’t work

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

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

    • @mahirahmed4992
      @mahirahmed4992 3 місяці тому +4

      Maybe actually understand the code instead of copy and pasting

  • @OldSport_VR
    @OldSport_VR 5 місяців тому +4

    it didn't work for me🙁

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

      Did do everything right ?

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

      You need to be r6

  • @MusicMaster320
    @MusicMaster320 6 місяців тому +7

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

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

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

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

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

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

      @@SayouPla This isn't school, buddy

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

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

    • @p0tat0o0
      @p0tat0o0 4 місяці тому +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.

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

    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
    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)

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

    This helped me make combos! Nice video.

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

    1:00 couldnt we do local UIS = game.UserInputService instead?

    • @watermelownpinap5007
      @watermelownpinap5007 8 днів тому

      Probably

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

      Getservice will wait for the service to load. Using game.service will have a possibility of returning an error when trying to utilize it because the service hasn't loaded yet.

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

    scriptd=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)

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

    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.

  • @UnCostarricenseMasXD
    @UnCostarricenseMasXD 5 місяців тому +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

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

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

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

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

  • @THIRDY-ij7mo
    @THIRDY-ij7mo Місяць тому

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

  • @literallythestrongest
    @literallythestrongest 15 днів тому

    sorry this actually helped me make another two part attack so sorry bout my other comment

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

    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  5 місяців тому

      The discord for the assets is free

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

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

  • @Me-tp6ll
    @Me-tp6ll Місяць тому +1

    Bro, do we need to lean coding in order to make games, even outside roblox?

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

      yes, of course! coding is 90% of game making. making a sucsessful game inside of non-coding game makers is nearly impossible, programmign is telling a computer what to do.

  • @FruitOdyssey
    @FruitOdyssey 7 місяців тому +1

    I know Lua and this is a little bit hard but you make it look easy

  • @Hourglass_Void
    @Hourglass_Void 25 днів тому +1

    The animation part for me still didn't work, i pasted the animation code and also checked the code, nothing's wrong, idk why is it not working

  • @Deck-Ta-Con
    @Deck-Ta-Con 6 місяців тому

    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 6 місяців тому

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

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

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

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

    Your coding might disappointed me but those people aren't following you for no reason, they like supporting u. so keep doing what u doing.
    for the viewers: he was using bad practices, when u get pro u will realize tho bad practices so no worries as a beginner focus on fun and learning

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

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

  • @Salm0nOperator
    @Salm0nOperator 7 місяців тому +2

    hey so nice tutorial its all good but the hitbox wont actually go where the player is, it goes where you spawn and halfway in the ground

    • @mr15muhabnc40
      @mr15muhabnc40 7 місяців тому

      problly bc u wrote hitbox.canTouch while u should hitbox.canColide i ahd the same problem

    • @osryr
      @osryr 7 місяців тому

      you didn't do it right then

    • @Salm0nOperator
      @Salm0nOperator 7 місяців тому +1

      @@osryr very helpful..?

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

      Ye same problem. When i click and have delay with my charge up for the punch, the hitbox appears in the spot where i clicked instead of where the character is when it spawns

  • @osryr
    @osryr 7 місяців тому +1

    at 9:09 you didn't explain this very well and it left me quite confused with what any of these parts do such as the [] brackets

  • @JusJD990
    @JusJD990 7 місяців тому +2

    i cant get the sound to work for some reason nooooooo

  • @voice_out
    @voice_out Місяць тому +1

    I have an error saying expected ')'(to close'(' at line 11 got 'print'

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

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

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

    Tysm but how do i make some more animation like when i first press its the first anim andwhen i press agian to play the next anim

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

    The script on 11:11 doesn't damage the Humanoid. It makes the sound but doesn't damage anyone. Can you please tell me what is causing this? Here is my script:
    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.5
    hitbox.Size = Vector3.new(5,5,5)
    hitbox.CFrame = plr.Character.HumanoidRootPart.CFrame *CFrame.new(0,0,-3)
    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
    local snd = script.PunchSound:Clone()
    snd .Parent = hit.Parent:FindFirstChild("Humanoid")
    snd:Play()
    game.Debris.AddItem(snd,2)
    hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
    wait(4)
    Hits[hit.Parent.Name] = false
    end
    end
    end)
    end)

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

      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(10)
      wait (4)
      Hits[hit.Parent.Name] = false
      end
      end
      end)
      end)

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

    if the code doesnt work: you need to click on the combat skill script and in the properties window set the RunContext variable to Client

  • @luky20
    @luky20 21 день тому +1

    I can't make a new rig for the animation part.

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

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

  • @CheeseAndEggTheCat-ok6fh
    @CheeseAndEggTheCat-ok6fh 12 днів тому

    Thank you😀

  • @BaldyEggManTSB
    @BaldyEggManTSB Місяць тому +1

    Guys help i had a bug , when i click 1 time all m1 is activating but it should be alternately , pls help

    • @noelbot6545
      @noelbot6545 17 днів тому

      same here im still looking

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

    I dont know how to code,im here for the keyboard sound

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

    The animation punch didnt work😢😢

  • @ilovecats2767
    @ilovecats2767 8 місяців тому +1

    I know nobody will see this, but I will at least try. Whenever I press E, it does the animation and shows the hitbox. The only problem being, it does no damage. I will paste the script. please tell me if i messed up plsplsplsplsplsplsplsplsplsplspls (yes i want the dmg to be 20)
    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.Parnet: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)

    • @Builder_Beast_YT
      @Builder_Beast_YT 8 місяців тому +1

      You have the line "if hit.Parnet:FindFirstChild("Humanoid") and hit.Parent.Name ~= plr.Name then", you mispelled Parent and instead put Parnet. Hope this helps :)

    • @JzermyDevRoblox
      @JzermyDevRoblox 7 місяців тому

      same

    • @purplepop413
      @purplepop413 7 місяців тому

      holy shit thank you so much

    • @Builder_Beast_YT
      @Builder_Beast_YT 7 місяців тому

      @@purplepop413 If your thanking me, your welcome! If not, I hope you have a great day!

    • @purplepop413
      @purplepop413 7 місяців тому

      @@Builder_Beast_YT thanking you

  • @Wyverns-Rose
    @Wyverns-Rose 7 місяців тому +1

    Can't wait to make some complicated shit for no reason

  • @harikrishnatankala6141
    @harikrishnatankala6141 8 місяців тому +1

    yo the animation doesn't play but the output says
    17:38:08.490 E key is pressed - Client - Combat Skill:15
    17:38:08.506 GamingLegend_renren - Server - CombatServer:2

    • @noelbot6545
      @noelbot6545 17 днів тому

      its must named THE exact same of the ANIMATION name OR you DID not own the animation

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

    copy this if anyone taking damage from your own attack: if humanoid and hit.Parent ~= plr.Character

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

      Can u send CombatServer script? Idk what am doing wrong.

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

    I made a game Called Aujto Battlegrounds with this and earned tons thanks alot for the tutorial

  • @irishbritishkid
    @irishbritishkid Місяць тому +1

    Please help!!! I followed everything perfectly fine, and have rewatched the whole video 5 times restarting, no matter what i do when i play and click E it does nothing. whats up??