Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui won't become visible even though set to true?

Asked by 2 years ago

I am making a simulator game and when you click with the tool a star is meant to appear with a TextLabel under it. The problem is the star won't appear but the TextLabel will. Both the star and TextLabel is parented by the same Frame. The variable for the frame is called 'AddMagicStrengthGui' Thanks for reading.

Mouse.Button1Down:Connect(function()
        if WandTool then
            if debounce == true then return end
            debounce = true
            if Character:FindFirstChild(""..WandTool.Name) then
                local WandMovementAnimTrack = Animator:LoadAnimation(WandMovement)
                WandMovementAnimTrack:Play()

                AddMagicStrengthGui.Visible = true
                GenerateRandomPosition()
                RotateGui(AddedMagicGui)
                AddMagicStrengthGui.TextLabel.Text = "+"..WandTool.AddMagicValue.Value * game:GetService("ReplicatedStorage").StatsMultiplier.Value

                game.Players.LocalPlayer:WaitForChild("leaderstats"):WaitForChild("Magic").Value = math.min(MagicPoints.Value + WandTool.AddMagicValue.Value * game:GetService("ReplicatedStorage").StatsMultiplier.Value, MaxMagic)
                _G.AddStoredMagicToBackPack()
            end
            wait(0.7)
            debounce = false
            AddMagicStrengthGui.Visible = false
        end
end)
0
Can you comment the line that is giving you the issue? Do the functions called have any relevance? Shawnyg 4330 — 2y
0
Hello, make sure that your Screen Gui, frame , imagelabel, and text label are visible. then you can change the property of screen gui .Enabled to false Hi_People1133 218 — 2y
0
They are all visible but it still won't work MarcTheRubixQb 153 — 2y

Answer this question