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
local fan = script.Parent.Parent local function partRotation(part) while true do fan.PrimaryPart = fan.center fan:SetPrimaryPartCFrame(fan.center.CFrame * CFrame.fromEulerAnglesXYZ(0,0.1,0)) wait() end end partRotation()
put this in a local script also
edit: forgot to call function