Value not Changing after :LoadCharacter()

I was trying to make a button when u pressed it refresh the character and change the value so the clone thingy works fine but the value didn’t change for some reason output is working fine

script.Parent.TU.OnServerEvent:Connect(function(p)

local Character = p.Character

local Val = p:WaitForChild("StandValue")

p:LoadCharacter()

wait(.5)

Val.Value = "TU"

end)

Only the Backpack and PlayerGui reset (unless the ScreenGui has ResetOnSpawn toggled off)

Any values in the player would be fine.

1 Like

after the :LoadCharacter() event also resets?

If the value is already “TU” then it wont change again, you should make it unique each time.

The value is SP when join the game

pry to put

print(Val.Value)

after this \ /

Val.Value = "TU"

and see what is says to you

the output didn’t print the value but i can see the value with explorer its still SP

yes,
then something before that code doesnt work
try putting

print(Val.Value)

before

p:LoadCharacter()

do u know the reason why the line after :LoadCharacter() not working?

are you sure :LoadCharacter() works either?

Did the print() before :LoadCharacter() output anything?

yea the :LoadCharacter() works the print also works before the :LoadCharacter()

does the character reload after :LoadCharacter()

Don’t Mind this just the stupid 30 word limit

yup it does

Hmm… that is odd.
Does the character have a normal appearence like it does.
It might have something to do with Player | Roblox Creator Documentation .

Lemme record the whole thing so u might know what happened

here the video where u might find the problem

here if u cant see the script