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 |
|
|
|
| 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
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 10 Dec 2012 |
| Total Posts: 98 |
|
| |
|
|
| 17 Jul 2017 11:28 AM |
| lerping is also an option, though it depends on a lot of things |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2017 11:31 AM |
CFrame.lerp
or
http://wiki.roblox.com/index.php?title=API:Class/TweenService |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 10 Dec 2012 |
| Total Posts: 98 |
|
| |
|
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 |
|
|
|
| 17 Jul 2017 12:36 PM |
| did you change the "workspace.Part" parameter? |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2017 12:37 PM |
| and change the newCFrame var |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 10 Dec 2012 |
| Total Posts: 98 |
|
|
| 17 Jul 2017 01:07 PM |
| how would i set the primary part |
|
|
| Report Abuse |
|
|
Vocules
|
  |
| Joined: 10 Dec 2012 |
| Total Posts: 98 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 10 Dec 2012 |
| Total Posts: 98 |
|
|
| 17 Jul 2017 01:57 PM |
| Kurokuu im not good with tween service |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|