Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm trying to make a text box I can edit the global variable with. Fix?

Asked by 4 years ago

I want to be able to type a number and then see the ore value ("_G.orevalue") change to the number I put inside, as well as only showing the text box to me.

Code here

local Humanoid = game.Players.LocalPlayer.Character

if  Humanoid.Parent == ("calenmaster1") then


local TextBox = script.Parent.Text





TextBox:GetPropertyChangedSignal("Text"):Connect(function()


    _G.orevalue = TextBox




end)


        end 

Answer this question