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)
I think that your path is incorrect. Make sure that there is actually something inside your player's PlayerGui called Example (It has to be a ScreenGui) and inside that there is something called TextBox (It has to be a TextBox).