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: What's wrong with this script?

Previous Thread :: Next Thread 
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
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 is not online. Partials
Joined: 19 Jul 2012
Total Posts: 47
05 Sep 2012 06:25 PM
YOU NEED SOME INTELLECT DUDE
Report Abuse
crusada91 is not online. 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
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
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 is not online. 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
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
05 Sep 2012 07:15 PM
Nah just been doin some ps3 stuff
Report Abuse
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
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 is not online. 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
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
07 Sep 2012 07:49 PM
and how do i do that?
Report Abuse
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
04 Oct 2012 12:55 PM
Anyone?
Report Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1076
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
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
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 is not online. 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
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
23 Nov 2012 09:17 PM
but how do i regen the tycoon
Report Abuse
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
24 Nov 2012 02:06 PM
Would i put a regen script right under the script?
Report Abuse
SmallC5692 is not online. SmallC5692
Joined: 12 Feb 2011
Total Posts: 113
28 Nov 2012 05:04 PM
Anyone?!
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