|
| 20 Oct 2016 04:21 PM |
Currently, trying to move a model/GROUP of Parts to one CFrame (a Plot like part) I got this script to move just the one Part to the middle of the "Plot" CFrame, but I want the whole grouped Model to move there and not just the one specific Part.
-------- This is the current script I am using. -------- do wait(5) game.Workspace.Player1.Humanoid.WalkSpeed = 60 print "Walkspeed ajusted to 60" wait(4) print "Trying model Movement now..." local plot = game.Workspace.Properties.Plots1aa local plotPos = game.Workspace.Properties.Plots1aa.CFrame local thingy = game.Lighting.ModelTest1a:Clone() thingy.Parent = workspace thingy.Part.CFrame = plotPos print " - Finished trying to move Model." end
---------------------------------------------------------- |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:22 PM |
| I already literally just told you to use SetPrimaryPartCFrame in another thread |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:28 PM |
| Sorry i didnt see it and currently dont see it but thank you. |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:33 PM |
| Still confused. I dont see where you posted the other thread but I am confused on using the SetPrimaryPartCFrame?? |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:36 PM |
Use the wiki
set a primary part and it cframes the rest relative to object space t |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:38 PM |
| I see it on the wiki but im confused on how i would use it. Could you provide an example or use the script i listed at all? im sorry dude. just confused trying to learn this... |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:40 PM |
dude its literally so easy even the wiki documentation shows you model:SetPrimaryPartCFrame(theCframe) |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:45 PM |
dude. i could be looking at a different wiki, chill. Im confused work with me. im seeing what youre doing and im putting it in the script but its not working dude.
|
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:55 PM |
What did I do wrong? it spawns the whole model in a random spot where I placed it to build the model..??
do wait(5) game.Workspace.Player1.Humanoid.WalkSpeed = 60 print "Walkspeed ajusted to 60" wait(4) print "Trying model Movement now..." local plot = game.Workspace.Properties.Plots1aa local plotPos = game.Workspace.Properties.Plots1aa.CFrame local thingy = game.Lighting.ModelTest1a:Clone() local model = game.Lighting.ModelTest1a wait(1) model.PrimaryPart = game.Lighting.ModelTest1a.Part1a model:SetPrimaryPartCFrame(plotPos) thingy.Parent = workspace print " - Finished trying to move Model." end
|
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 04:56 PM |
| set the part by clicking the model, clicking primary part, then clicking a part somewhat in the center |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 05:00 PM |
| Okay, I did that... What am I changing in the script bro. |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
|
| 20 Oct 2016 05:01 PM |
change .CFrame =
to
:SetPrimaryPartCFrame(
|
|
|
| Report Abuse |
|
|
|
| 20 Oct 2016 05:06 PM |
do wait(5) game.Workspace.Player1.Humanoid.WalkSpeed = 60 print "Walkspeed ajusted to 60" wait(4) print "Trying model Movement now..." local plot = game.Workspace.Properties.Plots1aa local plotPos = game.Workspace.Properties.Plots1aa.CFrame local thingy = game.Lighting.ModelTest1a:Clone() local model = game.Lighting.ModelTest1a wait(1) thingy.Parent = workspace model:SetPrimaryPartCFrame(plotPos) print " - Finished trying to move Model." end |
|
|
| Report Abuse |
|
|