hmm burger burger lettuce lettuce
1 Like
I can’t help you with your code due to the lack of information provided.
I need more than just “Code no work”.
Hello! I have some questions to give you a solution:
Where is the script located?
What isn’t working?
Does it give any errors?
Why don’t you use .Touched?
Just do a killbrick script then?
local part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end)
Okay, that makes sense.
local Part = script.Parent -- save to optimize
Part.Touched:Connect(function(Hit)
local Hum = Hit and Hit.Parent and Hit.Parent:FindFirstChild("Humanoid")
if Hum then
Hum.Health = 0
end
end)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.