Help Coding Speedhack - New to Lua
Ok so I am new to Lua and Ihave been making Wallhacks and Aimbots (small ones from tutorials, not sure if they work) and I want to make a SpeedHack with console commands orion_sh 0 or 1. I don't know of this will work or if this is even the proper way to go about it.
So far I have
Code:
function addCmds( cmd )
concommand.Add("orion_sh 1", speedhackOn)
concommand.Add("orion_sh 0", speedhackOff)
end
function speedhackOn() -- Starting the On Function
local ply = LocalPlayer() -- Getting Ourselves
ply:SetRunSpeed 2500 -- Sets the Player's RunSpeed Variable to 2500, mega fast
end
function speedhackOff() -- Starting the Off Function
local ply = LocalPlayer() -- Getting Ourselves
ply:SetRunSpeed 500 -- Returns the Player's RunSpeed Variable to 500, the default
end
Will this work? If not, how abouts would I go about making a Speed Hack?
No you cant use SetRunSpeed in clientside.
Also if you where to make it. SetRunSpeed is a function, so you would have to have function arguments like this
ply:SetRunSpeed( 500 )
But if you are new to lua, your best bet would to spoof host_framerate or host_timescale and use that, which can only be done with c++.
Depending on your bypass, it may spoof them...
willox can use setwalkspeed nerds