Hi i have got a problem. How do i get text from textbox in local script and remoteevent it to a normal script?
COMMUNITY QUESTION
How to get .text by using local script into a script?
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.

3 comments
Please fix spelling
What is your issue? I would probably try fixing the grammar as it is difficult to read.
also, give us any code you have because this isn't a request site otherwise