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.
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
I used the serverside one and nothing happened.
You need the 2
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
How'd that make sense in a server script?
You might want to read this, might help a bit: http://wiki.roblox.com/index.php?title=Experimental_Mode
How does that not make sense? I want to make changes to the entire server, but get a players rank in a group and stuff like that.