Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to always set the brick infront of the player??

I've ALWAYS had this problem time to time, I want the brick infront of the player? I use a look vector, I want to do it again? I use vector3 OR Cframe

is there one solution so I can always set the position to be infront of the player, so sick and tired of forgetting or doing it in correctly

i want to make my attachment In FRONT of the players hrp

1 answer

local weld = Instance.new("Weld")
weld.Part0 = humanoidrootpart
weld.Part1 = part
weld.C0 = humanoidrootpart.CFrame:inverse()
weld.C1 = (humanoidrootpart.CFrame * CFrame.new(0,0,1)):inverse()
weld.Parent = part

Dunno will this work or not, you can mess around with the cframing

This discussion is preserved as it was. New answers, comments, and votes are closed.