of     1   

JleaY
#219236967Monday, June 19, 2017 4:57 PM GMT

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
kojocrash
#219237452Monday, June 19, 2017 5:05 PM GMT

again, GUI's are client/local. What that means is that only the player can see this. Since only the player can see it you dont have to use a server script (server scripts cant access client stuff). Use a local script for that
noahcoolboy2
#219237556Monday, June 19, 2017 5:06 PM GMT

script.Quirky_3.OnServerEvent:connect(function(**Player**,GUI) -- here is the problem here you fire the function game.Workspace.Statz.DefaultLimit.Quirky_3:FireServer(**GUI**) -- but here you send a input as **player** i think you should do script.Quirky_3.OnServerEvent:connect(function(GUI, Player) Programmer at RoTip studios
kojocrash
#219238008Monday, June 19, 2017 5:13 PM GMT

No, when you fire a server from a local script, it always sends the player regardless
kojocrash
#219238100Monday, June 19, 2017 5:14 PM GMT

for i,v in pairs (GUI:GetChildren()) do if v.Name == "Training" then v.Disabled = false end end just put this in a local script, it doesnt need to be a server script.
kojocrash
#219238147Monday, June 19, 2017 5:15 PM GMT

@BookOfPowerz instead of making new threads you should probably send feedback ._.

    of     1