Script doesnt register TextBox text

I already tried and it had the same problem.

It literally just doesnt want to work.

local RGB = player.PlayerGui:WaitForChild("LoadoutGui")

local RGB1 = RGB.Loadout.SpawnMenu.Loadout.RGB.Text

task.spawn(function()
	while true do
		value.Value = RGB1
		print(value)
		wait(0.1)
	end
end)

Hold on just a minute

2 Likes

If you need the server to get the text, use a LocalScript, a Script and a RemoteEvent to send the text box’s text to the server.

2 Likes

Also, you can’t do Color3.fromRGB(text) as you cant use a string for a color. Separate the string using string.split(text, ",") and use these values instead.

2 Likes

I dont really understand RemoteEvents.

I looked at this and it didnt help at all: Remote Functions and Events

1 Like

Well, thats a thing to think about after I get through this TextBox heck.

(If it even registered it in the first place)

1 Like

I know kinda late but the only one that didnt work is print(color)

It printed nothing.

(I feel like this has already been established by now)

1 Like

Ok, so you have a RemoteEvent instance.
The client can do:

RemoteEvent:FireServer(data)

data being the thing the player sends

The server can do:

RemoteEvent.OnServerEvent(function(player, data)
    -- stuff here
end)

Connect an event that does stuff everytime the client does their thing, automatically receiving the Player instance of who did it and the data.

For your case you would check with the textbox’s event that lets you detect when the player inputs something in it and it would FireServer and the server can handle it.

2 Likes

I really hope youre joking, like I really do.

1 Like

that looks right :+1:.
I think that using remotes is your best option considering you can just rely on the server!

1 Like

I honestly dont know what your going for I took time out of my day to look into what ur doing lol thanks for the respect my guy

1 Like

Bruh, seriously? He’s talking about colour of in-game Text, not script colours. Please read context before posting…

1 Like

thanks my g I didnt need ur input?

1 Like

Nor did they need yours on “How To Change Colors Of Text In ROBLOX STUDIO { 2020 }”, but thanks.

1 Like

I looked through it again and found my mistake on the post

1 Like

Well thanks for explaining me but I still dont understand like what to put where the “data” is.

Like should player.PlayerGui.LoadoutGui.Loadout.SpawnMenu.Loadout.RGB.Text be in there.

Or should

target.Color = Color3(color)
						print(color)

be in “-- stuff here”

Sorry but I literally just dont understand it.

Im used to logical thinking and this has no logic to it at all for me.

1 Like

You would put the TextBox’s Text there. (player.PlayerGui.LoadoutGui.Loadout.SpawnMenu.Loadout.RGB.Text)

It should.

Most stuff doesn’t make much sense unless you look deeper into it.

1 Like

I guess you used script instead of local script

1 Like

That would be a good guess I would say.

Not really a guess since its literally there in the post description.

1 Like

i don’t understand your problem. People already said to use remote events and that is a correct answer

1 Like

The problem is that my 2 brain cells cant understand remote events so someone is explaining it to me.

1 Like