#deals dmg of missed attacks
1 messages · Page 1 of 1 (latest)
press this button in the script tab
ok?
cus its like annoying to read
the function should end when theres no humanoid detected but it stiill waits until theres a humanoid to deal dmg
Does this hitbox linger forever
** You are now Level 3! **
Or just a few seconds
for hitboxes i recommend using workspace:getpartsinaprt
so it only detects when the hitbox gets created
either way though you should destroy the hitbox when you're done with it
can cause alot of lag
ill try rq
Correct me if I'm wrong
But he doesn't create the hitbox, it just toggles between touchable and untouchable
Deleting it would probably break his script no?
oh what
wait so you just have 1 hitbox per player at all times?
i guess its lag friendly..? idk just not the approach i would take
Yeah it looks like a weird system
I would use ^^ unless Ur game needs this for some reason
rather than have to copy it everywhere
Oh I've just clocked
getpartsinpart can even detect anchored parts so if you anchor your character from time to time its really helpful
Pretty sure he wants it to linger slightly
then make more hitboxes 💀
I'm not very good at scripting but it feels messy using that way
i just find getpartsinpart much more controllable
Because I just repeat it
if you find .touched serving your purpose fine then go ahead
also you should disconnect .touched at the end
i have experience having connections in other connections and it aint nice
Yeah , it will make your damage stack
connection:Disconnect``` is how you do it btw
that deadass might be the problem
lemme try
If it doesn't work can you explain the problem in more detail
yeah idrk what the problem is here ngl
I think you might of fixed it
I thought it was the hitbox being stuck in place and hitting after
But this makes much more sense
i mean .Touched shouldnt activate if CanTouch is disabled
first of all, why is your hitbox system not a module? actually i shouldnt complain about that nvm.
.Touched can still be activated.
oh dang

er
well
if you dont want hitting through walls
sure
also how does raycasting work if its like big
do you just use shapecasting instead
i dont understand u what do i put in the ...?
raycasting
@amber ruin you prolly don't want to use touched for your hitboxes, better to rework the system now rather then waiting for later
can work even if its big
local connection = your .touched connection
and then at the end do connect:Disconnect
Make your even a variable
i thought the rays are thin af
its for a melee combat system
would it not be better?
and make it a module script
Yes but touched is really weird
hitboxes should be in module script since u'll be using it alot
rlly?
Yeah
seems to work fine when im standing still
Learn how to use getpartsinpart
cool
Is this for a stun based game?