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

Who can help me with my Rank system?

what i try to do is to look if the rank is hight enuf to do the command but its not working how i made it.

get no errors in out put put when i tryed it out its not working.

here is a little code i try to get to work

local function onPlayerAdded(player)
	-- Restrict this command to only the creator/owner
	wait()
	local Rank = player:WaitForChild("Ranking").Rank

	if Rank.Value > 6 then
		player.Chatted:Connect(function (...)
			onOwnerChatted(player, ...)
		end)
	end
	player.Chatted:Connect(function (...)
		onChatted(player, ...)
	end)
end
 
-- Listen for players being added
for _, player in pairs(Players:GetPlayers()) do
	onPlayerAdded(player)
end
Players.PlayerAdded:Connect(onPlayerAdded)	

but when i do a OwnerChatted its not working.

1 answer

✓ Accepted answer

Found it. i put the rank now in the command and not at the start like in script here with add player or character

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