Advertisement
brorlly

Untitled

Dec 20th, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.52 KB | None | 0 0
  1.  
  2. local key1 = ""..math.random(1,100000000)
  3. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
  4.  
  5. -- Windows
  6. local Window = Rayfield:CreateWindow({
  7. Name = "Test Window",
  8. LoadingTitle = "More Coming On this Next Update",
  9. LoadingSubtitle = "by ToggleHub",
  10. KeySystem = true,
  11. KeySettings = {
  12. Title = "Toggle Hub",
  13. Subtitle = "Key System",
  14. Note = "Hello Alpha Here is your key "..key1,
  15. Key = key1
  16. }
  17. })
  18. local rs = game:GetService("RunService")
  19. local uis = game:GetService("UserInputService")
  20.  
  21. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  22. local Window = Library.CreateLib("ToggleHub-AlphaSwag123#4404 V1.1", "BloodTheme")
  23.  
  24. local AimbotTab = Window:NewTab("Aimbot")
  25. local AimbotSection = AimbotTab:NewSection("Aimbot")
  26.  
  27. local EspTab = Window:NewTab("ESP")
  28. local EspSection = EspTab:NewSection("ESP")
  29.  
  30. local ExperimentalTab = Window:NewTab("PATCHED")
  31. local SASection = ExperimentalTab:NewSection("Silent Aim(NOTWORKING")
  32.  
  33. local BindsTab = Window:NewTab("Binds")
  34. local BindsSection = BindsTab:NewSection("Binds")
  35.  
  36. local ColorTab = Window:NewTab("Color")
  37. local ColorSection = ColorTab:NewSection("Color")
  38.  
  39. local GunModsTab = Window:NewTab("GunMods")
  40. local GunModsSection = GunModsTab:NewSection("GunMods")
  41.  
  42. local HipFireHelperTab = Window:NewTab("HipFireHelper")
  43. local HipFireHelperSection = HipFireHelperTab:NewSection("HipFireHelper")
  44.  
  45. HipFireHelperSection:NewToggle("HipFireHelper!", "", function(state) wallCheck = state end)
  46. loadstring(game:HttpGet("https://pastebin.com/raw/cm1kAbDP"))()
  47. GunModsSection:NewToggle("Fly is F", "", function(state) wallCheck = state end)
  48. loadstring(game:HttpGet("https://cdn.wearedevs.net/scripts/PF%20Easy%20Fly.txt"))()
  49.  
  50. local AbColor = Color3.fromRGB(255, 128, 128)
  51. local EspColor = Color3.fromRGB(255, 128, 128)
  52.  
  53. ColorSection:NewColorPicker("Fov Ring Color", "", Color3.fromRGB(255,128,128), function(color)
  54. AbColor = color
  55. end)
  56.  
  57. ColorSection:NewColorPicker("Esp Color", "", Color3.fromRGB(255,128,128), function(color)
  58. EspColor = color
  59. end)
  60.  
  61.  
  62. local function getTeam()
  63. -- PF Sometimes changes the team names, if this is depreicated and not working,
  64. -- you might be able to fix it by using dark dex to get the team names
  65. local localPlayerGhostsTeamName = "Ghosts" -- the actual name of team ghosts
  66. local playerFolderGhostsTeamName = "Bright orange" -- the name of the folder phantoms players are in
  67. local playerFolderPhantomsTeamName = "Bright blue" -- the name of the folder ghost players are in
  68.  
  69. if game.Players.LocalPlayer.Team.Name == localPlayerGhostsTeamName then return playerFolderPhantomsTeamName else return playerFolderGhostsTeamName end
  70. end
  71.  
  72. local smoothing = 150
  73. local fov = 3000
  74. local wallCheck = false
  75. local maxWalls = 0
  76. local abTargetPart = "Head"
  77. local FOVringList = {}
  78.  
  79. local function isPointVisible(targetForWallCheck, mw)
  80. local castPoints = {targetForWallCheck.PrimaryPart.Position}
  81. local ignoreList = {targetForWallCheck, game.Players.LocalPlayer.Character, game.Workspace.CurrentCamera}
  82. local result = workspace.CurrentCamera:GetPartsObscuringTarget(castPoints, ignoreList)
  83.  
  84. return #result <= mw
  85. end
  86.  
  87. AimbotSection:NewToggle("Enabled", "", function(state)
  88. if state then
  89. FOVringList = {}
  90. abLoop = rs.RenderStepped:Connect(function()
  91. for i,v in pairs(FOVringList) do
  92. v:Remove()
  93. end
  94.  
  95. FOVringList = {}
  96.  
  97. local FOVring = Drawing.new("Circle")
  98. FOVring.Visible = true
  99. FOVring.Thickness = 2
  100. FOVring.Radius = fov / workspace.CurrentCamera.FieldOfView
  101. FOVring.Transparency = 1
  102. FOVring.Color = AbColor
  103. FOVring.Position = game.Workspace.CurrentCamera.ViewportSize/2
  104.  
  105. FOVringList[#FOVringList+1] = FOVring
  106.  
  107. local team = getTeam()
  108.  
  109. local target = Vector2.new(math.huge, math.huge)
  110. local targetPos
  111. local targetPlayer
  112. if game.Workspace.Players:FindFirstChild(team) then
  113. for i,v in pairs(game.Workspace.Players:FindFirstChild(team):GetChildren()) do
  114. local pos = v[abTargetPart].Position
  115. local ScreenSpacePos, IsOnScreen = game.Workspace.CurrentCamera:WorldToViewportPoint(pos)
  116. ScreenSpacePos = Vector2.new(ScreenSpacePos.X, ScreenSpacePos.Y) - game.Workspace.CurrentCamera.ViewportSize/2
  117.  
  118. if IsOnScreen and ScreenSpacePos.Magnitude < target.Magnitude and (isPointVisible(v, maxWalls) or not wallCheck) then
  119. target = ScreenSpacePos
  120. targetPos = pos
  121. targetPlayer = v
  122. end
  123. end
  124. end
  125.  
  126. if target.Magnitude <= fov / workspace.CurrentCamera.FieldOfView and uis:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) then
  127. if target ~= Vector2.new(math.huge, math.huge) then
  128. mousemoverel(target.X/smoothing, target.Y/smoothing)
  129. end
  130. end
  131. end)
  132. else
  133. abLoop:Disconnect()
  134. for i,v in pairs(FOVringList) do
  135. v:Remove()
  136. end
  137. end
  138. end)
  139. AimbotSection:NewToggle("Wall Check", "", function(state) wallCheck = state end)
  140. AimbotSection:NewSlider("Max Wallbangs", "Inclusive", 50, 0, function(s) maxWalls = s end)
  141. AimbotSection:NewSlider("Fov", "", 50000, 500, function(s) fov = s end)
  142. AimbotSection:NewSlider("Smoothing", "", 300, 100, function(s) smoothing = s/100 end)
  143. AimbotSection:NewDropdown("Target Part", "", {"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg"}, function(currentOption) abTargetPart = currentOption end)
  144.  
  145.  
  146.  
  147.  
  148.  
  149. local saTargetPart = "Head"
  150. local safov = 500
  151. local panicMode = false
  152. local panicDistance = 5
  153. local saWallCheck = false
  154. local saWallBangs = 0
  155. local gunCF
  156. local motor
  157. local sa = false
  158. local saFovRingList = {}
  159.  
  160. saLoop = rs.RenderStepped:Connect(function()
  161. for i,v in pairs(saFovRingList) do
  162. v:Remove()
  163. end
  164.  
  165. saFovRingList = {}
  166. if not sa then return end
  167. local FOVring = Drawing.new("Circle")
  168. FOVring.Visible = true
  169. FOVring.Thickness = 2
  170. FOVring.Radius = safov / workspace.CurrentCamera.FieldOfView
  171. FOVring.Transparency = 1
  172. FOVring.Color = AbColor
  173. FOVring.Position = game.Workspace.CurrentCamera.ViewportSize/2
  174.  
  175. saFovRingList[#saFovRingList+1] = FOVring
  176.  
  177. local team = getTeam()
  178.  
  179. local targetPos
  180. local last = Vector2.new(math.huge, math.huge)
  181. if game.Workspace.Players:FindFirstChild(team) then
  182. for i,v in pairs(game.Workspace.Players:FindFirstChild(team):GetChildren()) do
  183. local pos = v[saTargetPart].Position
  184. local ScreenSpacePos, IsOnScreen = game.Workspace.CurrentCamera:WorldToViewportPoint(pos)
  185. ScreenSpacePos = Vector2.new(ScreenSpacePos.X, ScreenSpacePos.Y) - game.Workspace.CurrentCamera.ViewportSize/2
  186.  
  187. if (v[saTargetPart].Position - Workspace.CurrentCamera.CFrame.Position).Magnitude <= panicDistance and panicMode then
  188. targetPos = pos
  189. break
  190. end
  191.  
  192. if IsOnScreen and ScreenSpacePos.Magnitude < last.Magnitude and ScreenSpacePos.Magnitude <= (safov / workspace.CurrentCamera.FieldOfView) and (isPointVisible(v, saWallBangs) or not saWallCheck) then
  193. last = ScreenSpacePos
  194. targetPos = pos
  195. end
  196. end
  197. end
  198. if targetPos then
  199. motor = Workspace.CurrentCamera:GetChildren()[3].Trigger.Motor6D
  200. local cf = motor.C0
  201.  
  202. local cf2 = CFrame.new(motor.Part0.CFrame:ToWorldSpace(cf).Position, targetPos)
  203. gunCF = motor.Part0.CFrame:ToObjectSpace(cf2)
  204. else
  205. gunCF = nil
  206. motor = nil
  207. end
  208. end)
  209. local OldIndex
  210. OldIndex = hookmetamethod(game, "__newindex", newcclosure(function(...)
  211. local Self, Key, Value = ...
  212.  
  213. if sa and motor and gunCF and Self == motor and Key == "C0" then
  214. return OldIndex(Self, Key, gunCF)
  215. end
  216.  
  217. return OldIndex(...)
  218. end))
  219.  
  220. SASection:NewToggle("Silent Aim", "", function(state)
  221. sa = state
  222. end)
  223.  
  224. SASection:NewToggle("Wall Check", "", function(state) saWallCheck = state end)
  225. SASection:NewSlider("Max Wallbangs", "Inclusive", 50, 0, function(s) saWallBangs = s end)
  226. SASection:NewSlider("Fov", "", 50000, 500, function(s) safov = s end)
  227. SASection:NewDropdown("Target Part", "", {"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg"}, function(currentOption)saTargetPart = currentOption end)
  228. SASection:NewToggle("Panic Mode", "Will track closest player if they are within panic distance", function(state) panicMode = state end)
  229. SASection:NewSlider("Panic Distance", "", 40, 5, function(s) panicDistance = s end)
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. local LineList = {}
  237. local width = 3
  238. local height = 5
  239.  
  240. EspSection:NewToggle("Enabled", "", function(state)
  241. if state then
  242. LineList = {}
  243. espLoop = rs.RenderStepped:Connect(function()
  244. for i,v in pairs(LineList) do
  245. if v then
  246. v:Remove()
  247. end
  248. end
  249.  
  250. local team = getTeam()
  251.  
  252. LineList = {}
  253. if game.Workspace.Players:FindFirstChild(team) then
  254. for i,v in pairs(game.Workspace.Players:FindFirstChild(team):GetChildren()) do
  255. local pos = v.PrimaryPart.Position
  256. local ScreenSpacePos, IsOnScreen = game.Workspace.CurrentCamera:WorldToViewportPoint(pos)
  257.  
  258. a = game.Workspace.CurrentCamera:WorldToViewportPoint(v.Torso.CFrame:PointToWorldSpace(Vector3.new(width/2, height/2, 0)))
  259. b = game.Workspace.CurrentCamera:WorldToViewportPoint(v.Torso.CFrame:PointToWorldSpace(Vector3.new(-width/2, height/2, 0)))
  260. c = game.Workspace.CurrentCamera:WorldToViewportPoint(v.Torso.CFrame:PointToWorldSpace(Vector3.new(-width/2, -height/2, 0)))
  261. d = game.Workspace.CurrentCamera:WorldToViewportPoint(v.Torso.CFrame:PointToWorldSpace(Vector3.new(width/2, -height/2, 0)))
  262.  
  263. a = Vector2.new(a.X, a.Y)
  264. b = Vector2.new(b.X, b.Y)
  265. c = Vector2.new(c.X, c.Y)
  266. d = Vector2.new(d.X, d.Y)
  267.  
  268. if IsOnScreen then
  269. local Line = Drawing.new("Quad")
  270. Line.Visible = true
  271. Line.PointA = a
  272. Line.PointB = b
  273. Line.PointC = c
  274. Line.PointD = d
  275. Line.Color = EspColor
  276. Line.Thickness = 2
  277. Line.Transparency = 1
  278.  
  279. LineList[#LineList+1] = Line
  280. end
  281. end
  282. end
  283. end)
  284. else
  285. espLoop:Disconnect()
  286. for i,v in pairs(LineList) do
  287. v:Remove()
  288. end
  289. LineList = {}
  290. end
  291. end)
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305. BindsSection:NewKeybind("Toggle UI", "", Enum.KeyCode.B, function()
  306. Library:ToggleUI()
  307. end)
  308.  
  309.  
  310.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement