Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

A rotating model works in studio, but skips rotations in game. Any help?

I have a model (a rotor on a helicopter) that spins. In studio it looks great, but in a server it skips some rotations. Its not the FPS because I slowed down the refresh speed to 20 times a second and it still skipped some rotations. I dont know how to make it look like how it does in studio in a server. Any help is appreciated, thanks.

5 comments

0

Can you provide the code for the spinning? Are you using BodyMovers?

0

No. I am using someone elses start code. But I will show the loop code.

0

its probbably because the simple fact that play solo can run seamlessly with little to non lag, while the server is experiencing lag making it seem like it skipps

0

Its not that. I can have a stable ping and fps and it can be spinning super slow and it will just skip a rotation.

0

hmmm

1 answer

local speed = 0 local Rotor = script.Parent local CenterPart = Rotor.Part3

local Transformer = MakeModelTransformer(GetBricks(Rotor), CenterPart.CFrame)

for i=1, 100 do speed = speed + .125 Transformer(CenterPart.CFrame * CFrame.Angles(0, math.rad(speed), 0)) wait(.05) end

for speed = 12.5, 62.5 do speed = speed^1.001 Transformer(CenterPart.CFrame * CFrame.Angles(0, math.rad(speed), 0)) wait(.05) end

while true do Transformer(CenterPart.CFrame * CFrame.Angles(0, math.rad(123.375), 0)) wait(.05) end

That is the loop code.

http://www.roblox.com/games/200715467/Designing-place

Thats the place

This discussion is preserved as it was. New answers, comments, and votes are closed.