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

Change text in a textbox with filtering enabled?

Asked by 7 years ago
Edited 7 years ago

I'm just strugging to make a radio with Filtering Enabled It's a server script.

01local PonerMusica = game.Workspace.PonerMusicaGlobal
02local PararMusica = game.Workspace.PararMusicaGlobal
03local EventoFiltering = game.Workspace.CambiarTexto
04Debug = 0
05 
06local function PonerMusicaGlobal(p)
07    if Debug == 0 then
08        Debug = 1
09        Audio = Instance.new("Sound")
10        Audio.Name = "Audio"
11        Audio.Parent = game.Workspace
12        local ID = script.Parent.Text
13        Audio.Looped = true
14        Audio.SoundId = "rbxassetid://"..ID
15        Audio:Play()
View all 29 lines...
0
Is this a server script and is there something in a local script that triggers the server event? RockerCaleb1234 282 — 7y
0
It is a server script. rubene45 2 — 7y

1 answer

Log in to vote
0
Answered by
Asceylos 562 Moderation Voter
7 years ago
Edited 7 years ago

You need to make a RemoteEvent inside the player with a local script that changes the text in the textbox. The RemoteEvent needs to be triggered by your ServerScript.

0
I don't understand... I just want to detect the text input a player has in his screengui. rubene45 2 — 7y
0
FilteringEnabled requires you to send Remote Events/Functions to allow for the server to change things. The server cannot edit the player GUIs without a Remote Event (unless the GUIwas made by the server previously). Ninjaruaz 22 — 7y
0
So I can just make a GUI with a script then I can access the text of the textbox input of the client? rubene45 2 — 7y
Ad

Answer this question