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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 20 Jan 2015 |
| Total Posts: 217 |
|
|
| 12 May 2017 08:26 AM |
Hm, " Unable to cast Instance to CoordinateFrame"
|
|
|
| Report Abuse |
|