|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 14 Jul 2012 |
| Total Posts: 1849 |
|
| |
|
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 |
|
|