I have a fan that spins to add extra effect to the map, and in hopes to reduce lag (my game has over 1200 client memory usage) i want to make it a local script. its a standard spin script
local fan = script.Parent.Parent
while true do
fan.PrimaryPart = fan.center
fan:SetPrimaryPartCFrame(fan.center.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0))
wait()
end
but i want to make it local. i tried to put it in a local script but that didnt work.. now that im writing this it may be impossible idk help would be appreciated

1 comment
i just realized that i should move the primary part definition outside of the loop lol