You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I want to make the object sit on the surface and face the same direction of my HumanoidRootpart
What is the issue? Include screenshots / videos if possible!
The issue is that My attempts have failed and I lack much knowledge on cframes
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Yeah I’ve looked for many Ive tried making an attachment at the desired position but it still doesn’t work
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Char = plr.Character
local HRP = Char.HumanoidRootPart
local Center = HRP.Center
local LeftLeg = Char['Left Leg']
local RightLeg = Char['Right Leg']
local RotationCFrame = HRP.CFrame - HRP.CFrame.Position
local ModelClone = Model:Clone()
ModelClone:SetPrimaryPartCFrame(RotationCFrame)
ModelClone.Parent = Char
I have the angle of the humanoidrootpart set up but making the part sit on the surface is the confusing part thanks
See what I want to do is when pressing E u transform into thee object you pressed e on (proximity prompt) and i want the part to be positioned on the surface of the floor and to my knowledge you cant do that, I already have the direction of the part set up but I want the cframe positioning
That will only put the part on the middle of the character correct? I want my part to be at the bottom on the surface. Sorry I’m not really good with explaining
Workspace.Part.ProximityPromt.Triggered:Connect(function()
workspace.part.position = character.torso.position - (if part is hovering put a number here)
workspace.part.orientation = character.torso.orientation
workspace.part.WeldConstraint.part1 = workspace.part
workspace.part.WeldConstraint.part2 = character.torso
end)