#hitbox script help
1 messages · Page 1 of 1 (latest)
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
** You are now Level 1! **
are you sure
hrp.CFrame + hrp.Cframe.LookVector * 6 bro
why not bro
hitbox.CFrame = hrp.CFrame * CFrame.new(0, 0, 6)
same tiiing
here you go gang
but another problem
what is it
so when the hitbox touches the rig i die not the rig
and i tested with 2 players
same problem
cause
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
thx
yw
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?
sorry for the
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