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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Why does it only move 1 part?

Previous Thread :: Next Thread 
NorbyN is not online. NorbyN
Joined: 20 Jan 2015
Total Posts: 217
12 May 2017 07:03 AM
I was doing a elevator, and built the body, and scripted it.

I've weld the model it all with a script.
When testing, it is welded, but, when I click the button for move it, it only moves the part, even tho everything's welded!

Script in the button:

local Model = script.Parent.Parent.Parent
local Sensor = Model.Sensor


script.Parent.ClickDetector.mouseClick:connect(function(Plr)
while true do
wait()
Sensor.Position = Vector3.new(0,1,0)
end
end)

What is wrong? I thought that by welding it, the whole model would move.
Report Abuse
Cyrakohl is not online. Cyrakohl
Joined: 09 Nov 2014
Total Posts: 3197
12 May 2017 07:06 AM
Just use SetPrimaryCFrame to move it im assuming it's a model.


R$10,007
Report Abuse
NorbyN is not online. NorbyN
Joined: 20 Jan 2015
Total Posts: 217
12 May 2017 07:17 AM
Thanks, I'll try it.
But gotta go for lunch now. xD
Report Abuse
NorbyN is not online. NorbyN
Joined: 20 Jan 2015
Total Posts: 217
12 May 2017 08:26 AM
Hm, " Unable to cast Instance to CoordinateFrame"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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