I have this chair script but whenever I spawn it, its not facing the same way as the player
local Tool = script.Parent
local Player = Tool.Parent.Parent
local Char = Player.Character
local Hum = Char.Humanoid
local HumanoidRootPart = Char.HumanoidRootPart
Tool.Activated:Connect(function()
if Hum.FloorMaterial ~= Enum.Material.Air then
local Chair = game.ServerStorage["Plastic Chair"]:Clone()
Chair.CFrame = Char.Torso.CFrame
Chair.Orientation = Vector3.new(-90,90,0)
Chair.Parent = workspace
end
end)
local Game = game
local Workspace = workspace
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
task.wait(5)
local Part = Instance.new("Part")
Part.Anchored = true
Part.CFrame = CFrame.new(Part.Position) * Character:GetPivot().Rotation
Part.Parent = Workspace
You just have the multiply a copy of the part’s (chair’s) CFrame with its rotational information stripped with a copy of the player’s character’s CFrame with its positional information stripped.