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: game pass help!!!!!!

Previous Thread :: Next Thread 
95jake95 is not online. 95jake95
Joined: 12 Jun 2011
Total Posts: 12
19 Aug 2013 07:19 PM
hi the following script

script >>>> http://pastebin.com/rLiyAyzE <<<<


i think that GamePassService is the problem?
anyone help?

please note @ = a so i could post it
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
19 Aug 2013 07:20 PM
"game.Player.PlayerAdded.leaderstats.Cash.value = 1000000"

"value" needs to be capitalized.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
19 Aug 2013 07:21 PM
Woah, how did I miss that.

Do this:
plr.leaderstats.Cash.Value = 1000000
Report Abuse
95jake95 is not online. 95jake95
Joined: 12 Jun 2011
Total Posts: 12
19 Aug 2013 07:23 PM
Already fixed that still Fails to work
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
19 Aug 2013 07:24 PM
If you replaced the line I told you to it wouldn't fail to work.
Report Abuse
95jake95 is not online. 95jake95
Joined: 12 Jun 2011
Total Posts: 12
19 Aug 2013 07:24 PM
plr.leaderstats.Cash.Value = 1000000 also failed
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
19 Aug 2013 07:26 PM
How would that fail?

local passId = 127072811

function isAuthenticated(player)
return game:GetService("GamePassService"):PlayerHasPass(player, passId)
end

game.Players.PlayerAdded:connect(function(plr)
if isAuthenticated(plr) then
print(plr.Name .. " has bought the game pass with id " .. passId)
plr.leaderstats.Cash.value = 1000000
end
end)

-- This would work, unless you have the leaderstats messed up some how.
Report Abuse
95jake95 is not online. 95jake95
Joined: 12 Jun 2011
Total Posts: 12
19 Aug 2013 07:29 PM
function onPlayerEntered(newPlayer) -- When a player enters, do the following.
wait(.5) --Wait point five seconds.
local stats = Instance.new("IntValue") -- Create a new kind of stat for the leaderboard.
stats.Name = "leaderstats" -- Creates leaderboard.
local stats2 = Instance.new("IntValue") -- Create a new kind of stat for the leaderboard.
stats2.Name = "Tycoon" -- Create a new Value known as Tycoon.

local cash = Instance.new("IntValue") -- Tells the script there is a new value.

cash.Name = "Cash" -- Names the new value Cash.
cash.Value = 0 -- This is the ammount of cash players get when they start.

cash.Parent = stats -- Tells the script that its just a stat for all new players.
stats2.Parent = newPlayer -- Tells the script to give this value to ALL new players.
stats.Parent = newPlayer -- Tells the script to give this value to all new players.
end -- Ends process of this group of coding.

game.Players.ChildAdded:connect(onPlayerEntered) -- Connects all new players to this script.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
19 Aug 2013 07:30 PM
All of these scripts you are brining are just free models. They are coded badly too.
Report Abuse
95jake95 is not online. 95jake95
Joined: 12 Jun 2011
Total Posts: 12
19 Aug 2013 07:31 PM
leaderboard was from a tycoon kit yes but it works fine

the gamepass script is a edit of the script under game objects
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