#how to change player character when Round Start and Back it when Round Ended

171 messages · Page 1 of 1 (latest)

stray rune
gloomy girder
#

u could just put a character named startercharacter in starterplayer and remove it when the game ends

stray rune
#

bro

#

it shop

#

character shop

#

and i need

#

if plr equip character

#

then

#

it changing only in round

runic condor
#

to make this the player must die to respawn it with new charcter

#

if you dont have broblems with respawn player its easy to make it

stray rune
#

but idk

#

if all players are reset, the round will stopэ

#

here characterChanger

#

round script

#

mb i need to create new value

#

like InRoundForSkins

#

and add it before round

#

idk

#

bro

#

......

runic condor
#

yes

#

Can you explain

stray rune
runic condor
#

You want to change all characters for all players

#

؟

stray rune
#

I want to make it so that when the round starts, the character of all players changes to their chosen one

runic condor
#

when remot event fireed the server script change player charcter to new one

#

like

#
local remot = --remotlocation
local newChar = -- the charcter the player choos

--when round start
remot:FireServer(newChar)
stray rune
#

in local?

runic condor
#
local remot = --remotlocation
remot.OnServerEvent:Connect(function(player , newChar)
---change char
end)
runic condor
stray rune
runic condor
stray rune
#

ye

#

sry for ignoring, I'm just warming up to eat\

runic condor
stray rune
#

here characters list

runic condor
runic condor
runic condor
#

or somthing like gui choos charcter by it

stray rune
#

char shop + inventory

#

in inventory plr wear characters

runic condor
stray rune
#

yes

runic condor
#

ok

runic condor
#

ill try to make the sistem for you

stray rune
runic condor
# stray rune

make folder and put it in the ReplicatedStorage and name it charcters and put in it all shop charcters

stray rune
runic condor
#

to know whats the charcter the player choos becuse when round start the game respawn the player with the charcter he choos

stray rune
runic condor
stray rune
#

a

runic condor
#

you need to make something like in players stats the game know by it whats the charcter he choos to respawn it every time with new charcter

#

i have idea

stray rune
late currentBOT
#

studio** You are now Level 14! **studio

runic condor
#

put the valu in statrter gui

stray rune
#

bool value?

#

or int

runic condor
stray rune
#

intValue

#

?

runic condor
#

I have two idea

stray rune
stray rune
runic condor
stray rune
#

STRING

#

VALUE

#

which one is easier

runic condor
# stray rune STRING

ok when player choos charcter by charcters gui the stringValu changed to the charcter name

stray rune
#

when plr pressing use?

runic condor
#

and when game check the value know whats the charcter player use

runic condor
stray rune
#

ok

runic condor
#
for i , v in charctersFolder:GetChildren() do
    if v.Nmae == stringValu.Valu then
        --respawn the player with v
    end
end)
stray rune
#

something like this

#

💀

runic condor
stray rune
#

in local inventory script

runic condor
#

now

stray rune
#

it server script

runic condor
stray rune
#

ok

runic condor
stray rune
#

here we go

runic condor
#
for i , v in game.players:GetChildren() do
local plrChrcter = v.PlayerGui.CharcterShopGui.Value.Value
    for i , v in charctersFolder:GetCildren() do
        if v.Name == plrChrcter then
            --respawn the player with v
        end
    end)
end)
#

you shuld do this command when the round start to respawn all players with new charters

stray rune
#

where i need to put it

runic condor
stray rune
#

in round script?

runic condor
runic condor
stray rune
#

wat

runic condor
#
for i , v in game.Players:GetChildren() do
    
    local plrCharcter = v.PlayerGui.CharcterShopGui.Value.Value
    
    for i , v in charctersFolder:GetCildren() do
        if v.Name == plrCharcter then
            --respawn the player with v
        end
    end)
end
stray rune
#

how to respawn

runic condor
stray rune
#

there?

runic condor
# stray rune

wait i forgot something the script that change the value , is it local or server ?

stray rune
#

it local

runic condor
stray rune
runic condor
#

you need change the value on server not local

stray rune
#

hm

#

but

runic condor
#

use remots

stray rune
#

if i change on the server

#

a

#

dam

#

I thought the value would be the same for all players

stray rune
#

ok

runic condor
#

its will be only for player who change

stray rune
#

ok so

runic condor
#

jus fire to server and change it there

stray rune
#

i need to change it in Round Script or SkinsScript or create new which better?

stray rune
#

ok

runic condor
stray rune
runic condor
#

but the new on much much better

#

bro can we talk again at another time sorry i have some work

stray rune
#

ok

runic condor
#

your system take time if edit your script s, I would quickly make it for you

stray rune
#

❤️

broken aurora
#

@stray rune

#

are u just having trouble changing the player's character?

stray rune
#

wat

#

I want to make it so that when the round starts, the character of all players changes to their chosen one

broken aurora
#

does the value of what character each player want save

broken aurora
#

so when the round starts loop through all the players and then change their character to the one they have selected

stray rune
#

ok

stray rune
#

ik that but idk how to do it lol

jaunty bear
#

Hi! I don't know if you've already gotten a solution for this, but if your game uses R15 exclusively, you can make use of Humanoid:ApplyDescriptionReset() to use a HumanoidDescription.

You can fetch the player's default HumanoidDescription using Players:GetHumanoidDescriptionFromUserId(UserId) and cache it.

When the round starts you can then call Humanoid:ApplyDescriptionReset(HumanoidDescription)
Once the round ends you can call Player:LoadCharacterWithHumanoidDescription(DefaultHumanoidDescription)

For more information on all of these API, you can read here
https://create.roblox.com/docs/reference/engine/classes/Humanoid#ApplyDescriptionReset
https://create.roblox.com/docs/reference/engine/classes/Player#LoadCharacterWithHumanoidDescription
https://create.roblox.com/docs/reference/engine/classes/Players#GetHumanoidDescriptionFromUserId

stray rune
#

❤️

jaunty bear
#

If you're struggling with any of it, feel free to tag me. Here to help 😁

stray rune
#

ok

#

but now i need to rewrite script

jaunty bear
#

It happens haha

stray rune
runic condor
#

Did you make the system ?

stray rune
#

nop

#

cuz i very bad at shop scripting

runic condor
#

I will help you , but first i will make a coffee

#

your system a little complicated

stray rune
#

nvm

runic condor
stray rune
#

one guy helped me

runic condor
stray rune
#

ye

#

but ty

#

for helping me

jaunty bear
#

@stray rune Is this topic solved, then? If so, make sure to add the Solved tag 😁