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

How do you make a group rank team changer?

I am trying to make a group rank tram changer GUI that will only work if you are a certain rank in a group.

1 comment

0

Uh, what do you mean?

1 answer

I think I understand your question

add this to ServerScriptService as a normal script.

game.Players.PlayerAdded:Connect(function(plr) --When a player enters the game the code gets executed 
	plr.CharacterAdded:Connect(function(character) --Checks if a player has respawned
		wait(3) -- a timer
		local groupID = --Insert group ID here
	if plr:GetRankInGroup(groupID) == --insert the rank (not the name the number)  then
	--insert code here
		end -- if statement
	end) character gets added event
end) -- playeradded event

on the insert the rank (not the name the number) it sounds confusing but you need to get the role's rank

https://gyazo.com/bb725b3899926ca8e97626a8af866d4d?token=3ee7fb5faf0c9099c90a1447699255c3

^

hopes that helps!

<3

2 comments

0

Thank you.

0

I've edited the script since I forgot to explain it and other stuff, Feel free to accept this answer

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