im getting a attempt to index field 'LocalPlayer' (a nil value) as a error.
i'm trying to make a os, and this feature is for api to shut down the os, im using local scripts and a bindable function, i'm just attempting to change the local player's gui when the bindable function is invoked with something like this. if bindable functions aren't the way, please tell me.
Some code that i'm using for when it's fired:
local function shutDown(player)
-- some code to shut down the os (changing player gui using the 'player' variable
end
script.Parent.OnInvoke = shutDown
i'm using :Invoke(game.Players.LocalPlayer.PlayerGui.PC) to fire it.
Am I doing something wrong or??
