Hey, devforum.
I am trying to make a billboard gui appear on their head when a player clicks a screengui button.
I get no error for the script in console at all so I’m just wondering.
Don’t worry about as.NameTag it works. It’s just that the billboard only shows for the client. Not server and other clients.
Client script:
CheckInFrame.EcoFrame.CheckIn.MouseButton1Click:Connect(function(class)
local seatsLeft = CheckInFrame.EcoFrame.SeatsLeftFrame.SeatNumber
if seatsLeft.Text == "0" then
else
if as.NameTag == true then
class = "Economy"
ReplicatedStorage.EventNameTag:FireServer(class)
end
end
end)
Serverscript:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Main = ReplicatedStorage:WaitForChild("EventNameTag")
Main.OnServerEvent:Connect(function(player, class)
local char = player.Character
local as = require(workspace["AeroSys Self Check-In"].Settings)
local NameTag = workspace["AeroSys Self Check-In"].NameTag.NameTag
local NameTagClone = NameTag:Clone()
NameTagClone.Parent = char:WaitForChild("Head")
NameTagClone.Adornee = char:WaitForChild("Head")
NameTagClone.Frame.Class.Text = class
NameTagClone.Frame.PlayerName.Text = player.Name
NameTagClone.Frame.Class.TextColor3 = as.NameTagClassColor
NameTagClone.Frame.PlayerName.TextColor3 = as.NameTagPlayerColor
NameTagClone.Enabled = true
end)
Please help me find out the correct way to script this.