When i set the Z axis to something it just redirects the value to the Y axis and sets Z to 0 Here's what i type in : Vector3 Here's what i get : Vector3 I just don't know what the fix is. Anyone have help? I have even tried typing in a script : (Part).Orientation = Vector3.new(-90, 0, 45), But that still doesn't work. I need help here. Code:

local ts = game:GetService('TweenService')
local part = script.Parent

part.Orientation = Vector3.new(-90, 0, -45)

local tweenInfo1 = TweenInfo.new(
	10,
	Enum.EasingStyle.Quad,
	Enum.EasingDirection.InOut,
	-1,
	true,
	0
)

local partProperties = {
	Orientation = Vector3.new(-90, 0, 45)
}

local tween1 = ts:Create(part, tweenInfo1, partProperties)
tween1:Play()

2 comments

0

I would recommend trying to use CFrame.Angles() rather than changing the Orientation like that - though I am not 100% sure if that will solve your issue with the Z value here.

0

I have tried alot, i resolved the problem and found out you cannot have both X and Z for some strange reason.