generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Help with script pleaseeeee

Previous Thread :: Next Thread 
HarrySG is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image