#Debuging, why isn't the ui apearing when I set the value for a rarity to true

1 messages · Page 1 of 1 (latest)

faint terrace
#

I have tried dubuging for like 3 hours anbd used chat GPT, it isnt working

#

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local chanceList = require(ReplicatedStorage:WaitForChild("Modules"):WaitForChild("ChanceList"))

local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

local Gui = script.Parent
local background = Gui:WaitForChild("Background")
local button = Gui:WaitForChild("InvButton")

local container = background:WaitForChild("ContainerBackground"):WaitForChild("Container")
local rollUI = script.Parent.Parent.Roll

local infoFrame = background:WaitForChild("InfoFrame")
local infoList = infoFrame:WaitForChild("ListFrame")
local infoTitle = infoFrame:WaitForChild("TitleBackground"):WaitForChild("Title")

local equipButton = infoList:WaitForChild("EquipButton")
local removeButton = infoList:WaitForChild("RemoveButton")
local rarityText = infoList:WaitForChild("RarityLabel"):WaitForChild("Label")

local template = script:WaitForChild("Template")

local isVisible = false

local clicked = nil

local function clearInfoFrame()
infoTitle.Text = ""
rarityText.Text = ""
end