Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Team only car spawner system?

Asked by 3 years ago

How do you make a script that lets only specific teams you want to access a car spawner??

0
Please provide your code. We can't make scripts for you Soban06 410 — 3y
0
Didnt know, I am new here. policemanph -2 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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
Ad

Answer this question