Roblox Advanced Combat System Tutorial Part 1

Поділитися
Вставка
  • Опубліковано 23 гру 2024

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

  • @realampro
    @realampro  6 місяців тому +18

    Hey guys! I actually have a slightly more updated version of this combat on my channel now. Please check that out for some updated effects and built in cooldown manager, inventory, and UI!

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

      can u put the animatione on the comment i don't have one please 😊

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

      please 🙏🙏🙏🙏🙏

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

      @@omarbensaad5755 use the animation spoofer plugin.

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

      can you send a like to th video?

    • @AMVArtistry-c1y
      @AMVArtistry-c1y 4 місяці тому

      could you add the animation ids?

  • @noteternal5726
    @noteternal5726 2 роки тому +22

    Worth the wait I swear u never miss wit these tutorials

  • @StXGaMeRalli
    @StXGaMeRalli 2 роки тому +61

    definitely gonna watch this after i finish my own combat system to see what i can improve. Thanks for the open source learning code

  • @Ban33t
    @Ban33t 2 роки тому +52

    For anyone whos having a problem on line “89” with the load animation thing, you typed your “rbxassetid” wrong. Or the id numbers itself. I spent like 20 minutes trying to figure it out, but i typed “rbassetid” instead of “rbxassetid” so make sure its spelt correctly!

    • @nichkhar1508
      @nichkhar1508 Рік тому +1

      do i have to make my own anims or do i have to use his

    • @renielconcepcion6388
      @renielconcepcion6388 Рік тому

      @@nichkhar1508 you don't need to make one yourself but you can if you want

    • @GhostyCanGame
      @GhostyCanGame Рік тому

      @@renielconcepcion6388 you have to now, you cannot use anims you don't own and unfortunetly the person who made these anims have them privated.

    • @TheBroderss
      @TheBroderss Рік тому

      still doesnt work

    • @au_di7768
      @au_di7768 Рік тому

      bro can you tell me why it doesn't work for me? Please

  • @chilled9
    @chilled9 2 роки тому +8

    THANKS ALOOTT!!! i was wondering how to make a air combo and stuff and this really helped :)

  • @bloxboi3099
    @bloxboi3099 2 роки тому +34

    This is actually help full I like that you dont take like an hour to start, but I have a question, would it be possible that you show how to make a heavy attack combo?

  • @ShortyJustin
    @ShortyJustin 2 роки тому +11

    I learnt a lot from this thanks!!

  • @exoticmb
    @exoticmb 2 роки тому +74

    its crazy how u made a whole combat system within 20 minutes nice

    • @Terrifying
      @Terrifying 2 роки тому +9

      Bruv, its 21 minutes and 41 seconds.

    • @a-topgaming7366
      @a-topgaming7366 2 роки тому +8

      @@Terrifying fr thats what im saying kids dont know how to read these days

    • @j4yvier
      @j4yvier 2 роки тому +4

      @Redacted @A-top Gaming it actually only goes to 21 minutes and 40 seconds, sometimes youtube does an oopsie and adds an extra 1. :)

    • @Polatian
      @Polatian 2 роки тому

      @@a-topgaming7366 exactly

    • @exoticmb
      @exoticmb 2 роки тому +1

      @@Terrifying i was estimating lmfao i already know its 21 minutes

  • @6__6wedo
    @6__6wedo Рік тому +7

    My dummy takes damage, but after I land a hit on it my character slowly starts sliding, using my walk animation. Also this only seems to work for the dummy I have placed, not zombies from a zombie spawner.

    • @Zolphite
      @Zolphite Рік тому

      Make sure you delete the bodyvelocity object you create in the server script using game.Debris:AddItem(bv, .2) Prob around line 137

    • @TheRealKio
      @TheRealKio Рік тому +1

      do the zombies have a humanoid?

  • @powerpaxz
    @powerpaxz 2 роки тому +9

    hey by any chance could you make some sort of parry tutorial with blocking, I am having trouble figuring it out my self…💀

  • @GhettoWxzrd
    @GhettoWxzrd Рік тому +1

    Bro went "i'm gonna make a tutorial series on this subject, but you guys could probably figure that out on your own"

  • @Mubrikfr
    @Mubrikfr 6 місяців тому +17

    script
    local remote = game.ReplicatedStorage.CombatEvent
    remote.OnServerEvent:Connect(function(Client, data)
    if data.Action == "m1" then
    data.Target.Humanoid:TakeDamage(4)
    if data.Air == "Up" then
    local bp = Instance.new("BodyPosition")
    bp.Position = data.Character.PrimaryPart.Position + Vector3.new(0,30,0)
    bp.P = 1200
    bp.MaxForce = Vector3.new (99999,99999,99999)
    bp.D = 200
    bp.Name = "Position"
    bp.Parent = data.Character.PrimaryPart
    game.Debris:AddItem(bp,1)
    local bp = Instance.new("BodyPosition")
    bp.Position = data.Target.PrimaryPart.Position + Vector3.new(0,30,0)
    bp.P = 1200
    bp.MaxForce = Vector3.new (99999,99999,99999)
    bp.D = 200
    bp.Name = "Position"
    bp.Parent = data.Target.PrimaryPart
    game.Debris:AddItem(bp,1)
    elseif data.Air == "Down" then
    for i,v in pairs (data.Target.PrimaryPart:GetChildren()) do
    if v:IsA("BodyMover") then
    v:Destroy()
    end
    end
    local bv = Instance.new("BodyVelocity", data.Target.PrimaryPart)
    bv.Velocity = (data.Character.PrimaryPart.CFrame.LookVector * 1 - Vector3.new(0,2,0)) *25
    bv.MaxForce = Vector3.new (99999,99999,99999)
    bv.Name = "Velocity"
    game.Debris:AddItem(bv, 2)
    elseif data.combo == 5 then
    local bv = Instance.new("BodyVelocity", data.Character.PrimaryPart)
    bv.Velocity = data.Character.PrimaryPart.CFrame.LookVector * 10
    bv.MaxForce = Vector3.new (99999,99999,99999)
    bv.Name = "Velocity"
    game.Debris:AddItem(bv, .2)
    local bv = Instance.new("BodyVelocity", data.Target.PrimaryPart)
    bv.Velocity = data.Character.PrimaryPart.CFrame.LookVector * 75
    bv.MaxForce = Vector3.new (99999,99999,99999)
    bv.Name = "Velocity"
    game.Debris:AddItem(bv, 2)
    else
    local bv = Instance.new("BodyVelocity", data.Character.PrimaryPart)
    bv.Velocity = data.Character.PrimaryPart.CFrame.LookVector * 10
    bv.MaxForce = Vector3.new (99999,99999,99999)
    bv.Name = "Velocity"
    game.Debris:AddItem(bv, .2)
    local bv = Instance.new("BodyVelocity", data.Target.PrimaryPart)
    bv.Velocity = data.Character.PrimaryPart.CFrame.LookVector * 10
    bv.MaxForce = Vector3.new (99999,99999,99999)
    bv.Name = "Velocity"
    game.Debris:AddItem(bv, .2)
    end
    end
    end)
    local script
    local character = script.Parent
    local humanoid = character.Humanoid
    local player = game.Players.LocalPlayer
    local uis = game:GetService("UserInputService")
    local remote = game.ReplicatedStorage.CombatEvent
    local lastTimeM1 = 0
    local lastM1End = 0
    local combo = 1
    local canAir = true
    local punchAnims = {
    'rbxassetid://17492488859',--1
    'rbxassetid://17492518101',--2
    'rbxassetid://17521633578',--3
    'rbxassetid://17521583383',--4
    'rbxassetid://17494314786',--5
    }
    local airAnims = {
    'rbxassetid://17494408689', --Kick Up
    'rbxassetid://17494373805', --Kick Down
    }
    local function hb(size, cframe, ignore, char)
    local hb = Instance.new("Part", workspace.Fx)
    hb.Anchored = true
    hb.CanCollide = false
    hb.Transparency = .6
    hb.Name = "hb"
    hb.Material = Enum.Material.ForceField
    hb.CanQuery = false
    hb.Size = size
    hb.CFrame = cframe
    local con
    con = hb.Touched:Connect(function()
    con:Disconnect()
    end)
    local lasttarg
    for i,v in pairs(hb:GetTouchingParts()) do
    if v.Parent:FindFirstChild("Humanoid") and table.find(ignore, v.Parent) == nil then
    if lasttarg then
    if (lasttarg.Position - char.PrimaryPart.Position).Magnitude > (v.Position - char.PrimaryPart.Position).Magnitude then
    lasttarg = v.Parent.PrimaryPart
    end
    else
    lasttarg = v.Parent.PrimaryPart
    end
    end
    end
    hb:Destroy()
    if lasttarg then
    return lasttarg.Parent
    else
    return nil
    end
    end
    uis.InputBegan:Connect(function(input, gpe)
    if gpe then return end
    if input.UserInputType == Enum.UserInputType.MouseButton1 and tick() - lastTimeM1 > .3 and tick() - lastM1End > .7 then
    if tick() - lastM1End > .7 then
    combo = 1
    end
    lastTimeM1 = tick()
    local animation = Instance.new("Animation", workspace.Fx)
    local air = nil
    if uis:IsKeyDown("Space") and combo == 4 and canAir then
    canAir = false
    animation.AnimationId = airAnims[1]
    air = "Up"
    elseif not uis:IsKeyDown("Space") and combo == 5 and not canAir then
    animation.AnimationId = airAnims[2]
    air = "Down"
    else
    animation.AnimationId = punchAnims[combo]
    end
    local load = humanoid:LoadAnimation(animation)
    load:Play()
    animation:Destroy()
    local hitTarg = hb(Vector3.new(4,6,4), character.PrimaryPart.CFrame * CFrame.new(0,0,-3), {character}, character)
    if hitTarg then
    local data = {
    ["Target"] = hitTarg,
    ["Character"] = character,
    ["Combo"] = combo,
    ["Air"] = air,
    ["Action"] = "m1",
    }
    remote:FireServer(data)
    end

    if combo == #punchAnims then
    combo = 1
    lastM1End = tick()
    else
    combo += 1
    end
    humanoid.WalkSpeed = 0
    wait(.4)
    humanoid.WalkSpeed = 16
    end
    end)
    humanoid.StateChanged:Connect(function(old, new)
    if new == Enum.HumanoidStateType.Landed then
    canAir = true
    end
    end)
    uis.JumpRequest:Connect(function()
    if tick() - lastTimeM1 < 1 then
    humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
    else
    humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
    end
    end)

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

      bro u are a goat but it is the fix version or no ?

  • @gojix5878
    @gojix5878 2 роки тому +7

    This is so helpful thank you so much I have been looking for a tutorial for a long time. I have a suggestion is it possible that you show how to make a combo counter?

  • @miraktutorials7959
    @miraktutorials7959 2 роки тому +3

    I got stuck fore a whole hour stuck bc my animations dont play

  • @ACE-jg5mh
    @ACE-jg5mh 2 роки тому +8

    does it matter when i changed the player char and humanoid to this?:
    local player = game.Players.LocalPlayer
    local char = player.CharacterAdded:Wait()
    local humanoid = char:WaitForChild("Humanoid")

  • @TAG_RoyalKingBah
    @TAG_RoyalKingBah Рік тому +2

    where did you copy the animations at 3:38

  • @alishammari5180
    @alishammari5180 2 роки тому +3

    i dont know why but the dummy does not take damage i think the problem is in the function parameters data so it might think that when i say something like data.Action its reffering to the parameter but when i remove the parameter it still doesnt work if u have a discord or some way you could help me that would be great cause i repeated ur video like a million times and still never works and ive been finding it quit frustrating

    • @Cooldudegamer327
      @Cooldudegamer327 Рік тому

      Yeah,does it play the animations for because it doesn’t for me

    • @alishammari5180
      @alishammari5180 Рік тому

      @@Cooldudegamer327 it plays the animations but it just doesnt do damage

    • @alishammari5180
      @alishammari5180 Рік тому

      @@Cooldudegamer327 where did u store your animations I think that might be the problem

  • @zecchh1234
    @zecchh1234 Рік тому +2

    thanks a lot this is way more helpful than anything.

  • @t7dk
    @t7dk 2 роки тому +9

    in output it keeps saying "Workspace.(my user).LocalScript:47: invalid argument #1 to 'find' (table expected, got Instance)"
    and the code at line 47 is:
    46 for i, v in pairs(hb:GetTouchingParts()) do
    47 if v.Parent:FindFirstChild("Humanoid") and table.find(ignore, v.Parent) == nil then
    48 if lasttarg then
    i could need some help with this

    • @snowbunnies_69
      @snowbunnies_69 2 роки тому

      🤣

    • @t7dk
      @t7dk 2 роки тому +1

      ???

    • @t7dk
      @t7dk 2 роки тому

      @@snowbunnies_69 bro not everyone is good at programming pls explain

    • @Woken0
      @Woken0 2 роки тому +2

      Check line 94 if it is: local hitTarg = hb(Vector3.new(4,6,4), character.PrimaryPart.CFrame * CFrame.new(0,0,-3), {character}, character)

    • @itszednotzee1052
      @itszednotzee1052 2 роки тому

      check if around line 94 you have
      local hitTarg = hb(Vector3.new(4,6,4), character.PrimaryPart.CFrame * CFrame.new(0,0,-3), {character}, character)

  • @BumBum_SM
    @BumBum_SM 7 днів тому

    i tried this with R6 which worked fine but when i punched the dummy, walked and punched, jumped and punched, the animations got canceled out instead of playing like they normally do

  • @ope.001
    @ope.001 Рік тому +3

    So I did everything you told me to do/write in the script/local script & other details but it seems to be broken. For some reason I can't do any damage, and when I click to attack it only does 1 animation. I don't know why even though I followed all the steps and stuff, the local script & script seem to be fine. (Please Reply)

    • @yumustv593
      @yumustv593 Рік тому

      Same

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

      line 49 of the code, for me, i had to change to: if (lasttarg.Position - char.PrimaryPart.Position).Magnitude > (v.Position - char.PrimaryPart.Position).Magnitude then

  • @madani-w9y
    @madani-w9y Місяць тому +1

    GUYS PLS HOW TO EMPORT ANIMATIONS AND STAFF FOR THE 3:35 minutes

  • @musicmixx-ups336
    @musicmixx-ups336 2 роки тому +6

    I'm having a little bit of trouble on line 49 of the local script. The output says "attempt to compare Vector3 < number"
    Here's what the code looks like on my end:
    local lasttarg

    for i, v in pairs(hb:GetTouchingParts()) do
    if v.Parent:FindFirstChild("Humanoid") and table.find(ignore, v.Parent) == nil then
    if lasttarg then
    if (lasttarg.Position - char.PrimaryPart.Position).Magnitude > (v.Position - char.PrimaryPart.Position) then
    lasttarg = v.Parent.PrimaryPart
    end
    else
    lasttarg = v.Parent.PrimaryPart
    end
    end
    Any help would be great

    • @_l4nk671
      @_l4nk671 2 роки тому +2

      at the end of if (lasttarg.Position - char.PrimaryPart.Position).Magnitude > (v.Position - char.PrimaryPart.Position) add .Magnitude

  • @b0madia
    @b0madia Рік тому +1

    i did everything but my hit box keeps appearing anytime i hit a dummy and doesn’t continue the combo but the combo works when i don’t hit a dummy

  • @senseibar1
    @senseibar1 2 роки тому +3

    I'm gonna ask ,how will I put this in a tool like GPO , Project Slayer's Combat type? Thanks.

    • @raysthd5037
      @raysthd5037 2 роки тому +1

      Pls notify me when someone answered

    • @xtempor
      @xtempor 2 роки тому +2

      just add a check for the whole script to only run if a player has the tool equipped

    • @raysthd5037
      @raysthd5037 2 роки тому +1

      @@xtempor i dont know how to make that can you write the check in here please

    • @xtempor
      @xtempor 2 роки тому +1

      @@raysthd5037 if input.UserInputType == Enum.UserInputType.MouseButton1 and tick() - lastTimeM1 > .4 and tick() - lastTimeM1 > 0.6 and character:FindFirstChild("ClassicSword") then
      replace classicsword with the tool name you want

    • @raysthd5037
      @raysthd5037 2 роки тому

      @@xtempor thx

  • @jntak
    @jntak Рік тому +2

    Hi, my output is giving me this error:
    Workspace.s4lmonella.LocalScript:49: attempt to compare Vector3 < number
    My code on lines 49 and 50 looks like this:
    if (lasttarg.Position - char.PrimaryPart.Position).Magnitude > (v.Position - char.PrimaryPart.Position) then
    lasttarg = v.Parent.PrimaryPart
    Could this be an issue with R6 or is there some other problem with the code?
    Thanks in advance if you do help, and even if you don't, this was a great tutorial.

    • @YBloem_PotY
      @YBloem_PotY Рік тому

      I had the same thing, You have to put '.Magnitude' behind the last bracket in front of 'then'.

    • @jntak
      @jntak Рік тому

      @@YBloem_PotY thank you so much, you’re a lifesaver

    • @YBloem_PotY
      @YBloem_PotY Рік тому

      @@jntak np haha

  • @Cereall
    @Cereall Рік тому +3

    i did everything correct, no errors, but it doesn't deal damage. I am using r6 but idk if that's an issue.

    • @playboifarti338
      @playboifarti338 Рік тому

      its not

    • @Bawed
      @Bawed Рік тому +1

      Same the hitbox isn’t showing up

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

      use r15 using r6 is the issue try using r15 cuz the tutorial he made is based on r15 it working thanks me in comments

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

      @@amitarajne1906 bro i posted this 1 year ago

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

      @@Cereall lol

  • @aank8335
    @aank8335 2 роки тому +12

    If the second part of this tutorial is effects it would be fire🔥
    i really want to know how did you do that rock line effect in your previus combat

    • @cameron7910
      @cameron7910 Рік тому

      I’m trying to make a demon slayer game and learning how to do effect would help a lot

    • @OsDijider66
      @OsDijider66 Рік тому

      @@cameron7910 do u need a devs team?

    • @real_rax561
      @real_rax561 Рік тому

      @@OsDijider66 u dev ?

    • @BuldsOffice
      @BuldsOffice Рік тому

      @@OsDijider66 I do please

    • @beastboycari2498
      @beastboycari2498 Рік тому

      what type of dev?? scripter??
      @@BuldsOffice

  • @LoveQuranOfficiaI
    @LoveQuranOfficiaI 2 роки тому

    Nicee!!!!!! I subscribed!!!

  • @Jslemonn
    @Jslemonn 2 роки тому +4

    BRO UR SO UNDERRATED!!!!

  • @poblethee51-a27
    @poblethee51-a27 2 роки тому +2

    Thank you so much this video really helped me!

  • @Renza_i
    @Renza_i 2 роки тому +4

    Is there a way to add another m1 to the downslam combo. Example m1x3 + (space) with m1 + (this m1 is the extra one) + m1(this one slams down.)

  • @friendlysoulja
    @friendlysoulja 2 роки тому +2

    How do I format it like that on 3:37

  • @Vessbon
    @Vessbon Рік тому +5

    Isn't this very easily exploitable? You are letting the client fire a remote event that handles vulnerable data like the target, character, combo, air and action.

    • @wiztrash9530
      @wiztrash9530 Рік тому +2

      how would i make a non exploitable system like rogue lineagr

    • @crafty7779
      @crafty7779 Рік тому +1

      ​@@wiztrash9530 make a non exploitable system

    • @monkted9904
      @monkted9904 Рік тому +2

      @wiztash9530 you would have to make the hitboxes on the server along with all the other important things like the target, character, combo air, action like he listed then you would just fire a remote event to the client just to make the effects

  • @abhijitg4626
    @abhijitg4626 2 роки тому

    Great Video!

  • @frostgamel1607
    @frostgamel1607 2 роки тому +9

    Yo I’m having some problems. Can you maybe paste your script here?

  • @raysthd5037
    @raysthd5037 2 роки тому +1

    Earned a new sub

  • @Beij1ngCorn
    @Beij1ngCorn 2 роки тому +4

    my friend recommended you to me, and your sword combat series made me see all the scripting methods that are not effective, thanks

  • @OmegaAMVs
    @OmegaAMVs 2 роки тому +1

    I have a problem, I dont do knockback idk why

  • @cybermech6010
    @cybermech6010 2 роки тому +5

    This does work with R6/r6. You just have to replace every part that uses PrimaryPart to HumanoidRootPart and it should work, since R6 dummies apparently don't have a PrimaryPart. Hope that helps!

  • @garlicbreadenjoyer4560
    @garlicbreadenjoyer4560 Рік тому +1

    I have an error called: "Workspace.robloxinatorALi123.CombatClient:50: invalid argument #1 to 'find' (table expected, got Instance)", i wrote "if v.Parent:FindFirstChild("Humanoid") and table.find(ignore, v.Parent) == nil then" on that line, like in the video, whats wrong?

  • @im_logvr2208
    @im_logvr2208 Рік тому +5

    Could you give us a download link so we can download the animations?

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

    how did you make it so the player actually rotates with the lower torso ,whenever i do it it doesnt work

  • @kalex_z
    @kalex_z 2 роки тому +3

    on line 56 and says Expected identifer and same with the == nil then
    on line 58 and 59 both lasttarg’s say Unknown global lasttarg
    line 64 to line 114 everything says Unreachable code (previous statement always returns

    • @Beij1ngCorn
      @Beij1ngCorn 2 роки тому +1

      same problem for me

    • @kalex_z
      @kalex_z 2 роки тому +1

      @@Beij1ngCorn yeah

    • @Beij1ngCorn
      @Beij1ngCorn 2 роки тому +1

      @@kalex_z actually, I fixed the issue

    • @Beij1ngCorn
      @Beij1ngCorn 2 роки тому +1

      @@kalex_z just a simple typo on my end, but if you haven't fixed it for 12 days, then you probably did sum wrong with the script

    • @kalex_z
      @kalex_z 2 роки тому +1

      @@Beij1ngCorn alr

  • @Chinelolamb
    @Chinelolamb 11 місяців тому

    Hey there! do you ever cover how you would put a kill like this into a leaderboard?

  • @ikkeenbot
    @ikkeenbot Рік тому +3

    You could've added some functions to the script to make it easier to read and for people to understand

  • @InfinitMotivation-p8f
    @InfinitMotivation-p8f Рік тому +1

    how did you add arrows front of animation ids

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

    i only got 1 animation played even though i putted diffrent punch animations. any way to fix it?

  • @WolfDevs
    @WolfDevs 2 роки тому +2

    why dosen't the data.Air == "Up" work in the script? when i do the up combo nothing happens and same with the down one, and the animation thingy dosent work?

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

    I did the scrip but on line 75 on local script it says fx is not a valid member for workspace could u maybe help me

  • @codewithriza
    @codewithriza 2 роки тому

    Love ur Video bro

  • @RiikayYT
    @RiikayYT Рік тому +1

    when i do it, clicking doesnt do anything. i am confused and really sad on why this is. i followed everything:(

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

      Same.

  • @alparslaneken229
    @alparslaneken229 10 місяців тому

    Hello, my animations and codes are completely ready, but even though my character enters the uptilt animation, it does not go up and the puppet does not go up either.

  • @NotTenacious
    @NotTenacious Рік тому +1

    Hello Ampro, could you make a tutorial on how to make it so that combat only works if the sword from your other tutorial is unequipped?

    • @Hextia
      @Hextia Рік тому +1

      Just check if your character is equipping the sword before firing the event in your local script

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

    can someone please tell me how to export your animations like he showed in 3:35?

  • @_blaise1
    @_blaise1 Рік тому +1

    when i click it only plays the first m1 animation

    • @Nooooorth
      @Nooooorth Рік тому

      same

    • @callmejke9317
      @callmejke9317 11 місяців тому

      well someone didnt watch the whole thing

    • @_blaise1
      @_blaise1 11 місяців тому

      @@callmejke9317 i already fixed it

  • @NG-we6gh
    @NG-we6gh Рік тому

    for some reason my m1s don work i copy pasted everything to the letter and me and my friends we also tried other peoples guides bu they didnt work either can someone help plzzz

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

    Yo bro its very annoying when you copy and paste a whole page in and we cant copy it

  • @Nickrequ1em
    @Nickrequ1em Рік тому +1

    So I'm pretty sure that I have done everything correctly I have even double checked but for some reason when I click it does nothing, I have gone through the ENTIRE code and still can't find the problem

    • @realampro
      @realampro  Рік тому

      Check your output and debug

    • @Nickrequ1em
      @Nickrequ1em Рік тому

      @@realampro wdym? Also I manage to make it play the animation and summon the hit box but it plays only the first punch anim(even with the change you made) and it doesn't do any damage

    • @Nickrequ1em
      @Nickrequ1em Рік тому

      @@realampro it says CFrame is not a valid member of part"Workspace.nickrequiem.HumanoidRootPart" (line 48 in script)

    • @nazharieiman2943
      @nazharieiman2943 Рік тому

      Same

    • @ace19lightning35
      @ace19lightning35 Рік тому

      @@Nickrequ1em Check if it says Cframe and not CFrame

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

    on line 5 of the server script where it says "data.Target.Humanoid:TakeDamage(4)" when i test it, it says attemt to index with nil "Humanoid" how can i fix this?

  • @lapse1403
    @lapse1403 2 роки тому +1

    my m1's dont show when i click. My animations that i made arent showing up and I just cant see anything working

  • @ayteam_8
    @ayteam_8 Рік тому

    should the animation only contain the punch or should i also make the arm come back to its original position and where should we start the second punch animation?

  • @Ш.АРК
    @Ш.АРК Рік тому

    WHY WHY WHY WHY WHY DOES THIS HAPPEN
    whenever someone gets hit then jumps they just start rising up into the sky indefinitely, PLEASE HELP ME

    • @AJM_Was_Taken
      @AJM_Was_Taken Рік тому

      check the values of your bodyvelocitys and also the value of your game.debris

  • @ImnotgolfeYi
    @ImnotgolfeYi Рік тому

    i have a problem with this if v.Parent:FindFirstChild("Humanoid") and table.find(ignore, v.Parent) == nil then help me pls

  • @Paze296
    @Paze296 Рік тому +1

    I have a problem i closed the tab where i can allow it after pressing on setup. I already tried deinstalling it and reinstalling it but it didnt work. How can you fix this?

  • @wongqtr
    @wongqtr Рік тому +1

    im pretty sure i did all the code correctly but even with after i fixed the combo not starting bug, it still wont start the combo. Does anyone know how to fix this?

    • @Bawed
      @Bawed Рік тому +1

      Same with me did you use R6

  • @Darkgamer18237
    @Darkgamer18237 11 місяців тому +1

    I'm trying the scripts but my animations won't run and the errors are saying
    Humanoid is not a valid member of "ServerScriptService" - Script:2
    And
    OnServerEvent can only be used on server - LocalScript:3
    Please help urgently😅😅

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

      Having the same problem, did you ever get it to work?

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

    can someone help when i try to do a combo it only plays the first punch and the combo doesn't work

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

    Could you please put the scrip in the descrition please i dnt have time t copy ll of this and trust me im making the best upcoming roblox game and really needed this comabt system i love the way it work and think this would be better than all of my coding combined. I know this is an old video but im still wondering

  • @caolho_de_2_olhos692
    @caolho_de_2_olhos692 Рік тому +2

    my Hitbox got buggy, I can only hit the target if it's on top of his head, is there a way to solve it? what animation do you use? anyway thank you

    • @realampro
      @realampro  Рік тому

      Try setting the hitbox transparency to 0 and get rid of the destroy() temporarily to try and see where the hitbox is goinf

    • @caolho_de_2_olhos692
      @caolho_de_2_olhos692 Рік тому

      @@realampro I just found out what's going on, whenever I execute the punch, it doesn't hit, I can only deal damage if I'm on top of the dummy's head

  • @noturne54
    @noturne54 Рік тому

    RemoteEvents in the ReplicatedStorage can cause throttling, right?

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

    does the animation have to be action or core?

  • @aryans5848
    @aryans5848 2 роки тому +1

    UserinputType is not a valid member of "Enum" plz helpp

    • @Erolsaurus
      @Erolsaurus 2 роки тому

      UserInputType, not UserinputType. The I is capitalized

  • @Kemhiru
    @Kemhiru 2 роки тому +2

    Fire tutorial, but would there be a way to remove the spacebar+lmb and have it just be a held click?

    • @realampro
      @realampro  2 роки тому +1

      You would have to change the inputs required and keep track of if the lmb is being held

    • @son-zora5174
      @son-zora5174 2 роки тому +1

      @@realampro how did u get the script at 4:34 and 3:39 im more confused about 4:34.

    • @kknuEditz1330
      @kknuEditz1330 Рік тому +1

      @@son-zora5174 am confused at that part

  • @Metal-Sonic
    @Metal-Sonic 6 місяців тому

    there is some things i can do to make the system the way i prefer it to work, like instead of m1 x 5, it's m1 x 4 like in most battlegrounds games, and the other things i can just be figuring out.

  • @avvanvv
    @avvanvv 2 роки тому +1

    hey i cant air combo to other people i set my game to r6 its not working

  • @tsfuki
    @tsfuki 2 роки тому

    for the flashstep video, can u make it work with r6 please?

  • @muktastic6477
    @muktastic6477 Рік тому

    bro ur way too underated

  • @uniguy2484
    @uniguy2484 2 роки тому

    why is the .Magnitude part in here 5:04 being an error even tho i typed it in perfectly since i dont know how to script?

    • @obvverpennter5438
      @obvverpennter5438 2 роки тому

      another .Magnitude behind the second v.Position - char.PrimaryPart.Position) HERE

  • @vipvab3968
    @vipvab3968 Рік тому

    My animations doesn't work properly when i attack dummies. I guess when i hit a dummy i get velocity and move forward, but because of that walk animation starts playing and it conflicts with my punching animations... i think. How do i fix it?

    • @vipvab3968
      @vipvab3968 Рік тому

      Ok, i figured out that i forgot to set animation priority to action. Oops😅

  • @clo579
    @clo579 Рік тому

    I am having trouble with the animation fully playing, any suggestions on what I should check to fix it?

  • @zennn950
    @zennn950 Рік тому

    on line 24 are those arrows or something in the start

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

    All good for me except for a few little parts
    local lasttarg

    for i, v in pairs(hb:GetTouchingParts()) do
    if v.Parent:FindFirstChild("Humanoid") and table.find(ignore, v.Parent) == nil then
    if lasttarg then
    if (lasttarg.Position - char.PrimaryPart.Position).Magnitude > (v.Position - char.PrimaryPart.Position).Magnitude then
    lasttarg = v.Parent.PrimaryPart
    end
    else
    lasttarg = v.Parent.PrimaryPart
    end
    end
    I don't really understand this lasttarg thingy, can somebody elaborate please

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

    can you make this into a model!!!! :D I would make following this a lot easier because maybe I'm dumb or my computer is old but I keep running into errors and I'm no sure what I'm missing

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

    is there an r6 version cuz its not working at all even on r15 idk if its bugged or what

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

    Doesn't work, line 101 remote is underlined blue and dont know how to fix and and line 122 - 128 are all under lined red as an error fr wastwe a hole 3hrs

  • @Builderbeast-CoDm
    @Builderbeast-CoDm Рік тому +1

    My animations are only playing a third of what they should be... Also, the dummy won't take damage or knock back. Does anyone have ideas of where I messed up?

    • @Bawed
      @Bawed Рік тому +1

      Did you use R6?

  • @rekohebrewz5608
    @rekohebrewz5608 Рік тому

    I used the script for adding the animation punches, but my cas on the last line has a blue underline. How do i fix this?

  • @localtoaster1273
    @localtoaster1273 2 роки тому

    bro it dont work, it brakes everytime the next day i come back and it wont even do anything from just creationg force fields to nothing

  • @densworthgrant2435
    @densworthgrant2435 Рік тому

    Help it keeps saying "error expected ")" to close at line 15

  • @TheGameBusters456
    @TheGameBusters456 2 роки тому

    Idk what's wrong with my Scipts but it's not really working it's not doing anything like the damage and the animations

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

    I'm getting the error attempt to index nil with 'Position' at line 49 of local script can someone help me

  • @giyuutomioka8246
    @giyuutomioka8246 Рік тому

    Can we use this or should we credit you I wanna make a game

  • @mullezz
    @mullezz 2 роки тому +2

    I FINALLY FOUND THIS CHANNEL!

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

    Thanks! For some reason, my downslam doesn’t work though.

  • @asphalt-rocks
    @asphalt-rocks 2 роки тому +1

    Can you please tech us/ me how to put this in a slot like press 1 to activate combat in hotbar then u can use it or skills that u have to press 2 like flash step before u can use z

    • @aank8335
      @aank8335 2 роки тому +2

      you can do this using tools and adding the local script to it
      but you will need to change the code a bit because you need to detect if the player have the tool equiped and then use the move
      something like this:
      local tool = script.Parent
      tool.equiped:Connect(function()
      equiped = true
      end)
      tool.unequiped:Connect(function()
      equiped = false
      end)
      uis.ImputBegan:Connect(function(input, gpe)
      if gpe then return end
      if input.UserImputType == Enum.UserImputType.MouseButton1 and equiped = true then
      --all the other things in the script

    • @asphalt-rocks
      @asphalt-rocks 2 роки тому

      @@aank8335 how do you add the tool?

    • @aank8335
      @aank8335 2 роки тому

      @@asphalt-rocks it is an instance, you can add it like if it was a script or a part

    • @asphalt-rocks
      @asphalt-rocks 2 роки тому

      @@aank8335 oh alright thanks but does mesh part work with it

    • @aank8335
      @aank8335 2 роки тому

      @@asphalt-rocks wdym?

  • @royaleeight5625
    @royaleeight5625 Рік тому

    Hey am I allowed to use your animations or not?

  • @king4dam73
    @king4dam73 Рік тому

    ur accually the only person that shows how to make it instead of downloading smth also can u show how to do with a sword?

  • @Rirukoi
    @Rirukoi Рік тому

    hey bro can i get some help i wanna know how to get the combat working but no air stuff i can into a animation loading issue and i hope some one can help me out with this? it has to do with the part where its the if statement about air combo animation.
    thanks

  • @GodSpeed_0vO
    @GodSpeed_0vO Рік тому

    Im having issues about giving damage, everything else works but I cant do damage or combo bc of it. HELP

    • @Nooooorth
      @Nooooorth Рік тому

      SAME BRO have you figured it out yet?