I want all players to be able to see this above a player's head, but FE stops that.
plr = game.Players.LocalPlayer char = game.Players.LocalPlayer.Character groupId = 3289024 billboard = Instance.new("BillboardGui") billboard.Size = UDim2.new(1,0,.5,0) billboard.StudsOffset = Vector3.new(-1.5,3,0) text = Instance.new("TextLabel") text.Size = UDim2.new(4,0,2,0) text.FontSize = "Size14" text.TextScaled = true text.TextWrapped = false text.TextColor3 = Color3.new(255,0,0) text.Position = UDim2.new(0,0,0,19) text.TextTransparency = .4 text.Text = plr:GetRoleInGroup(groupId) text.BackgroundTransparency = 1 text.Parent = billboard billboard.Parent = char.Helmet.Middle billboard = Instance.new("BillboardGui") billboard.Size = UDim2.new(1,0,.5,0) billboard.StudsOffset = Vector3.new(-1.5,3,0) text = Instance.new("TextLabel") text.Size = UDim2.new(4,0,2,0) text.FontSize = "Size14" text.TextScaled = true text.TextWrapped = false text.TextColor3 = Color3.new(255,0,0) text.Position = UDim2.new(0,0,0,-10) text.TextTransparency = .4 text.Text = plr.Name text.BackgroundTransparency = 1 text.Parent = billboard billboard.Parent = char.Helmet.Middle touched.Parent.Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll end end end end)
Put a remote event in replicated storage, a server script in server script service
local script:
game:GetService("Players").PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) game:GetService("ReplicatedStorage").RemoteEvent:FireServer() end) end)
server script:
local groupId = 3289024 game:GetService("ReplicatedStorage").RemoteEvent.OnServerEvent:Connect(function(player) --make billboard gui stuff end)
plr = game.Players.LocalPlayer char = game.Players.LocalPlayer.Character groupId = 3289024 billboard = Instance.new("BillboardGui") billboard.Size = UDim2.new(1,0,.5,0) billboard.StudsOffset = Vector3.new(-1.5,3,0) text = Instance.new("TextLabel") text.Size = UDim2.new(4,0,2,0) text.FontSize = "Size14" text.TextScaled = true text.TextWrapped = false text.TextColor3 = Color3.new(255,0,0) text.Position = UDim2.new(0,0,0,19) text.TextTransparency = .4 text.Text = plr:GetRoleInGroup(groupId) text.BackgroundTransparency = 1 text.Parent = billboard billboard.Parent = char.Helmet.Middle billboard = Instance.new("BillboardGui") billboard.Size = UDim2.new(1,0,.5,0) billboard.StudsOffset = Vector3.new(-1.5,3,0) text = Instance.new("TextLabel") text.Size = UDim2.new(4,0,2,0) text.FontSize = "Size14" text.TextScaled = true text.TextWrapped = false text.TextColor3 = Color3.new(255,0,0) text.Position = UDim2.new(0,0,0,-10) text.TextTransparency = .4 text.Text = plr.Name text.BackgroundTransparency = 1 text.Parent = billboard billboard.Parent = char.Helmet.Middle touched.Parent.Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll end end end
end)
I'm just assuming you want this done when the player joins since you cut off the entrance to your function