Hello, I am trying to create a car gui spawner, I have the civillian cars done, I need help on how to make certain cars that can only be viewed for certain teams and that can be only spawned for certain teams, how would I do that?
✓ ANSWER ACCEPTED
Car Spawner With Certain Teams?
1 answer
✓ Accepted answer
I'm assuming you already have the GUI done, create a local script in the GUI and type this:
local GUI = script,Parent --Assuming you put it in the screen GUI
local plr = game.Players.LocalPlayer --Get the player
if plr.Team == game.Teams.Civilian then --You can replace civilian with your team
GUI.Enabled = true --You can also just go in the GUI and set the frame visible property to false
else
GUI.Enabled = false
end
Next time you go on here to ask a question don't request code. You should try first before coming here and showing code
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
am I able to put this in each car script, would it work like that?
I'm pretty sure you can
Also if you are gonna put it in frames replace Enabled with Visible