local C=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local J=require(C.Shared.components)local function E(C,E,l)if(l.checkbox("\068\105\115\097\098\108\101 \083\112\105\110\110\105\110\103")):checked()then return end local f=l.slider(1)local T=(l.button("\082\097\110\100\111\109\105\122\101 \099\111\108\111\114\115\033")):clicked()for C,J in C:query(J.Model,J.Spinner)do J.model.PrimaryPart.CFrame=J.model.PrimaryPart.CFrame*CFrame.Angles(0,math.rad(5),0)J.model.PrimaryPart.Transparency=f if T then J.model.PrimaryPart.BrickColor=BrickColor.random()end end end return{system=E,event="\083\116\101\112\112\101\100"}
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Components = require(ReplicatedStorage.Shared.components)

local function spinSpinners(world, _, ui)
	if ui.checkbox("Disable Spinning"):checked() then
		return
	end

	local transparency = ui.slider(1)

	local randomize = ui.button("Randomize colors!"):clicked()

	for _, model in world:query(Components.Model, Components.Spinner) do
		model.model.PrimaryPart.CFrame = model.model.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(5), 0)
		model.model.PrimaryPart.Transparency = transparency

		if randomize then
			model.model.PrimaryPart.BrickColor = BrickColor.random()
		end
	end
end

return {
	system = spinSpinners,
	event = "Stepped",
}
