Hi!I’m making a game to learn how to bypass different types of noclips.I put some walls and add different noclip bypasser I wrote into them.I also tried to make an executor to make player run that command from client but the code I wrote didn’t work.Can you please help me?Execute script is in a GUI button.Code:
local Code = script.Parent.Parent.TextBox.Text
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
loadstring(Code)
end)
loadstring does not work in clients and there are so many things wrong with this code.
local Code = script.Parent.Parent.TextBox.Text -- This will get the code before pressing the button.
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
loadstring(Code) -- This will never work as loadstring returns a function.
end)
Actually working code:
Client Code:
local Code = script.Parent.Parent.TextBox
local Button = script.Parent
local RemoteEvent = game.ReplicatedStorage.RunCode
Button.MouseButton1Click:Connect(function()
RemoteEvent:FireServer(Code.Text)
end)
Server Code:
local RemoteEvent = game.ReplicatedStorage.RunCode
RemoteEvent.OnServerEvent:Connect(function(player,code)
loadstring(code)()
end)
I am not? You are misunderstanding and well making off-topic posts. I am just responding to your… stupid argument there while also reviving an old post. Please don’t do that okay? Nor try harrassing. Thanks.
Harassing? The OP clearly said “I also tried to make an executor to make player run that command from client”. My reply is correct, stop being immature and don’t reply if you can’t even understand the post. Read it again and then talk.
I do understand what OP said, it seems you didn’t read MY post clearly.
I am correcting on how OP is using loadstring() in a local script and not even running the function. I am not solving their issue, rather, correcting OP. If you have a valid solution then you should have just posted it directly to the OP rather than replying to me ranting about how my post isn’t very much correct. Which, I am fine about. The real issue is why revive a 2 month old post? I just asked you to not reply to such old post after which you continued to say “Chilld buddy, perhaps stop being aggressive?” while I am not even trying to be aggressive rather just telling you to not revive old posts.
Let’s just stop this okay? No use in continuing this in such a dead post. I hope I have cleared out the confusion here between us two.
Again, I am just correcting OP on their use of their way of loadstring. I do understand the risks of using it, I am sorry if I haven’t really explained much in my original post.
honestly, I don’t care.I’m trying to make a game that people try to exploit to noclip throught walls.If you ask “why” to make new anti-cheats from these exploits.I meant…You understood I hope.And, I remember someone just did it and use it on their game.Sadly I forget who did it