Frames dropping when tweening things

Whenever I tween objects the frame rate begins to drop, and I’m wondering why.
All tweens are done on the client, but the spinning part is done with this code:

-- Spin speed is 0.15
connection = RunService.Heartbeat:Connect(function()
	Part1.CFrame = Part1.CFrame*CFrame.Angles(0,-SPIN_SPEED,0)
	Part2.CFrame = Part2.CFrame*CFrame.Angles(0,SPIN_SPEED,0)
end)

Game: (press and hold R to activate the tweens, zooming in while the tweens are running causes lag)

1 Like

Tested it out and it doesn’t seem to lag for me. I would also recommend doing client-side rendering instead of handling it on the server

1 Like

I’ve tried and it doesn’t seem to lag. When the move is ready you should fire a remote event to all clients to create the moves. Ofc you would handle the damage on the server but all visual parts should be done on the client.

1 Like