jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 22 Jan 2014 08:26 PM |
game.Players.PlayerAdded:connect(function(player) bl = Instance.new("BoolValue",player) bl.Name = "HasPlayed" bl.Value = false player:WaitForDataReady() player:SaveBoolean('HasPlayed', true) a = Instance.new("Message",workspace) a.Text = "test" player:WaitForDataReady() player:LoadBoolean("HasPlayed") if player.HasPlayed == true then a.Text = "you've played this game" elseif player.HasPlayed == false then a.Text = "This is your first time playing" end end)
game.Players.PlayerRemoving:connect(function(player) player:WaitForDataReady() player:SaveBoolean('HasPlayed', true) end)
this code won't work properly at all, could someone help me? |
|
|
| Report Abuse |
|
|
|
| 22 Jan 2014 08:36 PM |
Why even use an object?
Game.Players.PlayerAdded:connect(function(Player) Player:WaitForDataReady() local HasPlayed = Player:LoadBoolean("HasPlayed") Player:SaveBoolean("HasPlayed",true)
A = Instance.new("Message",Workspace) A.Text = ((HasPlayed)and("You have played before")) or "You have not played before" end) |
|
|
| Report Abuse |
|
|
jonesj627
|
  |
| Joined: 06 Oct 2010 |
| Total Posts: 1496 |
|
|
| 22 Jan 2014 08:46 PM |
| that code always prints out as the player has played, |
|
|
| Report Abuse |
|
|