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.
