|
| 01 Jan 2017 08:25 PM |
What does that mean?
It works fine in Studio, but when tested in an actual server, it displays that in the Output.
(I viewed the Output by pressing F9.)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Jan 2017 08:38 PM |
you need to fire the server to use LoadCharacter()
--localscript local player=game.Players.LocalPlayer local re=game.ReplicatedStorage.RemoteEvent
local function loadallplayers() local t=game.Players:GetPlayers() for i=1,#t do re:FireServer(t[i]) end end loadallplayers()
--serverscript local re=game.ReplicatedStorage.RemoteEvent re.OnServerEvent:connect(function(playerwhosent,player) player:LoadCharacter() end
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2017 08:39 PM |
Actually, I just found out, and it's that a LocalScript can't call the function LoadCharacter.
FilteringEnabled isn't on, so what you typed is useless.
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2017 08:42 PM |
RemoteEvents/Functions aren't just for FilteringEnabled. You might want to turn it on anyways.
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2017 08:42 PM |
Also I did tell you why. You need the server to do it...
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2017 09:00 PM |
Or you could just simply use a regular Script.
|
|
|
| Report Abuse |
|
|
|
| 01 Jan 2017 09:03 PM |
I assumed since you originally had that error from using a localscript that you wanted to keep using a localscript.
|
|
|
| Report Abuse |
|
|