How to make arrows that guide player towards a point of interest

Many games (Bee swarm, adopt me) have this feature where a set of arrows guide the player towards a certain point. How do I go about making something like this?

I know about WorldToScreenPoint() of camera, but i’m not sure how to create this specific effect.
https://developer.roblox.com/en-us/api-reference/function/Camera/WorldToScreenPoint

4 Likes

You can use a Beam object - for example, set Attachment0 to the character’s RootRigAttachment and set Attachment1 to an attachment on the other object, e.g. another RootRigAttachment for an NPC.

8 Likes

https://gyazo.com/e1f47de87ca88597599cafe4f51a183b

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		char.Humanoid.AncestryChanged:Connect(function(_, parent)
			if char.Humanoid:IsDescendantOf(workspace) then
				local beam = Instance.new("Beam", workspace)
				beam.Attachment0 = script.Parent.Attachment
				beam.Attachment1 = char.HumanoidRootPart.RootRigAttachment
				beam.Texture = "rbxassetid://51478209"
			end			
		end)
	end)	
end)

wow it was really that simple huh… guess i overthink things too much. thank you.

11 Likes