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 » Scripters
Home Search
 

Re: Another question on moving a model...

Previous Thread :: Next Thread 
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
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
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
20 Oct 2016 04:22 PM
I already literally just told you to use SetPrimaryPartCFrame in another thread
Report Abuse
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
20 Oct 2016 04:28 PM
Sorry i didnt see it and currently dont see it but thank you.
Report Abuse
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
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
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
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
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
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
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
20 Oct 2016 04:40 PM
dude its literally so easy
even the wiki documentation shows you
model:SetPrimaryPartCFrame(theCframe)
Report Abuse
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
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
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
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
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
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
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
20 Oct 2016 05:00 PM
Okay, I did that... What am I changing in the script bro.
Report Abuse
Wowgnomes is online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
20 Oct 2016 05:01 PM
change .CFrame =

to

:SetPrimaryPartCFrame(


Report Abuse
cookiemonster0wn is not online. cookiemonster0wn
Joined: 17 Apr 2012
Total Posts: 73
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
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