I have a part in workspace that is randomly oriented, and all I want to do is place a block at the end of the part and reset its orientation to 0,0,0
This seems to be a difficult task for me.
Server script in ServerScriptService:
local function branch_offs(parent_branch, model)
local end_of_branch = Instance.new("Part")
end_of_branch.CFrame = parent_branch.CFrame * CFrame.new(0,parent_branch.Size.Y/2,0)
end_of_branch.CFrame *= CFrame.Angles(0,0,0)
end_of_branch.Size = Vector3.new(1,1,1)
end_of_branch.Anchored = true
end_of_branch.Parent = model
end
branch_offs(workspace.Part,workspace)
Would appreciate some help. Let me know if you need more information.
