I need help transporting a textbox text into a regular script

  1. What do you want to achieve? Keep it simple and clear!
    need to transport text from a textbox (that i got from a local script) to a scirpt

  2. What is the issue? Include screenshots / videos if possible!
    its getting an instance, even though the text should be a string
    image

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    i did look, i have tried to use remotevents but that didn’t get me anywhere
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local script:

script.Parent:GetPropertyChangedSignal("Text"):Connect(function()
	local text = script.Parent.Text
	print(text)
	local plr = game.Players.LocalPlayer
	script.Parent.Parent.RemoteEvent:FireServer(plr,text)
end)

script:

local text2 = ""
script.Parent.MouseButton1Down:Connect(function()
	print(text2)
	game.Workspace["1"].d1.shirt.ShirtTemplate = "http://www.roblox.com/asset/?id="..string.match(text2,"%d+")
end)
script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr,text)
	text2 = text
end)
end)

(my scripts are messy)

2 Likes

Ide use a value like word or whatever that smh is called (or a remote event)

1 Like

i tried remote events

the value wouldn’t change server sided, it would change client sided

also you mean a string value?

Yes (Charractorlimmitgoofyahhh)

You don’t have to fire over the Player (plr) object over to the server (it’s automatically already a parameter in the OnServerEvent function). The reason it’s printing “Instance” is because you’re attempting to print the Player object.

If that dont work could you send a pickture of the workspace smh

oh, let me fix that (i think i already tried w/o that, but i will try once more)

1 Like


still
pic of workspace as requested, i still dunno why its not working tbh
image

Could you provide both scripts again so I can see what changed?

local:


reg:

Wait I didn’t mean remove the “plr” argument for both events. Add the “plr” argument back to the OnServerEvent this like this (how you did before):

DON’T CHANGE THE :FireServer() event thing or else it won’t work again ONLY re-add the “plr” arg to the ONSERVEREVENT event

ty for the help man, im not great with remote events, so tysm

1 Like

I fell asleep sorry charrachtor limmit

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.