endsword_1
(endsword)
November 18, 2021, 3:28am
#1
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)
KdudeDev
(Kdude)
November 18, 2021, 5:51am
#3
Only the Backpack and PlayerGui reset (unless the ScreenGui has ResetOnSpawn toggled off)
Any values in the player would be fine.
1 Like
endsword_1
(endsword)
November 18, 2021, 7:35am
#4
after the :LoadCharacter()
event also resets?
If the value is already “TU” then it wont change again, you should make it unique each time.
endsword_1
(endsword)
November 18, 2021, 8:10am
#6
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
endsword_1
(endsword)
November 18, 2021, 8:25am
#8
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()
endsword_1
(endsword)
November 18, 2021, 8:37am
#10
do u know the reason why the line after :LoadCharacter()
not working?
VortexColor
(VortexColor)
November 18, 2021, 8:38am
#11
are you sure :LoadCharacter() works either?
Did the print() before :LoadCharacter() output anything?
endsword_1
(endsword)
November 18, 2021, 8:47am
#12
yea the :LoadCharacter()
works the print also works before the :LoadCharacter()
VortexColor
(VortexColor)
November 18, 2021, 8:49am
#13
does the character reload after :LoadCharacter()
VortexColor
(VortexColor)
November 18, 2021, 8:54am
#15
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 .
endsword_1
(endsword)
November 18, 2021, 8:55am
#16
Lemme record the whole thing so u might know what happened
endsword_1
(endsword)
November 18, 2021, 9:02am
#17
here the video where u might find the problem
endsword_1
(endsword)
November 18, 2021, 9:12am
#18
here if u cant see the script