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.

3 comments
It's because in the second line you're telling it if Humanoid is nil then to set the humanoid health to 0. You'll want to identify if the humanoid isn't nil. So in this case you'd do 'if humanoid ~= nil' then on line 3.
Thanks,it worked!
Edited the title to say [solved]