RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"so you're trying to make it where the parts that kill you have the ability of seeing through them"
-- script for the part local part = script.Parent part.Transparency = 0.5 part.BrickColor = BrickColor.new("Really red") local function onTouched(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local humanoid = player.Character:FindFirstChild("Humanoid") if humanoid then humanoid.Health = 0 end end end part.Touched:Connect(onTouched)