Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
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

Ad

Answer this question