|
| 05 Sep 2012 06:24 PM |
I put a clickdetector and every thing and im trying to delete the tycoon: model = script.Parent.Factory
function onClick(plr) if plr.Parent.Name = model.OwnerValue.Value then model.OwnerName.Value = "" end end
script.Parent.ClickDetector.MouseClick:connect(onClick) |
|
|
| Report Abuse |
|
|
Partials
|
  |
| Joined: 19 Jul 2012 |
| Total Posts: 47 |
|
|
| 05 Sep 2012 06:25 PM |
| YOU NEED SOME INTELLECT DUDE |
|
|
| Report Abuse |
|
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 05 Sep 2012 06:25 PM |
model = script.Parent.Factory
function onClick(Player) if Player.Name == model.OwnerValue.Value then model.OwnerName.Value = "" end end
script.Parent.ClickDetector.MouseClick:connect(onClick)
MISTAKES:
Added Extra .Parent For Player Name You Needed 2 ='s, You Only Put 1 |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2012 06:28 PM |
| OOOOO ty it's my first day back i took a 4 month break or something. Sorry |
|
|
| Report Abuse |
|
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 05 Sep 2012 06:32 PM |
You're Welcome =) 4 Month Break O_o, Summer Is That Long For You? |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2012 07:15 PM |
| Nah just been doin some ps3 stuff |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2012 08:03 PM |
| It worked but it didn't. It said tycoon owner nobody but the door is still transparent and the tycoon is still running and you can't own anyother tycoons. Dont know what the problem is. |
|
|
| Report Abuse |
|
|
crusada91
|
  |
| Joined: 04 Sep 2010 |
| Total Posts: 684 |
|
|
| 05 Sep 2012 08:04 PM |
you have to set the player's Tycoon value to 0 and regen the tycoon model |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 04 Oct 2012 02:44 PM |
OnClicked(Player) is incorrect because Clicked:Connect doesn't return anything.
☜▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬☞ MrChickens, another bird which doesn't fly. |
|
|
| Report Abuse |
|
|
|
| 22 Nov 2012 07:11 AM |
| True but how would i regen it? just make a whole new regen script under the one under this? |
|
|
| Report Abuse |
|
|
Monkey727
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 22 Nov 2012 09:58 AM |
| @MrChickens, It returns the player who clicked it actually. |
|
|
| Report Abuse |
|
|
|
| 23 Nov 2012 09:17 PM |
| but how do i regen the tycoon |
|
|
| Report Abuse |
|
|
|
| 24 Nov 2012 02:06 PM |
| Would i put a regen script right under the script? |
|
|
| Report Abuse |
|
|
| |
|