Alright, so I'm making an FE enabled game and I have a gui called MoneyGui. This gui is inside of the StarterGui. When a remoteevent is fired it basically checks to see if moneygui is nil. This is the script:
local RS = game:GetService("ReplicatedStorage")
local SSS = game:GetService("ServerScriptService")
local RES = RS["Remote Events"]
local RFS = RS["Remote Functions"]
local EXT = RS["Modules"]
local moneyRE = RES:WaitForChild("Money")
moneyRE.OnServerEvent:connect(function(plr, request)
if request == "updateMoneyGui" then
print("update Request")
for random,emh in pairs(plr.PlayerGui:GetChildren()) do
print(emh.Name) -- When this whole loop is finished nothing gets printed. It's as if MoneyGui doesn't exist although I know it's inside of the PlayerGui.
end
if plr.PlayerGui:FindFirstChild("MoneyGui") ~= nil then
print("It exists.")
else
print("It doesn't exist.")
end
end
end
It's a really simple script. The output has 'update Request' printed, although after that nothing is printed even though MoneyGui is in the player gui. It also prints 'It doesn't exist.' because it doesn't find the moneygui.
Now, I tested to see if this would work with FE off. I turned off FE and it worked perfectly. This is really strange, and I've never encountered this before. I think that I can't access the PlayerGui with FE on.
Please help!

1 comment
Where is the script? And what kind of script is it?