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: how do i change the value of this intvalue?

Previous Thread :: Next Thread 
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 06:35 PM
game.Players.PlayerAdded:connect(function(p)
Instance.new("IntValue", p).Name = "Cash"
end)
Report Abuse
foldr is not online. foldr
Joined: 27 Mar 2010
Total Posts: 697
05 Oct 2014 06:40 PM
game.Players.PlayerAdded:connect(function()
x = Instance.new("IntValue", p)
x.Name = "Cash"
x.Value = 10
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 06:41 PM
ty for making it a lot simpler.
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 06:44 PM
nvm, doesnt work
Report Abuse
pr0tractor is not online. pr0tractor
Joined: 07 Sep 2014
Total Posts: 41
05 Oct 2014 06:52 PM
game.Players.PlayerAdded:connect(function(p)
game.Players.CharacterAdded:connect(function(c)
x = Instance.new("IntValue", p)
x.Name = "Cash"
x.Value = 10
end)
end)
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 07:04 PM
doesnt work
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 07:22 PM
halp
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 08:10 PM
bump
Report Abuse
FlameYeti is not online. FlameYeti
Joined: 14 Jan 2009
Total Posts: 22158
05 Oct 2014 08:11 PM
qq
Report Abuse
Hunter4529 is not online. Hunter4529
Joined: 20 Oct 2013
Total Posts: 675
05 Oct 2014 08:13 PM
@pr0tractor's, should work?

If your trying to make a leaderboard you need leaderstat
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
05 Oct 2014 08:13 PM
game.Players.PlayerAdded:connect(function(p))
game.Players.CharacterAdded:connect(function(c))
x = Instance.new("IntValue", p)
x.Name = "Cash"
x.Value = 10
end
end


share ur thoughts below!!11 and dotn forget to offer on 26k rap!!
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
05 Oct 2014 08:18 PM
local leaderboard = {
{"Int", "Cash", 10};
{"String", "Example", "hi"};
}

--[[{value type, stat name, default value}]]

game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("leaderstats")
leaderstats.Name = "leaderstats"
for _, o in pairs (leaderboard) do
local stat = Instance.new(o[1] .. "Value", leaderstats)
stat.Name = o[2]
stat.Value = o[3]
end
leaderstats.Parent = player
end)
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