SomeRBXperson_

Assassin GUI

Dec 7th, 2019
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. MAIN = Instance.new("ScreenGui")
  2. AssassinFrame = Instance.new("Frame")
  3. AssassinGUI = Instance.new("TextButton")
  4. Killall = Instance.new("TextButton")
  5. ESP = Instance.new("TextButton")
  6.  
  7. MAIN.Name = "MAIN"
  8. MAIN.Parent = game.Players.LocalPlayer.PlayerGui
  9.  
  10. AssassinFrame.Name = "AssassinFrame"
  11. AssassinFrame.Parent = MAIN
  12. AssassinFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  13. AssassinFrame.Position = UDim2.new(0.739049911, 0, 0.0201037619, 0)
  14. AssassinFrame.Size = UDim2.new(0, 410, 0, 157)
  15.  
  16. AssassinGUI.Name = "Assassin GUI"
  17. AssassinGUI.Parent = AssassinFrame
  18. AssassinGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  19. AssassinGUI.BackgroundTransparency = 1
  20. AssassinGUI.BorderSizePixel = 0
  21. AssassinGUI.Position = UDim2.new(0.255361557, 0, 0, 0)
  22. AssassinGUI.Size = UDim2.new(0, 200, 0, 50)
  23. AssassinGUI.Font = Enum.Font.Cartoon
  24. AssassinGUI.FontSize = Enum.FontSize.Size14
  25. AssassinGUI.Text = "Assassin GUI"
  26. AssassinGUI.TextScaled = true
  27. AssassinGUI.TextSize = 14
  28. AssassinGUI.TextWrapped = true
  29.  
  30. Killall.Name = "Kill all"
  31. Killall.Parent = AssassinFrame
  32. Killall.BackgroundColor3 = Color3.new(0.694118, 0.490196, 1)
  33. Killall.Position = UDim2.new(0, 0, 0.393630564, 0)
  34. Killall.Size = UDim2.new(0, 200, 0, 50)
  35. Killall.AutoButtonColor = false
  36. Killall.Font = Enum.Font.Cartoon
  37. Killall.FontSize = Enum.FontSize.Size14
  38. Killall.Text = "Kill all - Type \";toggle\" to activate then hold out your knife and spam left click"
  39. Killall.TextScaled = true
  40. Killall.TextSize = 14
  41. Killall.TextWrapped = true
  42.  
  43. (Killall).MouseButton1Down:connect(function()
  44. local Active = false
  45. -- Credit to timeless for help :3
  46. -- Credit to this other dude who released sword fight script gave me this idea
  47. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Aimbot Started!", "All")
  48. game.Players.LocalPlayer.Chatted:connect(function(msg)
  49. if msg:lower() == ';toggle' then
  50. if Active then
  51. Active = false
  52. print("Stopped")
  53. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Disabled!", "All")
  54. else
  55. Active = true
  56. print("Started")
  57. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer("Enabled!", "All")
  58. end
  59. end
  60. end)
  61.  
  62. Loop = coroutine.wrap(function()
  63. while wait() do
  64. pcall(function()
  65. if Active then
  66. local Current = game.Players.LocalPlayer.PlayerGui.ScreenGui.UI.Target.Img.PlayerText.Text
  67. game.Players[Current].Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Knife.Handle.Position)
  68. Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  69. end
  70. end)
  71. end
  72. end)
  73.  
  74. Loop()
  75. end)
  76.  
  77.  
  78. ESP.Name = "ESP"
  79. ESP.Parent = Killall
  80. ESP.BackgroundColor3 = Color3.new(0.694118, 0.490196, 1)
  81. ESP.Position = UDim2.new(1.05161929, 0, 0.00428015739, 0)
  82. ESP.Size = UDim2.new(0, 200, 0, 50)
  83. ESP.AutoButtonColor = false
  84. ESP.Font = Enum.Font.Cartoon
  85. ESP.FontSize = Enum.FontSize.Size14
  86. ESP.Text = "ESP"
  87. ESP.TextScaled = true
  88. ESP.TextSize = 14
  89. ESP.TextWrapped = true
  90.  
  91. (ESP).MouseButton1Down:connect(function()
  92. -- Made by Clifford from Intriga Discord -- Edited by Foxxy#2439 --
  93.  
  94. local localPlayer=game.Players.LocalPlayer
  95.  
  96. function highlightModel(objObject)
  97. for i,v in pairs(objObject:children())do
  98. if v:IsA'BasePart'and v.Name~='HumanoidRootPart'then
  99. local bHA=Instance.new('BoxHandleAdornment',v)
  100. bHA.Adornee=v
  101. bHA.Size= v.Name=='Head' and Vector3.new(1.25,1.25,1.25) or v.Size
  102. bHA.Color3=v.Name=='Head'and Color3.new(1,0,0)or v.Name=='Torso'and Color3.new(0,1,0)or Color3.new(0,0,1)
  103. bHA.Transparency=.5
  104. bHA.ZIndex=1
  105. bHA.AlwaysOnTop=true
  106. end
  107. if #v:children()>0 then
  108. highlightModel(v)
  109. end
  110. end
  111. end
  112.  
  113. function unHighlightModel(objObject)
  114. for i,v in pairs(objObject:children())do
  115. if v:IsA'BasePart' and v:findFirstChild'BoxHandleAdornment' then
  116. v.BoxHandleAdornment:Destroy()
  117. end
  118. if #v:children()>0 then
  119. unHighlightModel(v)
  120. end
  121. end
  122. end
  123.  
  124. function sortTeamHighlights(objPlayer)
  125. repeat wait() until objPlayer.Character
  126. if objPlayer.TeamColor~=localPlayer.TeamColor then
  127. highlightModel(objPlayer.Character)
  128. else
  129. unHighlightModel(objPlayer.Character)
  130. end
  131. if objPlayer~=localPlayer then
  132. objPlayer.Changed:connect(function(strProp)
  133. if strProp=='TeamColor'then
  134. if objPlayer.TeamColor~=localPlayer.TeamColor then
  135. unHighlightModel(objPlayer.Character)
  136. highlightModel(objPlayer.Character)
  137. else
  138. unHighlightModel(objPlayer.Character)
  139. end
  140. end
  141. end)
  142. else
  143. objPlayer.Changed:connect(function(strProp)
  144. if strProp=='TeamColor'then
  145. wait(.5)
  146. for i,v in pairs(game.Players:GetPlayers())do
  147. unHighlightModel(v)
  148. if v.TeamColor~=localPlayer.TeamColor then
  149. highlightModel(v.Character)
  150. end
  151. end
  152. end
  153. end)
  154. end
  155. end
  156.  
  157. for i,v in pairs(game.Players:GetPlayers())do
  158. v.CharacterAdded:connect(function()
  159. sortTeamHighlights(v)
  160. end)
  161. sortTeamHighlights(v)
  162. end
  163. game.Players.PlayerAdded:connect(function(objPlayer)
  164. objPlayer.CharacterAdded:connect(function(objChar)
  165. sortTeamHighlights(objPlayer)
  166. end)
  167. end)
  168. end)
Add Comment
Please, Sign In to add comment