|
| 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
|
  |
| 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
|
  |
| Joined: 24 Jun 2013 |
| Total Posts: 4416 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 17 Jul 2017 05:32 PM |
@lae
connect *
haha r u triggered yet
|
|
|
| Report Abuse |
|
|
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 |
|
|