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?

2 comments
i shall try that
did not work but i found a solution