|
| 16 Mar 2013 06:23 AM |
Can anyone telling me what I'm doing wrong here? I want a player who joins with their data value as "OMEGA" to turn the Base reflectance to 1. These are all in the same script btw.
game.Players.PlayerRemoving:connect(function(player) if player.DataReady then player:SaveString("Data", "OMEGA") end end)
game.Players.PlayerAdded:connect(function(player) player:WaitForDataReady() player:LoadString("Data") if string.Value == "OMEGA" then game.Workspace.Base.Reflectance = 1 end end) |
|
|
| Report Abuse |
|
|
einsteinK
|
  |
| Joined: 22 May 2011 |
| Total Posts: 1015 |
|
|
| 16 Mar 2013 06:52 AM |
game.Players.PlayerRemoving:connect(function(player) if player.DataReady then player:SaveString("Data", "OMEGA") end end)
game.Players.PlayerAdded:connect(function(player) player:WaitForDataReady() if player:LoadString("Data") == "OMEGA" then -- Here was your mistake game.Workspace.Base.Reflectance = 1 end end) |
|
|
| Report Abuse |
|
|
| |
|