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

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

Asked by 9 years ago

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.

0
Can you provide the code for the spinning? Are you using BodyMovers? Goulstem 8144 — 9y
0
No. I am using someone elses start code. But I will show the loop code. CptJones 0 — 9y
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 koolkid8099 705 — 9y
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. CptJones 0 — 9y
0
hmmm koolkid8099 705 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

Ad

Answer this question