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: VIP to save stats

Previous Thread :: Next Thread 
ZT6 is not online. ZT6
Joined: 24 Dec 2012
Total Posts: 225
10 Aug 2014 12:50 AM
game.Players.PlayerRemoving:connect(function(p)
if p:findFirstChild("leaderstats") then
p:SaveInstance("SavedStatPNum"..tostring(game.PlaceId),p.leaderstats)
end
end)
game.Players.PlayerAdded:connect(function(p)
for k = 1, 60, 0.03 do
wait()
if p:findFirstChild("leaderstats") and p.DataReady then break end
end
local Loaded = nil
if p:findFirstChild("leaderstats") and p.Character:findFirstChild("Shirt Graphic") ~= nil and p.Character:findFirstChild("ShirtGraphic").Graphic == "http://www.roblox.com/asset/?id=171220390" and pcall(function() Loaded = p:LoadInstance("SavedStatPNum"..tostring(game.PlaceId)) end) then
for j, v in pairs(Loaded:GetChildren()) do
pcall(function() p.leaderstats[v.Name].Value = v.Value end)
end
end
end)







That's what I am using but it does not load when I wear the t-shirt
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Aug 2014 12:54 AM
Why a tshirt?
They do not get as many sales as a gamepass would
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Aug 2014 12:56 AM
And in this case if the player forgets the shirt one day the game would save his stats back to 0
Report Abuse
ZT6 is not online. ZT6
Joined: 24 Dec 2012
Total Posts: 225
10 Aug 2014 12:58 AM
That did not help me at all.



T-shirt Vs. Gamepass

T-shirt Pro - You can sell it from a group so when I lose bc in ONE MONTH and never get it again I can still sell vip

T-shirt Pro - People can wear it

T-shirt Con - Not as noticable

Gamepass Pro - Circular picture??

Gamepass Pro - Noticable

Gamepass Con - 100 robux. No thanks.

Gamepass Con - Goes away when I lose bc in ONE MONTH. No thanks.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Aug 2014 01:01 AM
Gamepasses are free >.<
Report Abuse
ZT6 is not online. ZT6
Joined: 24 Dec 2012
Total Posts: 225
10 Aug 2014 01:01 AM
Gamepasses cost 100 robux.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Aug 2014 01:03 AM
Nope they changed gamepasses to free months ago

I have made many free gamepasses since
Report Abuse
ZT6 is not online. ZT6
Joined: 24 Dec 2012
Total Posts: 225
10 Aug 2014 01:05 AM
Ok

Bump
Report Abuse
ZT6 is not online. ZT6
Joined: 24 Dec 2012
Total Posts: 225
10 Aug 2014 01:09 AM
I made it a gamepass btw

I actually made a gamepass yesterday and I swore to god I thought I lost 100 robux, you'd think when you only have 300 it's hard to notice.

Anyway bump
Report Abuse
EPICJAKEISCOOL is not online. EPICJAKEISCOOL
Joined: 07 Feb 2013
Total Posts: 1756
10 Aug 2014 01:21 AM
Gamepasses are freeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.
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