hello beautiful people hope you are having a blessed day i'm making so if the thing is equipped the wall is in front if the player but it is always just next to the player can somebody please help
(ps. I want it to work on a model)
here is the script
repeat
local x = script.Parent.Parent.HumanoidRootPart.Orientation.X
local y = script.Parent.Parent.HumanoidRootPart.Orientation.Y
local z = script.Parent.Parent.HumanoidRootPart.Orientation.Z
clone.PrimaryPart.Position = Vector3.new(game.Players.LocalPlayer.Character.Head.Position)
clone:SetPrimaryPartCFrame(CFrame.Angles(x,y,z))
wait(0.1)
until script.Parent.Value.Value == true
if script.Parent.place.Value == false then
clone:Destroy()
i have alot alot more script but that is the part i have it to follow the player...
help?

3 comments
use RootPart.CFrame.new(CFrame.lookVector * DISTANCE_FROM_OBJECT) + RootPart.Position
you'll have to use toEulerAnglesXYZ to maintain the part's rotation, by the way
why you put "local stud = 5"?