#can someone help me with my hitbox script
1 messages · Page 1 of 1 (latest)
Thanks for your question :clap:, if someone gives you an answer it would be great if you thanked them with a :white_check_mark: in response. This response will earn you both points for special roles on this server.
its roblox lua btw
send script
full
as text
ok so you have hit:FindFirstChild("Humanoid")
for example if you hit an arm it will find first child of the arm
the player model is the parent of arm
but there is also accessory that has handle in it
and the parent for that is an accessory
so i would do something like
if hit:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid") then
i see you're trying to do "if hit == plr then"
hit cant be equal to player
because hit is a model
and player is a player
or a player name
but i would do it differently
if hit:FindFirstAncestorWhichIsA("Model"):FindFirstChild("Humanoid") and game.Players:GetChildren()[hit.Name] then
bro
you literally return end if you find a humanoid
what were you thinking when making that
you literally find the player
and if that is indeed a player you kill the script
and if its not the player you're somehow trying to kill this "hit"
like earlier i said hit could be either arm or leg or handle in accessory
im pretty sure .Character is for player