script.Parent.Touched:Connect(function(hit) local humanoid = hit.Parent:FindFirstChild("Humanoid") if humanoid ~= nil then if game:GetService("Players"):FindFirstChild(humanoid.Parent.Name) ~= nil then -- скрипт. end endend)