I want to make a my gui look smoother.
My script is not working and nothing is in the output.
I have searched for solutions but I didn’t find anything.
This is my game menu so when they click play, this will go up and disappear. The player can also move again.
local player = game.Players.LocalPlayer
local char = player.Character
script.Parent.Frame:TweenPosition(UDim2.new(0, 0, -1.2, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Sine)
char.Head.Anchored = false
char.Humanoid.WalkSpeed = 16
char.Humanoid.PlatformStand = false
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
script.Parent:Destroy()
Because you didn’t wait for the tween to be completed, the function doesn’t yield when you did TweenPosition. You can use the callback function of TweenPosition.