Arrow For FPS shooter

So hi I’m currently working on a powerup that will simply clone an arrow on top of the player and make that arrow follow the player. But I don’t really know how to do that and How to destroy the arrow. Here’s My Code.


local plr = game.Players.LocalPlayer

game.ReplicatedStorage.Events.ChangePower.OnClientEvent:Connect(function()
	local arrow = game.ReplicatedStorage.PointingArrow:Clone()
	
	game.ReplicatedStorage.WalkSpeed.Value = 30
	plr.Character.Humanoid.JumpPower = 65
	
	local random = 3--math.random(1,3)
	if random == 1 then
		game.ReplicatedStorage.WalkSpeed.Value = 5
	elseif random == 2 then
		plr.Character.Humanoid.JumpPower = 200
	elseif random == 3 then
		arrow.Parent = workspace
		arrow.Name = "arrow"
		while true do
			arrow.PrimaryPart.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0,15,0)
			wait()
		end
		wait(5)
		arrow:Destroy()
	end
end)