chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
|
| 17 Jan 2012 11:01 PM |
local user = {"DiabetiikZombie123", "chucky128", "blueymaddog"} local textureid = 24797508
function onEntered(Player) Instance.new("IntValue",Player).Name = "leaderstats" local money = Instance.new("IntValue",Player.leaderstats) money.Name = "Money" repeat wait() until workspace:FindFirstChild(Player.Name) local human = workspace:FindFirstChild(Player.Name) for i,v in ipairs(user) do print(Player.Name,v) if Player.Name:lower() == v:lower() or game:GetService("BadgeService"):UserHasBadge (Player.userId,textureid) then money.Value = 2700 human.Humanoid.MaxHealth = 550 human.Humanoid.Health = 550 end end end
game.Players.PlayerAdded:connect(onEntered)
If you make this work add you name to the list it should give the users and people with the shirt 2700 money and 550 health |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Jan 2012 11:04 PM |
| @trouble, why dont you get a life and stop trolling? at this rate your gonna get a perma ban on your account XD |
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 18 Jan 2012 11:40 AM |
Any output? You did try this in an online server, right? No type of test mode, but an online server. |
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
|
| 18 Jan 2012 12:59 PM |
10:57:53 - Workspace.Bobo:13: ambiguous syntax (function call x new statement) near '('
|
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 18 Jan 2012 01:05 PM |
That would explain it, I guess. You have your arguments for the `:UserHasBadge()` method on a new line..
Try this?
local user = {"DiabetiikZombie123", "chucky128", "blueymaddog"} local textureid = 24797508 function onEntered(Player) Instance.new("IntValue",Player).Name = "leaderstats" local money = Instance.new("IntValue",Player.leaderstats) money.Name = "Money" repeat wait() until workspace:FindFirstChild(Player.Name) local human = workspace:FindFirstChild(Player.Name) for i,v in ipairs(user) do print(Player.Name,v) if Player.Name:lower() == v:lower() or game:GetService("BadgeService"):UserHasBadge (Player.userId,textureid) then money.Value = 2700 human.Humanoid.MaxHealth = 550 human.Humanoid.Health = 550 end end end game.Players.PlayerAdded:connect(onEntered) |
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
|
| 18 Jan 2012 01:10 PM |
does this have a built in leaderboard?
|
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
|
| 18 Jan 2012 01:14 PM |
| the output is excactly the same. |
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 18 Jan 2012 01:51 PM |
Sorry.. I forgot to edit what I pasted. ._.
local user = {"DiabetiikZombie123", "chucky128", "blueymaddog"} local textureid = 24797508 function onEntered(Player) Instance.new("IntValue",Player).Name = "leaderstats" local money = Instance.new("IntValue",Player.leaderstats) money.Name = "Money" repeat wait() until workspace:FindFirstChild(Player.Name) local human = workspace:FindFirstChild(Player.Name) for i,v in ipairs(user) do print(Player.Name,v) if Player.Name:lower() == v:lower() or game:GetService("BadgeService"):UserHasBadge(Player.userId,textureid) then money.Value = 2700 human.Humanoid.MaxHealth = 550 human.Humanoid.Health = 550 end end end game.Players.PlayerAdded:connect(onEntered) |
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
|
| 18 Jan 2012 01:56 PM |
is there a built in leaderboard in this for money or do i need to get one?
|
|
|
| Report Abuse |
|
|
|
| 18 Jan 2012 01:58 PM |
From what I can see, yes there is a "built-in" leaderboard from:
Instance.new("IntValue",Player).Name = "leaderstats" local money = Instance.new("IntValue",Player.leaderstats) money.Name = "Money"
|
|
|
| Report Abuse |
|
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
|
| 18 Jan 2012 02:24 PM |
It's still your script. ._. You didn't make it, I am guessing..? |
|
|
| Report Abuse |
|
|
chucky128
|
  |
| Joined: 20 Jan 2011 |
| Total Posts: 33 |
|
| |
|
|
| 18 Jan 2012 03:18 PM |
No, I think someone named Bluedog or something made it for him in a post, had problems, posted another post for help, then this post.
† KMXD † |
|
|
| Report Abuse |
|
|