✓ Accepted answer
Lol, this was from my math.random explanation. But anyway, you need to change the value to either a Vector3, or a CFrame. If you're changing it to a CFrame, you'll need to access the CFrame property of the part.
Here:
local part = Instance.new("Part",workspace
local d = Instance.new("Decal",part)
part.TopSurface="Smooth"
part.BottomSurface="Smooth"
part.Anchored=true
part.Size=Vector3.new(5,5,1)
part.CFrame=CFrame.new(0,0,0)
while wait() do
part.CFrame = part.CFrame * CFrame.Angles(0,0,1/10)
end
TheDeadlyGuest4 said something similar, but his example was flawed with a lowercase "f" in "CFrame", and not changing the "part.Position" to "part.CFrame".
1 comment
This won't work. You're not accessing the CFrame property of "part", and you spelled CFrame with a lowercase "f".