· 6 years ago · Dec 13, 2019, 05:36 PM
1PASTEBIN
2GO API TOOLS FAQ DEALS
3
4paste
5SIGN IN SIGN UP
6Public Pastes
7Untitled
88 sec ago
9Untitled
1012 sec ago
11Untitled
12C | 13 sec ago
13DE Part 2
1420 sec ago
15padi idc gili islands
1621 sec ago
17CorpseReborn Error...
1828 sec ago
19asaas
2033 sec ago
21Untitled
2237 sec ago
23
24
25
26SHARE
27TWEET
28
29aimbot for all games FPS
30 KoxMati Dec 21st, 2018 (edited) 1,889 Never
31Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
32rawdownloadcloneembedreportprint
33text 11.49 KB
34local plrs = game:GetService("Players")
35local TeamBased = true ; local teambasedswitch = "o"
36local presskeytoaim = true; local aimkey = "e"
37local raycast = false
38
39local espupdatetime = 5; autoesp = false
40
41
42
43local lockaim = true; local lockangle = 5
44
45
46
47--function findwat(folder, what)
48-- for i, smth in pairs(folder:GetChildren()) do
49-- if string.find(string.lower(tostring(smth)), string.lower(what)) then
50-- return smth
51-- end
52-- end
53--end
54--
55--local plrs = findwat(game, "Players")
56
57
58
59
60local Gui = Instance.new("ScreenGui")
61local Move = Instance.new("Frame")
62local Main = Instance.new("Frame")
63local EspStatus = Instance.new("TextLabel")
64local st1 = Instance.new("TextLabel")
65local st1_2 = Instance.new("TextLabel")
66local st1_3 = Instance.new("TextLabel")
67local Name = Instance.new("TextLabel")
68--Properties:
69Gui.Name = "Gui"
70Gui.Parent = plrs.LocalPlayer:WaitForChild("PlayerGui")
71
72Move.Name = "Move"
73Move.Parent = Gui
74Move.BackgroundColor3 = Color3.new(0.0431373, 1, 0.0745098)
75Move.BackgroundTransparency = 0.40000000596046
76Move.BorderSizePixel = 0
77Move.Position = UDim2.new(0.005, 0,0.018, 0)
78Move.Size = UDim2.new(0.28141585, 0, 0.0320388414, 0)
79
80Main.Name = "Main"
81Main.Parent = Move
82Main.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
83Main.BackgroundTransparency = 0.69999998807907
84Main.Position = UDim2.new(0, 0, 0.995670795, 0)
85Main.Size = UDim2.new(1.0000006, 0, 9.79697132, 0)
86
87EspStatus.Name = "EspStatus"
88EspStatus.Parent = Main
89EspStatus.BackgroundColor3 = Color3.new(1, 1, 1)
90EspStatus.BackgroundTransparency = 1
91EspStatus.Size = UDim2.new(0.272955924, 0, 0.161862016, 0)
92EspStatus.Font = Enum.Font.ArialBold
93EspStatus.Text = "Press T to update Esp"
94EspStatus.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
95EspStatus.TextScaled = true
96EspStatus.TextSize = 14
97EspStatus.TextWrapped = true
98
99st1.Name = "st1"
100st1.Parent = Main
101st1.BackgroundColor3 = Color3.new(1, 1, 1)
102st1.BackgroundTransparency = 1
103st1.Position = UDim2.new(0.271787882, 0, 0, 0)
104st1.Size = UDim2.new(0.728211343, 0, 0.161862016, 0)
105st1.Font = Enum.Font.ArialBold
106st1.Text = "Press "..aimkey.." to lock on a person inside ur view"
107st1.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
108st1.TextScaled = true
109st1.TextSize = 14
110st1.TextWrapped = true
111
112st1_2.Name = "st1"
113st1_2.Parent = Main
114st1_2.BackgroundColor3 = Color3.new(1, 1, 1)
115st1_2.BackgroundTransparency = 1
116st1_2.Position = UDim2.new(0, 0, 0.375590861, 0)
117st1_2.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
118st1_2.Font = Enum.Font.ArialBold
119st1_2.Text = "Press L to enable esp loop"
120st1_2.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
121st1_2.TextScaled = true
122st1_2.TextSize = 14
123st1_2.TextWrapped = true
124
125st1_3.Name = "st1"
126st1_3.Parent = Main
127st1_3.BackgroundColor3 = Color3.new(1, 1, 1)
128st1_3.BackgroundTransparency = 1
129st1_3.Position = UDim2.new(0, 0, 0.18558608, 0)
130st1_3.Size = UDim2.new(0.999999881, 0, 0.161862016, 0)
131st1_3.Font = Enum.Font.ArialBold
132st1_3.Text = "Press O to change team based mode"
133st1_3.TextColor3 = Color3.new(0.0431373, 1, 0.0745098)
134st1_3.TextScaled = true
135st1_3.TextSize = 14
136st1_3.TextWrapped = true
137local teambasedstatus = st1_3:Clone()
138teambasedstatus.Parent = st1_3
139teambasedstatus.TextScaled = true
140teambasedstatus.Position = UDim2.new(0, 0,0.694, 0)
141teambasedstatus.Text = tostring(TeamBased)
142
143Name.Name = "Name"
144Name.Parent = Move
145Name.BackgroundColor3 = Color3.new(1, 1, 1)
146Name.BackgroundTransparency = 1
147Name.Size = UDim2.new(0.838, 0, 0.980000019, 0)
148Name.Font = Enum.Font.Arial
149Name.Text = "FPS gui v1.0"
150Name.TextColor3 = Color3.new(0, 0, 0)
151Name.TextScaled = true
152Name.TextSize = 14
153Name.TextWrapped = true
154Name.TextXAlignment = Enum.TextXAlignment.Left
155-- Scripts:
156
157
158local plrsforaim = {}
159
160local lplr = game:GetService("Players").LocalPlayer
161Move.Draggable = true
162Gui.ResetOnSpawn = false
163Gui.Name = "Chat"
164Gui.DisplayOrder = 999
165
166 Gui.Parent = plrs.LocalPlayer.PlayerGui
167
168
169f = {}
170local espforlder
171
172f.addesp = function()
173 --print("ESP ran")
174 if espforlder then
175 else
176 espforlder = Instance.new("Folder")
177 espforlder.Parent = game.Workspace.CurrentCamera
178 end
179 for i, v in pairs(espforlder:GetChildren()) do
180 v:Destroy()
181 end
182 for _, plr in pairs(plrs:GetChildren()) do
183 if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
184 if TeamBased == true then
185 if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
186 local e = espforlder:FindFirstChild(plr.Name)
187 if not e then
188 --print("Added esp for team based")
189 local bill = Instance.new("BillboardGui", espforlder)
190 bill.Name = plr.Name
191 bill.AlwaysOnTop = true
192 bill.Size = UDim2.new(1,0,1,0)
193 bill.Adornee = plr.Character.Head
194 local Frame = Instance.new('Frame',bill)
195 Frame.Active = true
196 Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
197 Frame.BackgroundTransparency = 0
198 Frame.BorderSizePixel = 0
199 Frame.AnchorPoint = Vector2.new(.5, .5)
200 Frame.Position = UDim2.new (0.5,0,0.5,0)
201 Frame.Size = UDim2.new (1,0,1,0)
202 Frame.Rotation = 0
203 plr.Character.Humanoid.Died:Connect(function()
204 bill:Destroy()
205 end)
206 end
207 end
208 else
209 local e = espforlder:FindFirstChild(plr.Name)
210 if not e then
211 --print("Added esp")
212 local bill = Instance.new("BillboardGui", espforlder)
213 bill.Name = plr.Name
214 bill.AlwaysOnTop = true
215 bill.Size = UDim2.new(1,0,1,0)
216 bill.Adornee = plr.Character.Head
217 local Frame = Instance.new('Frame',bill)
218 Frame.Active = true
219 Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
220 Frame.BackgroundTransparency = 0
221 Frame.BorderSizePixel = 0
222 Frame.AnchorPoint = Vector2.new(.5, .5)
223 Frame.Position = UDim2.new (0.5,0,0.5,0)
224 Frame.Size = UDim2.new (1,0,1,0)
225 Frame.Rotation = 0
226 plr.Character.Humanoid.Died:Connect(function()
227 bill:Destroy()
228 end)
229 end
230 end
231
232
233 end
234 end
235end
236local cam = game.Workspace.CurrentCamera
237
238local mouse = lplr:GetMouse()
239local switch = false
240local key = "k"
241local aimatpart = nil
242mouse.KeyDown:Connect(function(a)
243 if a == "t" then
244 print("worked1")
245 f.addesp()
246 elseif a == "u" then
247 if raycast == true then
248 raycast = false
249 else
250 raycast = true
251 end
252 elseif a == "l" then
253 if autoesp == false then
254 autoesp = true
255 else
256 autoesp = false
257 end
258 end
259 if a == "j" then
260 if mouse.Target then
261 mouse.Target:Destroy()
262 end
263 end
264 if a == key then
265 if switch == false then
266 switch = true
267 else
268 switch = false
269 if aimatpart ~= nil then
270 aimatpart = nil
271 end
272 end
273 elseif a == teambasedswitch then
274 if TeamBased == true then
275 TeamBased = false
276 teambasedstatus.Text = tostring(TeamBased)
277 else
278 TeamBased = true
279 teambasedstatus.Text = tostring(TeamBased)
280 end
281 elseif a == aimkey then
282 if not aimatpart then
283 local maxangle = math.rad(20)
284 for i, plr in pairs(plrs:GetChildren()) do
285 if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
286 if TeamBased == true then
287 if plr.Team.Name ~= lplr.Team.Name then
288 local an = checkfov(plr.Character.Head)
289 if an < maxangle then
290 maxangle = an
291 aimatpart = plr.Character.Head
292 end
293 end
294 else
295 local an = checkfov(plr.Character.Head)
296 if an < maxangle then
297 maxangle = an
298 aimatpart = plr.Character.Head
299 end
300 print(plr)
301 end
302 plr.Character.Humanoid.Died:Connect(function()
303 if aimatpart.Parent == plr.Character or aimatpart == nil then
304 aimatpart = nil
305 end
306 end)
307 end
308 end
309 else
310 aimatpart = nil
311 end
312 end
313end)
314
315function getfovxyz (p0, p1, deg)
316 local x1, y1, z1 = p0:ToOrientation()
317 local cf = CFrame.new(p0.p, p1.p)
318 local x2, y2, z2 = cf:ToOrientation()
319 --local d = math.deg
320 if deg then
321 --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
322 else
323 return Vector3.new((x1-x2), (y1-y2), (z1-z2))
324 end
325end
326
327function getaimbotplrs()
328 plrsforaim = {}
329 for i, plr in pairs(plrs:GetChildren()) do
330 if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
331
332 if TeamBased == true then
333 if plr.Team.Name ~= lplr.Team.Name then
334 local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
335 local r = Ray.new(cf, cf.LookVector * 10000)
336 local ign = {}
337 for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
338 if v:IsA("BasePart") then
339 table.insert(ign , v)
340 end
341 end
342 local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
343 if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
344 table.insert(plrsforaim, obj)
345 end
346 end
347 else
348 local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
349 local r = Ray.new(cf, cf.LookVector * 10000)
350 local ign = {}
351 for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
352 if v:IsA("BasePart") then
353 table.insert(ign , v)
354 end
355 end
356 local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
357 if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
358 table.insert(plrsforaim, obj)
359 end
360 end
361
362
363 end
364 end
365end
366
367function aimat(part)
368 cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
369end
370function checkfov (part)
371 local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
372 local angle = math.abs(fov.X) + math.abs(fov.Y)
373 return angle
374end
375
376game:GetService("RunService").RenderStepped:Connect(function()
377 if aimatpart then
378 aimat(aimatpart)
379 if aimatpart.Parent == plrs.LocalPlayer.Character then
380 aimatpart = nil
381 end
382 end
383
384
385-- if switch == true then
386-- local maxangle = 99999
387--
388-- --print("Loop")
389-- if true and raycast == false then
390-- for i, plr in pairs(plrs:GetChildren()) do
391-- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
392-- if TeamBased then
393-- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
394-- local an = checkfov(plr.Character.Head)
395-- if an < maxangle then
396-- maxangle = an
397-- aimatpart = plr.Character.Head
398-- if an < lockangle then
399-- break
400-- end
401-- end
402-- end
403-- else
404-- local an = checkfov(plr.Character.Head)
405-- if an < maxangle then
406-- maxangle = an
407-- aimatpart = plr.Character.Head
408-- if an < lockangle then
409-- break
410-- end
411-- end
412-- end
413--
414--
415--
416--
417-- end
418-- end
419-- elseif raycast == true then
420--
421-- end
422
423 if raycast == true and switch == false and not aimatpart then
424 getaimbotplrs()
425 aimatpart = nil
426 local maxangle = 999
427 for i, v in ipairs(plrsforaim) do
428 if v.Parent ~= lplr.Character then
429 local an = checkfov(v)
430 if an < maxangle and v ~= lplr.Character.Head then
431 maxangle = an
432 aimatpart = v
433 print(v:GetFullName())
434 v.Parent.Humanoid.Died:connect(function()
435 aimatpart = nil
436 end)
437 end
438 end
439 end
440
441 end
442end)
443delay(0, function()
444 while wait(espupdatetime) do
445 if autoesp == true then
446 pcall(function()
447 f.addesp()
448 end)
449 end
450 end
451end)
452warn("loaded")
453RAW Paste Data
454
455
456
457
458We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
459
460Not a member of Pastebin yet?
461Sign Up, it unlocks many cool features!
462
463
464create new paste / dealsnew! / syntax languages / archive / faq / tools / night mode / api / scraping api
465privacy statement / cookies policy / terms of service / security disclosure / dmca / contact
466
467By using Pastebin.com you agree to our cookies policy to enhance your experience.
468Site design & logo © 2019 Pastebin; user contributions (pastes) licensed under cc by-sa 3.0 -- FavPNG -- Dedicated Server Hosting by Steadfast