So I am firing my GUI using a Variable to a script that needs to get into this GUI to disable scripts but it is saying: attempt to index local 'GUI', a nil value.
Here is everything you need:
--Variable
local GUI = script.Parent
--Firing the function
game.Workspace.Statz.DefaultLimit.Quirky_3:FireServer(GUI)
--The script that is doing the function
script.Quirky_3.OnServerEvent:connect(function(Player,GUI)
--ERROR HERE--
for i,v in pairs (GUI:GetChildren()) do
if v.Name == "Training" then
v.Disabled = false
end
end
#code print("Lightning Flame Dragon Mode...") --I am totally not Natsu Dragneel |