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

How do I make an RP Job selector? [closed]

Asked by 4 years ago

It's kinda hard for me to make it though I usually have a gui which just doesn't have working buttons.

0
Some tips, in order to experienced developers to be interested about your question, try making it more detailed. What have you already tried and where have you searched for help. These basic things, right now, I would just skip to another question, like, nothing interesting here, sorry. Torren_Mr 334 — 4y

Closed as Not Constructive by namespace25 and Goulstem

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 4 years ago

once u need 1.GUI 2.ServerEvent?

here is a epic tip

local plr = script.Parent.Parent.Parent.Parent

that it

Ad
Log in to vote
0
Answered by 4 years ago

If you are doing it in teams then when a player selects a job, it will set the player to the team.

so

local SetTeam = function(plr,name)
    plr.TeamColor = game.Teams:FindFirstChild(name).TeamColor
end

button.MouseButton1Click:connect(function()
    SetTeam(game.Players.LocalPlayer, button.Name)
end)