Issues Arrow over player's head

Hello, I need to make an arrow (model with parts that I already have created).
I would like to place it on the player’s head as seen in the image below, any ideas or could you give me a hand to do this? I’m not sure how to start it…

image

In shorts, I need to make one part over the player’s head and the front part to be like the direction arrow to the target path.

You can do it with the code below. Set your arrow and target. Make sure your arrow contains PrimaryPart.

This script is located in localscript in StarterPlayerScripts.

--Example Code
local RunService = game:GetService("RunService")

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()

local Arrow = game.ReplicatedStorage.Arrow -- Your arrow 
local Goal = game.Workspace.Part -- Your goal 

local clone = Arrow:Clone()
clone.Parent = workspace

RunService.RenderStepped:Connect(function()
	clone:PivotTo(Character:WaitForChild("Head").CFrame * CFrame.new(0, 3.5, 0))
	if clone then
		clone:PivotTo(CFrame.lookAt(clone.PrimaryPart.Position, Goal.Position))
	end
end)
1 Like
1 Like

Yeah that would cost performance issues and he could just attach it with a weld

1 Like

Thank you! but I need to make the front of my part point to the goal, how can I do it?

Adjust the orientation until it faces

how can i do this :dizzy_face: i’m not sure :frowning:

Watch TheDevKings tutorial on it