Advertisement
Guest User

hehe

a guest
Nov 19th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.25 KB | None | 0 0
  1. -- Powered by ScriptXPloits
  2. -- Credits to the owner
  3.  
  4.  
  5.  
  6.  
  7. pcall(function()
  8. local espcolor = Color3.fromRGB(140, 69, 102)
  9. local wallhack_esp_transparency = .4
  10. local gui_hide_button = {Enum.KeyCode.LeftControl, "h"}
  11. local plrs = game:GetService("Players")
  12. local lplr = game:GetService("Players").LocalPlayer
  13. local TeamBased = true ; local teambasedswitch = "o"
  14. local presskeytoaim = true; local aimkey = "e"
  15. aimbothider = false; aimbothiderspeed = .5
  16. local Aim_Assist = false ; Aim_Assist_Key = {Enum.KeyCode.LeftControl, "z"}
  17. local espupdatetime = 5; autoesp = false
  18. local abs = math.abs
  19. local mouselock = false
  20. local canaimat = true
  21. local lockaim = true; local lockangle = 5
  22. local ver = "2"
  23. local cam = game.Workspace.CurrentCamera
  24. local BetterDeathCount = true
  25.  
  26.  
  27. local mouse = lplr:GetMouse()
  28. local switch = false
  29. local key = "k"
  30. local aimatpart = nil
  31.  
  32.  
  33.  
  34.  
  35. local Gui = Instance.new("ScreenGui")
  36. local Move = Instance.new("Frame")
  37. local Main = Instance.new("Frame")
  38. local EspStatus = Instance.new("TextLabel")
  39. local st1 = Instance.new("TextLabel")
  40. local st1_2 = Instance.new("TextLabel")
  41. local st1_3 = Instance.new("TextLabel")
  42. local Name = Instance.new("TextLabel")
  43. --Properties:
  44.  
  45. Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
  46.  
  47.  
  48.  
  49. local gotstring = 0
  50. local function getrandomstring()
  51. gotstring = gotstring+666
  52. local str = ""
  53. local randomstring = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "g", "k", "l", "m", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
  54. "?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?","?", "`", "$",
  55. "0","1","2","3","4","5","6","7","8","9", }
  56. local counting123 = 0
  57. for i, v in ipairs(randomstring) do
  58. counting123 = i
  59. end
  60. do
  61. math.randomseed(tick()+gotstring)
  62. for i = 3, math.random(1,100) do
  63. math.randomseed(i+tick()+gotstring)
  64.  
  65. local oneortwo = math.random(1,2)
  66. if oneortwo == 2 then
  67. math.randomseed(i+tick()+gotstring)
  68. str = str..""..randomstring[math.random(1, counting123)]
  69. else
  70. math.randomseed(i+tick()+gotstring)
  71. str = str..""..string.upper(randomstring[math.random(1, counting123)])
  72. end
  73.  
  74. end
  75. end
  76. return str
  77. end
  78. local mousedown = false
  79. local isonmovething = false
  80. local mouseoffset = Vector2.new()
  81. local mousedown = false
  82.  
  83.  
  84.  
  85.  
  86. Gui.Name = getrandomstring()
  87.  
  88. Move.Name = getrandomstring()
  89. Move.Draggable = true
  90. Move.Parent = Gui
  91. Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
  92. Move.BackgroundTransparency = 0.40000000596046
  93. Move.BorderSizePixel = 0
  94. Move.Position = UDim2.new(0.5, 0,0.018, 0)
  95. Move.Size = UDim2.new(0.2, 0, 0.0320388414, 0)
  96.  
  97. Move.MouseEnter:Connect(function()
  98.  
  99. isonmovething = true
  100.  
  101. end)
  102. Move.MouseLeave:Connect(function()
  103.  
  104. isonmovething = mousedown and true or false
  105. end)
  106. mouse.Button1Down:connect(function()
  107. mousedown = true
  108. mouseoffset = Move.AbsolutePosition - Vector2.new(mouse.X, mouse.Y)
  109. end)
  110. mouse.Button1Up:connect(function()
  111. mousedown = false
  112. end)
  113.  
  114. mouse.Move:Connect(function()
  115. if isonmovething == true and mousedown then
  116. Move.Position = UDim2.new(0, mouseoffset.X + mouse.X, 0, mouseoffset.Y + mouse.Y)
  117. end
  118. end)
  119.  
  120. Main.Name = getrandomstring()
  121. Main.Parent = Move
  122. Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  123. Main.BackgroundTransparency = 0.69999998807907
  124. Main.Position = UDim2.new(0, 0, 0.995670795, 0)
  125. Main.Size = UDim2.new(1.0000006, 0, 11.2, 0)
  126.  
  127. EspStatus.Name = getrandomstring()
  128. EspStatus.Parent = Main
  129. EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
  130. EspStatus.BackgroundTransparency = 1
  131. EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
  132. EspStatus.Font = Enum.Font.ArialBold
  133. EspStatus.Text = "Press T to update Esp"
  134. EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  135. EspStatus.TextScaled = true
  136. EspStatus.TextSize = 14
  137. EspStatus.TextWrapped = true
  138.  
  139. st1.Name = getrandomstring()
  140. st1.Parent = Main
  141. st1.BackgroundColor3 = Color3.new(1, 1, 1)
  142. st1.BackgroundTransparency = 1
  143. st1.Position = UDim2.new(0.271787882, 0, 0, 0)
  144. st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
  145. st1.Font = Enum.Font.ArialBold
  146. st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
  147. st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  148. st1.TextScaled = true
  149. st1.TextSize = 14
  150. st1.TextWrapped = true
  151.  
  152. st1_2.Name = getrandomstring()
  153. st1_2.Parent = Main
  154. st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
  155. st1_2.BackgroundTransparency = 1
  156. st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
  157. st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  158. st1_2.Font = Enum.Font.ArialBold
  159. st1_2.Text = "Press L to enable esp loop. Press Y to disable/enable aimbot hider"
  160. st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  161. st1_2.TextScaled = true
  162. st1_2.TextSize = 14
  163. st1_2.TextWrapped = true
  164.  
  165. local aimbothiderbox = Instance.new("TextBox")
  166. aimbothiderbox.Name = getrandomstring()
  167. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  168. aimbothiderbox.Size = UDim2.new(1, 0,0.162, 0)
  169. aimbothiderbox.TextScaled = true
  170. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  171. aimbothiderbox.Position = UDim2.new(0, 0,0.853, 0)
  172. aimbothiderbox.BackgroundTransparency = 1
  173. aimbothiderbox.Parent = Main
  174.  
  175. st1_3.Name = getrandomstring()
  176. st1_3.Parent = Main
  177. st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
  178. st1_3.BackgroundTransparency = 1
  179. st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
  180. st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
  181. st1_3.Font = Enum.Font.ArialBold
  182. st1_3.Text = "Press O to change team based mode"
  183. st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
  184. st1_3.TextScaled = true
  185. st1_3.TextSize = 14
  186. st1_3.TextWrapped = true
  187. local teambasedstatus = st1_3:Clone()
  188. teambasedstatus.Parent = Main
  189. teambasedstatus.TextScaled = true
  190. teambasedstatus.Position = UDim2.new(0, 0,.7, 0)
  191. teambasedstatus.Size = UDim2.new(1, 0,.1, 0)
  192. teambasedstatus.Name = getrandomstring()
  193. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  194. local espstatustext = teambasedstatus:Clone()
  195. espstatustext.Name = getrandomstring()
  196. espstatustext.Position = UDim2.new(0, 0,0.58, 0)
  197. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  198. espstatustext.Parent = Main
  199. local hide = Instance.new("TextButton")
  200. hide.Text = "_"
  201. hide.BackgroundTransparency = 1
  202. hide.TextScaled = true
  203. hide.TextWrapped = true
  204. hide.Size = UDim2.new(0.1, 0,1, 0)
  205. hide.Position = UDim2.new(0.9, 0,-0.15, 0)
  206. hide.Name = getrandomstring()
  207. hide.Parent = Move
  208. Name.Name = getrandomstring()
  209. Name.Parent = Move
  210. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  211. Name.BackgroundTransparency = 1
  212. Name.Size = UDim2.new(0.838, 0, 1, 0)
  213. Name.Font = Enum.Font.Arial
  214. Name.Text = "FPS gui v"..ver
  215. Name.TextColor3 = Color3.new(0, 0, 0)
  216. Name.TextScaled = true
  217. Name.TextSize = 14
  218. Name.TextWrapped = true
  219. Name.TextXAlignment = Enum.TextXAlignment.Left
  220. local scr = Instance.new("ScrollingFrame")
  221. scr.Size = Main.Size
  222. scr.Position = Main.Position
  223. scr.ScrollBarThickness = 0
  224. scr.BackgroundTransparency = 1
  225. scr.Name = getrandomstring()
  226. Main.Size = UDim2.new(1, 0, 1, 0)
  227. Main.Position = UDim2.new(0,0,0,0)
  228. Main.Parent = scr
  229. scr.Parent = Move
  230. startpos = Main.Position
  231. Move.Active = true
  232.  
  233. -- Scripts:
  234. hided = false
  235. hide.MouseButton1Click:Connect(function()
  236. if hided == false then
  237. hided = true
  238. Main:TweenPosition(UDim2.new(0, 0, -1.5, 0))
  239. else
  240. hided = false
  241. Main:TweenPosition(startpos)
  242. end
  243. end)
  244.  
  245.  
  246. aimbothiderbox.FocusLost:Connect(function()
  247. local numb = tonumber(aimbothiderbox.Text)
  248. if aimbothider == true then
  249. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  250. else
  251. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  252. end
  253. if numb ~= nil then
  254. aimbothiderspeed = numb
  255. if aimbothider == true then
  256. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  257. else
  258. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  259. end
  260. else
  261. if aimbothider == true then
  262. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  263. else
  264. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  265. end
  266. end
  267. end)
  268.  
  269.  
  270. local plrsforaim = {}
  271.  
  272.  
  273. Move.Draggable = true
  274. Gui.ResetOnSpawn = false
  275. --Gui.Name = "Chat"
  276. Gui.DisplayOrder = 999
  277. if not game:GetService("CoreGui") then
  278. Gui.Parent = plrs.LocalPlayer.PlayerGui
  279. else
  280. Gui.Parent = game:GetService("CoreGui")
  281. end
  282.  
  283.  
  284.  
  285.  
  286.  
  287. f = {}
  288. local espforlder
  289. local partconverter = Instance.new("Part")
  290.  
  291. f.addesp = function()
  292. pcall(function()
  293. --print("ESP ran")
  294. if espforlder then
  295. espforlder:Destroy()
  296. espforlder = Instance.new("Folder")
  297. espforlder.Parent = game.Workspace.CurrentCamera
  298. else
  299. espforlder = Instance.new("Folder")
  300. espforlder.Parent = game.Workspace.CurrentCamera
  301. end
  302. for i, v in pairs(espforlder:GetChildren()) do
  303. v:Destroy()
  304. end
  305. for _, plr in pairs(plrs:GetChildren()) do
  306. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  307. if TeamBased == true then
  308. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  309. local e = espforlder:FindFirstChild(plr.Name)
  310. if not e then
  311. local fold = Instance.new("Folder", espforlder)
  312. fold.Name = plr.Name
  313.  
  314. --partconverter.BrickColor = plr.Team.Color
  315. --local teamc = partconverter.Color
  316. for i, p in pairs(plr.Character:GetChildren()) do
  317. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  318. local urmom = Instance.new("BoxHandleAdornment")
  319. urmom.ZIndex = 10
  320. urmom.AlwaysOnTop = true
  321. urmom.Color3 = espcolor
  322. urmom.Size = p.Size
  323. urmom.Adornee = p
  324. urmom.Name = tick().." Ur mom has big gay"
  325. urmom.Transparency = wallhack_esp_transparency
  326. urmom.Parent = fold
  327.  
  328. end
  329. end
  330. plr.Character.Humanoid.Died:Connect(function()
  331. fold:Destroy()
  332. end)
  333. end
  334. end
  335. else
  336. local e = espforlder:FindFirstChild(plr.Name)
  337. if not e then
  338. local fold = Instance.new("Folder", espforlder)
  339. fold.Name = plr.Name
  340.  
  341. --partconverter.BrickColor = plr.Team.Color
  342. --local teamc = Move.BackgroundColor3
  343. for i, p in pairs(plr.Character:GetChildren()) do
  344. if p:IsA("BasePart") and p.Name ~= "HumanoidRootPart" then
  345. local urmom = Instance.new("BoxHandleAdornment")
  346. urmom.ZIndex = 10
  347. urmom.AlwaysOnTop = true
  348. urmom.Color3 = espcolor
  349. urmom.Size = p.Size
  350. urmom.Adornee = p
  351. urmom.Name = tick().." Ur mom has big gay"
  352. urmom.Transparency = wallhack_esp_transparency
  353. urmom.Parent = fold
  354. end
  355. end
  356. plr.Character.Humanoid.Died:Connect(function()
  357. fold:Destroy()
  358. end)
  359. end
  360. end
  361.  
  362.  
  363. end
  364. end
  365. end)
  366. end
  367. local uis = game:GetService("UserInputService")
  368. local bringall = false
  369. local hided2 = false
  370. mouse.KeyDown:Connect(function(a)
  371. if a == "t" then
  372. --print("worked1")
  373. f.addesp()
  374. elseif a == gui_hide_button[2] and uis:IsKeyDown(gui_hide_button[1]) then
  375. if hided2 == false then
  376. hided2 = true
  377. autoesp =false
  378. if espforlder then
  379. espforlder:Destroy()
  380. end
  381. Gui.Enabled = false
  382. else
  383. Gui.Enabled = true
  384. hided2 = false
  385. end
  386. elseif a == "u" then
  387. if mouselock == false then
  388. mouselock = true
  389. else
  390. mouselock = false
  391. end
  392. elseif a == "y" then
  393. if aimbothider == false then
  394. aimbothider = true
  395. if aimbothider == true then
  396. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  397. else
  398. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  399. end
  400. else
  401.  
  402. aimbothider = false
  403. if aimbothider == true then
  404. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." on"
  405. else
  406. aimbothiderbox.Text = "Speed :"..tostring(aimbothiderspeed).." off"
  407. end
  408. end
  409. if aimbothider == true then
  410. aimbothiderbox.TextColor3 =Color3.fromRGB(11, 255, 19)
  411. else
  412. aimbothiderbox.TextColor3 =Color3.fromRGB(255, 0, 0)
  413. end
  414. elseif a == "l" then
  415. if autoesp == false then
  416. autoesp = true
  417. else
  418. autoesp = false
  419. end
  420. elseif a == Aim_Assist_Key[2] and uis:IsKeyDown(Aim_Assist_Key[1]) then
  421. if Aim_Assist == true then
  422. Aim_Assist = false
  423. --print("disabled")
  424. else
  425. Aim_Assist = true
  426. end
  427. end
  428. if a == "j" then
  429. if mouse.Target then
  430. mouse.Target:Destroy()
  431. end
  432. end
  433. if a == key then
  434. if switch == false then
  435. switch = true
  436. else
  437. switch = false
  438. if aimatpart ~= nil then
  439. aimatpart = nil
  440. end
  441. end
  442. elseif a == teambasedswitch then
  443. if TeamBased == true then
  444. TeamBased = false
  445. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  446. else
  447. TeamBased = true
  448. teambasedstatus.Text = "Team Based: "..tostring(TeamBased)
  449. end
  450. elseif a == aimkey then
  451. if not aimatpart then
  452. local maxangle = math.rad(20)
  453. for i, plr in pairs(plrs:GetChildren()) do
  454. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  455. if TeamBased == true then
  456. if plr.Team.Name ~= lplr.Team.Name then
  457. local an = checkfov(plr.Character.Head)
  458. if an < maxangle then
  459. maxangle = an
  460. aimatpart = plr.Character.Head
  461. end
  462. end
  463. else
  464. local an = checkfov(plr.Character.Head)
  465. if an < maxangle then
  466. maxangle = an
  467. aimatpart = plr.Character.Head
  468. end
  469. --print(plr)
  470. end
  471. local old = aimatpart
  472. plr.Character.Humanoid.Died:Connect(function()
  473. --print("died")
  474. if aimatpart and aimatpart == old then
  475. aimatpart = nil
  476. end
  477. end)
  478.  
  479. end
  480. end
  481. else
  482. aimatpart = nil
  483. canaimat = false
  484. delay(1.1, function()
  485. canaimat = true
  486. end)
  487. end
  488. end
  489. end)
  490.  
  491. function getfovxyz (p0, p1, deg)
  492. local x1, y1, z1 = p0:ToOrientation()
  493. local cf = CFrame.new(p0.p, p1.p)
  494. local x2, y2, z2 = cf:ToOrientation()
  495. local d = math.deg
  496. if deg then
  497. return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  498. else
  499. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  500. end
  501. end
  502.  
  503.  
  504. function aimat(part)
  505. if part then
  506. if aimbothider == true or Aim_Assist == true then
  507. cam.CFrame = cam.CFrame:Lerp(CFrame.new(cam.CFrame.p, part.CFrame.p), aimbothiderspeed)
  508. else
  509.  
  510. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  511. end
  512. end
  513. end
  514. function checkfov (part)
  515. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  516. local angle = math.abs(fov.X) + math.abs(fov.Y)
  517. return angle
  518. end
  519. pcall(function()
  520. delay(0, function()
  521. while wait(.4) do
  522. if Aim_Assist and not aimatpart and canaimat and lplr.Character and lplr.Character.Humanoid and lplr.Character.Humanoid.Health > 0 then
  523. for i, plr in pairs(plrs:GetChildren()) do
  524.  
  525.  
  526. local minangle = math.rad(5.5)
  527. local lastpart = nil
  528. local function gg(plr)
  529. pcall(function()
  530. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Character.Head then
  531. local raycasted = false
  532. local cf1 = CFrame.new(cam.CFrame.p, plr.Character.Head.CFrame.p) * CFrame.new(0, 0, -4)
  533. local r1 = Ray.new(cf1.p, cf1.LookVector * 9000)
  534. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})
  535. local dist = (plr.Character.Head.CFrame.p- pos).magnitude
  536. if dist < 4 then
  537. raycasted = true
  538. end
  539. if raycasted == true then
  540. local an1 = getfovxyz(cam.CFrame, plr.Character.Head.CFrame)
  541. local an = abs(an1.X) + abs(an1.Y)
  542. if an < minangle then
  543. minangle = an
  544. lastpart = plr.Character.Head
  545. end
  546. end
  547. end
  548. end)
  549. end
  550. if TeamBased then
  551. if plr.Team.Name ~= lplr.Team.Name then
  552. gg(plr)
  553. end
  554. else
  555. gg(plr)
  556. end
  557. --print(math.deg(minangle))
  558. if lastpart then
  559. aimatpart = lastpart
  560. aimatpart.Parent.Humanoid.Died:Connect(function()
  561. if aimatpart == lastpart then
  562. aimatpart = nil
  563. end
  564. end)
  565.  
  566. end
  567. end
  568. end
  569. end
  570. end)
  571. end)
  572. local oldheadpos
  573. local lastaimapart
  574. game:GetService("RunService").RenderStepped:Connect(function()
  575. espstatustext.Text = "Esp loop :"..tostring(autoesp)
  576. if aimatpart and lplr.Character and lplr.Character.Head then
  577. if BetterDeathCount and lastaimapart and lastaimapart == aimatpart then
  578. local dist = (oldheadpos - aimatpart.CFrame.p).magnitude
  579. if dist > 40 then
  580. aimatpart = nil
  581. end
  582. end
  583. lastaimapart = aimatpart
  584. oldheadpos = lastaimapart.CFrame.p
  585. do
  586. if aimatpart.Parent == plrs.LocalPlayer.Character then
  587. aimatpart = nil
  588. end
  589. aimat(aimatpart)
  590. pcall(function()
  591. if Aim_Assist == true then
  592. local cf1 = CFrame.new(cam.CFrame.p, aimatpart.CFrame.p) * CFrame.new(0, 0, -4)
  593. local r1 = Ray.new(cf1.p, cf1.LookVector * 1000)
  594. local obj, pos = game.Workspace:FindPartOnRayWithIgnoreList(r1, {lplr.Character.Head})
  595. local dist = (aimatpart.CFrame.p- pos).magnitude
  596. if obj then
  597. --print(obj:GetFullName())
  598. end
  599. if not obj or dist > 6 then
  600. aimatpart = nil
  601. --print("ooof")
  602. end
  603. canaimat = false
  604. delay(.5, function()
  605. canaimat = true
  606. end)
  607. end
  608. end)
  609. end
  610.  
  611.  
  612.  
  613. end
  614. end)
  615. delay(0, function()
  616. while wait(espupdatetime) do
  617. if autoesp == true then
  618. pcall(function()
  619. f.addesp()
  620. end)
  621. end
  622. end
  623. end)
  624. --warn("loaded")
  625. end)
  626.  
  627. local Plr = game:GetService("Players").LocalPlayer
  628. local Mouse = Plr:GetMouse()
  629.  
  630. Mouse.Button2Down:connect(function()
  631. if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftAlt) then return end
  632. if not Mouse.Target then return end
  633. Mouse.Target:Destroy()
  634. end)
  635.  
  636. local Imput = game:GetService("UserInputService")
  637. local Plr = game.Players.LocalPlayer
  638. local Mouse = Plr:GetMouse()
  639.  
  640. function To(position)
  641. local Chr = Plr.Character
  642. if Chr ~= nil then
  643. Chr:MoveTo(position)
  644. end
  645. end
  646.  
  647. Imput.InputBegan:Connect(function(input)
  648. if input.UserInputType == Enum.UserInputType.MouseButton1 and Imput:IsKeyDown(Enum.KeyCode.LeftAlt) then
  649. To(Mouse.Hit.p)
  650. end
  651. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement