Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Requires DBVM!
- --Open Cheat Engine, Attach to ROBLOX. Go to the lua prompt for Cheat Engine. Copy and paste it in. Click Execute Script and see that in ROBLOX a D3D menu is drawn to the screen. Fly and swim works.
- background=createPicture()
- bmp=picture_getBitmap(background);
- local rblx = "RobloxPlayerBeta.exe"
- --Option string definitions
- local opt1str="Swim: "
- local opt2str="Fly: "
- local opt3str="Double Jump for All: " --address is under local noclip.
- --Addresses
- local swim = 0x008F38E1
- local fly = 0x008F39E6
- local noclip = 0x008F39F3
- graphic_setHeight(bmp,1)
- graphic_setWidth(bmp,1)
- c=rasterimage_getCanvas(bmp)
- canvas_setPixel(c,0,0,0xff0000)
- highlighter=createPicture()
- bmp=picture_getBitmap(highlighter);
- graphic_setHeight(bmp,1)
- graphic_setWidth(bmp,1)
- c=rasterimage_getCanvas(bmp)
- canvas_setPixel(c,0,0,0x0000ff)
- d3dhook_initializeHook()
- bgtexture=d3dhook_createTexture(background)
- bgsprite=d3dhook_createSprite(bgtexture);
- d3dhook_renderobject_setX(bgsprite, 1) --center it horizontally
- d3dhook_renderobject_setVisible(bgsprite, false) --too lazy to remove
- d3dhook_sprite_setWidth(bgsprite,200)
- d3dhook_sprite_setHeight(bgsprite,200)
- highlightertexture=d3dhook_createTexture(highlighter)
- hlsprite=d3dhook_createSprite(highlightertexture)
- d3dhook_renderobject_setVisible(hlsprite, false) --don't show it just yet
- d3dhook_renderobject_setX(hlsprite, -1) --center (so matches with the background)
- d3dhook_sprite_setWidth(hlsprite,200)
- font=createFont()
- fontmap=d3dhook_createFontmap(font)
- lineheight=d3dhook_texture_getHeight(fontmap) --fontmap inherits from texture so this can be used
- d3dhook_sprite_setHeight(hlsprite,lineheight) --make the highlightr the same height as a textline
- Option1=d3dhook_createTextContainer(fontmap,-1,50,opt1str..'OFF')
- Option2=d3dhook_createTextContainer(fontmap,-1,50+lineheight,opt2str..'OFF')
- Option3=d3dhook_createTextContainer(fontmap,-1,50+lineheight*2,opt3str..'OFF')
- Option1State=false
- Option2State=false
- Option3State=false
- selectedOption=1
- function setHighlighterToSelectedOption()
- d3dhook_renderobject_setY(hlsprite, 50+lineheight*(selectedOption-1))
- end
- setHighlighterToSelectedOption()
- d3dhook_renderobject_setVisible(hlsprite, true)
- debugProcess()
- function debugger_onBreakpoint()
- EAX=1
- debug_continueFromBreakpoint(co_run)
- return 1
- end
- function setEAX(addy, enabled)
- if enabled == true then
- debug_setBreakpoint(addy)
- else
- debug_removeBreakpoint(addy)
- end
- end
- function execCheck()
- if (Option1State==true) then
- setEAX(swim,true)
- end
- if (Option1State==false) then
- setEAX(swim,false)
- end
- if (Option2State==true) then
- setEAX(fly,true)
- end
- if (Option2State==false) then
- setEAX(fly,false)
- end
- if (Option3State==true) then
- setEAX(noclip,true)
- end
- if (Option3State==false) then
- setEAX(noclip,false)
- end
- end
- function ExecuteSelectedOption()
- local onoff="OFF";
- if (selectedOption==1) then
- Option1State=not Option1State
- if (Option1State) then
- onoff="ON"
- else
- onoff="OFF"
- end
- d3dhook_textcontainer_setText(Option1,opt1str..onoff);
- execCheck()
- end
- if (selectedOption==2) then
- Option2State=not Option2State
- if (Option2State) then
- onoff="ON"
- else
- onoff="OFF"
- end
- d3dhook_textcontainer_setText(Option2,opt2str..onoff);
- execCheck()
- end
- if (selectedOption==3) then
- Option3State=not Option3State
- if (Option3State) then
- onoff="ON"
- else
- onoff="OFF"
- end
- d3dhook_textcontainer_setText(Option3,opt3str..onoff);
- execCheck()
- end
- end
- function objectclick(object, x, y)
- --bla=userDataToInteger(object)
- --print(string.format("click on %x",bla))
- if (object==Option1) then
- selectedOption=1
- ExecuteSelectedOption()
- end
- if (object==Option2) then
- selectedOption=2
- ExecuteSelectedOption()
- end
- if (object==Option3) then
- selectedOption=3
- ExecuteSelectedOption()
- end
- setHighlighterToSelectedOption()
- end
- d3dhook_onClick(objectclick)
- function keydown(virtualkey,char)
- if (virtualkey==VK_NUMPAD2) then
- --down arrow
- if (selectedOption<3) then
- selectedOption=selectedOption+1
- end
- end
- if (virtualkey==VK_NUMPAD8) then
- --up arrow
- if (selectedOption>1) then
- selectedOption=selectedOption-1
- end
- end
- if (virtualkey==VK_NUMPAD5) then
- ExecuteSelectedOption()
- end
- setHighlighterToSelectedOption()
- return true
- end
- d3dhook_onKey(keydown)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement