Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local teamName = "Police" -- название команды, которая может пройти через тимдур
- function OnTouched(hit)
- local human = hit.Parent:FindFirstChild("Humanoid")
- if human then
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- if player.Team == game.Teams[teamName] then
- script.Parent.CanCollide = false
- script.Parent.CanQuery = false
- wait(2)
- script.Parent.CanCollide = true
- end
- end
- end
- end
- script.Parent.Touched:Connect(OnTouched)
Advertisement
Add Comment
Please, Sign In to add comment