Hi! I made a simple Script that is located in ServerScriptService. It looks similar to this:
local Players = game:GetService("Players") local Prefix = ";" local Group = 0 --Id of my group here. local Rank = 255 Players.PlayerAdded:Connect(function(player) local function Fly(msg) if msg == Prefix.."fly" and player:GetRankInGroup(Group) >= Rank then --? end end local function Unfly(msg) if msg == Prefix.."unfly" and player:GetRankInGroup(Group) >= Rank then --? end end player.Chatted:Connect(Fly) player.Chatted:Connect(Unfly)` end)
Prefix, Group and Rank is set in ModuleScript, but to make it clear I wrote it down in the Script.
I tried searching DevForum but I found few exaples that were not exactly what I wanted. Can you write the code and explain what does each line do?
Don’t need help anymore. Made it myself after watching Youtube tutorials, searching DevForum and rescripting everything.