I need a rotation inside a CFrame because otherwise the part will keep teleporting because the game thinks it's inside another brick :/ I don't know how to do this though
This is the orientation
Vector3.new(laser.Orientation.X + 90, laser.Orientation.Y, laser.Orientation.Z)
This is what I tried
local head = script.Parent local LTP = script.Parent.Parent:WaitForChild('LockToPart') while wait() do if workspace:FindFirstChild('laser') then local laser = workspace.laser local rot = laser.Orientation head.CFrame = CFrame.new(head.Position) * CFrame.Angles(math.rad(laser.Orientation.X), math.rad(laser.Orientation.Y), math.rad(laser.Orientation.Z)) -- head.Orientation = Vector3.new(laser.Orientation.X + 90, laser.Orientation.Y, laser.Orientation.Z) end end
local head = script.Parent local LTP = script.Parent.Parent:WaitForChild('LockToPart') while wait() do if workspace:FindFirstChild('laser') then local laser = workspace.laser local rot = laser.Orientation head.CFrame = CFrame.new(head.CFrame) * CFrame.Angles(math.rad(laser.Orientation.X), math.rad(laser.Orientation.Y), math.rad(laser.Orientation.Z)) -- head.Orientation = Vector3.new(laser.Orientation.X + 90, laser.Orientation.Y, laser.Orientation.Z) end end
hope that shall help i didint test it but still try it