local checkpoint = script.Parent
checkpoint.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
player.RespawnLocation = checkpoint
end
end)local lava = script.Parent
lava.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end)local part = script.Parent
local debounce = false
part.Touched:Connect(function()
if debounce then return end
debounce = true
wait(1)
part.Transparency = 1
part.CanCollide = false
wait(3)
part.Transparency = 0
part.CanCollide = true
debounce = false
end)script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
print(player.Name .. " победил!")
end
end)