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

My script is supposed to be certain rank and up but it doesnt??

Asked by 6 years ago

heres my code:

game.ReplicatedStorage.REA.OnServerEvent:connect(function(player)
    print(player.Name.." has fired '/e ascend' ")
    char = player.Character
    if player:GetRankInGroup(4101121) >= 100 then
        print("Ascending "..player.Name)
        char.Torso.CFrame = ASP.CFrame
        local d = char.Humanoid:LoadAnimation(script.Ascend1)
        local f = char.Humanoid:LoadAnimation(script.Fly)
        f.Priority = 2
        d.Priority = 2
        d:Play()
        local p1c = p1:Clone()
        p1c.Parent = char.Torso
        local p2c = p2:Clone()
        p2c.Parent = char.Torso

        local bp = Instance.new("BodyPosition")
        bp.Parent = char.Torso
        bp.Position = BP.Position
        wait(4)
        d:Stop()
        f:Play()
        bp.Position = EP.Position
        wait(8)
        f:Stop()
        p1c:Destroy()
        p2c:Destroy()
        wait(1)
        bp:Destroy()
    else
        print("not higher than god rank.")
    end
end)

the

if player:GetRankInGroup(4101121) >= 100 then

is supposed to work although it doesnt?

1 answer

Log in to vote
0
Answered by 6 years ago
if player:IsInGroup(4101121) and player:GetRoleInGroup(4101121) >= 100 then
0
i shall try that Ind1v1duals 43 — 6y
0
did not work but i found a solution Ind1v1duals 43 — 6y
Ad

Answer this question