the orientation of the part is lost when i teleport it
for some reason it just goes flat
also, how would i weld it so it stays where i want it to but still moves with the player?
local script
local player = game.Players.LocalPlayer
local book = game.Workspace.KieranBook
local event = game.ReplicatedStorage.KieranBookEvent
player.Chatted:Connect(function(msg)
if string.find(msg:lower(), "summon book") then
event:FireServer()
end
end)
server script
local event = game.ReplicatedStorage.KieranBookEvent
local book = game.Workspace.KieranBook
event.OnServerEvent:Connect(function(player)
book.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(0, 100000, 0)
end)
still doesn’t fix orientation issue, its just a flat book however ive fixed this myself. i just need help with the welding and making the book face the way im facing
also, this doesn’t make the book face the way I’m facing
Axis directions are unclear in world space, so tinker with the values until you have the desired positioning. Be sure to use math.rad() for orientations, because Angles takes values in radians and not degrees.
Also, the reason the book is flat is because setting its CFrame to the CFrame of another thing also overrides the rotation. You would have to combine a position only CFrame with a rotation only CFrame to keep the orientation.