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

How to make model go faster when I push it or make it stop when it crashes on me?

Asked by 2 years ago

Ok, so I am making a Homestore, and I'm trying to make one of those spinny entrance thingies, I made it spin, but the problem is, it stops on nothing. I want it to stop spinning if I am standing still, and I want it to go faster when I push it. But it is always going at the same speed, and stops on nothing!

I use this script to make the model spin:

local model = script.Parent
while wait() do
    local turn = model:GetPrimaryPartCFrame()*CFrame.fromEulerAnglesXYZ(-.01,0,0)
    model:SetPrimaryPartCFrame(turn)
end

I think this can be solved with bodygyro.. or something like that.. But I am not sure. I have done some searches, but it doesn't help :/

Any help is appreciated, thanks in advance!

Btw here is the link to a video showing all of this: https://vimeo.com/581828462

Answer this question