Hello i want to make this object rotate and it kinda bad (i am beginner TweenService)
when you press R the model should rotate 45+ every time you press
local HumanoidRootPartH = ClientTower:WaitForChild("HumanoidRootPart")
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.R then
local rotationspeed = 45
local TweenService = game:GetService("TweenService")
local Tweeninfor = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.In,1,false,0)
local RotateGA = {
CFrame = HumanoidRootPartH.CFrame * CFrame.Angles(0,45,0)
}
local Tween = TweenService:Create(HumanoidRootPartH,Tweeninfor,RotateGA):Play()
print(Tween)
if PlacingTower == true then
print("none")
end
end
end)
No Error but Tween is nill