Advertisement
Guest User

Untitled

a guest
May 25th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.31 KB | None | 0 0
  1. --[[
  2. one = 49
  3. two = 50
  4. three = 51
  5. four = 52
  6. five = 53
  7. six = 54
  8. seven = 55
  9. eight = 56
  10. nine = 57
  11. insert = 277
  12.  
  13. start:
  14. walk.Visible = true
  15. grav.Visible = true
  16. delete.Visible = true
  17. guitime.Visible = true
  18. jump.Visible = true
  19. guisettings.Visible = true
  20. val.Visible = true
  21. title.Visible = true
  22. speed.Visible = true
  23. friction.Visible = true
  24.  
  25. walk.Visible = false
  26. grav.Visible = false
  27. delete.Visible = false
  28. guitime.Visible = false
  29. jump.Visible = false
  30. guisettings.Visible = false
  31. val.Visible = false
  32. speed.Visible = false
  33. friction.Visible = false
  34. --]]
  35.  
  36. local stage = 'start'
  37. local gui = Instance.new('ScreenGui')
  38. gui.Name = 'Chat'
  39. gui.Parent = game.Players.LocalPlayer.PlayerGui
  40. local frame = Instance.new('Frame')
  41. frame.Name = 'Main'
  42. frame.Parent = gui
  43. frame.Size = UDim2.new(0,550,0,234)
  44. frame.Position = UDim2.new(0,0,0.475,0)
  45. frame.BackgroundTransparency = .7
  46. frame.BorderSizePixel = 0
  47. frame.BackgroundColor3 = Color3.new(0.6666,1,0.6666)
  48. local title = Instance.new('TextLabel', frame)
  49. title.Name = 'Title'
  50. title.Text = 'Surf/Bhop API'
  51. title.BackgroundTransparency = 1
  52. title.BorderSizePixel = 0
  53. title.Size = UDim2.new(0, 550, 0, 50)
  54. title.TextColor3 = Color3.new(1,1,1)
  55. title.TextScaled = true
  56. title.Font = Enum.Font.SourceSansBold
  57. title.Visible = true
  58. -- HELL --
  59. local focus = Instance.new('BoolValue', game.Lighting)
  60. local speed = Instance.new('TextLabel', frame)
  61. local jump = Instance.new('TextLabel', frame)
  62. local grav = Instance.new('TextLabel', frame)
  63. local val = Instance.new('TextLabel', frame)
  64. local delete = Instance.new('TextLabel', frame)
  65. local guitime = Instance.new('TextLabel', frame)
  66. local friction = Instance.new('TextLabel', frame)
  67. local walk = Instance.new('TextLabel', frame)
  68. local guisettings = Instance.new('TextLabel', frame)
  69. local mainbox = Instance.new('TextBox', frame)
  70. local mainset = Instance.new('TextLabel', frame)
  71. local mainreset = Instance.new('TextLabel', frame)
  72. local mainback = Instance.new('TextLabel', frame)
  73.  
  74. speed.Name = 'speed'
  75. speed.Text = 'speed (1)'
  76. speed.BackgroundTransparency = .8
  77. speed.BorderSizePixel = 0
  78. speed.Size = UDim2.new(0, 153, 0, 35)
  79. speed.Position = UDim2.new(0.018, 0, 0.274, 0)
  80. speed.TextColor3 = Color3.new(1,1,1)
  81. speed.TextScaled = true
  82. speed.Font = Enum.Font.SourceSansBold
  83. speed.Visible = true
  84.  
  85. jump.Name = 'jump'
  86. jump.Text = 'jump (2)'
  87. jump.BackgroundTransparency = .8
  88. jump.BorderSizePixel = 0
  89. jump.Size = UDim2.new(0, 153, 0, 35)
  90. jump.Position = UDim2.new(0.35, 0, 0.274, 0)
  91. jump.TextColor3 = Color3.new(1,1,1)
  92. jump.TextScaled = true
  93. jump.Font = Enum.Font.SourceSansBold
  94. jump.Visible = true
  95.  
  96. grav.Name = 'grav'
  97. grav.Text = 'grav (3)'
  98. grav.BackgroundTransparency = .8
  99. grav.BorderSizePixel = 0
  100. grav.Size = UDim2.new(0, 153, 0, 35)
  101. grav.Position = UDim2.new(0.68, 0, 0.274, 0)
  102. grav.TextColor3 = Color3.new(1,1,1)
  103. grav.TextScaled = true
  104. grav.Font = Enum.Font.SourceSansBold
  105. grav.Visible = true
  106.  
  107. val.Name = 'val'
  108. val.Text = 'val (4)'
  109. val.BackgroundTransparency = .8
  110. val.BorderSizePixel = 0
  111. val.Size = UDim2.new(0, 153, 0, 35)
  112. val.Position = UDim2.new(0.018, 0, 0.5, 0)
  113. val.TextColor3 = Color3.new(1,1,1)
  114. val.TextScaled = true
  115. val.Font = Enum.Font.SourceSansBold
  116. val.Visible = true
  117.  
  118. delete.Name = 'delete'
  119. delete.Text = 'delete (5)'
  120. delete.BackgroundTransparency = .8
  121. delete.BorderSizePixel = 0
  122. delete.Size = UDim2.new(0, 153, 0, 35)
  123. delete.Position = UDim2.new(0.35, 0, 0.5, 0)
  124. delete.TextColor3 = Color3.new(1,1,1)
  125. delete.TextScaled = true
  126. delete.Font = Enum.Font.SourceSansBold
  127. delete.Visible = true
  128.  
  129. guitime.Name = 'time'
  130. guitime.Text = 'time (6)'
  131. guitime.BackgroundTransparency = .8
  132. guitime.BorderSizePixel = 0
  133. guitime.Size = UDim2.new(0, 153, 0, 35)
  134. guitime.Position = UDim2.new(0.68, 0, 0.5, 0)
  135. guitime.TextColor3 = Color3.new(1,1,1)
  136. guitime.TextScaled = true
  137. guitime.Font = Enum.Font.SourceSansBold
  138. guitime.Visible = true
  139.  
  140. friction.Name = 'friction'
  141. friction.Text = 'friction (7)'
  142. friction.BackgroundTransparency = .8
  143. friction.BorderSizePixel = 0
  144. friction.Size = UDim2.new(0, 153, 0, 35)
  145. friction.Position = UDim2.new(0.018, 0, 0.724, 0)
  146. friction.TextColor3 = Color3.new(1,1,1)
  147. friction.TextScaled = true
  148. friction.Font = Enum.Font.SourceSansBold
  149. friction.Visible = true
  150.  
  151. walk.Name = 'walk'
  152. walk.Text = 'walk (8)'
  153. walk.BackgroundTransparency = .8
  154. walk.BorderSizePixel = 0
  155. walk.Size = UDim2.new(0, 153, 0, 35)
  156. walk.Position = UDim2.new(0.35, 0, 0.724, 0)
  157. walk.TextColor3 = Color3.new(1,1,1)
  158. walk.TextScaled = true
  159. walk.Font = Enum.Font.SourceSansBold
  160. walk.Visible = true
  161.  
  162. guisettings.Name = 'settings'
  163. guisettings.Text = 'settings (Insert)'
  164. guisettings.BackgroundTransparency = .8
  165. guisettings.BorderSizePixel = 0
  166. guisettings.Size = UDim2.new(0, 153, 0, 35)
  167. guisettings.Position = UDim2.new(0.68, 0, 0.724, 0)
  168. guisettings.TextColor3 = Color3.new(1,1,1)
  169. guisettings.TextScaled = true
  170. guisettings.Font = Enum.Font.SourceSansBold
  171. guisettings.Visible = true
  172.  
  173. mainbox.Name = 'MainBox'
  174. mainbox.Text = 'Value'
  175. mainbox.TextColor3 = Color3.new(1,1,1)
  176. mainbox.BackgroundColor3 = Color3.new(0.6666,1,0.6666)
  177. mainbox.BackgroundTransparency = .6
  178. mainbox.Position = UDim2.new(0.049, 0, 0.291, 0)
  179. mainbox.Size = UDim2.new(0,491,0,50)
  180. mainbox.TextScaled = true
  181. mainbox.Font = Enum.Font.SourceSansBold
  182. mainbox.Visible = false
  183.  
  184. mainset.Name = 'set'
  185. mainset.Text = 'set (1)'
  186. mainset.BackgroundTransparency = .8
  187. mainset.BorderSizePixel = 0
  188. mainset.Size = UDim2.new(0, 153, 0, 35)
  189. mainset.Position = UDim2.new(0.03, 0, 0.581, 0)
  190. mainset.TextColor3 = Color3.new(1,1,1)
  191. mainset.TextScaled = true
  192. mainset.Font = Enum.Font.SourceSansBold
  193. mainset.Visible = false
  194.  
  195. mainreset.Name = 'reset'
  196. mainreset.Text = 'reset (2)'
  197. mainreset.BackgroundTransparency = .8
  198. mainreset.BorderSizePixel = 0
  199. mainreset.Size = UDim2.new(0, 153, 0, 35)
  200. mainreset.Position = UDim2.new(0.355, 0, 0.581, 0)
  201. mainreset.TextColor3 = Color3.new(1,1,1)
  202. mainreset.TextScaled = true
  203. mainreset.Font = Enum.Font.SourceSansBold
  204. mainreset.Visible = false
  205.  
  206. mainback.Name = 'back'
  207. mainback.Text = 'back (3)'
  208. mainback.BackgroundTransparency = .8
  209. mainback.BorderSizePixel = 0
  210. mainback.Size = UDim2.new(0, 153, 0, 35)
  211. mainback.Position = UDim2.new(0.68, 0, 0.581, 0)
  212. mainback.TextColor3 = Color3.new(1,1,1)
  213. mainback.TextScaled = true
  214. mainback.Font = Enum.Font.SourceSansBold
  215. mainback.Visible = false
  216. -- DONE --
  217.  
  218. local a=game.PlaceId;local b=getgc and true or not getgc and false;if b and a==252877716 or a==262118991 or a==272689493 or a==272689543 then local c=(a==252877716 or a==262118991)and-100 or(a==272689493 or a==272689543)and-50;local d=(a==272689493 or a==272689543)and 17.8897 or(a==252877716 or a==262118991)and 35.7794;print("Current version, 2.1.0")print("Current functions are : \n setspeed() \n setjump() \n setgravity() \n resetspeed() \n resetjump() \n resetgravity() \n delete() \n setval() \n settime()")warn("Went back to this to fix some things.")if not getgenv().setspeed then local e;local f;local g;local h;local i;function scan()for j,k in pairs(getgc())do if type(k)=='function'then if debug.getupvalues(k).mv and not e then e=k elseif debug.getupvalues(k).JumpVelocity and not f then f=k elseif debug.getupvalues(k).Gravity and not g then g=k elseif debug.getupvalues(k).RemoteCall and not h then h=debug.getupvalues(k).RemoteCall elseif debug.getupvalues(k).Position and not i then i=k end;if e and f and g and h and i then return print("Finished Scanning")end end end end;scan()getgenv().setspeed=function(l)debug.setupvalue(e,"mv",2.7*l)end;getgenv().resetspeed=function()debug.setupvalue(e,"mv",2.7)end;getgenv().setjump=function(l)debug.setupvalue(f,"JumpVelocity",d*l)end;getgenv().resetjump=function()debug.setupvalue(f,"JumpVelocity",d)end;getgenv().setgravity=function(l)debug.setupvalue(g,"Gravity",c*l)end;getgenv().resetgravity=function()debug.setupvalue(g,"Gravity",c)end;getgenv().settime=function(m)h("LeaveZone",workspace:FindFirstChild("MapFinish",true),tick())h("EnterZone",workspace:FindFirstChild("MapStart",true),tick())h("LeaveZone",workspace:FindFirstChild("MapStart",true),tick())h("EnterZone",workspace:FindFirstChild("MapFinish",true),tick()+m)end;getgenv().setpos=function(n)local function o(p)for j,k in pairs(workspace.Model:FindFirstChildOfClass("Model"):GetDescendants())do if k.Name==p and k:IsA("Part")then return k end end end;if n=="end"then debug.setupvalue(i,"Position",o("MapFinish").Position)elseif n=="start"then debug.setupvalue(i,"Position",o("MapStart").Position)end end end;if not getgenv().setval then local q;getgenv().setval=function(r,s)for j,k in pairs(getgc())do if type(k)=='function'then if debug.getupvalues(k)[r]then q=k;break end end end;debug.setupvalue(q,tostring(r),s)end end;if not getgenv().delete then local Enabled=false;getgenv().delete=function(t)if t and Enabled==false then Enabled=true;print("Delete was enabled, right click on a block to delete it")elseif t==false and Enabled then Enabled=false;print("Delete was disabled.")elseif t and Enabled or t==false and Enabled==false then print("Delete is already enabled/disabled")else warn("Please use a bool value for the only variable")end end end;local u=game.Players.LocalPlayer:GetMouse()u.Button2Down:Connect(function()if u.Target and Enabled then local v=Instance.new("Model",game.Workspace)u.Target.Parent=v;v.Parent=game.Players end end)getgenv().BhopApi=true else warn("Either your on the wrong game, or your exploit does not support this.")end
  219.  
  220. game:GetService('UserInputService').InputBegan:connect(function(key, gameProcessedEvent)
  221. if key.KeyCode.Value == 49 then -- 1
  222. if stage == 'start' then
  223. stage = 'speed'
  224. walk.Visible = false
  225. grav.Visible = false
  226. delete.Visible = false
  227. guitime.Visible = false
  228. jump.Visible = false
  229. guisettings.Visible = false
  230. val.Visible = false
  231. speed.Visible = false
  232. friction.Visible = false
  233. mainbox.Visible = true
  234. mainreset.Visible = true
  235. mainset.Visible = true
  236. mainback.Visible = true
  237. elseif stage == 'speed' and focus.Value == false then
  238. setspeed(tonumber(mainbox.Text))
  239. elseif stage == 'jump' and focus.Value == false then
  240. setjump(tonumber(mainbox.Text))
  241. elseif stage == 'gravity' and focus.Value == false then
  242. setgravity(tonumber(mainbox.Text))
  243. elseif stage == 'friction' and focus.Value == false then
  244. setfriction(tonumber(mainbox.Text))
  245. elseif stage == 'walk' and focus.Value == false then
  246. setwalk(tonumber(mainbox.Text))
  247. end
  248. elseif key.KeyCode.Value == 50 then -- 2
  249. if stage == 'start' then
  250. stage = 'jump'
  251. walk.Visible = false
  252. grav.Visible = false
  253. delete.Visible = false
  254. guitime.Visible = false
  255. jump.Visible = false
  256. guisettings.Visible = false
  257. val.Visible = false
  258. speed.Visible = false
  259. friction.Visible = false
  260. mainbox.Visible = true
  261. mainreset.Visible = true
  262. mainset.Visible = true
  263. mainback.Visible = true
  264. elseif stage == 'speed' then
  265. resetspeed()
  266. elseif stage == 'jump' then
  267. resetjump()
  268. elseif stage == 'gravity' then
  269. resetgravity()
  270. end
  271. elseif key.KeyCode.Value == 51 then -- 3
  272. if stage == 'start' then
  273. stage = 'gravity'
  274. walk.Visible = false
  275. grav.Visible = false
  276. delete.Visible = false
  277. guitime.Visible = false
  278. jump.Visible = false
  279. guisettings.Visible = false
  280. val.Visible = false
  281. speed.Visible = false
  282. friction.Visible = false
  283. mainbox.Visible = true
  284. mainreset.Visible = true
  285. mainset.Visible = true
  286. mainback.Visible = true
  287. elseif stage == 'speed' or stage == 'jump' or stage == 'gravity' or stage == 'friction' or stage == 'walk' and focus.Value == false then
  288. stage = 'start'
  289. walk.Visible = true
  290. grav.Visible = true
  291. delete.Visible = true
  292. guitime.Visible = true
  293. jump.Visible = true
  294. guisettings.Visible = true
  295. val.Visible = true
  296. title.Visible = true
  297. speed.Visible = true
  298. friction.Visible = true
  299. mainbox.Visible = false
  300. mainreset.Visible = false
  301. mainset.Visible = false
  302. mainback.Visible = false
  303. end
  304. elseif key.KeyCode.Value == 52 then -- 4
  305. if stage == 'start' then
  306. -- val
  307. end
  308. elseif key.KeyCode.Value == 53 then -- 5
  309. if stage == 'start' then
  310. -- delete
  311. end
  312. elseif key.KeyCode.Value == 54 then -- 6
  313. if stage == 'start' then
  314. -- time
  315. end
  316. elseif key.KeyCode.Value == 55 then -- 7
  317. if stage == 'start' then
  318. stage = 'friction'
  319. walk.Visible = false
  320. grav.Visible = false
  321. delete.Visible = false
  322. guitime.Visible = false
  323. jump.Visible = false
  324. guisettings.Visible = false
  325. val.Visible = false
  326. speed.Visible = false
  327. friction.Visible = false
  328. mainbox.Visible = true
  329. mainreset.Visible = true
  330. mainset.Visible = true
  331. mainback.Visible = true
  332. end
  333. elseif key.KeyCode.Value == 56 then -- 8
  334. if stage == 'start' then
  335. stage = 'walk'
  336. walk.Visible = false
  337. grav.Visible = false
  338. delete.Visible = false
  339. guitime.Visible = false
  340. jump.Visible = false
  341. guisettings.Visible = false
  342. val.Visible = false
  343. speed.Visible = false
  344. friction.Visible = false
  345. mainbox.Visible = true
  346. mainreset.Visible = true
  347. mainset.Visible = true
  348. mainback.Visible = true
  349. end
  350. elseif key.KeyCode.Value == 277 then -- insert
  351. if stage == 'start' then
  352. -- settings
  353. end
  354. end
  355. end)
  356.  
  357. mainbox.Focused:connect(function()
  358. focus.Value = true
  359. end)
  360. mainbox.FocusLost:connect(function()
  361. focus.Value = false
  362. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement