Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Using LoadCharacter worth it?

Asked by 5 years ago

I am refining my code a bit and have some questions. I am mostly a hobbyist when it comes to coding, anyway I section of code for ending a match that displays the winners name, turns on blurreffect, disables the control module, waits, moves character with cframe, destroys map, creates new map, enable blur and enables control module.

At first I would kill the player to get them back to the spawn point but didn't really like that option and found the cframe option. I recently saw a video that uses LoadCharacter but it only works on the server from what I see. Was wondering if it was worth the effort to implement this option over cframe?

I know as of now with cframe I need to clear the players inventory manually and from what I read LoadCharacter would do that automatically. But asides from that is there a reason to make this change?

0
If you want to save yourself time just go with the Player:LoadCharacter() , it really shouldn't matter much richboifexekappa 89 — 5y
0
It would save time right now since I'd have to change my code figure out if I can make everything work server side or separate it. doncellanerdy 21 — 5y
0
**Would not doncellanerdy 21 — 5y
0
I think you can use a Remote Event? I'm not answering it because I'm not sure. KDarren12 705 — 5y
0
Yeah, I'm sure that would work. Think it might be worth trying this way. Thanks. doncellanerdy 21 — 5y

Answer this question