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

How to get .text by using local script into a script?

Hi i have got a problem. How do i get text from textbox in local script and remoteevent it to a normal script?

3 comments

0

Please fix spelling

0

What is your issue? I would probably try fixing the grammar as it is difficult to read.

0

also, give us any code you have because this isn't a request site otherwise

1 answer

Place a Remote Event somewhere. For the example, it's in ReplicatedStorage.

Local Script (Parent is the textbox):

local replicated = game:GetService("ReplicatedStorage")
local RemoteEvent = replicated.RemoteEvent
RemoteEvent:FireServer(script.Parent.Text)

Script:

local replicated = game:GetService("ReplicatedStorage")
local RemoteEvent = replicated.RemoteEvent
RemoteEvent.OnServerEvent:Connect(function(player,text)
	print(text)
end)

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