Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Model:SetPrimaryPartCFrame() starts to split the model?

Asked by 9 years ago

I'm using Model:SetPrimaryPartCFrame() to have a model constantly move around by using CFrame values, but after a short amount of time all of the model's parts start to slowly drift apart. Does anybody know why this happens and how to fix it?

i=0
speed=0.0005
model=game.Workspace.Model

while true do
    wait()
    i=i+1
    model.PrimaryPart=model.Primary
    model:SetPrimaryPartCFrame(((planet.CFrame)*(CFrame.fromEulerAnglesXYZ(0, i*speed, 0))*(CFrame.new(0, 0, 100))))
end
0
Strange behavior. Can you show us the rest of the script? Redbullusa 1580 — 9y
0
Yeah, I put the code above in the question. Wafflehagen 20 — 9y

Answer this question