I am trying to make a cash spawner in a bank and it will rotate so it doesnt bunch up in one area, the cash spawns perfectly fine, but the only issue is where its supposed to spawn doesn’t rotate nor stays in front of the other part that is rotating.
Try making it a model, and then using the part you are rotating as the primary part. you can then rotate it and then use this script in the model:
local model = script.Parent
while true do
for i = 0, 360, 1 do
local newCFrame = model.PrimaryPart.CFrame * CFrame.Angles(0,math.rad(i),0)
model:SetPrimaryPartCFrame(newCFrame)
wait(0.001)
end
end
local model = script.Parent
local degrees = 1
while true do
local newCFrame = model.PrimaryPart.CFrame * CFrame.Angles(0,math.rad(degrees),0)
model:SetPrimaryPartCFrame(newCFrame)
wait(0.001)
end