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: Reload a characters appearance?

Previous Thread :: Next Thread 
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:12 PM
I was doing it all manually but is there a way to do it with:
wiki.roblox.com/index.php?title=API:Class/Player/LoadCharacterAppearance

How would I get the CharacterAppearance string to pass into this method?


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
19 May 2017 04:18 PM
Do you mean respawning them in the same spot? What do you mean by reload and why?


~MightyDantheman~
Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:20 PM
Instead of resetting their entire character I just want to refresh their appearance allowing them to maintain where they were in the game more fluidly.


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:24 PM
(this is me using the override BindableEvent of the CoreGui thingy majiggy
/wiki.roblox.com/index.php?title=API:Class/StarterGui/SetCore
)


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
19 May 2017 04:25 PM
Well, my method is to reload them in the exact same spot. Store their HumanoidRootPart's CFrame in a variable before, then use LoadCharacter() on the player, then wait for the character to respawn, then change the CFrame of the HumanoidRootPart to the variable CFrame.


~MightyDantheman~
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
19 May 2017 04:27 PM
You could also store their rotation. I'm sure there's another way, but here's just one method. I used it to, in a way, disable the effect of resetting their character. Now they just instantly respawn in the same spot that they reset at.


~MightyDantheman~
Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:27 PM
The whole idea was so there wasn't the annoying -let's watch myself die for a bit- before they get themselves all brand spanking new. Or do you just delete the player altogether? I have no idea how loadcharacter works xD is there a wiki article?


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:28 PM
delete the character altogether*


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:30 PM
I'll just stick with what I have rip


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
19 May 2017 04:32 PM
LoadCharacter() instantly respawns the character. There's no respawn delay.


~MightyDantheman~
Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:33 PM
It respawns assuming they died.


Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
19 May 2017 04:35 PM
No. The player doesn't need to die. Just try it.
game.Players.TargetPlayer:LoadCharacter()


~MightyDantheman~
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
19 May 2017 04:36 PM
fire a remote event with the bindable event used in the reset button callback
then if everything checks out load the appearance with get character appearance or api
Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:36 PM
Omk :o That's bad naming? ## ###
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
19 May 2017 04:37 PM
and store their humanoid root parts cframe and just teleport them as soon as one comes up in their newer character
Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:37 PM
what's api?


Report Abuse
CelluloidCats is not online. CelluloidCats
Joined: 11 Aug 2015
Total Posts: 841
19 May 2017 04:37 PM
meh what I'm doing works, it's not baroque


Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
19 May 2017 04:38 PM
application programming interface
theres a bunch of web apis and there might be one for getting their character appearance
either that or a function in a roblox instance
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
19 May 2017 04:39 PM
Basically the above. Here's the exact Google definition just because:

"Application program interface (API) is a set of routines, protocols, and tools for building software applications. An API specifies how software components should interact. Additionally, APIs are used when programming graphical user interface (GUI) components."


~MightyDantheman~
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
19 May 2017 04:46 PM
an example of a web api is

httpget( "exampleLink.api/getuserinfo&username=bob" )
and it would return bobs info
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