Advertisement
idontknowhi

item asylum script i made

Jul 25th, 2023 (edited)
1,327
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.73 KB | Source Code | 0 0
  1. wait(2)
  2.  
  3. game:FindService("StarterGui"):SetCore("SendNotification", {
  4. Title = "not fair hub / item asylum",
  5. Text = "go wreck everyone in this server",
  6. Icon = "rbxassetid://2005276185",
  7. Duration = 3
  8. })
  9. wait(3)
  10.  
  11. -- made by dontaskwhyyz
  12. -- dont steal this script,rebrand it and post it or else
  13. -- i should had used a plugin to convert the gui
  14.  
  15. _G.aimbot = false
  16. local aimbotbool = false
  17. local camera = game.Workspace.CurrentCamera
  18. local noclip = false
  19. local UIS = game:GetService("UserInputService")
  20.  
  21. local plr = game.Players.LocalPlayer
  22. local hub = Instance.new("ScreenGui")
  23. hub.Parent = plr.PlayerGui
  24. hub.Name = "not fair hub / Item Asylum"
  25.  
  26. local frame = Instance.new("Frame")
  27. frame.Parent = hub
  28. frame.Size = UDim2.new(0, 488,0, 347)
  29. frame.Position = UDim2.new(0.049, 0,0.232, 0)
  30. frame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  31. frame.Draggable = true
  32. frame.Active = true
  33. frame.Selectable = true
  34. frame.Name = "main"
  35.  
  36. local text = Instance.new("Frame")
  37. text.BackgroundColor3 = Color3.fromRGB(57, 57, 57)
  38. text.Size = UDim2.new(0, 371,0, 51)
  39. text.Position = UDim2.new(0.119, 0,0, 0)
  40. text.Parent = frame
  41. text.Name = "textbar"
  42.  
  43. local hubtext = Instance.new("TextLabel")
  44. hubtext.Text = "not fair hub / Item Asylum"
  45. hubtext.TextColor3 = Color3.fromRGB(158, 3, 3)
  46. hubtext.Parent = text
  47. hubtext.TextScaled = true
  48. hubtext.Size = UDim2.new(0, 271,0, 50)
  49. hubtext.Position = UDim2.new(0.111, 0,0, 0)
  50. hubtext.BackgroundTransparency = 1
  51.  
  52. local localplayer = Instance.new("TextButton")
  53. localplayer.Text = "LocalPlayer"
  54. localplayer.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
  55. localplayer.TextColor3 = Color3.fromRGB(0, 0, 0)
  56. localplayer.Parent = frame
  57. localplayer.Position = UDim2.new(0.043, 0,0.228, 0)
  58. localplayer.Size = UDim2.new(0, 104,0, 38)
  59. localplayer.TextScaled = true
  60. localplayer.Name = "LocalPlayer"
  61.  
  62. local combat = Instance.new("TextButton")
  63. combat.Text = "Combat"
  64. combat.BackgroundColor3 = Color3.fromRGB(74, 74, 74)
  65. combat.TextColor3 = Color3.fromRGB(0, 0, 0)
  66. combat.Parent = frame
  67. combat.Position = UDim2.new(0.043, 0,0.415, 0)
  68. combat.Size = UDim2.new(0, 104,0, 38)
  69. combat.TextScaled = true
  70. combat.Name = "Combat"
  71.  
  72. local playerlocalgui = Instance.new("ScrollingFrame")
  73. playerlocalgui.Name = "LocalPlayerGui"
  74. playerlocalgui.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  75. playerlocalgui.Parent = frame
  76. playerlocalgui.Size = UDim2.new(0, 286,0, 225)
  77. playerlocalgui.Position = UDim2.new(0.32, 0,0.228, 0)
  78. playerlocalgui.ScrollBarThickness = 3
  79. playerlocalgui.Visible = false
  80.  
  81. local combatgui = Instance.new("ScrollingFrame")
  82. combatgui.Name = "CombatGui"
  83. combatgui.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  84. combatgui.Parent = frame
  85. combatgui.Size = UDim2.new(0, 286,0, 225)
  86. combatgui.Position = UDim2.new(0.32, 0,0.228, 0)
  87. combatgui.ScrollBarThickness = 3
  88. combatgui.Visible = false
  89.  
  90. local setspeed = Instance.new("TextBox")
  91. setspeed.Parent = playerlocalgui
  92. setspeed.Size = UDim2.new(0, 80,0, 28)
  93. setspeed.Position = UDim2.new(0.301, 0,0.022, 0)
  94. setspeed.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  95. setspeed.TextScaled = true
  96. setspeed.TextColor3 = Color3.fromRGB(0,0,0)
  97. setspeed.PlaceholderText = "Set Speed"
  98. setspeed.PlaceholderColor3 = Color3.fromRGB(0,0,0)
  99.  
  100. local setjump = Instance.new("TextBox")
  101. setjump.Parent = playerlocalgui
  102. setjump.Size = UDim2.new(0, 80,0, 28)
  103. setjump.Position = UDim2.new(0.301, 0,0.101, 0)
  104. setjump.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  105. setjump.TextScaled = true
  106. setjump.TextColor3 = Color3.fromRGB(0,0,0)
  107. setjump.PlaceholderText = "Set Jump Power"
  108. setjump.PlaceholderColor3 = Color3.fromRGB(0,0,0)
  109.  
  110. local executespeed = Instance.new("TextButton")
  111. executespeed.Parent = playerlocalgui
  112. executespeed.Size = UDim2.new(0, 35,0, 28)
  113. executespeed.Position = UDim2.new(0.674, 0,0.022, 0)
  114. executespeed.Text = "Execute"
  115. executespeed.TextScaled = true
  116. executespeed.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  117. executespeed.TextColor3 = Color3.fromRGB(0,0,0)
  118.  
  119. local executejump = Instance.new("TextButton")
  120. executejump.Parent = playerlocalgui
  121. executejump.Size = UDim2.new(0, 35,0, 28)
  122. executejump.Position = UDim2.new(0.674, 0,0.1, 0)
  123. executejump.Text = "Execute"
  124. executejump.TextScaled = true
  125. executejump.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  126. executejump.TextColor3 = Color3.fromRGB(0,0,0)
  127.  
  128. local jumptext = Instance.new("TextLabel")
  129. jumptext.Text = "JumpPower"
  130. jumptext.BackgroundTransparency = 1
  131. jumptext.Parent = playerlocalgui
  132. jumptext.TextColor3 = Color3.fromRGB(0, 0, 0)
  133. jumptext.TextScaled = true
  134. jumptext.Position = UDim2.new(0, 0,0.079, 0)
  135. jumptext.Size = UDim2.new(0, 80,0, 57)
  136.  
  137. local speedtext = Instance.new("TextLabel")
  138. speedtext.Text = "WalkSpeed"
  139. speedtext.BackgroundTransparency = 1
  140. speedtext.Parent = playerlocalgui
  141. speedtext.TextColor3 = Color3.fromRGB(0, 0, 0)
  142. speedtext.TextScaled = true
  143. speedtext.Position = UDim2.new(0, 0,-0.001, 0)
  144. speedtext.Size = UDim2.new(0, 80,0, 57)
  145.  
  146. local nocliptext = Instance.new("TextLabel")
  147. nocliptext.Text = "NoClip"
  148. nocliptext.BackgroundTransparency = 1
  149. nocliptext.Parent = playerlocalgui
  150. nocliptext.TextColor3 = Color3.fromRGB(0, 0, 0)
  151. nocliptext.TextScaled = true
  152. nocliptext.Position = UDim2.new(0, 0,0.156, 0)
  153. nocliptext.Size = UDim2.new(0, 80,0, 57)
  154.  
  155. local aimbottext = Instance.new("TextLabel")
  156. aimbottext.Text = "Aimbot"
  157. aimbottext.BackgroundTransparency = 1
  158. aimbottext.Parent = combatgui
  159. aimbottext.TextColor3 = Color3.fromRGB(0, 0, 0)
  160. aimbottext.TextScaled = true
  161. aimbottext.Position = UDim2.new(0, 0,-0.001, 0)
  162. aimbottext.Size = UDim2.new(0, 80,0, 57)
  163.  
  164. local noclipbutton = Instance.new("TextButton")
  165. noclipbutton.Parent = playerlocalgui
  166. noclipbutton.Size = UDim2.new(0, 35,0, 28)
  167. noclipbutton.Position = UDim2.new(0.377, 0,0.177, 0)
  168. noclipbutton.Text = "False"
  169. noclipbutton.TextScaled = true
  170. noclipbutton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  171. noclipbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  172.  
  173. local aimbotbutton = Instance.new("TextButton")
  174. aimbotbutton.Parent = combatgui
  175. aimbotbutton.Size = UDim2.new(0, 35,0, 28)
  176. aimbotbutton.Position = UDim2.new(0.436, 0,0.018, 0)
  177. aimbotbutton.Text = "False"
  178. aimbotbutton.TextScaled = true
  179. aimbotbutton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  180. aimbotbutton.TextColor3 = Color3.fromRGB(255, 255, 255)
  181.  
  182. localplayer.MouseButton1Click:Connect(function()
  183. if combatgui.Visible == true then
  184. combatgui.Visible = false
  185. playerlocalgui.Visible = true
  186. else
  187. playerlocalgui.Visible = true
  188. end
  189. end)
  190.  
  191. combat.MouseButton1Click:Connect(function()
  192. if playerlocalgui.Visible == true then
  193. playerlocalgui.Visible = false
  194. combatgui.Visible = true
  195. else
  196. combatgui.Visible = true
  197. end
  198. end)
  199.  
  200. hub.ResetOnSpawn = false
  201. hub.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  202. noclipbutton.MouseButton1Click:Connect(function()
  203. noclip = true
  204. noclipbutton.Text = "True"
  205. Steppeds = game:GetService("RunService").Stepped:Connect(function()
  206. if not noclip == false then
  207. for a, b in pairs(Workspace:GetChildren()) do
  208. if b.Name == plr.Name then
  209. for i, v in pairs(Workspace[plr.Name]:GetChildren()) do
  210. if v:IsA("BasePart") then
  211. v.CanCollide = false
  212. end
  213. end
  214. end
  215. end
  216. elseif noclipbutton.Text == "True" then
  217. noclipbutton.Text = "False"
  218. Steppeds:Disconnect()
  219. game.Players.LocalPlayer.Character.CanCollide = true
  220. noclip = false
  221. end
  222. end)
  223. end)
  224. aimbotbutton.MouseButton1Click:Connect(function()
  225. if _G.aimbot == false then
  226. aimbotbutton.Text = "True"
  227. _G.aimbot = true
  228. function getClosest()
  229. local closestdistance = math.huge
  230. local target = nil
  231.  
  232. for i,v in pairs(game.Players:GetChildren()) do
  233. if v ~= game.Players.LocalPlayer then
  234. if v.Character and v.Character:FindFirstChild("Head") and v.Character.Humanoid.Health > 0 and _G.aimbot then
  235. local distance = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Character.HumanoidRootPart.Position).magnitude
  236. if distance < closestdistance then
  237. closestdistance = distance
  238. target = v
  239. end
  240. end
  241. end
  242. end
  243. return target
  244. end
  245. else
  246. _G.aimbot = false
  247. aimbotbutton.Text = "False"
  248. end
  249. end)
  250.  
  251. local aiming = false
  252.  
  253. UIS.InputBegan:Connect(function(input)
  254. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  255. _G.aim = true
  256. while wait() do
  257. camera.CFrame = CFrame.new(camera.CFrame.Position, getClosest().Character.Head.Position)
  258. if _G.aim == false then return end
  259. end
  260. end
  261. end)
  262. UIS.InputEnded:Connect(function(input)
  263. if input.UserInputType == Enum.UserInputType.MouseButton2 then
  264. _G.aim = false
  265. end
  266. end)
  267.  
  268. local function setspeedd(input)
  269. print("yass hazem")
  270. plr.Character.Humanoid.WalkSpeed = setspeed.Text
  271. end
  272. local function setjumpp(input)
  273. print("yass hazem2")
  274. plr.Character.Humanoid.JumpPower = setjump.Text
  275. end
  276.  
  277. repeat wait()
  278. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  279. local mouse = game.Players.LocalPlayer:GetMouse()
  280. repeat wait() until mouse
  281. local plr = game.Players.LocalPlayer
  282. local torso = plr.Character.HumanoidRootPart
  283. local flying = true
  284. local deb = true
  285. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  286. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  287. local maxspeed = 50
  288. local speed = 0
  289.  
  290. function Fly()
  291. local bg = Instance.new("BodyGyro", torso)
  292. bg.P = 9e4
  293. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  294. bg.cframe = torso.CFrame
  295. local bv = Instance.new("BodyVelocity", torso)
  296. bv.velocity = Vector3.new(0,0.1,0)
  297. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  298. repeat wait()
  299. plr.Character.Humanoid.PlatformStand = true
  300. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  301. speed = speed+.5+(speed/maxspeed)
  302. if speed > maxspeed then
  303. speed = maxspeed
  304. end
  305. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  306. speed = speed-1
  307. if speed < 0 then
  308. speed = 0
  309. end
  310. end
  311. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  312. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  313. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  314. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  315. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  316. else
  317. bv.velocity = Vector3.new(0,0.1,0)
  318. end
  319. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  320. until not flying
  321. ctrl = {f = 0, b = 0, l = 0, r = 0}
  322. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  323. speed = 0
  324. bg:Destroy()
  325. bv:Destroy()
  326. plr.Character.Humanoid.PlatformStand = false
  327. end
  328. mouse.KeyDown:connect(function(key)
  329. if key:lower() == "e" then
  330. if flying then flying = false
  331. else
  332. flying = true
  333. Fly()
  334. end
  335. elseif key:lower() == "w" then
  336. ctrl.f = 1
  337. elseif key:lower() == "s" then
  338. ctrl.b = -1
  339. elseif key:lower() == "a" then
  340. ctrl.l = -1
  341. elseif key:lower() == "d" then
  342. ctrl.r = 1
  343. end
  344. end)
  345. mouse.KeyUp:connect(function(key)
  346. if key:lower() == "w" then
  347. ctrl.f = 0
  348. elseif key:lower() == "s" then
  349. ctrl.b = 0
  350. elseif key:lower() == "a" then
  351. ctrl.l = 0
  352. elseif key:lower() == "d" then
  353. ctrl.r = 0
  354. end
  355. end)
  356.  
  357. executespeed.MouseButton1Click:Connect(setspeedd)
  358. executejump.MouseButton1Click:Connect(setjumpp)
  359.  
  360.  
  361.  
  362.  
Tags: Exploit
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement