How could I upload a mesh to roblox,so people can take my mesh model. Any help would be appreciated!
And also,the question.
function onTouch(part) local humanoid = part.Parent:FindFirstChild("Humanoid") if (humanoid = nil) then humanoid.Health = 0 end end script.Parent.Touched:connect(onTouch)
Any help for both questions? Thanks.
All you need is this:
local debounce = false script.Parent.Touched:Connect(function(hit) if debounce == false and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Humanoid.Health > 0 then debounce = true hit.Parent.Humanoid.Health = 0 -- This might kill the player even if they have a force field... debounce = false end end)
Hope this helped!