Hello. I’m making a main menu for my game and when I try to re-enable the screengui’s i want to re-enable, they do enable with my script but dont pop up on the screen for some reason.
Keep in mind, they do enable but don’t show up.
Video of my issue:
They both clearly show as “enabled” when playtested.
The output clearly demonstrates this too;
Here’s my code if needed:
local Player = game.Players.LocalPlayer
local tweenService = game:GetService("TweenService")
local Char = Player.Character
local Camera = game.Workspace.CurrentCamera
local MenuCam = game.Workspace:WaitForChild("MenuCam")
local Process = false
wait(game:IsLoaded())
MenuCam.Transparency = 1
Camera.CameraType = Enum.CameraType.Scriptable
Camera.FieldOfView = 50
Camera.CFrame = MenuCam.CFrame
local BlurEffect = Instance.new("BlurEffect")
BlurEffect.Size = 0
BlurEffect.Parent = game.Lighting
local Black = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Transparency = 0})
local UnBlack = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Transparency = 1})
local Blur = tweenService:Create(BlurEffect ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Size = 20})
local UnBlur = tweenService:Create(BlurEffect ,TweenInfo.new(1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Size = 0})
script.Parent:WaitForChild("GameMusic").Playing = true
script.Parent.PlayButton.MouseButton1Click:Connect(function()
if Process == true then return end
Process = true
Black:Play()
wait(3)
Camera.CameraType = Enum.CameraType.Custom
Camera.FieldOfView = 70
script.Parent.PlayButton:Destroy()
script.Parent.GameTitle:Destroy()
script.Parent.CuteBuddy:Destroy()
script.Parent.SpeechBubble:Destroy()
script.Parent.SpeechLabel:Destroy()
script.Parent:WaitForChild("GameMusic").Playing = false
game.StarterGui.RollGui.Enabled = true
print("RollUi enabled")
game.StarterGui.SideMenu.Enabled = true
print("SideUi enabled")
UnBlack:Play()
end)
Thank you for your time, I hope we can find a solution.
Antlers