Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why wont script change string value to my gui text?

Why does this not work?

	game.Workspace.CarPrice.Value = game.Players.YurStillABustaToMe.PlayerGui.CarPrice.TextBox.Text

3 comments

0

the while script.Disabled == false do is useless since the script wont run if it's disabled

0

I know

0

Im trying to figure out why line 3 doesn't work

4 answers

✓ Accepted answer

It won't work because of Filtering Enabled. When you change the text of a TextBox, it doesn't show for the server.

Instead of inserting it into the Player's PlayerGui, you can just make a script in StarterGui.

1 comment

0

Tried that also, doesn't work

local t = game.Players.YurStillABustaToMe.PlayerGui:FindFirstChild("CarPrice")
local val = game.Workspace:FindFirstChild("CarPrice")
print(t,val)
while true do
wait()

if val and t then
val.Value = t.Text
end

end

4 comments

0

No errors. Doesn't work. I'm so confused.

0

@mantorok4866 It prints nothing

0

15:44:51.297 - YurStillABustaToMe is not a valid member of Players

0

Don't spoonfeed like this please. Give an explanation as to what you're doing and how you figured it out.

This discussion is preserved as it was. New answers, comments, and votes are closed.