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

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

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

✓ Accepted answer
if player:IsInGroup(4101121) and player:GetRoleInGroup(4101121) >= 100 then

2 comments

0

i shall try that

0

did not work but i found a solution

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