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

hardy veldt
#

im new to coding

honest blade
#

combat games are not for beginners, try something easier like a jumping simulator

inner ruin
#

are you running this on a localscript?

hardy veldt
hardy veldt
#

and hitboxes arent only used for combat games

#

it will be useful to learn it now

kindred silo
#

well you just answered on your question

quartz ravine
#

maybe a touched event would be better

#

for a hitbox

rancid frigate
hardy veldt
fiery mirageBOT
#

studio** You are now Level 4! **studio

hardy veldt
#

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

trim marlin
honest blade
hardy veldt
hardy veldt
hardy veldt
#

thats why i even came to this channe;

trim marlin
#

you're new; learn the basics

#

from there you'll go to understand things like this

hardy veldt
#

ok

trim marlin
#

patience

hardy veldt
#

so then how do i make a .Touch script

hardy veldt
#

i

trim marlin
#

learn

hardy veldt
#

thats why i came here

#

but ig u also dont know how to

trim marlin
#

what

honest blade
# hardy veldt but ig u also dont know how to

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 salute

hardy veldt
#

it prints when it collides with the body parts

#

rn im making it just print when it collides wit harms

#

arms

trim marlin
#

you're forcing yourself to learn a thing that you'll forget 2 days later you've done this

inner ruin
hardy veldt
trim marlin
#

learn basics? 😭

honest blade
#

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?

honest blade
#

then yea you need to learn some basics

#

they're not easy to make

hardy veldt
inner ruin
waxen flower
hardy veldt
waxen flower
hardy veldt
hardy veldt
waxen flower
#

Ok?

honest blade
hardy veldt
honest blade
#

because of course they are...

hardy veldt
#

no i aint

#

im tryna make a story game

inner ruin
hardy veldt
#

with weapons

honest blade
#

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

hardy veldt
honest blade
#

all fighting games are battlegrounds

#

its just easier to use that language

hardy veldt
#

ok but rn all it does is print the part it collides with

#

how do i restrict it to only the arms

honest blade
#

specifying the difference between punching zombies and punching players doesn't really change the underlying mechanics

waxen flower
#

Make a hitbox module

#

It's easier and reliable

#

Reuseable

hardy veldt
#

ok

honest blade
#

most games use hitboxes, not 'touching the arms', and often those hitboxes are much bigger than the arms themselves

inner ruin
waxen flower
#

I like making my own stuff tho

#

Cause I know what I'm going for and what I need

hardy veldt
fiery mirageBOT
#

studio** You are now Level 5! **studio

waxen flower
#

Then destroy it w debris

hardy veldt
hardy veldt
waxen flower
#

And set p0 to hitbox and c0 to Cframe.new(0,0,2)

hardy veldt
#

should i change it to weld?

inner ruin
hardy veldt
#

ok

#

how do i attach stuff to a player?

waxen flower
honest blade
#

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

â–¶ Play video
waxen flower
inner ruin
hardy veldt
inner ruin
strange arrow
#

Alr

hardy veldt
#

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

honest blade
hardy veldt
honest blade
#

idk it's somewhere in there

#

if you just want hitboxes there are tutorials for that too

honest blade
#

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

â–¶ Play video

💫 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...

â–¶ Play video

#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

â–¶ Play video

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

â–¶ Play video
hardy veldt
#

wow alot

#

the ludius ones r not working for me so ill use the other ones

strange arrow
#

The sparial query one

#

It is the most beginner friendly in my opinion

strange arrow
#

Make a table of hitcharacter

hardy veldt
#

imma watch the merto one

#

first

strange arrow
#

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

strange arrow
#

Then move it a bit

honest blade
# strange arrow It is the most beginner friendly in my opinion

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 🤷

strange arrow
hardy veldt
#

then it plays m1 dmg

strange arrow
honest blade
# strange arrow 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

honest blade
#

although... 🤔 proper rollback would make it so the client's prediction is always correct... that might work 🤔

strange arrow
# strange arrow Also

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

hardy veldt
#

@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

hardy veldt
hardy veldt
#

wait do i set their parent to not be the workspace but the dummy?

#

wait i could just use a collision group

strange arrow
#

Yo

strange arrow
# strange arrow 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

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

strange arrow
hardy veldt
#

i changed max parts to 1 cus i only want the arms

#

now lemme filter out the rest

hardy veldt
#

@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?

hardy veldt
#

@strange arrow @honest blade i made the hitbox a child of players was that good or bad?

waxen flower
honest blade
hardy veldt
#

its a server script

hardy veldt