How To Make Battlegrounds Combat System Part1 (Roblox Studio)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ส.ค. 2024
  • How To Make Battlegrounds Combat System Part1 (Roblox Studio)
    This is the first part of the tutorial
    I'll explain how to make a battlegrounds combat system
    /\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\*/\
    Tomato Hitbox Module: www.roblox.com...
    CombatServer: pastebin.com/W...
    Main: pastebin.com/e...
    CombatClient: pastebin.com/p...
    Join my Discord Server (Cus why not 🤷‍♂️)
    Discord: / discord
    Same with my roblox group:
    Group: www.roblox.com...
    \/*\/*\/*\/*\/*\/*\/*\/*\/*\/*\/*\/*\/*\/

ความคิดเห็น • 1.2K

  • @Kirbo465
    @Kirbo465 11 หลายเดือนก่อน +157

    Props to this guy, I watched the entire vid and I dont even have Roblox studio. He made a tutorial that’s informative and entertaining

    • @Naltico
      @Naltico 10 หลายเดือนก่อน +5

      ​@@g0joshortsyou need to train text interpretation, and I don't even speak English.

    • @IAmJuniorJuniorIsLife
      @IAmJuniorJuniorIsLife 10 หลายเดือนก่อน +2

      ⁠@@Nalticobasically he’s saying when you get roblox studio, you have to log in through the studio and create a game.

    • @thatidiotoverthere6311
      @thatidiotoverthere6311 8 หลายเดือนก่อน

      @@IAmJuniorJuniorIsLifeYeah that’s the idea 🤔

    • @vikovitch
      @vikovitch 6 หลายเดือนก่อน +1

      corny levels dangerously high, termination reccomended

    • @gheorghiialamov2063
      @gheorghiialamov2063 6 หลายเดือนก่อน

      Bro just you in Mobile

  • @your_local_Turkish31
    @your_local_Turkish31 7 หลายเดือนก่อน +96

    "whats your special talent?"
    "typing in light speed."

    • @GamingScripter
      @GamingScripter 5 หลายเดือนก่อน +3

      What did you missed? Him editing the speed

    • @Frim_ms
      @Frim_ms 5 หลายเดือนก่อน

      💀

    • @Sonics_is_gaming
      @Sonics_is_gaming 3 หลายเดือนก่อน +2

      looks like you don't know editing

    • @The_Shadows-eq2tj
      @The_Shadows-eq2tj 2 หลายเดือนก่อน

      AHHAHAHA

    • @Jamal1_56
      @Jamal1_56 2 หลายเดือนก่อน

      just slow the video speed and ur good 🦕🦕

  • @Goofy_Hexer
    @Goofy_Hexer 11 หลายเดือนก่อน +22

    Thank you so much bro im working on a battleground game right now and this is helping me out A LOT

    • @TheTomatoo
      @TheTomatoo  11 หลายเดือนก่อน +3

      No problem 👍

    • @Little_G00ber
      @Little_G00ber 11 หลายเดือนก่อน

      SAME

    • @erawatyly385
      @erawatyly385 10 หลายเดือนก่อน +1

      SAME BOOBOOBEAR

    • @Donpa07
      @Donpa07 10 หลายเดือนก่อน

      is it dxd battlegrounds?

    • @bozboyzplaytime7386
      @bozboyzplaytime7386 6 หลายเดือนก่อน

      Bro where are the folders 😭

  • @selvoid
    @selvoid 10 หลายเดือนก่อน +56

    I just found out, if you don't have moon animator, and your using the normal animator, rename the key frames to "Hit" instead of creating a animation event. That's what i did and it worked

    • @bruhwhosjustin1790
      @bruhwhosjustin1790 10 หลายเดือนก่อน +2

      what keyframes?

    • @selvoid
      @selvoid 10 หลายเดือนก่อน +2

      @@bruhwhosjustin1790 the key frame right before the punch

    • @kalebanimations3786
      @kalebanimations3786 10 หลายเดือนก่อน +1

      in what folder?

    • @mr.flowerflavor4356
      @mr.flowerflavor4356 10 หลายเดือนก่อน

      sir i need help doing a combat system could you help me? if yes pls help me. also a saturo fan btw

    • @YourLocalEditzz
      @YourLocalEditzz 10 หลายเดือนก่อน

      How do u rename?

  • @thatidiotoverthere6311
    @thatidiotoverthere6311 8 หลายเดือนก่อน +29

    Finally I understand animations events, and they’re just what I need! Amazing tut man, earned a sub for sure!

    • @stanleymiles2693
      @stanleymiles2693 5 หลายเดือนก่อน +2

      yo how to create the animation event thing

    • @seadrown6252
      @seadrown6252 5 หลายเดือนก่อน

      left click and press insert object then select 'animation' or 'animator' or whatever you need@@stanleymiles2693

    • @Fudilitos
      @Fudilitos หลายเดือนก่อน

      M2 click on the area where you put the key frame and click on "add event on here" or something like that

  • @KuyaYe
    @KuyaYe 10 หลายเดือนก่อน +59

    Bro your tutorials are so detailed and simple. Instead of me just copying what you do i review the things you did so i can apply them And learn from those things, You earned a sub from me

  • @dariussweaty2374
    @dariussweaty2374 10 หลายเดือนก่อน +23

    Damn man, I couldn't figure why the animations were not playing for my friend, and you just solved my problem casually. Thanks!

    • @TrueRed96
      @TrueRed96 8 หลายเดือนก่อน

      thats a kinda funny glitch that happens with roblox, Animation is private, if it continues, consider playing offline animations

  • @random9159
    @random9159 8 หลายเดือนก่อน +16

    THIS TUTORIAL IS GREAT! one thing is, guys.. dont give up the first time u get an error, watch the video to the end and keep trying and testing things till it works

    • @aaaeebaaee
      @aaaeebaaee 7 หลายเดือนก่อน +1

      the thing is i dont even get errors

    • @Thedudemandudemandude
      @Thedudemandudemandude 4 หลายเดือนก่อน

      @@aaaeebaaeeSame plus I speant two hours on this and it did NOTHING

    • @jacksonsalles4078
      @jacksonsalles4078 3 หลายเดือนก่อน

      for me it says "attempt to index nil with 'WaitForChild' "
      like is the script it self the problem?

    • @raseli-sp7oc
      @raseli-sp7oc 2 หลายเดือนก่อน

      @@Thedudemandudemandude because you are dumb :/

    • @raseli-sp7oc
      @raseli-sp7oc 2 หลายเดือนก่อน

      @@jacksonsalles4078 no, you gotta be more specific dude, whats the full error

  • @genuinegoofball097
    @genuinegoofball097 7 หลายเดือนก่อน +5

    thank you! i am creating a game. ive made a punch animation and other things. i recommend using 120 fps for the punches so they are faster!
    overall i love this tutorial

  • @Car_demon87
    @Car_demon87 6 หลายเดือนก่อน +41

    why doesnt it work?

    • @Iraqi_samurai
      @Iraqi_samurai 4 หลายเดือนก่อน +2

      What’s the matter

    • @Car_demon87
      @Car_demon87 4 หลายเดือนก่อน

      @@Iraqi_samurai so basically i used the script like he told me and other shit and when i tried it didnt work like wtf

    • @josephvacco8790
      @josephvacco8790 3 หลายเดือนก่อน +2

      @@Car_demon87you didn’t copy something right

    • @Iraisedyou
      @Iraisedyou 3 หลายเดือนก่อน

      You probably had it under a “normal script” instead of “local script”

    • @BAALEN_OFFICIAL
      @BAALEN_OFFICIAL 3 หลายเดือนก่อน +1

      Yes

  • @coreclams40312
    @coreclams40312 10 หลายเดือนก่อน +9

    Make it that when you use m1s,you get slower like in all of battlegrounds games.
    This video is also entertaining,not only informative.

    • @Literally_Kirby
      @Literally_Kirby 4 หลายเดือนก่อน

      I would look at a sprint script and see how that works then apply is so then if an animation is playing the playerSpeed would equal to ur new value, pudeocode would be this:
      defaultSpeed = 1000 // 1000 is just an example, this will also be ur actual speed
      baseSpeed = deafultSpeed
      slowSpeed = defaultSpeed * 0.2 // 0.2 is also just an example
      if animation is playing then
      defaultSpeed = slowSpeed
      else
      defaultSpeed = baseSpeed
      end

  • @zuzustarboy
    @zuzustarboy 11 หลายเดือนก่อน +22

    ayo, very fire video man! Keep up the good work :]

  • @aledcaa5036
    @aledcaa5036 11 หลายเดือนก่อน +8

    I was here before 100 views. I know, this video will be kinda popular. So im old tomato’s fan!

    • @termai853
      @termai853 11 หลายเดือนก่อน

      Me too

  • @Veas_0000
    @Veas_0000 หลายเดือนก่อน +7

    local player = game.Players.LocalPlayer
    local character = player.Character or player.CharacterAdded:Wait()
    local humanoid = character:WaitForChild("Humanoid")
    local userInputService = game:GetService("UserInputService")
    local dashDistance = 50
    local dashCooldown = 1
    local lastDash = 0
    local function dash(direction)
    if tick() • lastDash >= dashCooldown then
    local rootPart = character:WaitForChild("HumanoidRootPart")
    local dashVector = rootPart.CFrame.LookVector * direction.Z + rootPart.CFrame.RightVector * direction.X
    rootPart.Velocity = dashVector * dashDistance
    lastDash = tick()
    end
    end
    userInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.W then
    dash(Vector3.new(0, 0, -1))
    elseif input.KeyCode == Enum.KeyCode.S then
    dash(Vector3.new(0, 0, 1))
    elseif input.KeyCode == Enum.KeyCode.A then
    dash(Vector3.new(-1, 0, 0))
    elseif input.KeyCode == Enum.KeyCode.D then
    dash(Vector3.new(1, 0, 0))
    end
    end)

  • @NeonForever
    @NeonForever 10 หลายเดือนก่อน +2

    So satisfying watching somebody code

  • @PurpNite-fb7ny
    @PurpNite-fb7ny 4 หลายเดือนก่อน +2

    goated vid it helped me so much for my game

  • @sqi_d
    @sqi_d 9 หลายเดือนก่อน +57

    For those of you who want the character to slow down while punching, here is my modified CombatServer script that does exactly that:
    local rp = game:GetService("ReplicatedStorage")
    local remotes = rp:WaitForChild("Remotes")
    local animations = rp:WaitForChild("Animations")
    local punchRemote = remotes:WaitForChild("Punch")
    local ss = game:GetService("ServerStorage")
    local modules = ss:WaitForChild("Modules")
    local TomatoHitbox = require(modules:WaitForChild("TomatoHitbox"))
    local MAX_COMBO = 4
    local function changeCombo(char)
    local combo = char:GetAttribute("Combo")
    if combo >= MAX_COMBO then
    char:SetAttribute("Combo",1)
    else
    char:SetAttribute("Combo",combo + 1)
    end
    end
    local function getPunchAnim(char)
    local combo = char:GetAttribute("Combo")
    local punchAnims = animations:WaitForChild("Combat"):GetChildren()
    local currAnim = punchAnims[combo]
    return currAnim
    end
    local function stopAnims(object)
    for i,v in pairs(object:GetPlayingAnimationTracks()) do
    v:Stop()
    end
    end
    punchRemote.OnServerEvent:Connect(function(player)
    local char = player.Character
    local hum = char:WaitForChild("Humanoid")
    local humRp = char:WaitForChild("HumanoidRootPart")
    local attacking = char:GetAttribute("Attacking")
    local punching = char:GetAttribute("Punch")
    if attacking or punching then return end
    char:SetAttribute("Attacking",true)
    char:SetAttribute("Punch",true)
    changeCombo(char)
    stopAnims(hum)

    hum.WalkSpeed = 8 -- THIS IS A LINE I ADDED
    local newHitbox = TomatoHitbox.new()
    newHitbox.Size = Vector3.new(4.5, 5, 4)
    newHitbox.CFrame = humRp
    newHitbox.Offset = CFrame.new(0,0,-1.5)
    newHitbox.onTouch = function(enemyHum)
    if enemyHum ~= hum then
    enemyHum:TakeDamage(10)
    end
    end
    local playPunchAnim = hum:LoadAnimation(getPunchAnim(char))
    playPunchAnim.KeyframeReached:Connect(function(kf)
    if kf == "Hit" then
    char:SetAttribute("Attacking",false)
    task.spawn(function()
    hum.WalkSpeed = 15 -- THIS IS ANOTHER LINE I ADDED

    newHitbox:Start()
    task.wait(0.1)
    newHitbox:Stop()
    newHitbox:Destroy()
    end)
    if char:GetAttribute("Combo") == MAX_COMBO then
    task.wait(1)
    end
    char:SetAttribute("Punch",false)
    end
    end)
    playPunchAnim:Play()
    end)
    Enjoy :)

    • @choFu31
      @choFu31 9 หลายเดือนก่อน +4

      thanks dude

    • @sqi_d
      @sqi_d 9 หลายเดือนก่อน +2

      @@choFu31 no problem!

    • @dejv9427
      @dejv9427 9 หลายเดือนก่อน +2

      my character is not able to punch, idk why tho
      @@sqi_d

    • @Dohruu
      @Dohruu 9 หลายเดือนก่อน

      you need to create animation@@dejv9427

    • @user-mx2be2tr2x
      @user-mx2be2tr2x 9 หลายเดือนก่อน +2

      Infinite yield possible on 'ServerStorage:WaitForChild("Modules")' , how to fix this problem?

  • @brennonhunter-chamberlain6995
    @brennonhunter-chamberlain6995 4 หลายเดือนก่อน +3

    I like how u scripted it step by step as if you were a beginner, forgetting steps before making it work completely. This explains why it doesn't work and not just giving answers. Best scripting tut vid I've seen in years tbh good job.

  • @moviecentrul
    @moviecentrul 11 หลายเดือนก่อน +2

    can someone help me, i did the script and stuff but It Still Only Plays 1 animation

    • @bulitin2434
      @bulitin2434 5 หลายเดือนก่อน

      me too

  • @Samiro90_Offical
    @Samiro90_Offical 6 หลายเดือนก่อน +2

    very understandable and helpfull! Tysm

  • @ilteris3887
    @ilteris3887 11 หลายเดือนก่อน +335

    i cant punch

    • @crusader_gaming8273
      @crusader_gaming8273 10 หลายเดือนก่อน +182

      Try using your hands

    • @Dastyyyyy
      @Dastyyyyy 10 หลายเดือนก่อน +29

      @@crusader_gaming8273😂😂😂

    • @S0n1cHedghog-xe4fy
      @S0n1cHedghog-xe4fy 10 หลายเดือนก่อน +22

      @crusader_gaming8273 LOL

    • @Rel_yt
      @Rel_yt 10 หลายเดือนก่อน

      @@crusader_gaming8273 try using your brain

    • @AnoopMahendrakar82
      @AnoopMahendrakar82 10 หลายเดือนก่อน +13

      @@Rel_ytOHHHHHHHHH

  • @Baolapao
    @Baolapao 11 หลายเดือนก่อน +7

    So if you arent using moon animator what should you do instead of the animation event im guessing just rename the keyframe where the punch is at its farthest point

    • @KC1598-ll3nr
      @KC1598-ll3nr 10 หลายเดือนก่อน +1

      How to I rename

    • @TrueRed96
      @TrueRed96 8 หลายเดือนก่อน

      i think almost every animator has the event thing, unless you're doing it outside roblox studio

  • @dannyruffin2618
    @dannyruffin2618 10 หลายเดือนก่อน +1

    Man bro your amazing,I can’t even animate but now I’ll try, thanks

  • @denominatorman
    @denominatorman 10 หลายเดือนก่อน +2

    beautiful. peak art. unbearably incredible.

  • @kronic_energy
    @kronic_energy 7 หลายเดือนก่อน +8

    if you dont want the character to still walk at a normal speed while punching use this modified CombatClient:
    local rp = game:GetService("ReplicatedStorage")
    local remotes = rp:WaitForChild("Remotes")
    local animations = rp:WaitForChild("Animations")
    local punchRemote = remotes:WaitForChild("Punch")
    local ss = game:GetService("ServerStorage")
    local modules = ss:WaitForChild("Modules")
    local TomatoHitbox = require(modules:WaitForChild("TomatoHitbox"))
    local MAX_COMBO = 4
    local function changeCombo(char)
    local combo = char:GetAttribute("Combo")
    if combo >= MAX_COMBO then
    char:SetAttribute("Combo",1)
    else
    char:SetAttribute("Combo",combo + 1)
    end
    end
    local function getPunchAnim(char)
    local combo = char:GetAttribute("Combo")
    local punchAnims = animations:WaitForChild("Combat"):GetChildren()
    local currAnim = punchAnims[combo]
    return currAnim
    end
    local function stopAnims(object)
    for i,v in pairs(object:GetPlayingAnimationTracks()) do
    v:Stop()
    end
    end
    punchRemote.OnServerEvent:Connect(function(player)
    local char = player.Character
    local hum = char:WaitForChild("Humanoid")
    local humRp = char:WaitForChild("HumanoidRootPart")
    local attacking = char:GetAttribute("Attacking")
    local punching = char:GetAttribute("Punch")

    if attacking or punching then
    char.Humanoid.WalkSpeed = 4
    wait(0.5)
    char.Humanoid.WalkSpeed = 16
    end
    if attacking or punching then return end
    char:SetAttribute("Attacking",true)
    char:SetAttribute("Punch",true)
    changeCombo(char)
    stopAnims(hum)
    local newHitbox = TomatoHitbox.new()
    newHitbox.Size = Vector3.new(6,6,6)
    newHitbox.CFrame = humRp
    newHitbox.Offset = CFrame.new(0,0,-2.5)
    newHitbox.onTouch = function(enemyHum)
    if enemyHum ~= hum then
    enemyHum:TakeDamage(10)
    end
    end
    local playPunchAnim = hum:LoadAnimation(getPunchAnim(char))
    playPunchAnim.KeyframeReached:Connect(function(kf)
    if kf == "Hit" then
    char:SetAttribute("Attacking",false)
    task.spawn(function()
    newHitbox:Start()
    task.wait(0.1)
    newHitbox:Stop()
    newHitbox:Destroy()
    end)
    if char:GetAttribute("Combo") == MAX_COMBO then
    task.wait(1)
    end
    char:SetAttribute("Punch",false)
    end
    end)
    playPunchAnim:Play()
    end)

    • @imsiliconicbull1404
      @imsiliconicbull1404 3 หลายเดือนก่อน

      Im pretty sure thats combat server?

    • @kodatoYT
      @kodatoYT 3 หลายเดือนก่อน

      why is it so delayed

  • @Bacon9123
    @Bacon9123 9 หลายเดือนก่อน +3

    Hey, i got a question for you, how did you reflect the animation 1 and 2?

    • @Yeblen
      @Yeblen 8 หลายเดือนก่อน

      moon animator has it

    • @TLWM111
      @TLWM111 7 หลายเดือนก่อน

      @@Yeblen whats the keybind

    • @randoAnim
      @randoAnim 7 หลายเดือนก่อน

      @@TLWM111 control r

    • @TLWM111
      @TLWM111 7 หลายเดือนก่อน

      @@randoAnim I already know it now, But thanks mate

  • @neonberon553
    @neonberon553 2 หลายเดือนก่อน

    You saved alot of my time. Thanks for your hitbox system.

  • @liamaumareva6278
    @liamaumareva6278 5 หลายเดือนก่อน

    Been working on using python to write games and before that course started i was confused on what was being said on the vid. Now I fully understand some of the aspects of the code. While not all of them (like the child commands) I can sort of interpret the code for roblox as python code. Both have very similar properties, just some writing differences.

  • @DeathOnce
    @DeathOnce 9 หลายเดือนก่อน +3

    hey I need help I'm getting the error "Infinite yield possible on 'ReplicatedStorage:WaitForChild("Remotes")" what can I do to fix this?

    • @floppasayshi
      @floppasayshi 8 หลายเดือนก่อน

      you spelt the Remotes folder wrong

    • @1LightZ7
      @1LightZ7 7 หลายเดือนก่อน

      @@floppasayshi no its spelled right i have the same issue but its with module

    • @thatoneguyeveryonehates789
      @thatoneguyeveryonehates789 6 หลายเดือนก่อน

      you probably already fixed this but when I fixed it I felt pretty stupid. I put the Remotes folder inside of the Animations folder instead of ReplicatedStorage, and when I put the Remotes folder into ReplicatedStorage it worked.

    • @floppasayshi
      @floppasayshi 6 หลายเดือนก่อน

      @@1LightZ7 then the folder is on wrong location

    • @1LightZ7
      @1LightZ7 6 หลายเดือนก่อน

      @@floppasayshi very helpful -_-

  • @Glitcheey
    @Glitcheey 10 หลายเดือนก่อน +9

    Hey! I have followed this script almost entirely one to one, but for some reason whenever I start punching the error "ServerStorage.Modules.TomatoHitbox:159: attempt to call missing method '_Visualize' of table" floods my output repeatedly, and eventually causes massive lag to start building up. I also don't deal damage to the dummy at all. Any help would be greatly appreciated!

    • @pulograin
      @pulograin 10 หลายเดือนก่อน +3

      Send your server script

    • @YOSTUDIOS45
      @YOSTUDIOS45 8 หลายเดือนก่อน

      same

    • @JozinZeBazin
      @JozinZeBazin 7 หลายเดือนก่อน

      i hvanet watched the tutorial yet but i see that it says "TomatoHitbox" and the youtuber who made this tutorial´s name is... The Tomato, so im guessing if your roblox name isnt Tomato or something(but the youtubers rblx acc name would probably be) then i think in that part of the video youre supposed to write, like something else, maybe your username. But im not good in scripting language and i havent watched the tutorial yet so this is unlikely.

    • @Glitcheey
      @Glitcheey 7 หลายเดือนก่อน

      @@JozinZeBazin Yeah that's not the problem. TomatoHitbox is just the name of the module, it has no connections to any username

    • @NarutoKinnie_yt
      @NarutoKinnie_yt 5 หลายเดือนก่อน

      @@pulograinhey I need help, when I put animations on the 20th scetence on combat server it says “unknown global user”

  • @MoonxBlades
    @MoonxBlades 6 หลายเดือนก่อน +1

    GREAT VIDEO KEEP UP THE WORK!

  • @nah1027
    @nah1027 9 หลายเดือนก่อน +1

    I made a little animation and a code here but my punches aren't doing any damage and they're all coming out at the same time. And i used this tutorial

  • @Mrwoof_tophat
    @Mrwoof_tophat 11 หลายเดือนก่อน +7

    can someone help?
    i copy the code from the link but it still doesnt work.
    i have r6 and the animation setting on standard
    PLEASE HELP

    • @fiolet_shmonya
      @fiolet_shmonya 11 หลายเดือนก่อน

      Same

    • @Angel-fl6gl
      @Angel-fl6gl 10 หลายเดือนก่อน

      still nobody knows how to fix it?@@fiolet_shmonya
      i also have this trouble Touched is not a valid member of Model "Workspace.Model.Model".
      i did absoulutely all right..

    • @insertgenericgamingchannel6628
      @insertgenericgamingchannel6628 10 หลายเดือนก่อน

      what error are you getting

    • @Mrwoof_tophat
      @Mrwoof_tophat 10 หลายเดือนก่อน

      ok so idk how but i made it work!!!!!!!!
      all i need now is just a slower cooldown

    • @Antho_Draw
      @Antho_Draw 2 วันที่ผ่านมา

      @@Mrwoof_tophat HOOOOOOOOWWWW

  • @Cristianogoat2009
    @Cristianogoat2009 11 หลายเดือนก่อน +14

    tomato can you please make it a public model so we can use it right away it would be really helpful
    thanks.

    • @MaskedManStraw
      @MaskedManStraw 10 หลายเดือนก่อน +5

      Lazy.

    • @yellowboi2879
      @yellowboi2879 10 หลายเดือนก่อน +2

      dawg you still need to spoof/make the animations yourself also its a tutorial to make your own battlegrounds not steal your own battlegrounds game

  • @arthurlebedev9848
    @arthurlebedev9848 10 หลายเดือนก่อน +2

    VERY GOOD ANIMATION I JUST LOVE IT🤩

  • @leakr-w4z
    @leakr-w4z วันที่ผ่านมา

    It wasnt repeating but turns out in one of them i forgot to make an event and now it works :D

  • @spidei1891
    @spidei1891 10 หลายเดือนก่อน +1

    I can only activate the first hit and it doesn't work again.
    Forget it, I realized I forgot to put an event in the animation and now it works.

  • @Angel-fl6gl
    @Angel-fl6gl 10 หลายเดือนก่อน

    BRO TYYYY VERY MUCH YOU JUST SAVING MY PROJECT'S LIFE

  • @yusufkouba2449
    @yusufkouba2449 7 หลายเดือนก่อน +1

    GUYS HOW DO U ADD ANIMATION EVENT?

  • @Daddygojo-luffy
    @Daddygojo-luffy หลายเดือนก่อน

    this is the best feedback tysm

  • @MRC9277
    @MRC9277 5 หลายเดือนก่อน

    Ty man now my and my friend can develop our battlegrounds game

  • @ArtnonerfOfficial
    @ArtnonerfOfficial หลายเดือนก่อน

    1 creator + not understand = pain learning but it helpful thanks tomato

  • @Timskat
    @Timskat 10 หลายเดือนก่อน +1

    YESSSS TYSM NOW I CAN DO COMBAT SYSTEM IN MY GAME!!!!!!!

  • @WeebGround
    @WeebGround 4 หลายเดือนก่อน +1

    for some reason it doesnt work for me....
    i used normal roblox animator

  • @Tvmanmal
    @Tvmanmal 3 หลายเดือนก่อน

    The song hits like it’s a very good song

  • @sharkjester2434
    @sharkjester2434 8 หลายเดือนก่อน

    Thank you this helped a lot

  • @Endermanmo
    @Endermanmo 21 วันที่ผ่านมา

    Helps a lot thanks

  • @lolfam-sm3uv
    @lolfam-sm3uv 4 หลายเดือนก่อน

    Thank you so much bro I’m making my own battlegrounds game and thank you for helping us make it our game will be called color battlegrounds

  • @MetaBlox_Official_
    @MetaBlox_Official_ วันที่ผ่านมา

    I made all the punching animations before watching this and now have to redo all of them. : (

  • @vortexus0
    @vortexus0 10 หลายเดือนก่อน +1

    It is too basic scripting, the system is basic and efficient, it is good for players who want to become true developers, a very useful video!

  • @UTENSILS483
    @UTENSILS483 10 หลายเดือนก่อน +2

    what do i do when this eror pops up Infinite yield possible on 'ServerStorage:WaitForChild("Modules")'

    • @Sansicmp
      @Sansicmp 10 หลายเดือนก่อน

      same problem 😭😭😭😭

    • @UTENSILS483
      @UTENSILS483 10 หลายเดือนก่อน

      😭😭😭😭😭😭😭😭@@Sansicmp

    • @Sansicmp
      @Sansicmp 10 หลายเดือนก่อน

      @@UTENSILS483 I found out why, u gotta go through the whole vid and add hitbox 😭

  • @blp_tck
    @blp_tck 10 หลายเดือนก่อน

    thank you so much im creating alot today.

  • @dusksroboticsandentertainm822
    @dusksroboticsandentertainm822 10 หลายเดือนก่อน +2

    Can you do a part 3 for abilities and adding new characters?

  • @dragonnova4267
    @dragonnova4267 8 หลายเดือนก่อน +2

    I copy everything exactly the same and i got like 8 Errors! 😭

    • @dragonnova4267
      @dragonnova4267 8 หลายเดือนก่อน +1

      Not even 1 punch animation is going through 😭

  • @zakariabendjebbar6568
    @zakariabendjebbar6568 7 หลายเดือนก่อน +1

    Thanks bro i think im gonna make m'y battleground but only for me and m'y Friend so i Can add their own attack

  • @trxlly
    @trxlly 10 หลายเดือนก่อน +1

    Thanks

  • @DummyTSB
    @DummyTSB 6 หลายเดือนก่อน +1

    Bro i just COPIED all the scripts but combat system dont working((

  • @ZEMITH_EDITZ
    @ZEMITH_EDITZ 3 วันที่ผ่านมา +1

    okay so i followed all the directions... i click the game... i click... nothing happens :/

  • @gold-egaming9280
    @gold-egaming9280 8 หลายเดือนก่อน +2

    Question. What do I do if when I put in the Line of code that makes it so you can punch more It stops Punching?

  • @vicraack5134
    @vicraack5134 9 หลายเดือนก่อน

    ty, im gonna make an bg game with my friend, tysm

  • @lyricalcreepz481
    @lyricalcreepz481 7 หลายเดือนก่อน

    You got yourself a new subscriber

  • @LeapInno
    @LeapInno 9 หลายเดือนก่อน

    Thanks for this.

  • @owenrossier3500
    @owenrossier3500 8 หลายเดือนก่อน

    to make it more faster with the animation drag the keyframes more closer to echother

  • @cafezinhodastripasdomickey
    @cafezinhodastripasdomickey 7 หลายเดือนก่อน

    Thx now ican make my sandbox/battlegrounds

  • @EditEditr
    @EditEditr 2 หลายเดือนก่อน +1

    i did this tutuorial and for some reason my punches only come once. Then when im done my 4th punch, i mcant punch anymore

  • @xottxc
    @xottxc 10 หลายเดือนก่อน

    THANK YOU SO MUCHH ITS WORKING

  • @casha1488
    @casha1488 7 หลายเดือนก่อน +1

    Hi, this doesn't work.
    My character only deals 1 hit and that's it.

  • @dividedzero3239
    @dividedzero3239 3 หลายเดือนก่อน

    thank you Bro (works for me)

  • @user-pf5iq8wf5y
    @user-pf5iq8wf5y 29 วันที่ผ่านมา

    u guys have to turn on "Enable Studio acces to API service"

  • @BadLiarRRGT
    @BadLiarRRGT 7 หลายเดือนก่อน +2

    can you PLEASE make it so the pastebin scripts have the finished result. because the main doesnt have the saem script as in the video.

  • @xT2_ii
    @xT2_ii 3 หลายเดือนก่อน +1

    8:32 personal stamp

    • @xT2_ii
      @xT2_ii 3 หลายเดือนก่อน

      local rp = game:GetService("ReplicatedStorage")
      local remotes = rp:WaitForChild("Remotes")
      local animations = rp:WaitForChild("Animations")
      local punchRemote = remotes:WaitForChild("Punch")
      local ss = game:GetService("ServerStorage")
      local modules = ss:WaitForChild("Modules")
      local TomatoHitbox = require(modules:WaitForChild("TomatoHitbox"))
      local MAX_COMBO = 4
      local function changeCombo(char)
      local combo = char:GetAttribute("Combo")
      if combo >= MAX_COMBO then
      char:SetAttribute("Combo",1)
      else
      char:SetAttribute("Combo",combo + 1)
      end
      end
      local function getPunchAnim(char)
      local combo = char:GetAttribute("Combo")
      local punchAnims = animations:WaitForChild("Combat"):GetChildren()
      local currAnim = punchAnims[combo]
      return currAnim
      end
      local function stopAnims(object)
      for i,v in pairs(object:GetPlayingAnimationTracks()) do
      v:Stop()
      end
      end
      punchRemote.OnServerEvent:Connect(function(player)
      local char = player.Character
      local hum = char:WaitForChild("Humanoid")
      local humRp = char:WaitForChild("HumanoidRootPart")
      local attacking = char:GetAttribute("Attacking")
      local punching = char:GetAttribute("Punch")
      if attacking or punching then return end
      char:SetAttribute("Attacking",true)
      char:SetAttribute("Punch",true)
      changeCombo(char)
      stopAnims(hum)

      hum.WalkSpeed = 8 -- THIS IS A LINE I ADDED
      local newHitbox = TomatoHitbox.new()
      newHitbox.Size = Vector3.new(4.5, 5, 4)
      newHitbox.CFrame = humRp
      newHitbox.Offset = CFrame.new(0,0,-1.5)
      newHitbox.onTouch = function(enemyHum)
      if enemyHum ~= hum then
      enemyHum:TakeDamage(10)
      end
      end
      local playPunchAnim = hum:LoadAnimation(getPunchAnim(char))
      playPunchAnim.KeyframeReached:Connect(function(kf)
      if kf == "Hit" then
      char:SetAttribute("Attacking",false)
      task.spawn(function()
      hum.WalkSpeed = 15 -- THIS IS ANOTHER LINE I ADDED

      newHitbox:Start()
      task.wait(0.1)
      newHitbox:Stop()
      newHitbox:Destroy()
      end)
      if char:GetAttribute("Combo") == MAX_COMBO then
      task.wait(1)
      end
      char:SetAttribute("Punch",false)
      end
      end)
      playPunchAnim:Play()
      end)

  • @wololoman
    @wololoman 2 วันที่ผ่านมา

    i don’t like how all battlegrounds games put so little effort into simple punch and kick anims, and i know the animators might not want to do them but seriously, i want a different battlegrounds game that has quality content and has a good community

  • @rip_tihttt9580
    @rip_tihttt9580 9 หลายเดือนก่อน +2

    how u move hand btw? i cant move it

    • @magcake_
      @magcake_ 5 หลายเดือนก่อน

      while animating click R

  • @DiamondsRulesPower
    @DiamondsRulesPower 8 หลายเดือนก่อน +1

    I got a slight problem any help I'd appreciate but for some reason I can't punch I set it to R6 I put in the scripts and stuff can anyone help out?

  • @Antione_Da_Gawd
    @Antione_Da_Gawd 7 วันที่ผ่านมา +1

    What button do press to punch

  • @vigo6898
    @vigo6898 11 หลายเดือนก่อน

    nice
    thanks btw i rilly wanted to make this

  • @DrStudioRoblox
    @DrStudioRoblox 3 หลายเดือนก่อน +1

    It doesn't help me, it just gives me a blow that doesn't hurt, and I already checked and I don't know what to do, IT'S NOT WORKING FOR ME, I've tried everything, help me ;-; I already copied it practically the same, help

  • @hyperfx0636
    @hyperfx0636 10 หลายเดือนก่อน +2

    How did you make the 2nd punch mirror like that?

  • @KiraYoshikage125
    @KiraYoshikage125 5 หลายเดือนก่อน +1

    HOW TO DID EVENT ON BASIC ROBLOX ANIMATION

  • @Elpapunadamisterioso
    @Elpapunadamisterioso 10 หลายเดือนก่อน

    Tanks bro, i love you

  • @Cinemaman_Edits
    @Cinemaman_Edits 10 หลายเดือนก่อน +1

    How to do it on Roblox animation

  • @devinairbharatnatyam
    @devinairbharatnatyam 2 หลายเดือนก่อน +1

    if you are using the roblox editor, how do you 'export' the animation?

    • @Kaedxn_S
      @Kaedxn_S หลายเดือนก่อน

      Publish to Roblox

  • @WindyPivot
    @WindyPivot 17 วันที่ผ่านมา

    markerreached is the new way i think to do animation events

  • @kirbytsbg
    @kirbytsbg หลายเดือนก่อน +1

    it doesnt play a animation for me and it says Infinite yield possible on 'ServerStorage:WaitForChild("Modules")' Can you guys help or I'm going to put a firework to my head and set it off

    • @Antho_Draw
      @Antho_Draw 2 วันที่ผ่านมา

      SAME

  • @heyitseden6429
    @heyitseden6429 29 วันที่ผ่านมา +1

    For some reason whenever i click it doesnt swing or do an animation and im pretty sure i followed all the steps

  • @Chip6900
    @Chip6900 4 หลายเดือนก่อน

    deserves a like:) i can only hit once tho but deserves a like

  • @pepsitank132
    @pepsitank132 4 หลายเดือนก่อน

    Thanks cause i wanna make a battlegrounds game similar to transformers:))

  • @Crush_Paint
    @Crush_Paint 11 หลายเดือนก่อน +1

    Help My Animations are not working

  • @emanuelamesi1573
    @emanuelamesi1573 11 หลายเดือนก่อน +1

    FINE!

  • @tipovor
    @tipovor 9 หลายเดือนก่อน +2

    idk why, but i can do only one punch, despite the fact that i have full script

    • @Zynquorax
      @Zynquorax 13 วันที่ผ่านมา

      im too!

  • @boltlessOffical
    @boltlessOffical 10 หลายเดือนก่อน +2

    Can you make a simple one for beginners because this one is way too hard for me as I just starting scripting roblox studio this year

  • @zakiplays6807
    @zakiplays6807 11 หลายเดือนก่อน +1

    why can i only hit once and the hitbox doesnt even show up

  • @user-vf9vb7sj9l
    @user-vf9vb7sj9l 10 หลายเดือนก่อน +1

    we don’t have a moon animator

  • @NarutoKinnie_yt
    @NarutoKinnie_yt 5 หลายเดือนก่อน +1

    Guys! I need help, when I put animations on the 20th scetence on combat server it says “unknown global user”

  • @xjackkx
    @xjackkx 9 หลายเดือนก่อน +2

    Does anyone know why mine only knocks once?

    • @Tiejj
      @Tiejj 8 หลายเดือนก่อน

      Me too bruh 😭

  • @dull444
    @dull444 9 หลายเดือนก่อน +1

    im getting an error called "Infinite yield possible on 'ServerStorage:WaitForChild("Modules")'

    • @bebra3392
      @bebra3392 8 หลายเดือนก่อน

      create a folder named Modules and put the module into it

    • @ASpectorVloid
      @ASpectorVloid 5 หลายเดือนก่อน

      what module
      @@bebra3392

  • @jrozlie2280
    @jrozlie2280 หลายเดือนก่อน

    i reccomend yall to watch the video in 0.25 speed as the speed is too fast specially in the animations part

  • @Zer0Ntp
    @Zer0Ntp 8 หลายเดือนก่อน +1

    Hello! I don't like hitboxes but i like your work, so can you make without hitboxes?

    • @slowpurplealien
      @slowpurplealien 8 หลายเดือนก่อน

      You can do ontouch with the enemyhum

  • @JGamepraiz
    @JGamepraiz 5 หลายเดือนก่อน

    Thx bro

  • @geloyellow7888
    @geloyellow7888 4 หลายเดือนก่อน +1

    i edited the game in studio and the punching walking dashing and basically any animation doesnt work and i didnt mess with anything i just clicked edit in studio and tried the game and then well the animations didnt work. please fix this thank you and have a good day :)