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: How would I make a model move smoothly to a brick

Previous Thread :: Next Thread 
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 09:38 AM
script.Parent.Parent.Parent.Parent:GetModelCFrame().p = game.Workspace.Warpy.Position
^ Wont work

I want the model to move smoothly to a brick in workspace called "Warpy''
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
17 Jul 2017 09:42 AM
extremely small movements in a fast motion is one.
a body mover to do it is a way also.





#code print("oh no an errorz!")
Report Abuse
doggy00 is online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
17 Jul 2017 09:44 AM
BodyPosition
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 10:16 AM
How do i use bodyposition in a model
Report Abuse
doggy00 is online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
17 Jul 2017 10:16 AM
Weld everything in the model to one main part and use BodyPosition on the part they're being welded to (this should work).
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 11:23 AM
Ok Thanks a lot
Report Abuse
ChaoticRequiem is not online. ChaoticRequiem
Joined: 09 Dec 2011
Total Posts: 678
17 Jul 2017 11:28 AM
lerping is also an option, though it depends on a lot of things
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 11:31 AM
CFrame.lerp

or

http://wiki.roblox.com/index.php?title=API:Class/TweenService
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 11:51 AM
Welding parts and body position did not work but ill try lerp or tween service
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 12:07 PM
When i used lerp it shaked the model it didnt go to the point smoothly
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 12:18 PM
TweenService should do it very smoothly

local duration = 5
newCFrame = CFrame.new(?)

game:GetService("TweenService"):Create(workspace.Part, TweenInfo.new(duration, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false, 0), {CFrame = newCFrame}):Play()
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 12:25 PM
ok
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 12:31 PM
i dont think its even moving it with the tween service
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 12:36 PM
did you change the "workspace.Part" parameter?
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 12:37 PM
and change the newCFrame var
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 12:44 PM
what do i change them to newCFrame is the goal and workspace.Part is the model?
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 12:46 PM
Well, first, set the PrimaryPart of the model, and then change workspace.Part to whateveryourmodeliscalled.PrimaryPart, and, yes, change newCFrame to the desired CFrame you want it to tween to
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 01:07 PM
how would i set the primary part
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 01:13 PM
nvm figured it out
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 01:17 PM
Its still not working.

local duration = 5
script.Parent.Parent.Parent.BodyKit.Fighter.PrimaryPart = script.Parent.Parent.Parent.BodyKit.Fighter.Part

local newCFrame = CFrame.new(game.Workspace.Warpy.CFrame)
game:GetService("TweenService"):Create(script.Parent.Parent.Parent.BodyKit.Fighter.PrimaryPart, TweenInfo.new(duration, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out, 0, false, 0), {CFrame = newCFrame}):Play()
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 01:24 PM
you still need to set the end CFrame of the tween where it says {CFrame = newCFrame}
Report Abuse
Kurokku is online. Kurokku
Joined: 01 Aug 2015
Total Posts: 3622
17 Jul 2017 01:44 PM
roblox just added a new service called tween service and it can be used just for what you're asking for
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 01:56 PM
What do i change CFrame in "[CFrame = newCFrame]" to?
Report Abuse
Vocules is not online. Vocules
Joined: 10 Dec 2012
Total Posts: 98
17 Jul 2017 01:57 PM
Kurokuu im not good with tween service
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
17 Jul 2017 02:00 PM
{CFrame = CFrame.new(whatever the cframe is you're tweening to)


if you want to move it to like, the position of another brick, just type

{CFrame = workspace.ENDPART.CFrame}

or you can paste in the actual raw CFrame values
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