I am trying to rotate a part but I keep ending up with errors
Script
local TS = game:GetService("TweenService")
local TSInfo = TweenInfo.new(
4,
Enum.EasingStyle.Linear,
Enum.EasingDirection.InOut,
5,
true,
1
)
local TSS = TS:Create(script.Parent, TSInfo,{CFrame = script.Parent * CFrame.Angles(0 , 0, math.rad(90))})
wait(5)
TSS:Play()
Error
Workspace.Part.Script:13: invalid argument #1 (CFrame expected, got Instance)