How do I change/fix this rotating model Script?
Hey so, FYI I forgot my account to this website so I just made a random account but any who here's my question:
So I have a rotating script I found from a YouTube video (I can't Script) and it worked for rotating the model in its position however it does not rotate in my wished direction. It's rotating up and down. I wish for it to rotate left and right, 360, non stop. It can do the 360 non stop but it's not in my wanted direction as I said before. Here is the Script:
02 | local function rotateModel(objects, center, new, recurse) |
03 | for _,v in pairs (objects) do |
04 | if v:IsA( "BasePart" ) then |
05 | v.CFrame = new:toWorldSpace(center:toObjectSpace(v.CFrame)) |
08 | rotateModel(v:GetChildren(), center, new, true ) |
14 | local model = script.Parent |
16 | local center = model:GetModelCFrame() |
23 | center * CFrame.Angles( 0 ,math.rad(turnSpeed), 0 ), |
Thanks if you could help me with this, if you know the answer please answer by putting in the script that would work for this model. (NOTE: Model)