I'm using a regular script, not a local script. How do I get the LocalPlayer? Obviously I can't use
game.Players.LocalPlayer
because when FilteringEnabled is on, LocalPlayer returns nil.
Hi Jexpler you can't get a localplayer from a regular script in FE because it isolate the player and the server you need to either use a remote event or remote function there is some exeptions tho... but as an exemple
ClientSide
local remoteFunction = game.Workspace.RemoteFunction remoteFunction:InvokeServer("Test")
ServerSide
local remoteFunction = game.Workspace.RemoteFunction function remoteFunction.OnServerInvoke(Player, String) print(Player, String) end