How do you make a script that lets only specific teams you want to access a car spawner??
COMMUNITY QUESTION
Team only car spawner system?
1 answer
not a request site, please give a script to fix/help with next time
local teams = game:GetService'Teams'
game.Workspace.SpawnCarButton.ClickDetector.MouseClick:Connect(function(player)
if player.Team = teams.team_name then
spawncar()
end
end)
fuction spawncar()
car:Clone().Parent = game.Workspace
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Please provide your code. We can't make scripts for you
Didnt know, I am new here.