Help please? This script was updated yet, it still wont work!
local player = Game.Players.LocalPlayer
local swordMesh = script.Parent
local GuiBar = player.PlayerGui.Example.TextBox --Change to correct path.
GuiBar.FocusLost:connect(function() --When someone is finished typing into the TextBox,
pcall(function()
swordMesh.TextureId = "http://www.roblox.com/asset/?id="..tostring(tonumber(GuiBar.Text)-1) --Try to change the texture.
end)
end)

2 comments
Oh, how would I change the path from this, through a frame?
Well that depends on the name of the frame, say it was called "Frame" and it was located in the ScreenGui called "Example" and inside of this frame was the TextBox named "TextBox", then the path would be: local GuiBar = player.PlayerGui.Example.Frame.TextBox