Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix this error in roblox studio?

Asked by 3 years ago
Edited 3 years ago

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

Log in to vote
0
Answered by
lamgogo 56
3 years ago

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.

Ad

Answer this question