Deltaneu
(Deltaneu)
#1
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?
EXM_0
(yuno)
#2
Instead of “InOut” try doing Enum.EasingDirection.InOut and Enum.EasingStyle.Shine
1 Like
Deltaneu
(Deltaneu)
#3
I changed it and still no doesnt work, same error.
1 Like
Deltaneu
(Deltaneu)
#4
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
EXM_0
(yuno)
#5
Without the quotation marks. With quotes your just making it into a string.
1 Like
Deltaneu
(Deltaneu)
#6
Okay let me try that trying rn
1 Like
Deltaneu
(Deltaneu)
#7
1 Like
EXM_0
(yuno)
#8
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
Deltaneu
(Deltaneu)
#9
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
Deltaneu
(Deltaneu)
#11
omg thx you so much for thaat chart im a take that, thats so helpfull.
1 Like
Deltaneu
(Deltaneu)
#12
It works thxxx so much for the help
1 Like
EXM_0
(yuno)
#13
No problem. (---------------------------------)
3 Likes