RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a clientsided floating arrow that shows the player the next stage on the obby"
-- local script local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local arrow = Instance.new("BillboardGui") local arrowImage = Instance.new("ImageLabel") arrow.Adornee = character.Head arrow.Size = UDim2.new(0, 50, 0, 50) arrow.StudsOffset = Vector3.new(0, 3, 0) arrowImage.Size = UDim2.new(1, 0, 1, 0) arrowImage.Image = "rbxassetid://ArrowImageID" -- Replace with the image ID of the arrow arrowImage.Parent = arrow arrow.Parent = character.Head local function updateArrow() while true do local currentStage = player.leaderstats.Stage.Value local nextStagePart = game.Workspace.Stages:FindFirstChild("Stage" .. tostring(currentStage + 1)) if nextStagePart then local direction = (nextStagePart.Position - character.Head.Position).unit arrow.StudsOffset = Vector3.new(0, 3, 0) + direction * 3 end wait() end end spawn(updateArrow)