Utilities 5 min read

Animate Showcases and Pickup Displays

Create two readable display animations and learn how model pivots control their movement.

Place the model pivot first

Make an anchored model with a pivot centered above a display stand. Store its initial pivot and rotate it by elapsed time. Starting from the original frame avoids accumulating small errors. If the item orbits unexpectedly, move the pivot to the intended rotation center before tuning the script.

Add bobbing to mark a pickup

Use a wave function to lift the display by a small amount and return to its starting height. Combine the offset with slow rotation. A low bobbing height is usually enough to show that an object is interactive. Put collection checks in a separate prompt or touch handler.

Test the art from several angles

Walk around both displays and look for clipping with the plinth. Test at a distance and check whether the item remains identifiable. For a large map with many decorations, consider moving purely visual updates to clients.

Build a reference display with room around it

Create a pedestal with a flat top and place an anchored model above its center. Choose a shape with an obvious front, such as a tool with one long edge, so that rotation is visible. Leave a gap between the model and the pedestal and keep nearby walls away from its widest point. In Studio, move the model pivot to the intended rotation center. If that pivot sits near a handle or far outside the model, rotating the object will make it travel in a circle. Test a half turn in the editor before running the script. It is much easier to diagnose a pivot mismatch without a live loop moving the object.

Compute movement from a fixed baseline

Record the model's original CFrame, then calculate the angle from elapsed seconds. Composing that rotation with the baseline keeps the intended position stable. Repeatedly offsetting the current frame can make a slight position error accumulate or apply a rotation around an unintended axis. Start with a slow speed so a visitor can see the front of the item and compare its sides. Mark the starting orientation and watch it return to that position after a full turn. If the item later needs to move to a new pedestal, decide when the controller should record a new baseline. A saved origin is useful because the display never guesses its home position.

local angle = math.rad(35) * elapsed
local goal = baseline * CFrame.Angles(0, angle, 0)
model:PivotTo(goal)

Use a low bob to communicate interaction

For a pickup display, add a small vertical offset calculated from a sine function. Shifting that curve upward makes the lowest point return to the starting height, which can help keep the object above its pedestal. Adjust height before frequency: a fast large bob can make an item difficult to identify or cause it to pass through nearby scenery. In a bright environment, a small ground circle or contrasting plinth can make the effect more obvious without increasing movement. Keep the pickup trigger separate from the animated geometry if you want interaction to happen in a fixed, predictable area. Test whether the visible item and the trigger line up from the player's usual camera distance.

Decide who needs to see each effect

A shared model moving on the server is convenient for a small prototype, because all players see the same position. Pure decoration on dozens of displays can be a better fit for client visuals, which keeps decorative frame-by-frame movement separate from server gameplay. Keep item collection authoritative on the server in either case. For a prototype, test one display and one pickup before copying them into every room. Stop the update when the model is removed so an old connection does not continue trying to move it. If an item returns later, bind its new display instance with a fresh baseline rather than writing to the previous model.

Inspect the display from player height

Walk around the item and crouch or move the camera toward the floor to check the gap above the pedestal. Stand far away and identify the item from its outline while it moves. If a decorative effect makes similar pickups harder to distinguish, slow the motion or add a stronger shape cue. Test collection while the item is at both extremes of its bob to make sure the interaction region is comfortable. Run a second player past the display as the first interacts and observe whether the item stays synchronized with its available state. Once that test passes, tune polish such as lighting, color and rotation independently so it remains clear which adjustment improved recognition.

Related scripts