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: MoveTo (wont work) HELP!

Previous Thread :: Next Thread 
yoshiwars is not online. yoshiwars
Joined: 27 Jul 2009
Total Posts: 216
03 Jul 2013 12:09 PM
What am doing wrong? :c

bin = script.Parent

function onClicked(mouse)
script.Disabled = true
script.Parent.ClickDetector.MaxActivationDistance = 0

c = game.Lighting:findFirstChild("Red"):Clone()
c.Parent = Workspace
c:MoveTo(game.Workspace.lineone.Position)

wait(2)

script.Disabled = false
script.Parent.ClickDetector.MaxActivationDistance = 10
end

bin.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
03 Jul 2013 12:10 PM
You disabled the script before doing anything else. Remove that part, you already set the max distance to 0.
Report Abuse
mark298 is not online. mark298
Joined: 24 Oct 2008
Total Posts: 1264
03 Jul 2013 12:12 PM
Yeah, as KnightmareXD said, don't disable the script because it will no run all of that and then enable itself again because it is disabled.
Report Abuse
yoshiwars is not online. yoshiwars
Joined: 27 Jul 2009
Total Posts: 216
03 Jul 2013 12:16 PM
Thanks, you made my script smaller but that is obviously not what I'm looking for.. I'll show you my output

12:15:08.306 - MoveTo is not a valid member of Part
12:15:08.308 - Script "Workspace.Head.Script", Line 8
12:15:08.309 - stack end
12:15:08.309 - Disconnected event because of exception
Report Abuse
yoshiwars is not online. yoshiwars
Joined: 27 Jul 2009
Total Posts: 216
03 Jul 2013 12:21 PM
nvm fixed it by myself.
Report Abuse
immithebest is not online. immithebest
Joined: 07 Mar 2012
Total Posts: 221
03 Jul 2013 12:25 PM
script.Disabled = true. XD
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