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

Script wont function properly?

Asked by 10 years ago

This script wont work, I changed the path, but it wont work still. Help!?

local player = Game.Players.LocalPlayer

local swordMesh = script.Parent

local GuiBar = player.PlayerGui.StarterGui.Frame.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 answers

Log in to vote
0
Answered by 10 years ago

If you're using a script, have you tried using a localscript instead?

Ad
Log in to vote
0
Answered by 10 years ago

What do you want it to do?? And is it in a localscript??

0
Yes, it's in a local script. It's supposed to change your swords TextureID, when you type in a ID in the textbox. Does anyone know how to fix? Lem0nzz 5 — 10y
0
Oh ok, then I don't how to do that, sorry NinjoOnline 1146 — 10y

Answer this question