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
 

Re: Please Help

Previous Thread :: Next Thread 
chucky128 is not online. 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
Troublemaker3544 is not online. Troublemaker3544
Joined: 16 Jul 2011
Total Posts: 10508
17 Jan 2012 11:03 PM
[ Content Deleted ]
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
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 is not online. chucky128
Joined: 20 Jan 2011
Total Posts: 33
18 Jan 2012 09:22 AM
bump
Report Abuse
grimm343 is not online. 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 is not online. 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 is not online. 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 is not online. chucky128
Joined: 20 Jan 2011
Total Posts: 33
18 Jan 2012 01:10 PM
does this have a built in leaderboard?
Report Abuse
chucky128 is not online. chucky128
Joined: 20 Jan 2011
Total Posts: 33
18 Jan 2012 01:14 PM
the output is excactly the same.
Report Abuse
chucky128 is not online. chucky128
Joined: 20 Jan 2011
Total Posts: 33
18 Jan 2012 01:31 PM
plz help!
Report Abuse
grimm343 is not online. 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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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 is not online. 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 is not online. chucky128
Joined: 20 Jan 2011
Total Posts: 33
18 Jan 2012 02:54 PM
Thx it works you rock!
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
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