I tried and tried to make a tween rotation but everytime its always nothing happening can someone help me? I have a part named R that has to rotate 90 degrees with tween. Output always keeps on saying that the "TweenService:Create() fails because instance is null". Is my script correct?

local TweenService = game:GetService("TweenService")
local tween = TweenService:Create(
	R,
	TweenInfo.new(1),
	{
		Rotation = Vector3.new(90,0,0)
	}
)
tween:Play()

4 comments

0

Can you show your whole script?

0

This IS the whole script, I am not very good at scripting...

0

I am trying to make a part named R rotate 90 degrees and I tried with all I knew and this is the result

0

Am I suppose to insert something else?