generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: "LoadCharacter can only be called by the backend server"

Previous Thread :: Next Thread 
Antcient555678 is not online. Antcient555678
Joined: 07 Nov 2011
Total Posts: 679
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
Antcient555678 is not online. Antcient555678
Joined: 07 Nov 2011
Total Posts: 679
01 Jan 2017 08:27 PM
Bump.


Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
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
Antcient555678 is not online. Antcient555678
Joined: 07 Nov 2011
Total Posts: 679
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
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
01 Jan 2017 08:42 PM
RemoteEvents/Functions aren't just for FilteringEnabled.
You might want to turn it on anyways.


Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
01 Jan 2017 08:42 PM
Also I did tell you why. You need the server to do it...


Report Abuse
Antcient555678 is not online. Antcient555678
Joined: 07 Nov 2011
Total Posts: 679
01 Jan 2017 09:00 PM
Or you could just simply use a regular Script.


Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image