Why does this not work?
game.Workspace.CarPrice.Value = game.Players.YurStillABustaToMe.PlayerGui.CarPrice.TextBox.Text
Why does this not work?
game.Workspace.CarPrice.Value = game.Players.YurStillABustaToMe.PlayerGui.CarPrice.TextBox.Text
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.
Tried that also, doesn't work
Does a part have that script? Or is it not attached to a part?
Its in ServerScriptService
...
Is it supposed to be shown on a part?
No
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
No errors. Doesn't work. I'm so confused.
@mantorok4866 It prints nothing
15:44:51.297 - YurStillABustaToMe is not a valid member of Players
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.
3 comments
the while script.Disabled == false do is useless since the script wont run if it's disabled
I know
Im trying to figure out why line 3 doesn't work