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

Previous Thread :: Next Thread 
veryawesomeboy is not online. veryawesomeboy
Joined: 21 May 2013
Total Posts: 479
12 Jul 2017 10:44 AM
When I wrote this in my LocalScript, player:LoadCharacter()
This error message popped up.
LoadCharacter can only be called by the backend server


Report Abuse
veryawesomeboy is not online. veryawesomeboy
Joined: 21 May 2013
Total Posts: 479
12 Jul 2017 10:44 AM
Works fine in Solo Mode, but when I start a server, it says that.


Report Abuse
6l8 is not online. 6l8
Joined: 17 Jun 2014
Total Posts: 4055
12 Jul 2017 10:51 AM
Because you cannot use loadCharacter using a localscript.


Report Abuse
veryawesomeboy is not online. veryawesomeboy
Joined: 21 May 2013
Total Posts: 479
12 Jul 2017 11:55 AM
Can someone write me a script for this using Remote Functions? I've tried it, but it's too advanced for my level.
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
12 Jul 2017 11:58 AM
wiki.roblox.com/index.php?title=FilteringEnabled

wiki.roblox.com/index.php?title=Building_Games_with_Filtering_Enabled

wiki.roblox.com/index.php?title=Security *

wiki.roblox.com/index.php?title=Remote_Events_and_Functions
Report Abuse
veryawesomeboy is not online. veryawesomeboy
Joined: 21 May 2013
Total Posts: 479
12 Jul 2017 11:59 AM
I've checked those pages already , but I still can't script it.
Report Abuse
DevJoas is not online. DevJoas
Joined: 17 Dec 2014
Total Posts: 627
13 Jul 2017 03:56 AM
Don't just check.

READ.

FOLLOW.

LEARN.
Report Abuse
Theoretician1337 is not online. Theoretician1337
Joined: 09 May 2017
Total Posts: 37
13 Jul 2017 07:04 AM
-- LocalScript
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local requestEvent = ReplicatedStorage:WaitForChild("RequestEvent")
requestEvent:FireServer()

-- Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local requestEvent = ReplicatedStorage:WaitForChild("RequestEvent")
local function onRequested(player)
player:LoadCharacter()
end
requestEvent.OnServerEvent:Connect(onRequested)

-- Yes... I copied from the wiki.
Report Abuse
veryawesomeboy is not online. veryawesomeboy
Joined: 21 May 2013
Total Posts: 479
13 Jul 2017 09:32 AM
Yeah. I got it! I was just really lazy when I asked the question. Sorry


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