*Position of a model issue:
*
If anymore specifics need to be uploaded please let me know, please attempt to assist me on this problem. I’ve tried many different solutions that didn’t work.
*Position of a model issue:
Also, inside of the code I am using a system for orbiting, so I am using a Magnitude Value.
You can’t set the position of a model using .Position
, use Model:PivotTo(CFrame.new(<Your Vector3 Here>))
.
Will try again, but i’m using “magnitude value” which doesn’t like CFrame very much.
I believe you should move this to Help and Feedback: Scripting Support
Alright, thanks! I’ll try to do that.
I don’t know what that means, CFrames use Vectors for positioning an object.
Magnitude values deal with Line Forces in Roblox Studio.
I would like to demonstrate what this system can do, if you want to contact my discord you can .prismic – Up to you though
All you’re doing is offsetting a vector in a certain direction, what have line forces got to do with this? You can just use a CFrame offset to achieve the orbiting effect you want.
local Origin = CFrame.new(0,0,0) -- point you want your planet to orbit around
local Offset = 50 -- distance you want your planet to be from the origin
local Theta = 0
while true do
Part:PivotTo(Origin * CFrame.Angles(0, Theta, 0) * CFrame.new(0, 0, Offset))
Theta += 0.001
task.wait()
end
I’ll try this, thanks, Hopefully it works!
Sorry for the bother, since I am a bit new to using Pivots & CFrames: when you put “Rotate Around” what am I supposed to replace that with?
Never mind! Thanks for the help man, this made my DAY!!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.