Good day everyone.
I have searched quite far in the devforum, but didn’t find anything honestly that answers my question, and it’s moving a local model.
I know how to move a typical normal model with a server script, but I can’t honestly find a way to move a local one.
It’s a model less than 50 parts, I want to achieve a simple smooth movement in one axis.
Any help is very appreciated!
What do you mean moving a local model? Do you mean a client moves a model on their screen while the server sees the model stay still?
Mhm, take the example as a plane: the player sees it flying, but others cannot.
You will need to use localscripts for that, in the client side, and then probably weld all parts of the plane and create a tween using TweenService, althought I don’t really think tweenservice is the best option for this, you can do it similarly. I believe.
So your trying to make a script/GUI that allows the player to move the model? (Consider this not locally.)
That’s what I’m gonna say. :((((
Is it possible to use SetPrimaryPartCFrame for this?
And no don’t worry Zeus, haha.
Sorry but what does that built-in function do?
@ItzMeZeus_IGotHacked It basically gets the PrimaryPart of the model & sets the CFrame to the passed CFrame.
And yeah you can use that to change CFrame of the model. But you will still need to weld all of the parts together, so they don’t stay behind.
What does primary part stands for? How can I make one?
Alright, thanks for the assistance!
In Model you basicly there is option primarypart just make the primary part of any part in it
PrimaryPart can be set by selecting the Model & then setting primary part object through the Properties.
Most of the times PrimaryParts are used when referencing to a model, for example when making a Pet System for example, it is better if you do Model.PrimaryPart, instead of searching for Model.Root or Model.Handle as you might make typos in names sometimes, or some other developer might not name them like that.
It is also used when using SetPrimaryPartCFrame & MoveTo functions
I may wanna message you to learn more.
Sure you can, actually you can go through most of these things in the Developer Hub, it covers almost everything Roblox API consists of (The one we have access to probably).