I am trying to make a command, that is like “:Authorize” someone, and when a certain rank in the group says it, then the user they said would have a big nametag called “Authorized” The one thing I don’t know how to do, is the nametag. Which bothers me cause it’s so easy.
Script I have so far:
plr.Chatted:Connect(function(msg)
local message = string.sub(msg, 1, 9)
if message == ":Authorize" then return end
local player_name = string.sub(msg, 9, #msg)
print(player_name)
assert(game.Players:FindFirstChild(player_name))
local player = game.Players:FindFirstChild(player_name)
local char = player.Character or player.CharacterAdded:Wait()```
I don't know how I would add like a title.
game.Players.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
local message = string.sub(msg, 1, 9)
if message == ":Authorize" then return end
local player_name = string.sub(msg, 9, #msg)
local player = game.Players:FindFirstChild(player_name)
local char = player.Character or player.CharacterAdded:Wait()
local clone = script.BillboardGui:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.Frame.Rank.Text = "Authorized"
wait(1) -- however many seconds you want to show "authorized" for.
clone:Destroy() -- destroy the authorized
end)
end)
Sorry to ask this, cause I am a new scripter. But I don’t understand the differences between stuff like Serverscript storage, Server Storage, and stuff like that. Can you please explain to me what they are used for? And the differences.
ServerScriptService is geenerally used to hold server scripts, or just Script
ServerStorage contains things that you want to clone into workspace, or anything you don’t want the client to see.
What do you mean by under it? I tried everything, I tried it with the BillBoard being in the script, both script, and Billboard GUI in serverscript GUI but it still won’t work. I know I am wasting your time, but I just dont’ understand.
I’m back, my head ache is kind of gone. But it’s either I have no idea where to put it, and the other guy told me the wrong thing. Or it just doesn’t work.
Photos: