Remote event & hacker

can someone help me find out how to prevent hackers from abusing my remotes

Whats the purpose of the remote?

i have a few but the main purpose of the remotes were just to update simple things for the client since doing only server scripts didn’t work out with more than 1 player

most of them just tells the server what is in the textbox

Could you give an example of things it updates? And could you explain why it wont work with more than 1 player?

If you use

game.Players.PlayerAdded:connect(function(player) 

end)

Then the script should work for every player who joins

when i first remade my scripts I tried to use little remote events as i can and make everything server-sided but that didn’t work it was just a test.

anyways most of the remotes do this
server

script.LocalScript.RemoteEvent.OnServerEvent:Connect(function(plr,text,text2)
	frame.Frame.Packname.Text = text
	frame.Frame.CustomId.Text = text2
end)

client

script.Parent.Parent.Packname.FocusLost:Connect(function()
	script.RemoteEvent:FireServer(script.Parent.Parent.Packname.Text,script.Parent.Parent.CustomId.Text)
end)
script.Parent.Parent.CustomId.FocusLost:Connect(function()
	script.RemoteEvent:FireServer(script.Parent.Parent.Packname.Text,script.Parent.Parent.CustomId.Text)
end)

client

script.Color:FireServer(color)
script.RemoteEvent.OnClientEvent:Connect(function()
	hum:UnequipTools()
end)

You should:
1.Do sanity checks [e.x: check the typeof the needed argument[s] ]
2.Make a ‘cache debounce’ to see how fast they activate those remotes.

2 i do
1 how do i do that if the remote is just passing string data to the server text box from the client

if typeof(text) == “string” then
—do stuff
end

script.Parent.FocusLost:Connect(function()
	script.RemoteEvent:FireServer(script.Parent.Text)
end)
script.RemoteEvent.OnServerEvent:Connect(function(Player, Text)
    if typeof(Text) == "string" then
        --do stuff
    end
end)

Depending on what the remote does, it can be prevented in multiple ways.

alr then help out show me some examples

if someone was to list out every single example of a vulnerable remote ever, you would be left with a book thicker than war and peace.

1 Like

alr then tell me how to use this "t" - A Runtime Type Checker for Roblox

it doesnt look like an exploiter can do much harm with this, one thing I would say though is to filter the text if other players can see it

1 Like

I personally don’t like t, so I never use it.
It’s lazy to not learn how to use it, but honestly I can do anything I need without a module that’s 90% features that I will never need

eh true I’ll just find out what’s going on myself