Advertisement
Guest User

Untitled

a guest
May 16th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.48 KB | None | 0 0
  1. --SynapseX Decompiler
  2.  
  3. local _Run = game:GetService("RunService")
  4. local ANNOYANCE = true
  5. local Player = game.Players.LocalPlayer
  6. Player:GetMouse().KeyDown:connect(function(f)
  7. if f:lower() == "l" then
  8. ANNOYANCE = not ANNOYANCE
  9. end
  10. end)
  11. local myModule = require(game.ReplicatedStorage.GetIcon)
  12. local Camera = game.Workspace.CurrentCamera
  13. local last_va = 0
  14. local last_va2 = 0
  15. local Radar = Player:WaitForChild("PlayerGui"):WaitForChild("GUI"):WaitForChild("Circle").Circle
  16. local Position = Vector3.new(0, 0, 0)
  17. local Positionx = Position.x
  18. local Positiony = Position.y
  19. local maxradius = 100
  20. local radarsize = 400
  21. function justdoit()
  22. Positionx = math.clamp(Positionx, 0.23, 0.67)
  23. Positiony = math.clamp(Positiony, 0.23, 0.67)
  24. end
  25. local boop = script.Parent.Objective
  26. local TweenService = game:GetService("TweenService")
  27. spawn(function()
  28. while wait(1) do
  29. local garb = script.Parent.Objective:GetChildren()
  30. for i = 1, 4 do
  31. if garb[i]:IsA("ImageLabel") and garb[i].Visible == true then
  32. local color = garb[i].ImageColor3
  33. TweenService:Create(garb[i], TweenInfo.new(0.75, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {
  34. ImageColor3 = Color3.new(0.7, 0.7, 0.7)
  35. }):Play()
  36. wait(0.75)
  37. TweenService:Create(garb[i], TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.In), {ImageColor3 = color}):Play()
  38. end
  39. end
  40. end
  41. end)
  42. while wait() do
  43. script.Parent.Objective.Enabled = false
  44. script.Parent.Objective.pickup.Visible = false
  45. script.Parent.Objective.defuse.Visible = false
  46. script.Parent.Objective.plant.Visible = false
  47. script.Parent.Objective.protect.Visible = false
  48. if ANNOYANCE == true and game.Workspace:FindFirstChild("Map") and game.Workspace.Map:FindFirstChild("Gamemode") and game.Workspace.Map.Gamemode.Value == "defusal" then
  49. if game.Workspace.Debris:FindFirstChild("C4") then
  50. local csn = game.Workspace.Debris.C4
  51. script.Parent.Objective.Adornee = csn
  52. if game.Players.LocalPlayer.Status.Team.Value == "CT" then
  53. script.Parent.Objective.protect.Visible = true
  54. elseif game.Players.LocalPlayer.Status.Team.Value == "T" then
  55. script.Parent.Objective.pickup.Visible = true
  56. end
  57. script.Parent.Objective.Enabled = true
  58. elseif game.Workspace:FindFirstChild("C4") then
  59. local csn = game.Workspace.C4
  60. local df = false
  61. if game.Players.LocalPlayer.Status.Team.Value == "CT" then
  62. if game.Workspace.Map:FindFirstChild("SpawnPoints") and game.Workspace.Map.SpawnPoints:FindFirstChild("C4Plant") and game.Workspace.Map.SpawnPoints.C4Plant.Planted.Value == true then
  63. csn = game.Workspace.Map.SpawnPoints.C4Plant
  64. df = true
  65. end
  66. if df == false and game.Workspace.Map:FindFirstChild("SpawnPoints") and game.Workspace.Map.SpawnPoints:FindFirstChild("C4Plant2") and game.Workspace.Map.SpawnPoints.C4Plant2.Planted.Value == true then
  67. csn = game.Workspace.Map.SpawnPoints.C4Plant2
  68. end
  69. script.Parent.Objective.defuse.Visible = true
  70. elseif game.Players.LocalPlayer.Status.Team.Value == "T" then
  71. script.Parent.Objective.protect.Visible = true
  72. end
  73. script.Parent.Objective.Adornee = csn
  74. script.Parent.Objective.Enabled = true
  75. elseif game.Players.LocalPlayer.Status.Team.Value == "T" then
  76. local df = false
  77. if game.Workspace.Map:FindFirstChild("SpawnPoints") and game.Workspace.Map.SpawnPoints:FindFirstChild("C4Plant") then
  78. local ep = game.Workspace.Map.SpawnPoints.C4Plant.Position
  79. if (Camera.CoordinateFrame.p - ep).magnitude <= 50 then
  80. df = true
  81. local csn = game.Workspace.Map.SpawnPoints.C4Plant
  82. script.Parent.Objective.Adornee = csn
  83. script.Parent.Objective.plant.Visible = true
  84. script.Parent.Objective.Enabled = true
  85. end
  86. end
  87. if df == false and game.Workspace.Map:FindFirstChild("SpawnPoints") and game.Workspace.Map.SpawnPoints:FindFirstChild("C4Plant2") then
  88. local ep = game.Workspace.Map.SpawnPoints.C4Plant2.Position
  89. if (Camera.CoordinateFrame.p - ep).magnitude <= 50 then
  90. local csn = game.Workspace.Map.SpawnPoints.C4Plant2
  91. script.Parent.Objective.Adornee = csn
  92. script.Parent.Objective.plant.Visible = true
  93. script.Parent.Objective.Enabled = true
  94. end
  95. end
  96. end
  97. end
  98. local froobarb = script.Parent.Nametags:GetChildren()
  99. if #froobarb > 0 then
  100. for i = 1, #froobarb do
  101. froobarb[i].Enabled = false
  102. end
  103. end
  104. if game.ReplicatedStorage.gametype.Value == "TTT" or game.ReplicatedStorage.gametype.Value == "deathmatch" then
  105. return
  106. end
  107. if script.Parent:FindFirstChild("GUI") then
  108. maxradius = 100 * (200 / script.Parent.GUI.Circle.Circle.AbsoluteSize.X)
  109. end
  110. if Radar.Visible == true and game.Players.LocalPlayer and script.Parent:FindFirstChild("GUI") and script.Parent.GUI.MapVote.Visible == false then
  111. if Player then
  112. local p_distance = (Camera.CoordinateFrame.p - Player:GetMouse().Hit.p).magnitude
  113. if p_distance == 0 then
  114. p_distance = 1.0E-4
  115. end
  116. local p_height = Player:GetMouse().Hit.p.y - Camera.CoordinateFrame.p.y
  117. local view_angle
  118. if p_height ~= 0 then
  119. view_angle = math.deg(math.asin(math.abs(p_height) / p_distance)) * (math.abs(p_height) / p_height)
  120. else
  121. view_angle = 0
  122. end
  123. local cam_cf = Camera.CoordinateFrame
  124. local looking_at = cam_cf * CFrame.new(0, 0, -100)
  125. local view_angle2 = math.deg(math.atan2(cam_cf.p.x - looking_at.p.x, cam_cf.p.z - looking_at.p.z)) + 180
  126. local v_delta2
  127. local dir2 = 0
  128. local va_check = {
  129. math.abs(view_angle2 - last_va2),
  130. 360 - math.abs(view_angle2 - last_va2)
  131. }
  132. if view_angle2 == last_va2 then
  133. dir2 = 0
  134. v_delta2 = 0
  135. elseif va_check[1] < va_check[2] then
  136. v_delta2 = va_check[1]
  137. dir2 = (view_angle2 - last_va2) / va_check[1]
  138. else
  139. v_delta2 = va_check[2]
  140. if last_va2 > view_angle2 then
  141. dir2 = 1
  142. else
  143. dir2 = -1
  144. end
  145. end
  146. last_va2 = view_angle2
  147. Radar.Player.Position = UDim2.new(0.5, -Radar.Player.AbsoluteSize.X / 2, 0.5, -Radar.Player.AbsoluteSize.Y / 2)
  148. Radar.Player.Rotation = 180 - view_angle2
  149. Radar.Player.Visible = true
  150. else
  151. Radar.Player.Visible = false
  152. end
  153. _Run.Heartbeat:wait()
  154. if game.Workspace:FindFirstChild("Map") and game.Workspace.Map:FindFirstChild("Gamemode") and game.Workspace.Map.Gamemode.Value == "defusal" then
  155. if Player.Status.Team.Value == "T" or Player.Status.Team.Value == "CT" then
  156. if workspace.Status.HasBomb.Value == "" and game.Workspace:FindFirstChild("Debris") and game.Workspace.Debris:FindFirstChild("C4") then
  157. local Distance = (Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(workspace.Debris.C4.CFrame.x, workspace.Debris.C4.CFrame.z)).magnitude
  158. if Distance <= 1000 and Player.Status.Team.Value == "T" or Distance <= 40 then
  159. Position = -(Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(workspace.Debris.C4.CFrame.x, workspace.Debris.C4.CFrame.z))
  160. Position = Vector2.new(Position.x, Position.y)
  161. Positionx = 0.5 + Position.X / radarsize - Radar.Bomb.Size.X.Scale / 2
  162. Positiony = 0.5 + Position.Y / radarsize - Radar.Bomb.Size.Y.Scale / 2
  163. justdoit()
  164. Radar:WaitForChild("Bomb").Position = UDim2.new(Positionx, 0, Positiony, 0)
  165. Radar:WaitForChild("Bomb").Visible = true
  166. else
  167. Radar:WaitForChild("Bomb").Visible = false
  168. end
  169. elseif Player.Status.Team.Value == "T" and game.Players:FindFirstChild(workspace.Status.HasBomb.Value) and game.Players[workspace.Status.HasBomb.Value].Character and game.Players[workspace.Status.HasBomb.Value].Character:FindFirstChild("HumanoidRootPart") then
  170. local Distance = (Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(game.Players[workspace.Status.HasBomb.Value].Character:WaitForChild("HumanoidRootPart").CFrame.x, game.Players[workspace.Status.HasBomb.Value].Character:WaitForChild("HumanoidRootPart").CFrame.z)).magnitude
  171. if Distance <= 1000 then
  172. Position = -(Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(game.Players[workspace.Status.HasBomb.Value].Character:WaitForChild("HumanoidRootPart").CFrame.x, game.Players[workspace.Status.HasBomb.Value].Character:WaitForChild("HumanoidRootPart").CFrame.z))
  173. Position = Vector2.new(Position.x, Position.y)
  174. Positionx = 0.5 + Position.X / radarsize - Radar.Bomb.Size.X.Scale / 2
  175. Positiony = 0.5 + Position.Y / radarsize - Radar.Bomb.Size.Y.Scale / 2
  176. justdoit()
  177. Radar:WaitForChild("Bomb").Position = UDim2.new(Positionx, 0, Positiony, 0)
  178. Radar:WaitForChild("Bomb").Visible = true
  179. else
  180. Radar:WaitForChild("Bomb").Visible = false
  181. end
  182. else
  183. Radar:WaitForChild("Bomb").Visible = false
  184. end
  185. else
  186. Radar:WaitForChild("Bomb").Visible = false
  187. end
  188. if workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant2"):WaitForChild("Planted").Value or workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant"):WaitForChild("Planted").Value then
  189. Radar:WaitForChild("Bomb").Visible = false
  190. end
  191. local Distance = (Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant").CFrame.x, workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant").CFrame.z)).magnitude
  192. if Distance <= 1000 then
  193. Position = -(Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant").CFrame.x, workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant").CFrame.z))
  194. Position = Vector2.new(Position.x, Position.y)
  195. Positionx = 0.5 + Position.X / radarsize - Radar.B.Size.X.Scale / 2
  196. Positiony = 0.5 + Position.Y / radarsize - Radar.B.Size.Y.Scale / 2
  197. justdoit()
  198. Radar:WaitForChild("B").Position = UDim2.new(Positionx, 0, Positiony, 0)
  199. else
  200. Radar:WaitForChild("B").Visible = false
  201. end
  202. local Distance = (Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant2").CFrame.x, workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant2").CFrame.z)).magnitude
  203. if Distance <= 1000 then
  204. Position = -(Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant2").CFrame.x, workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant2").CFrame.z))
  205. Position = Vector2.new(Position.x, Position.y)
  206. Position = Vector2.new(Position.x, Position.y)
  207. Positionx = 0.5 + Position.X / radarsize - Radar.A.Size.X.Scale / 2
  208. Positiony = 0.5 + Position.Y / radarsize - Radar.A.Size.Y.Scale / 2
  209. justdoit()
  210. Radar:WaitForChild("A").Position = UDim2.new(Positionx, 0, Positiony, 0)
  211. else
  212. Radar:WaitForChild("A").Visible = false
  213. end
  214. if workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant"):WaitForChild("Planted").Value then
  215. Radar:WaitForChild("A").TextColor = BrickColor.new("Bright yellow")
  216. if Player.Status.Team.Value == "T" then
  217. Radar:WaitForChild("B").TextColor = BrickColor.new("Bright red")
  218. Radar:WaitForChild("B").Text = "B"
  219. else
  220. Radar:WaitForChild("B").TextColor = BrickColor.new("Bright yellow")
  221. Radar:WaitForChild("B").Text = "B"
  222. end
  223. elseif workspace:WaitForChild("Map"):WaitForChild("SpawnPoints"):WaitForChild("C4Plant2"):WaitForChild("Planted").Value then
  224. Radar:WaitForChild("B").TextColor = BrickColor.new("Bright yellow")
  225. if Player.Status.Team.Value == "T" then
  226. Radar:WaitForChild("A").TextColor = BrickColor.new("Bright red")
  227. Radar:WaitForChild("A").Text = "A"
  228. else
  229. Radar:WaitForChild("A").TextColor = BrickColor.new("Bright yellow")
  230. Radar:WaitForChild("A").Text = "A"
  231. end
  232. else
  233. if Player.Status.Team.Value == "T" then
  234. Radar:WaitForChild("A").TextColor = BrickColor.new("Bright yellow")
  235. Radar:WaitForChild("B").TextColor = BrickColor.new("Bright yellow")
  236. Radar:WaitForChild("A").Text = "A"
  237. Radar:WaitForChild("B").Text = "B"
  238. else
  239. Radar:WaitForChild("A").TextColor = BrickColor.new("Bright yellow")
  240. Radar:WaitForChild("B").TextColor = BrickColor.new("Bright yellow")
  241. Radar:WaitForChild("A").Text = "A"
  242. Radar:WaitForChild("B").Text = "B"
  243. end
  244. Radar:WaitForChild("A").Visible = true
  245. Radar:WaitForChild("B").Visible = true
  246. end
  247. if not game.Workspace:FindFirstChild("Map") then
  248. Radar:WaitForChild("A").Visible = false
  249. Radar:WaitForChild("B").Visible = false
  250. Radar:WaitForChild("Bomb").Visible = false
  251. end
  252. else
  253. Radar.A.Visible = false
  254. Radar.B.Visible = false
  255. Radar.Bomb.Visible = false
  256. end
  257. Radar:WaitForChild("Players"):ClearAllChildren()
  258. for Index, Noob in pairs(game.Players:GetChildren()) do
  259. local bepis
  260. if script.Parent.Nametags:FindFirstChild(Noob.Name) == nil then
  261. bepis = script.NameTag:clone()
  262. bepis.Parent = script.Parent.Nametags
  263. bepis.Name = Noob.Name
  264. bepis.PersonName.Text = bepis.Name
  265. else
  266. bepis = script.Parent.Nametags[Noob.Name]
  267. end
  268. bepis.Enabled = false
  269. if Noob.Character and Noob.Character:FindFirstChild("HumanoidRootPart") and Noob.Character:FindFirstChild("Humanoid") and 0 < Noob.Character.Humanoid.Health and Noob ~= Player and ((Noob:FindFirstChild("LastSeen") or Noob:FindFirstChild("Spotted")) and Noob.TeamColor ~= Player.TeamColor or Noob.TeamColor == Player.TeamColor or Player.Status.Team.Value == "Spectator") then
  270. local sps = Noob.Character:WaitForChild("HumanoidRootPart").CFrame
  271. local hidden = false
  272. if Player.Status.Team.Value == "Spectator" then
  273. elseif Noob.TeamColor ~= Player.TeamColor and Noob:FindFirstChild("LastSeen") then
  274. hidden = true
  275. sps = CFrame.new(Noob.LastSeen.Value)
  276. end
  277. local Distance = (Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(sps.x, sps.z)).magnitude
  278. if Distance <= 3000 then
  279. Position = -(Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(sps.x, sps.z))
  280. Position = Vector2.new(Position.x, Position.y)
  281. local Label = Radar:WaitForChild("Player"):Clone()
  282. Label:WaitForChild("ImageLabel"):Destroy()
  283. Label.Rotation = 0
  284. Label.Visible = true
  285. Label.Name = Noob.Name
  286. Label.Parent = Radar:WaitForChild("Players")
  287. if Noob.TeamColor == Player.TeamColor or Player.Status.Team.Value == "Spectator" then
  288. Label.ImageColor3 = BrickColor.new("Bright green").Color
  289. if bepis then
  290. bepis.Adornee = Noob.Character.Head
  291. bepis.Enabled = true
  292. bepis.Health.TextColor3 = Noob.TeamColor.Color
  293. bepis.PersonName.TextColor3 = Noob.TeamColor.Color
  294. bepis.Pointer.ImageColor3 = Noob.TeamColor.Color
  295. bepis.AlwaysOnTop = true
  296. if game.Workspace.Status.Preparation.Value == true or Noob:FindFirstChild("LockedIn") then
  297. bepis.Health.Visible = true
  298. bepis.PersonName.Visible = true
  299. if game.Workspace.Status.Preparation.Value == true then
  300. bepis.Pic.Visible = true
  301. bepis.Pic.Image = myModule.getWeaponOfKiller(Noob.Character.EquippedTool.Value)
  302. else
  303. bepis.Pic.Visible = false
  304. end
  305. else
  306. bepis.Pic.Visible = false
  307. bepis.Health.Visible = false
  308. bepis.PersonName.Visible = false
  309. end
  310. if bepis.Health.Visible == true then
  311. bepis.Health.Text = math.floor(Noob.Character.Humanoid.Health / Noob.Character.Humanoid.MaxHealth * 100) .. "%"
  312. end
  313. end
  314. else
  315. Label.ImageColor3 = BrickColor.new("Really red").Color
  316. Label.Hidden.ImageColor3 = BrickColor.new("Really red").Color
  317. Label.Hidden.Visible = hidden
  318. Label.ImageTransparency = hidden and 1 or 0
  319. end
  320. if Player.Status.Team.Value == "Spectator" then
  321. Label.ImageColor3 = Noob.TeamColor.Color
  322. end
  323. Positionx = 0.5 + Position.X / radarsize - Label.Size.X.Scale / 2
  324. Positiony = 0.5 + Position.Y / radarsize - Label.Size.Y.Scale / 2
  325. justdoit()
  326. Label.Position = UDim2.new(Positionx, 0, Positiony, 0)
  327. end
  328. end
  329. end
  330. if game.Workspace:FindFirstChild("Map") and game.Workspace.Map:FindFirstChild("Radar") then
  331. local rada = game.Workspace.Map.Radar
  332. if game.Workspace.Map:FindFirstChild("Origin") and game.Workspace.Map:FindFirstChild(game.Workspace.Map.Origin.Value) and game.Workspace.Map:FindFirstChild(game.Workspace.Map.Origin.Value).Clips.Locations:FindFirstChild(Player.Location.Value) and game.Workspace.Map:FindFirstChild(game.Workspace.Map.Origin.Value).Clips.Locations:FindFirstChild(Player.Location.Value):FindFirstChild("Radar2") then
  333. rada = game.Workspace.Map.Radar2
  334. end
  335. if rada:FindFirstChild("Decal") then
  336. Radar.Map.Image = rada.Decal.Texture
  337. end
  338. Radar.Map.Size = UDim2.new(rada.Size.X / radarsize, 0, rada.Size.Z / radarsize, 0)
  339. Position = -(Vector2.new(Camera.CoordinateFrame.x, Camera.CoordinateFrame.z) - Vector2.new(rada.CFrame.x, rada.CFrame.z))
  340. local mapsize = math.max(rada.Size.X, rada.Size.Z)
  341. maxradius = mapsize
  342. Position = Vector2.new(Position.x / maxradius * mapsize, Position.y / maxradius * mapsize)
  343. Radar.Map.Position = UDim2.new(0.5 + (Position.X - mapsize / 2) / radarsize, 0, 0.5 + (Position.Y - mapsize / 2) / radarsize, 0)
  344. end
  345. elseif 0 < #script.Parent.Nametags:GetChildren() then
  346. script.Parent.Nametags:ClearAllChildren()
  347. end
  348. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement