Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Team only car spawner system?

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

2 comments

0

Please provide your code. We can't make scripts for you

0

Didnt know, I am new here.

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.