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 » Scripters
Home Search
 

Re: How to give a list a certain amount of points?

Previous Thread :: Next Thread 
yhatayhatahoohoo is not online. yhatayhatahoohoo
Joined: 19 Jan 2011
Total Posts: 1988
17 Jul 2017 05:18 PM
I need to give these devs a certain amount of points when they join, how would I go about doing that.

Devs = {"HBHBS", "yhatayhatahoohoo", "Miner080808"}

while true do
for i,v in pairs (game.Players:GetChildren()) do
if v == Devs then
print("A dev is on!")

end
end
wait()
end
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 Jul 2017 05:20 PM
local admins = {
TimeTicks = function(player)
local stats = player:WaitForChild('leaderstats')
local points = stats:WaitForChild('Points')
points.Value = points.Value + 100
end
}

game.Players.PlayerAdded:connect(function(player)
if admins[player.Name] then
admins[player.Name](player)
end
end)


Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
17 Jul 2017 05:31 PM
Connect not connect
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
17 Jul 2017 05:32 PM
@lae

connect *

haha r u triggered yet



Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
17 Jul 2017 05:36 PM
You'd be surprised how much deprecated methods trigger me
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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