I have been thinking of that for long time, And I have made it but the thing that I want to know if the password securing is unbreakable or can be breakable by short time.
That script gonna make sure that exploiters don’t just fire server everytime without that long letters&numbers password that I have added.
But I just want to get some feedbacks about it so I can know if it’s breakable by short time or no and improve it
Script in Serverstorage
local event = game.ReplicatedStorage:FindFirstChildOfClass("Folder"):FindFirstChildOfClass("RemoteEvent")
event.OnServerEvent:Connect(function(player,password,targetname)
if player and password == "c794G17q9w-qOGVKcFyWG-M2ZBY2zSyz-tXo2611h4B-lRU4HMjlMR"and targetname then
local target = workspace:FindFirstChild(tostring(targetname))
if target then
target:FindFirstChildOfClass("Humanoid").Health = target:FindFirstChildOfClass("Humanoid").Health - 99e99
end
end
end)
Local script in the gui
local password = "c794G17q9w-qOGVKcFyWG-M2ZBY2zSyz-tXo2611h4B-lRU4HMjlMR"
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage:FindFirstChildOfClass("Folder"):FindFirstChildOfClass("RemoteEvent"):FireServer(tostring(password),script.Parent.Parent.TextBox.Text)
end)
Photo of the gui if needed
Photo of the stuff