script.Parent.Touched:Connect(function(hit)
print("Кто-то коснулся объекта")
end)part.Touched:Connect(function(hit)
print("Касание")
end)game.Players.PlayerAdded:Connect(function(player)
print(player.Name .. " зашёл в игру")
end)player.CharacterAdded:Connect(function(character)
print("Персонаж появился")
end)script.Parent.ClickDetector.MouseClick:Connect(function(player)
print("Клик!")
end)event:Connect(function()
-- код
end)local part = script.Parent
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
print("Игрок коснулся платформы")
end
end)while true do
-- проверка
wait()
end