HarrySG
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 5705 |
|
|
| 11 Nov 2014 02:31 PM |
- It doesn't work - It has no output, it doesn't even print the things mentioned
groupid = 199219 rankid = 16
local admins = ("HarrySG")
function checkAdmin(name) for i = 1, #admins do if (name == admins[i]) or (name:GetRankInGroup(groupid) >= rankid) then return true else return false end end end function onChatted(message, player) if message:sub(1, 7) == ":lives " and checkAdmin(player) == true then local lives = message:sub(8) local players = game.Players:GetChildren() print"f" for i = 1, #players do print"dammit" if players[i]:FindFirstChild("leaderstats") then players[i].leaderstats.Lives.Value = lives print"omg" end end end end game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) onChatted(message, player) end) end) |
|
|
| Report Abuse |
|
HarrySG
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 5705 |
|
|
| 11 Nov 2014 02:44 PM |
b
frigid is as cool as ice - harrysg 2014 |
|
|
| Report Abuse |
|