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)

3 comments

0

Can you comment the line that is giving you the issue? Do the functions called have any relevance?

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

0

They are all visible but it still won't work