Advertisement
AmZayx

Murder Mystery ESP roblox 2021

May 17th, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.lemes (my version) xD
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local ESPon = Instance.new("TextButton")
  9. local ESPOff = Instance.new("TextButton")
  10. local HIDE = Instance.new("TextButton")
  11. local OPEN = Instance.new("TextButton")
  12.  
  13. --Properties:
  14.  
  15. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16. ScreenGui.ResetOnSpawn = false
  17.  
  18. Frame.Parent = ScreenGui
  19. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  20. Frame.Position = UDim2.new(0.166156977, 0, 0, 0)
  21. Frame.Size = UDim2.new(0, 163, 0, 227) --comando original (tamanho original): Frame.Size = UDim2.new(0, 163, 0, 454)
  22.  
  23. ESPon.Name = "ESPon"
  24. ESPon.Parent = ScreenGui
  25. ESPon.BackgroundColor3 = Color3.new(0, 1, 0)
  26. ESPon.Position = UDim2.new(0.166156977, 0, -4.41335142e-05, 0)
  27. ESPon.Size = UDim2.new(0, 163, 0, 50)
  28. ESPon.Font = Enum.Font.SourceSans
  29. ESPon.Text = "ESP ON (press E)"
  30. ESPon.TextColor3 = Color3.new(0, 0, 0)
  31. ESPon.TextScaled = true
  32. ESPon.TextSize = 14
  33. ESPon.TextWrapped = true
  34.  
  35. ESPOff.Name = "ESPOff"
  36. ESPOff.Parent = ScreenGui
  37. ESPOff.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  38. ESPOff.Position = UDim2.new(0.166156977, 0, 0.105935514, 0)
  39. ESPOff.Size = UDim2.new(0, 163, 0, 50)
  40. ESPOff.Font = Enum.Font.SourceSans
  41. ESPOff.Text = "ESP OFF (press F)"
  42. ESPOff.TextColor3 = Color3.new(0, 0, 0)
  43. ESPOff.TextScaled = true
  44. ESPOff.TextSize = 14
  45. ESPOff.TextWrapped = true
  46.  
  47. HIDE.Name = "HIDE"
  48. HIDE.Parent = ScreenGui
  49. HIDE.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  50. HIDE.Position = UDim2.new(0.166156977, 0, 0.211999387, 0)
  51. HIDE.Size = UDim2.new(0, 163, 0, 56)
  52. HIDE.Font = Enum.Font.SourceSans
  53. HIDE.Text = "HIDE"
  54. HIDE.TextColor3 = Color3.new(0, 0, 0)
  55. HIDE.TextScaled = true
  56. HIDE.TextSize = 14
  57. HIDE.TextWrapped = true
  58.  
  59. OPEN.Name = "OPEN"
  60. OPEN.Parent = ScreenGui
  61. OPEN.Active = false
  62. OPEN.BackgroundColor3 = Color3.new(0.0117647, 1, 0.0117647)
  63. OPEN.Position = UDim2.new(0, 0, 0.0418502204, 0)
  64. OPEN.Size = UDim2.new(0, 116, 0, 19)
  65. OPEN.Visible = false
  66. OPEN.Font = Enum.Font.SourceSans
  67. OPEN.Text = "OPEN"
  68. OPEN.TextColor3 = Color3.new(0, 0, 0)
  69. OPEN.TextScaled = true
  70. OPEN.TextSize = 14
  71. OPEN.TextWrapped = true
  72.  
  73.  
  74. -- Scripts:
  75.  
  76. local function XVGFY_fake_script() -- ScreenGui.LocalScript
  77. local script = Instance.new('LocalScript', ScreenGui)
  78.  
  79. -- FUNCTIONS
  80. function murderer()
  81. for i, v in pairs(game.Players:children()) do
  82. if v.Backpack:findFirstChild("Knife") or v.Character:findFirstChild("Knife") then
  83. return v
  84. end
  85. end
  86. end
  87.  
  88. function sherrif()
  89. for i, v in pairs(game.Players:children()) do
  90. if v.Backpack:findFirstChild("Gun") or v.Character:findFirstChild("Gun") then
  91. return v
  92. end
  93. end
  94. end
  95.  
  96.  
  97. -- ESP ON BUTTON (my new command is ESP ON KEY xD)
  98.  
  99. --script.Parent.ESPon.MouseButton1Down:connect(function()
  100. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  101. if inputObject.KeyCode == Enum.KeyCode.E then
  102.  
  103. for i, v in pairs(game.Players:children()) do
  104. if v.Backpack:findFirstChild("Knife") or v.Character:findFirstChild("Knife") then
  105. local esp = Instance.new("BoxHandleAdornment")
  106. esp.Parent = v.Character.Head
  107. esp.Size = Vector3.new(1,1,1)
  108. esp.Color3 = Color3.new(255, 0, 0)
  109. esp.AlwaysOnTop = true
  110. esp.Adornee = v.Character.Head
  111. esp.Visible = true
  112. esp.ZIndex = 2
  113.  
  114. elseif v.Backpack:findFirstChild("Gun") or v.Character:findFirstChild("Gun") then
  115. local esp = Instance.new("BoxHandleAdornment")
  116. esp.Parent = v.Character.Head
  117. esp.Size = Vector3.new(1,1,1)
  118. esp.Color3 = Color3.new(0, 0, 255)
  119. esp.AlwaysOnTop = true
  120. esp.Adornee = v.Character.Head
  121. esp.Visible = true
  122. esp.ZIndex = 2
  123. else
  124. local esp = Instance.new("BoxHandleAdornment")
  125. esp.Parent = v.Character.Head
  126. esp.Size = Vector3.new(1,1,1)
  127. esp.Color3 = Color3.new(0, 255, 0)
  128. esp.AlwaysOnTop = true
  129. esp.Adornee = v.Character.Head
  130. esp.Visible = true
  131. esp.ZIndex = 2
  132. end
  133. end
  134. end
  135. end)
  136. --)
  137.  
  138. -- ESP OFF BUTTON
  139.  
  140. --script.Parent.ESPOff.MouseButton1Down:connect(function()
  141. game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  142. if inputObject.KeyCode == Enum.KeyCode.F then
  143. for i, v in pairs(game.Players:children()) do
  144. for i, a in pairs(v.Character.Head:children()) do
  145. if a.ClassName == "BoxHandleAdornment" then
  146. a:remove()
  147. end
  148. end
  149. end
  150. end
  151. end)
  152.  
  153. --end)
  154.  
  155.  
  156. -- Hide Button
  157.  
  158. script.Parent.HIDE.MouseButton1Down:connect(function()
  159. for i, v in pairs(script.Parent:children()) do
  160. if v.Name ~= "OPEN" then
  161. v.Visible = false
  162. v.Active = false
  163.  
  164. else
  165. v.Active = true
  166. v.Visible = true
  167. end
  168. end
  169. end)
  170.  
  171. -- Open Button
  172.  
  173. script.Parent.OPEN.MouseButton1Down:connect(function()
  174. for i, v in pairs(script.Parent:children()) do
  175. if v.Name ~= "OPEN" then
  176. v.Visible = true
  177. v.Active = true
  178.  
  179. else
  180. v.Active = false
  181. v.Visible = false
  182. end
  183. end
  184. end)
  185.  
  186. end
  187. coroutine.wrap(XVGFY_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement