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 problem

Previous Thread :: Next Thread 
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 08:58 PM
This isn't working PC:MoveTo(Player.Character.Head.Position)
neither would PC:MoveTo(Part.Position) even after Part has been defined.
Report Abuse
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
19 Oct 2014 09:00 PM
PC is?
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:02 PM
PC is a model
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:16 PM
b
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:18 PM
PC should be a Humanoid.
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Oct 2014 09:20 PM
Does Model not have the MoveTo method anymore? Why would they remove that, it would break so many scripts!
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:21 PM
The script works. However, it relies heavy on the position.

local tab = service:Insert(PC)
PC:MoveTo(game.Workspace.CarStores:FindFirstChild("CarShop").Pos.Position)
PC.Parent = player.Character

--Works.


local tab = service:Insert(PC)
PC:MoveTo(Part.Position)
PC.Parent = Player.Character

--Does not work.
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:21 PM
PC means character, right?
Report Abuse
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
19 Oct 2014 09:22 PM
^
Idiot.

Of course model has MoveTo(), it's now in roblox's legacy, they would never remove it.

-Vanilla
Report Abuse
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
19 Oct 2014 09:22 PM
Nooooo dang you mobile phone typing speeds.
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:22 PM
brotha y u call me idiot :(
Report Abuse
VanillaLight is not online. VanillaLight
Joined: 02 Nov 2013
Total Posts: 834
19 Oct 2014 09:23 PM
My brotha it was a mistake. Calm yo ass down.
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:24 PM
i am calm

btw i thought pc meant character, nvm, you can use it on models also @jared
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:28 PM
local service = game:GetService("InsertService")
local PC = service:LoadAsset(174905627)
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:41 PM
PC:MoveTo(Player.Character:FindFirstChild("Torso").Position)

This doesn't work either ffs.
Report Abuse
ScriptGuilder is not online. ScriptGuilder
Joined: 07 Aug 2014
Total Posts: 848
19 Oct 2014 09:43 PM
for i,v in pairs(model path:GetChildren()) do
v:MoveTo(Vector3.new(position))
Report Abuse
ModDeathRally9 is not online. ModDeathRally9
Joined: 02 Sep 2012
Total Posts: 370
19 Oct 2014 09:44 PM
>local Pos = workspace.Character.Torso.Position
>local PC = workspace.Model
>PC:MoveTo(Pos)


The > is markdown cuz of Forum Enhancer extension.
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:44 PM
^
what
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:45 PM
Whoops, that was directed towards ScriptGuilder.
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:47 PM
for i,v in pairs(model path:GetChildren()) do
v:MoveTo(Vector3.new(position))

^^ What is this. You can't just post random things without defining each one.


>local Pos = workspace.Character.Torso.Position
>local PC = workspace.Model
>PC:MoveTo(Pos)

"Workspace.Character" Lol'd. So hard.

"PC = workspace.Model" Too bad it doesn't.
Report Abuse
ModDeathRally9 is not online. ModDeathRally9
Joined: 02 Sep 2012
Total Posts: 370
19 Oct 2014 09:48 PM
@builderman, lol I know.
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:49 PM
PC:MoveTo(Player.Character['Torso').Position)
Report Abuse
builderman0621 is not online. builderman0621
Joined: 13 Jul 2010
Total Posts: 1612
19 Oct 2014 09:49 PM
PC:MoveTo(Player.Character['Torso'].Position)

sometimes findfirstchild can be stupid
Report Abuse
MillerSoRock is not online. MillerSoRock
Joined: 27 Feb 2010
Total Posts: 4888
19 Oct 2014 09:50 PM
@Builder, I got that typo lol
Report Abuse
ModDeathRally9 is not online. ModDeathRally9
Joined: 02 Sep 2012
Total Posts: 370
19 Oct 2014 09:51 PM
@miller ಠ_ಠ That's an example... Of course the characters name isn't Character. PC can be any model. Even a character.
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