Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local base ="[[[[GlimpseGame.exe+03976680]+B8]+90]+160]+17"
- local waypoint="[[[[[[GlimpseGame.exe+037515E0]+130]+50]+20]+380]+90]+1C"
- local stamina="[[[[[GlimpseGame.exe+03976AF0]+30]+440]+360]+A0]+5B0"
- local savedpos = {}
- local waypointpos = {}
- local lastpos = {}
- function getpos()
- for i = 0, 2 do
- savedpos[i] = readFloat(base..i*4)
- end
- savedpos[2] = savedpos[2] + 10
- end
- function setpos()
- if savedpos[0] ~= 0 then
- for i = 0,2 do
- lastpos[i] = readFloat(base..i*4)
- writeFloat(base..i*4,savedpos[i])
- end
- end
- end
- function noclip(axis,pm)
- writeFloat(base..axis*4,(readFloat(base..axis*4)+(pm*150)))
- end
- function setpostowaypoint()
- for i = 0,2 do
- lastpos[i] = readFloat(base..i*4)
- writeFloat(base..i*4,readFloat(waypoint..i*4))
- end
- end
- function backtolast()
- if lastpos[0] ~= 0 then
- for i = 0,2 do
- writeFloat(base..i*4,lastpos[i])
- end
- end
- end
- function Teleport()
- if isKeyPressed(97) then
- playSound(findTableFile("beep.wav"))
- getpos()
- end
- if isKeyPressed(98) then
- setpos()
- end
- if isKeyPressed(99) then
- backtolast()
- end
- if isKeyPressed(100) then
- setpostowaypoint()
- end
- if isKeyPressed(38) then
- noclip(0,1)
- end
- if isKeyPressed(40) then
- noclip(0,-1)
- end
- if isKeyPressed(37) then
- noclip(1,1)
- end
- if isKeyPressed(39) then
- noclip(1,-1)
- end
- if isKeyPressed(107) then
- noclip(2,1)
- end
- if isKeyPressed(109) then
- noclip(2,-1)
- end
- end
- function InfStamina()
- writeFloat(stamina,1.15)
- end
- function ActivateTeleport()
- t1=createTimer(nil)
- t1.onTimer=Teleport
- t1.Interval=100
- t1.Enabled=true
- end
- function ActivateStamina()
- t2=createTimer(nil)
- t2.onTimer=InfStamina
- t2.Interval=100
- t2.Enabled=true
- end
Add Comment
Please, Sign In to add comment