I have a script for a boss battle game I had to make, but a script does not work It says that TweenService is nil, and is attempting to index it with Create.

Here is the line

local movePlatformUpTween = TweenService:Create(game.Workspace.Platforms.Handle, tweenInfo, goalPlatformUp)

Note that the space isn't in the script tho.

4 comments

0

local movePlatformUpTween = TweenService:Create(game.Workspace.Platforms.Handle, tweenInfo, goalPlatformUp)

0

By the way, it tried to tell me that I tried indexing "Nil" with Create. but i don't see what is wrong.

0

Somebody please respond.

0

Maybe the service didn't load yet. Try adding WaitForChild()