I need to add text that vs thinks it is code, im using richTextBox to hold that code because i dont know how to put it into code because vs thinks that is code but it is just a text that need to be send to a function later.
I tried something like that:
string something = @"_G.WS = {arg1};
local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
Humanoid.WalkSpeed = _G.WS;
end)
Humanoid.WalkSpeed = _G.WS;";
*all code here need to be just a multiline text
But visual studio thinks that is code but not text.
I tried use backslashes but this didnt helped too. richTextBoxes works but i need to change variables in that text but how can i change it if i cant do anything with text in texbox in code.
I need to do something like this:
function($@"_G.WS = {arg1};
local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
Humanoid.WalkSpeed = _G.WS;
end)
Humanoid.WalkSpeed = _G.WS;");
*all code here need to be just a multiline text
and it needs to be just a text not code, and $, @ wont help.
I dont know any another way to do this.
If its possible how can i do this?