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 » Scripting Helpers
Home Search
 

Re: ok i need help with my tycoon

Previous Thread :: Next Thread 
megaman948 is not online. megaman948
Top 100 Poster
Joined: 03 Sep 2008
Total Posts: 41503
18 May 2012 11:03 PM
i am running an ad for it but people keep leaving

the reason

after someone leaves the game, their tycoon stays there

how can i get the tycoon to reset after they leave

P.S. i am not good at scripting
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
18 May 2012 11:35 PM
I didn't test this. But it should work.. that is if you hook everything up right.

Owner = script.Parent.Owner.Value --Find the owner value and hook it to this
tycoon = script.Parent --Link this to the tycoon.
tycoonc = tycoon:Clone() --Don't mess with this.

function leave(player)
if player.Name == Owner then
tycoonc.Parent = game.Workpsace
tycoon:Remove()
end
end
game.Players.ChildRemoved:connect(leave)
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
18 May 2012 11:36 PM
opps:

I didn't test this. But it should work.. that is if you hook everything up right.

Owner = script.Parent.Owner.Value --Find the owner value and hook it to this
tycoon = script.Parent --Link this to the tycoon.
tycoonc = tycoon:Clone() --Don't mess with this.

function leave(player)
if player.Name == Owner then
tycoonc.Parent = game.Workspace --Workspace opps
tycoon:Remove()
end
end
game.Players.ChildRemoved:connect(leave)
Report Abuse
TF2PyroManiac is not online. TF2PyroManiac
Joined: 30 Apr 2012
Total Posts: 55
18 May 2012 11:41 PM
I don't know the exact lines and stuff like that, but when making a tycoon, make sure the reset script isn't inside the Tycoon itself (such as mixed with the buttons, OwnerValue, etc.) Your going to have to group all of the buttons, components, StringValues, etc. Together in a model. And have that model isnide the tycoon model itself. So basically, a model inside a model. And then, try to script a tycoon reset script by yourself (Scripting Help, not Scripting Requests) Hope I made myself 'understandable'
Report Abuse
maggy845 is not online. maggy845
Joined: 22 Dec 2008
Total Posts: 1878
21 Mar 2014 03:27 PM
Just gonna bump this, How exactly am I gonna hook that up. It's not clear enough
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
21 Mar 2014 03:28 PM
[ Content Deleted ]
Report Abuse
maggy845 is not online. maggy845
Joined: 22 Dec 2008
Total Posts: 1878
21 Mar 2014 03:31 PM
Every scripting basics/intermediate/advanced does not tell me how to link the stuff up. All it does is teach me how to do For/if/then arguments. That won't help me if I want to make something. That's just the technique and ways of scripting. NOT on how to make the actual script make my tycoon disappear when someone leaves the game.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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