The value does not change other values when I put any number in the textbox UI. It just changes all value numbers to 0 instead of the number that is in the textbox. Any thoughts? Here is my code:
local Number = script.Parent.Parent:WaitForChild("TextBox")
local OldValue = game.StarterPack:WaitForChild("OldValue")
local UpdateTo = game.StarterPack:WaitForChild("UpdateTo")
local NewValue = game.StarterPack:WaitForChild("NewValue")
script.Parent.MouseButton1Click:Connect(function()
Number.Text = OldValue.Value
wait(0.1)
OldValue.Value = UpdateTo.Value
print("Updated Value =", UpdateTo.Value)
UpdateTo.Value = NewValue.Value
print("New Value =", NewValue.Value)
end)
Here is the file if needed: https://drive.google.com/file/d/1SRnYcp7oA0tukRTA2hXX7z7vXX2rs5wc/view?usp=sharing
