Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix this error in roblox studio?

I got an error in roblox studio -----> ServerScriptService.Script:19: Expected identifier when parsing expression, got ')'

can anybody help with this error..

i was doing this script..

local billboardgui = game:GetService("ServerStorage") :WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(player)
	
	player.CharacterAdded:Connect (function(character)
		 
		if player.Name == "louie43pro" then
			local clonedgui = billboardgui:Clone()
			clonedgui.TextLabel.Text = "Owner"
			clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
			clonedgui.Parent = game.Workspace:WaitForChild(player.Name) .Head
	end
		if player.Name == "gamershadow742" then
			local clonedgui = billboardgui:Clone()
			clonedgui.TextLabel.Text = "Admin"
			clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
			clonedgui.Parent = game.Workspace:WaitForChild(player.Name) .Head
		end		
	end)
	

Please response...

1 answer

local billboardgui = game:GetService("ServerStorage") :WaitForChild("BillboardGui")

game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character)

    if player.Name == "louie43pro" then
        local clonedgui = billboardgui:Clone()
        clonedgui.TextLabel.Text = "Owner"
        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
        clonedgui.Parent = game.Workspace:WaitForChild(player.Name) .Head
end
    if player.Name == "gamershadow742" then
        local clonedgui = billboardgui:Clone()
        clonedgui.TextLabel.Text = "Admin"
        clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,0)
        clonedgui.Parent = game.Workspace:WaitForChild(player.Name).Head
	end 
     end)
end)

Hope this will work.

This discussion is preserved as it was. New answers, comments, and votes are closed.