I need help with a Code Executer

It is ok :slight_smile: THank you so much though I am very happy

I have one more question :grinning_face_with_smiling_eyes: @kaiyellow2008

How would I make it so if there is a keyword such as local or print I can make it change that word a color and only that word

I’ve had the same trouble, but that is a different topic and you should post that question as a different topic.

1 Like

Ok I will rn I will also @ you

Actually you don’t need to do that. I posted the same question:

1 Like

Is it local script? :grinning_face_with_smiling_eyes:

This is great! It’s very useful.

To access a gui it has to be a local script.

2 Likes

box:GetPropertyChangedSignal("Text"):Connect(function()
doesn’t seem to be working in Server, might as well consider using Local script for it.

Yes ok thank you :slight_smile:

1 Like

I am very happy :grinning_face_with_smiling_eyes:

1 Like

BTW, if you are the only one who will use this, you can also use “/console” (developer console) to fire server side code. In studio playtest you can also fire local code with the command bar.

This is pretty risky since you’re using remotes and loadstring to execute code on the server, one error could be catastrophic; if you want to make client sided changes, you could use a wrapper (you pass a string into a wrapper) on the client to return a function which you can call (this is really similar to loadstring) but, it’s much safer since exploiters will have a lower chance of gaining server sided access.
If you want to make changes on the server with code, you can use the in game console to execute code on the server (this only works if you have permissions to edit the game).

But I want it to happen on the server

and whats a wrapper? :grinning_face_with_smiling_eyes:

If you want code to be executed on the server, you could use the in game console (I’ll post a picture here soon) and, the term wrapper is has a verity of definitions depending based on the context it is used in; in simple terms, a wrapper here is something that takes a string (code) which is parsed, then a function is created based off the input e.g.

local Wrapper = require(...)
local String = [["print('Hello World!')"]]
local ReturnedFunction = Wrapper.Wrap(String)
ReturnedFunction () -- Should print "Hello World!"

If you’d like to learn more about wrappers, I’d recommend looking into the source code of a few open source wrappers (you should be able to find some on the DevForums).

1 Like

What would I require? :grinning_face_with_smiling_eyes:

@Unknownstaffmembe :grinning_face_with_smiling_eyes:

I need to use wrapper since I cannot use loadstring in a localscript