local part = script.Parent
local core = part.Parent:FindFirstChild("Core")
if not core then
warn("Core not found")
return
end
local speedX = 60
local speedY = 90
local speedZ = 45
local RunService = game:GetService("RunService")
local rotation = CFrame.new()
RunService.RenderStepped:Connect(function(dt)
local rotationDelta = CFrame.Angles(
math.rad(speedX * dt),
math.rad(speedY * dt),
math.rad(speedZ * dt)
)
rotation = rotation * rotationDelta
part.CFrame = core.CFrame * rotation
end)
This is a localscript and basically what happens it rotates for about 5 seconds then it freezes and disappears completely from the explorer and view