Okay so, the hiearchy for my GUI is Players > PlayerGui > Shop > Frame > ScrollingFrame > TextButton
In that textbutton I have a script that is to fire a RemoteEvent
local player = game.Players.LocalPlayer
local currency = player:WaitForChild('leaderstats').Coins
local itembutton = script.Parent--- MAIN BUTTON
local desc = script.Parent.Parent.Parent.Desc
local indextext = script.Parent.Text
Open = false
itembutton.MouseButton1Click:connect(function()
game.ReplicatedStorage.RemoteServer.RemoteEvent:FireServer()
end)
This is the line in the RemoteServer that the output is complaining about
script.RemoteEvent.OnServerEvent:connect(function(player)
local itembutton = player.PlayerGui.Shop.Frame.ScrollingFrame.hp
end)
This is 100% CORRECT as I have checked the explorer, is it not able to access it for some reason?

1 comment
Hmm, this stinks. What I wanted to happen was that I have an if statement in the RemoteServer script that checks conditions if a player can purchase an item in the virtual store. If he can, I wanted the GUI text to say "Purchased" and if not for it say something like "error". I know how to code that and the code is already there in the RemoteServer script but because of FilteringEnabled I can't