part.Touched:Connect(function(hit)
print("Объект был коснутся:", hit.Name)
end)script.Parent.Touched:Connect(function(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human then
human:TakeDamage(20)
end
end)script.Parent.Touched:Connect(function(hit)
hit:Destroy()
end)local destination = workspace:WaitForChild("TeleportPoint")
script.Parent.Touched:Connect(function(hit)
local character = hit.Parent
if character:FindFirstChild("HumanoidRootPart") then
character.HumanoidRootPart.CFrame = destination.CFrame
end
end)script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
player.leaderstats.Points.Value += 1
end
end)script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.WalkSpeed = 5
end
end)local door = workspace:WaitForChild("Door")
script.Parent.Touched:Connect(function(hit)
door.Transparency = 1
door.CanCollide = false
end)script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
player.RespawnLocation = script.Parent
end
end)local sound = script.Parent:FindFirstChild("Sound")
script.Parent.Touched:Connect(function(hit)
if sound then
sound:Play()
end
end)script.Parent.Touched:Connect(function(hit)
local flash = Instance.new("PointLight")
flash.Color = Color3.new(1, 1, 0)
flash.Brightness = 5
flash.Range = 10
flash.Parent = script.Parent
wait(0.5)
flash:Destroy()
end)script.Parent.Touched:Connect(function()
script.Parent.BrickColor = BrickColor.Random()
end)local debounce = false
script.Parent.Touched:Connect(function(hit)
if debounce then return end
debounce = true
print("Коснулся!")
wait(1)
debounce = false
end)