I am trying to make titles so people can know who u are in game (e.g: Owner, Tester,Developer) and when i play test it gives an error. It says "Expected end to close function in line 3" here is the script (hope you can help :D)
local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
end)
if player.Name == "Ewiq44" then
local clonedgui = billboardgui:Clone()
clonedgui.TextLabel.Text = "Owner"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(254,162,82)
clonedgui.Parent = game.Workspace:WaitForChild(player.name).Head
end
if player.Name == "not gonna show the username on this post" then
local clonedgui = billboardgui:Clone()
clonedgui.TextLabel.Text = "Tester"
clonedgui.TextLabel.TextColor3 = Color3.fromRGB(163,0,153)
clonedgui.Parent = game.Workspace:WaitForChild(player.name).Head
end

2 comments
The script is not showing properly, sorry. Line 1 & 2 are missing!
The first 2 lines are local billboardgui = game:GetService("ServerStorage"):WaitForChild("BillboardGui") and game.Players.PlayerAdded:Connect(function(player)