There seems to be an issue with high frame-rates.
3 Likes
Hello thanks for reply
Yes i know that issue. I don’t have the slightest idea how to solve it
Is there a way to set a speed limit?
You might want to use DeltaTime if you have anything fixed to frames.
All you need to do really is multiply it to it and it will even out even on higher frame rates.
function move(dt) -- You probably should have actually used Heartbeat for this as RenderStepped event is usually used for GUI/Frames/Visuals.
if human.FloorMaterial ~= Enum.Material.Air then
ball.Velocity = ball.Velocity + (human.MoveDirection * human.WalkSpeed) * dt -- It is as simple as that.
end
end
I believe Lego Island had a bug exactly like this: How I fixed LEGO Island's WORST bug - YouTube
1 Like