
Mill wheel
Models · by Brixborg
A great rusty cog standing on its edge between two stone posts, turning over. Has a script inside.
Use it in your games: in the studio, open View > Archive, go to the Models shelf and pick "Mill wheel".
The script
-- THE COG: turns this part round its own axis (its X direction), at the
-- speed in its "Spin" value (radians a second; minus = the other way). It
-- is anchored, so nothing stops it: whatever stands on it is carried
-- round, and whatever gets in the way is shoved. (A Script inside it.)
local cog = script.Parent
local spin = cog:WaitForChild("Spin")
game:GetService("RunService").Heartbeat:connect(function(seconds)
cog.CFrame = cog.CFrame * CFrame.Angles(spin.Value * seconds, 0, 0)
end)