Hey! I am using a service known as TopbarPlus, and it keeps erroring even though I haven’t modified the script at all. So I am going to modify it now to fix it. The error piece of code follows:
-- PARENT
local localPlayer = game:GetService("Players").LocalPlayer
local playerGui = localPlayer:FindFirstChild("PlayerGui")
topbarPlusGui.Parent = playerGui
This is only a snippet of the script; the script is 300+ lines long.
The error occurs on line 3 and I don’t know why it’s erroring, because I got this from an official website and this is a module script, so it should be able to call local players.
so apparently i was using the program wrong; i was supposed to make a LocalScript (with the same code) and put it as a child of StarterPlayerScripts; thanks for trying to help though