generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Tycoon Help

Previous Thread :: Next Thread 
lethalgraal is not online. lethalgraal
Joined: 22 Sep 2014
Total Posts: 13
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 is not online. 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
C0mmando323 is not online. C0mmando323
Joined: 15 Dec 2012
Total Posts: 394
06 Dec 2014 10:03 AM
Have you looked at the script?
Report Abuse
lethalgraal is not online. lethalgraal
Joined: 22 Sep 2014
Total Posts: 13
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image