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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 12 Jun 2011 |
| Total Posts: 12 |
|
|
| 19 Aug 2013 07:23 PM |
| Already fixed that still Fails to work |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 12 Jun 2011 |
| Total Posts: 12 |
|
|
| 19 Aug 2013 07:24 PM |
| plr.leaderstats.Cash.Value = 1000000 also failed |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|