So I'm trying to make it that if you press E, there will be a model that should spawn in front of you. I've made it spawn at the player, but I don't know how to make it spawn in front of the player.
SetPrimaryPartCFrame to move the model. If I increase the X or Z value it won't work as I want it to because it would only work if I look at a specific direction. So I'm looking for if there's a way I can make it spawn in front of the player regardless which direction they're looking at? Any help is appreciated!
-- We use the HumanoidRootPart which is a -- part that's located inside of the player character -- Be sure to set this values yourself local HumanoidRootPart; local YourModel; -- This will return a cframe that's infront of the player by 5 studs local offset = CFrame.new(0,0,-5) local InfrontOfPlayer = HumanoidRootPart.CFrame * offset YourModel:SetPrimaryPartCFrame(InfrontOfPlayer)