script.Parent.Touched:Connect(function(hit)
print("Кто-то коснулся объекта")
end)script.Parent.Touched:Connect(function(hit)
print(hit.Name)
end)script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
print("Игрок коснулся")
end
end)script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if character:FindFirstChild("Humanoid") then
local player = game.Players:GetPlayerFromCharacter(character)
if player then
player.RespawnLocation = script.Parent
end
end
end)local debounce = false
script.Parent.Touched:Connect(function(hit)
if debounce then return end
debounce = true
print("Сработало")
wait(1)
debounce = false
end)