I have this script:
placeID=ID HERE
spawn(function()
repeat wait()
local h=game:GetService'HttpService'
h:GetAsync('http://rproxy.pw/Game/PlaceLauncher.ashx?request=RequestGame&placeId='..tostring(placeID)..'&isPartyLeader=false&gender=&isTeleport=true')
until nil
end)
and I want to make a GUI with a text box and whatever number I type in the text box it will replace ID HERE in the script with, then when I click the button below, it'll execute the script. Can anyone help with the text box and Script Executing button? I'm not quite sure how to replace ID Here with the number you type in the text box and also not sure how to execute the script when I press a TextButton

1 comment
Doesn't seem to work. I was thinking of doing an if then function to execute the script when the button was pressed like if the TextButton was pressed it'll execute the original script and make placeID = script.Parent.Parent.TextBox.Text but that didn't seem to work.