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 » Scripting Helpers
Home Search
 

Re: Spawn a character in a certain place?

Previous Thread :: Next Thread 
chewit9 is not online. chewit9
Joined: 22 May 2009
Total Posts: 7873
25 Feb 2013 01:59 PM
Like, through a script, that would be interesting.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
25 Feb 2013 02:08 PM
Yes. Yes it is.

player:LoadCharacter()
player.Character:MoveTo(Vector3.new(x,y,z))

Change x y z to your X Y Z position.
Report Abuse
chewit9 is not online. chewit9
Joined: 22 May 2009
Total Posts: 7873
25 Feb 2013 02:11 PM
so would i do


if newPlayer.Name:lower( ) == "chewit9" then
player:LoadCharacter()
player.Character:MoveTo(Vector3.new(x,y,z))
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
25 Feb 2013 02:12 PM
Yes. Except, x y z would have to be changed to where you want to move yourself.
Report Abuse
chewit9 is not online. chewit9
Joined: 22 May 2009
Total Posts: 7873
25 Feb 2013 02:13 PM
alright thanks!
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
25 Feb 2013 02:24 PM
It wouldn't force you into the game. It would only generate an NPC version of yourself. Not entirely sure it will work because characters can't be copied because they are unachived. Probably will work.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
25 Feb 2013 02:25 PM
LoadCharacter destroys any old character and replaces it with a fresh new one. Handy if someone in a Script builder has messed up your player's character.
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
25 Feb 2013 02:30 PM
"characters can't be copied"

local character = Game.Players.CodyTheBuildingKid.Character
character.Archivable = true

while wait() do
character:Clone().Parent = Game.Workspace
end
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
25 Feb 2013 02:32 PM
If you didn't set Archivable then no, it wouldn't be able to be copied. But obviously you are and so it can.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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