Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Note that this is a template that I'm uploading. You can use this if you want to.
- --Replace PARTNAMEHERE with your part that you want to make a hitbox with.
- --iiJoeCats
- PARTNAMEHERE.Touched:Connect(function(hit)
- local humn = hit.Parent:FindFirstChildOfClass("Humanoid")
- if humn and humn.Health > 0 then
- local suspect = humn.Parent
- if suspect then
- local val = suspect:FindFirstChildOfClass("BinaryStringValue")
- if not val then
- Instance.new("BinaryStringValue",suspect).Name = "namehere" --Any name you want
- wait(1)
- suspect:FindFirstChildOfClass("BinaryStringValue"):Destroy() --I don't know why I put this in here.
- else
- --nothing
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement