Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how would i add a variable on the end of text??? please help.

when i use

"http://www.roblox.com/asset/?id="..v

it doesent work correctly. how can i make this work? What i am trying to do is take the value of a text box's text and take the text and put it at the end of this peice so it says

http://www.roblox.com/asset/?id= --Id put in

in the shirts template value

4 comments

0

ok code block didnt work.

0

You're being very vague but have you tried tostring(v)?

0

can you elaborate more? how isn't it working? What's the actual problem?

0

what i am trying to do is take a shirt id thats put into a textbox and insert it at the end of that text string, the error is when i do put an id in the only thing that shows up on a players shirt template data is http://www.roblox.com/asset/?id= and not the value put in the textbox

3 answers

You said you want to make a shirt changer gui, so here it is!

local textbox = --your textbox path here
local textbutton = --your textbutton path here, when it's clicked it changes your shirt

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		local Humanoid = Character.Humanoid
		textbutton.MouseButton1Click:Connect(function()
			Humanoid.Parent.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=" .. textbox.Text
		end)
	end)
end)

idk yet if this works, but if it is, then have fun! Stay safe, brother.

3 comments

0

im trying to have a textbox have a custom id in it turn into a shirt id by adding the textboxes text onto the end of the asset

0

Oh I'll make a new answer then!

0

It's edited now!

This is very vague, as much as I can think of, I think this is what you meant

http://www.roblox.com/asset/?id=318230128039 --That should be your id
local id = nil -- nil until text is entered
local http = "http://www.roblox.com/asset/?id" .. id

For Your Purpose

local id = -- asset id here
local http = "http://www.roblox.com/asset/?id" .. id

script.Parent.Changed:Connect(function()
id = script.Parent.Text
end)

Put This Script In The TextBox

This discussion is preserved as it was. New answers, comments, and votes are closed.