RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script if i touch someone they die"
-- server script (ServerScriptService) local function onTouch(otherPart) local character = otherPart.Parent local humanoid = character:FindFirstChildWhichIsA('Humanoid') if humanoid then humanoid.Health = 0 end end local part = script.Parent -- This should be the part that causes death on touch part.Touched:Connect(onTouch)