Floating Pickup Display with Gentle Bobbing thumbnail
0 views0 copies0 likes

Floating Pickup Display with Gentle Bobbing

Universal script

Copy it, then test it in your own Studio place.

Utilities Verified

Script code

11 lines · 0.4 KB
Download
local RunService = game:GetService("RunService")local model = workspace:WaitForChild("HoverPickup")local baseline = model:GetPivot()local began = os.clock()local listenerlistener = RunService.Heartbeat:Connect(function()	if not model.Parent then listener:Disconnect(); return end	local t = os.clock() - began	local offset = Vector3.new(0, (math.sin(t * 2.2) + 1) * 0.45, 0)	model:PivotTo((baseline + offset) * CFrame.Angles(0, t * 1.1, 0))end)

About this script

Make an anchored model named HoverPickup and set its pivot at the center of the model. The script combines slow rotation with gentle bobbing to make the object easy to spot from far away. This controls appearance only, so attach your own collection prompt or use a separate pickup trigger. Increase its height slightly if the display passes too close to the plinth.

Comments

Share what works, ask questions, or report an issue.

0

Log in to leave a comment.

No comments yet

Be the first to share your thoughts!

Raw Luau source

local RunService = game:GetService("RunService")
local model = workspace:WaitForChild("HoverPickup")
local baseline = model:GetPivot()
local began = os.clock()
local listener
listener = RunService.Heartbeat:Connect(function()
	if not model.Parent then listener:Disconnect(); return end
	local t = os.clock() - began
	local offset = Vector3.new(0, (math.sin(t * 2.2) + 1) * 0.45, 0)
	model:PivotTo((baseline + offset) * CFrame.Angles(0, t * 1.1, 0))
end)