So technically this script is supposed to make it so when you click a uranium block it makes a gui appear. But its not working, why?
local GotUranium = false
variables = require(game.ServerScriptService.Variables)
script.Parent.MouseClick:Connect(function(player)
variables.CurrentUranium = variables.CutrentUranium+1
if variables.CurrentUranium >= 1 then
GotUranium = true
end
if GotUranium == true then
player.PlayerGui.CollectionBook.MainFrame.Uranium.Tick.Visible = true
end
end)