RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make the parent part kill the player when they touch it if they are between Stage 106 and 209"
-- script for parent part local part = script.Parent local function killPlayer(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local stage = player.leaderstats.Stage.Value if stage >= 106 and stage <= 209 then local humanoid = otherPart.Parent:FindFirstChild("Humanoid") if humanoid then humanoid.Health = 0 end end end end part.Touched:Connect(killPlayer)