|
| 06 Dec 2014 08:29 AM |
When a player leaves the tycoon their money will stay in the collector.
After some testing and a lot of time I've found out that it only occurs when ALL floors are bought.
My tycoon has 3 floors. I bought the whole of first floor and the money didn't stay, I then bought the second floor (not buying the first) and the money didn't stay, then the same again with the third floor.
I then bought all the floors and tried it, this is when the money stayed?
Does anyone know what could be causing this?
|
|
|
| Report Abuse |
|
|
Codys4x4
|
  |
| Joined: 14 Oct 2006 |
| Total Posts: 2312 |
|
|
| 06 Dec 2014 10:02 AM |
dont use free models
-Codys4x4 - Send me a trade. |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 10:03 AM |
| Have you looked at the script? |
|
|
| Report Abuse |
|
|
|
| 06 Dec 2014 03:38 PM |
Yes the script seems fine, I don't get why the money is staying.
game.Players.PlayerAdded:connect(function(player) local cashmoney = Instance.new("NumberValue",game.ServerStorage.MoneyStorage) cashmoney.Name = player.Name local isowner = Instance.new("BoolValue",cashmoney) isowner.Name = "OwnsTycoon" end) game.Players.PlayerRemoving:connect(function(player) local cashmoney = game.ServerStorage.MoneyStorage:FindFirstChild(player.Name) if cashmoney ~= nil then cashmoney:Destroy() end local tycoon = getTycoonFromPlayer(player) if tycoon then local backup = tycoonBackups[tycoon.Name]:Clone() tycoon:Destroy() wait() backup.Parent=script.Parent end end) |
|
|
| Report Abuse |
|
|