Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --// Overhead Name Tags Chat Commands
- local SSS = game:GetService('ServerScriptService');
- local Players = game:GetService("Players");
- local function ToggleTag(Plr, Bool)
- if Plr.Character then
- local Head = Plr.Character:FindFirstChild'Head'
- if Head and Head:FindFirstChild'RankTags' then
- Head.RankTags.Enabled = Bool
- end
- end
- end
- local Cmds = {
- ['/ranktagoff'] = false;
- ['/ranktagon'] = true;
- ['/rtoff'] = false;
- ['/rton'] = true;
- }
- Players.PlayerAdded:Connect(function(Player)
- Player.Chatted:connect(function(msg)
- local Bool = Cmds[msg:lower()]
- if Bool ~= nil then
- ToggleTag(Player, Bool)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment