#How do i make a hitbox attached to a dummy that detects when being punched by both arms
172 messages · Page 1 of 1 (latest)
combat games are not for beginners, try something easier like a jumping simulator
follow this
yes
im not by myself and im only strugling on hitboxes
and hitboxes arent only used for combat games
it will be useful to learn it now
well you just answered on your question
No
wdym
** You are now Level 4! **
no they r extremely buggy
but all i want is just some modifications/help to the script so that it detects when both arms and only arms hit it it will detect it and print it
they're not
skill issue
lol
kind of are but besides the point im using GetPartsInPart
but seriously could u help me?
thats why i even came to this channe;
that function is used in a different case
you're new; learn the basics
from there you'll go to understand things like this
ok but i have tried touched and it doesnt work well
ok
patience
so then how do i make a .Touch script
learn
what
yea you got me, we have no idea how how to help, nope, no idea whatsoever, never ever even made a hitbox before, not even once, and probably never will, it just eludes us as to how exactly hitboxes work, much like it eludes you. ig we'll leave this to someone who actually knows what they're doing. hope you find the help you need 
no im jst annoyed at him for just saying "learn" besides now im kinda getting it workin
it prints when it collides with the body parts
rn im making it just print when it collides wit harms
arms
you're forcing yourself to learn a thing that you'll forget 2 days later you've done this
run the damage on a server script
ye i changed it to that
what do u want me to do?
learn basics? ðŸ˜
tbh i'm mostly confused what the matter is of "punched by both arms" does that mean at the same time? or is this just a generic battlegrounds hitbox like the one i literally just showed?
the latter
plz streamable
Yea ts what I hate about new scripters
i write down my scripts
What r u tryna do
idk why it didnt show the output but ok
make a hitbox
Ok?
they're tryna make a battlegrounds game
lemme use OBs
because of course they are...
mo
no i aint
im tryna make a story game
they gonna add kj to it
with weapons
i consider pve combat games the same as battlegrounds it's all the same principle, combat mechanics in general, it's just overrun with references to tsb
so easier to use that language
then what fighting games dont u consider battlegrounds
ok but rn all it does is print the part it collides with
how do i restrict it to only the arms
specifying the difference between punching zombies and punching players doesn't really change the underlying mechanics
ok
most games use hitboxes, not 'touching the arms', and often those hitboxes are much bigger than the arms themselves
isnt there like a few of those on dev forum
Yea but I js make my own for every game I make
I like making my own stuff tho
Cause I know what I'm going for and what I need
wait was i stupid to make the hitbox on the dummy and not on the arms so whe nit collides with a player or entity it takes their health and plays the taking dmg anim?
** You are now Level 5! **
Make a new part every punch
Then destroy it w debris
oh ok i make a new part and its always to the arm
you kinda need both?
oh ok then thats fine
U can js add a weld
And set p0 to hitbox and c0 to Cframe.new(0,0,2)
i used a rigid constraint to attach the hitbox with the dummy
should i change it to weld?
i think weld would break
?
y'know there's a bunch of tutorials on how to make bg/fighting/combat/whatever-you-want-to-call-it games https://www.youtube.com/watch?v=E02er6mwsrI&list=PLH1di03gos6aX70lrhAVRittXJZaUA9dO&index=1
How To Make a BATTLEGROUNDS GAME In Roblox Studio 2024
Get all of my project files on my patreon:
https://bit.ly/3SOBP6J
JOIN THE DISCORD!
https://discord.gg/cztJHYSfVE
UI Model:
https://bit.ly/3VT9QFW
What is Roblox? ROBLOX is an online virtual playground and workshop, where kids of all ages can safely interact, create, have fun, and learn. ...
Yo wht
will this show me how to make a hitbox
prob
Alr
ye?
made it so it prints every time it detects a collision
but how do i make it so it detects the arms and when it does it plays the animation of being hit
ye, i skipped over it coz i want to use my own techniques but it's a nice rough outline of how to put everything together
u know which parts show how to?
idk it's somewhere in there
if you just want hitboxes there are tutorials for that too
thx so much
hitbox https://www.youtube.com/watch?v=gxYSxENGp-E hitbox https://www.youtube.com/watch?v=UobdgeGstzg hitbox https://www.youtube.com/watch?v=LbvGgHogz6g hitbox https://www.youtube.com/watch?v=gmz904QpfxU hitbox https://www.youtube.com/watch?v=BsC8px_oXdM hitbox https://www.youtube.com/watch?v=kb0zcUA7OMg hitbox https://www.youtube.com/watch?v=IB_R0D9jd3E it's foolish, nigh lazy to ignore all of these free resources
In this video I tell you what's the best way to do hitboxes in #robloxstudio . Good luck with you #roblox games.
Keep leveling up bro, be safe, and I'll see you when I see you, peace.
Discord community: discord.gg/7ZyCPE5tjX
💫 Get your models here:
https://bossmertobusiness.wixsite.com/mertomodels
💫 Get my One Piece game guide PDF here:
https://bossmertobusiness.wixsite.com/mertomodels
If you want to see more content like this, then like, subscribe, comment and turn on the notifications.
My second channel 💪:
https://www.youtube.com/channel/UCyMRimdcJm5TwX0TyRcJg9...
#roblox #robloxstudio #robloxstudiotutorial #robloxstudiotutorials
How to make a hitbox
https://www.youtube.com/watch?v=3HjG1Y4QpVA&ab_channel=LAKEYINSPIRED - Background music
0:00 Intro
0:11 How the hitbox works
2:56 Integrating it into an ability
Get Ludius as your scripting teacher (Scripter Accelerator): https://www.skool.com/scripting-accelerator-7217/about
Discord community: https://discord.gg/5Vf2mMWCd3
Video Description:
In this video I cover the topic of Spatial Query and OverlapParams, and how you can use various methods to detect when objects are within a specified hitbox. This is extremely useful for creating hitboxes for special abilities or anything like that when .Touched just doesn't cut it. I know I said I was going to start the shop ...
Use the last one
The sparial query one
It is the most beginner friendly in my opinion
I would just follow it and
Make a table of hitcharacter
Alr I recommended the sparial query one as that’s what I used when I did my first combat system and he explained it really well in my opinion
Just parent it to the hrp
Then move it a bit
spatial query is the best method because parts are subject to replication, but parts are also more 'tangible' and thus more beginner friendly imo, easier to visualize because it's literally a part, and you'd have to make a part anyway if you want to visualize a spatial query, but that's neither here nor there 🤷
Here is the logic of a basic combat system:
it detects for a click on the client and once it detects it plays the animation on the client and fires a event to the server once the event is fired the server handles hitboxes and dmg
ohhhh ok
ok so it just waits fo my click
then it plays m1 dmg
https://create.roblox.com/docs/reference/engine/classes/WorldRoot#GetPartBoundsInBox is just as good as https://create.roblox.com/docs/reference/engine/classes/WorldRoot#GetPartsInPart, but without needing a part to perform the query
Basically ye
what i'd like to know is if it's possible to somehow send instant feedback on hit, i dont think its possible because the server cannot know what was hit until after-the-fact, whereas instant feedback would need to know before the server does, which sounds impossible 😦
and rolling back mispredictions does not sound like a good time
Also
although... 🤔 proper rollback would make it so the client's prediction is always correct... that might work 🤔
If ur gonna do vfx then just do it on the server which ISNT optimal as it increases the load but client replication is a more advanced topic so doing it on the server would just work
@honest blade now ik abt all types of spacial queries and how to filter them now how do i attach it to a player/dummy
ur righ he did explain it very well
ok so then it only detects it
wait do i set their parent to not be the workspace but the dummy?
wait i could just use a collision group
Yo
The hitbox?
If ur talking about the hitbox what I would do is set its parent to the humanoidrootpart then use cframes to move it by a couple of studs @hardy veldt
ok thx
so ittl be
part.Parent = HumanoidRootPart?
wait
imma create a variable
for humanoid root part
then make it parent
local Player = game.Players.LocalPlayer
local chr = Player.Character or Player.CharacterAdded:Wait()
local HumanoidRootPart = chr:WaitForChild("HumanoidRootPart")
thats what i did
then i made part.Parent = HumanoidRootPart
its giving me that error
imma find a diff way to make the humaniod root part its parent
Hm
was it a problem with the code or what
i changed max parts to 1 cus i only want the arms
now lemme filter out the rest
@strange arrow would there be any other way to attach a hitbox to the player and a hitbox to the dummy so when the collide the dummy plays the getting hit anim and gets damaged
@honest blade
should i maike a collisions group?
@strange arrow @honest blade i made the hitbox a child of players was that good or bad?
show code
don't need code to know that they're trying to use localplayer on the server
no it wasnt local player
its a server script
i got banned on roblox so i dont have it rn