#hitbox script help

1 messages · Page 1 of 1 (latest)

steel hare
#

why isnt my script working
heres the image:

#

i mean it works but when i click and im sideways its on the side of my right arm not the front of my body

#

oh and also when the hitbox actually touches the rig the attacker dies not the rig

frosty timberBOT
#

studio** You are now Level 1! **studio

frigid tide
#

are you sure

steel hare
#

yes

#

i even tested with 2 players

frigid tide
icy yew
#

hell no

frigid tide
#

why not bro

icy yew
frigid tide
#

same tiiing

icy yew
#

😭

icy yew
steel hare
#

but another problem

icy yew
#

what is it

steel hare
#

so when the hitbox touches the rig i die not the rig

#

and i tested with 2 players

#

same problem

icy yew
#

cause

frigid tide
icy yew
#

you're not checking

#

who is the player it touched

#

it might be anyone

#

hlod on

#
hitbox.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
 if hit.Parent.Name ~= plr.Name then
  hit.Parent:WaitForChild("Humanoid"):TakeDamage(10)
 end
end
end)
#

here u go

steel hare
#

thx

icy yew
#

yw

steel hare
#

hey so im done making animations

#

i made 2 of them

#

like M1 and M2

#

how do i make it so the first time the player hits the M1 animation plays and the second time the M2 animation plays?

icy yew
#

late reply.

#

you could do something like

#

count = 1

#

and in the function

#

where the animations plays

#

count = count == 1 and 2 or 1

#

name your animations e.g.

#

M1 and M2

#

the animation could play like humanoid:LoadAnimation(M..count):Play()

#

you can load the animations before too if yw