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

Overhead Rank Script Not Working??

Asked by 9 years ago

Okay so me & a few founders started Jexillias (food & drink company) and i've made the restaurant for it but i'm trying to work the overhead rank script so it tells you what rank that person is (linking to the group we've made) but my script doesnt seem to be working

groupid = 1164603

game.Players.PlayerAdded:connect(onPlayerRespawned)
function onPlayerRespawned(newPlayer)
    wait(1)
    if newPlayer:IsInGroup(groupid) then
        local gui = Instance.new("BillboardGui")
        gui.Parent=newPlayer.Character.Head
        gui.Adornee=newPlayer.Character.Head
        gui.Size=UDim2.new(2,0,.78,0)
        gui.StudsOffset=Vector3.new(0,2,0)
        local texta=Instance.new("TextBox")
        texta.Size=UDim2.new(1,0,1,0)
        texta.BackgroundTransparency = 1
        texta.BackgroundColor3 = Color3.new(0, 0, 0)
        texta.BorderColor3 = Color3.new(0, 0, 0)
        texta.TextColor3 = Color3.new(1, 1, 1)
        texta.BorderSizePixel = 1
        texta.TextScaled = false
        texta.TextStrokeTransparency = 1
        texta.FontSize = Enum.FontSize.Size18
        texta.Text = ("- " .. newPlayer:GetRoleInGroup(groupid) .. " -")
        texta.Parent=gui
        wait(5)
       if newPlayer:IsInGroup(1) then
        texta.TextColor3 = Color3.new(0, 0, 1)
        texta.Text = ("- MP/" .. newPlayer:GetRoleInGroup(groupid) .. " -")
        w = game.Lighting.WepsGroup:GetChildren() 
            for i = 1,#w do
            w[i]:Clone().Parent = newPlayer.Backpack
           end
        end
    end
end



function onPlayerEntered(newPlayer)
    newPlayer.Changed:connect(function (property)
        if (property == "Character") then
            onPlayerRespawned(newPlayer)
        end
    end)
end

game.Players.PlayerAdded:connect(onPlayerEntered)`

1 answer

Log in to vote
1
Answered by
faruque 30
9 years ago

Since you got two function don't you need to call the other function?

0
Ok So, I know what you did. You accidently, at the end of the script, put a ' . Delete the ' and ur overhead rank script will work! D1amondySword 0 — 3y
Ad

Answer this question