Loading Screen Not Working

So im making this loading screen, gui works and everything. Here is the part of my code

game.ReplicatedFirst:RemoveDefaultLoadingScreen()

local PlayerGui = game.Players.LocalPlayer:WaitForChild(“PlayerGui”)

local GUI = script.LoadingScreen:Clone()

GUI.Parent = PlayerGui

wait(10)

GUI.Frame:TweenPosition(UDim2.new(0,0,1,0), “InOut”,“Shine”,0.5)

wait(0.5)

GUI:Destroy()

For some reason it doesnt work, the error is. “Unable to cast string to token”
Someone help?

Instead of “InOut” try doing Enum.EasingDirection.InOut and Enum.EasingStyle.Shine

1 Like

I changed it and still no doesnt work, same error.

1 Like

Screenshot by Lightshot it says the error is on this line

GUI.Frame:TweenPosition(UDim2.new(0,0,1,0),“Enum.EasingDirection.InOut”,“Enum.EasingStyle.Shine”,0.5)

1 Like

Without the quotation marks. With quotes your just making it into a string.

1 Like

Okay let me try that trying rn

1 Like

hmm still no Screenshot by Lightshot

1 Like

That’s still in quotes… Do WITHOUT quotes

GUI.Frame:TweenPosition(UDim2.new(0,0,1,0),Enum.EasingDirection.InOut,Enum.EasingStyle.Shine,0.5)

Like that

1 Like

OH i thought you mean use quotes not quations, now it says shine is not a valid member of enume Screenshot by Lightshot

1 Like

You misspelled ‘Sine’

omg thx you so much for thaat chart im a take that, thats so helpfull.

1 Like

It works thxxx so much for the help

1 Like

No problem. (---------------------------------)

3 Likes