this is a staright lucky frame or whatever you call it. Im trying to make this for a UGC game but the movement are so inconsistent. These are two frame with same items one they both are being minused with same value but the second frame is sometimes overlapping the first frame.
local currentTime = tick()
local delta = currentTime - lastspin
lastspin = currentTime
newX= SpeedFactor*delta
ItemsFrame.Frame1.Position = UDim2.new(ItemsFrame.Frame1.Position.X.Scale-newX, ItemsFrame.Frame1.Position.X.Offset, ItemsFrame.Frame1.Position.Y.Scale, ItemsFrame.Frame1.Position.Y.Offset)
ItemsFrame.Frame2.Position = UDim2.new(ItemsFrame.Frame2.Position.X.Scale-newX, ItemsFrame.Frame2.Position.X.Offset, ItemsFrame.Frame2.Position.Y.Scale, ItemsFrame.Frame2.Position.Y.Offset)
if SpeedFactor < MinSpeedFactor then
SpeedFactor = math.max(MinSpeedFactor, SpeedFactor + Acceleration)
end
the code is in a function and the function is being called using runservice.