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

Car Spawner With Certain Teams?

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?

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

3 comments

0

am I able to put this in each car script, would it work like that?

0

I'm pretty sure you can

0

Also if you are gonna put it in frames replace Enabled with Visible

This discussion is preserved as it was. New answers, comments, and votes are closed.