tomytom2
|
  |
| Joined: 17 Sep 2012 |
| Total Posts: 364 |
|
|
| 25 May 2015 12:09 PM |
How come this won't work?
if (player.leaderstats.Cash == 5) then game.StarterGui.ScreenGui.Frame.Visible = true end
Thanks ~Tt2 |
|
|
| Report Abuse |
|
|
tomytom2
|
  |
| Joined: 17 Sep 2012 |
| Total Posts: 364 |
|
| |
|
|
| 25 May 2015 12:42 PM |
| Please provide more context to the issue. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 25 May 2015 12:48 PM |
local player = game.Players.LocalPlayer local stats = player:FindFirstChild("leaderstats") local cash = stats:FindFirstChild("Cash")
cash.Changed:connect(function() if stats and cash then if cash.Value == 5 then player.PlayerGui.ScreenGui.Frame.Visible = true end end end) |
|
|
| Report Abuse |
|
|
tomytom2
|
  |
| Joined: 17 Sep 2012 |
| Total Posts: 364 |
|
| |
|
tomytom2
|
  |
| Joined: 17 Sep 2012 |
| Total Posts: 364 |
|
|
| 25 May 2015 01:39 PM |
Aww, Not working Maybe it dose and I dont have the right leaderboard or something.. Help? |
|
|
| Report Abuse |
|
|
tomytom2
|
  |
| Joined: 17 Sep 2012 |
| Total Posts: 364 |
|
| |
|
|
| 25 May 2015 01:51 PM |
| Provide the entire script, please. I can't work with a little chunk like that. |
|
|
| Report Abuse |
|
|