as you can see in picture 2 the arrows are very far away from the part, some are also clipping into the part. this is the script that puts on the arrows (this script only puts on 1 arrow, too put on all 6 I just copy and paste and then change around some variables):
local Part = script.Parent
local Pos = Part.Position
local Size = Part.Size
local PosY = Pos.Y
local PosZ = Pos.Z
local Arrow = Instance.new("Part")
Arrow.Parent = game.Workspace
local SizeX = Size.X * 1/2
Arrow.Anchored = true
local FinalPos = SizeX + Pos.X + 1
Arrow.Position = Vector3.new(FinalPos, PosY, PosZ)
Arrow.Size = Vector3.new(0.5, 0.5, 0.5)
anyone know how I can fix this? I am honestly out of ideas, thanks in advance.
the Arrow.Position is giving the arrow a position relative to the workspace, not to your part. so when you rotate the part, the position will stay the same since the size of the part hasnt changed
instead of setting Arrow.Position, try using Arrow.CFrame so that you can use :ToWorldSpace() to make both the orientation and position relative to the part’s orientation
like this: Arrow.CFrame = Part.CFrame:ToWorldSpace(CFrame.new(SizeX + 1,0,0))
Sorry for reviving this dead post sanrio, but I still do not completely understand :ToWorldSpace, and I ran into another problem. If you can, (you do not have to) could you maybe help me with this post?