Advertisement
Ivansoso

Granny Roblox ESP script

Mar 15th, 2024 (edited)
714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. repeat wait() until game:IsLoaded()
  2. local expectedPlaceId = 6000468131
  3. if game.PlaceId ~= expectedPlaceId then
  4. return
  5. end
  6. print("Last Update: 16.03.2024")
  7. print("Creator: Ivan Solo")
  8.  
  9. game.StarterGui:SetCore("SendNotification", {
  10. Icon = "";
  11. Title = "How to use script on PC?",
  12. Text = "Press *F* button"
  13. })
  14. game.StarterGui:SetCore("SendNotification", {
  15. Icon = "";
  16. Title = "Author: Ivan Solo",
  17. Text = "t.me/yuggimie"
  18. })
  19.  
  20. local gui = Instance.new("ScreenGui")
  21. gui.Name = "MyGui"
  22. gui.Parent = game.Players.LocalPlayer.PlayerGui
  23.  
  24.  
  25. local button1 = Instance.new("TextButton")
  26. button1.Name = "Button1"
  27. button1.Text = "Key"
  28. button1.Size = UDim2.new(0, 50, 0, 25)
  29. button1.Position = UDim2.new(0, 10, 0, 10)
  30. button1.Parent = gui
  31.  
  32. local button2 = Instance.new("TextButton")
  33. button2.Name = "Button2"
  34. button2.Text = "Enemy"
  35. button2.Size = UDim2.new(0, 50, 0, 25)
  36. button2.Position = UDim2.new(0, 70, 0, 10)
  37. button2.Parent = gui
  38.  
  39. local button3 = Instance.new("TextButton")
  40. button3.Name = "Button3"
  41. button3.Text = "Tool"
  42. button3.Size = UDim2.new(0, 50, 0, 25)
  43. button3.Position = UDim2.new(0, 130, 0, 10)
  44. button3.Parent = gui
  45.  
  46. local button4 = Instance.new("TextButton")
  47. button4.Name = "Button4"
  48. button4.Text = "Player"
  49. button4.Size = UDim2.new(0, 50, 0, 25)
  50. button4.Position = UDim2.new(0, 190, 0, 10)
  51. button4.Parent = gui
  52.  
  53. local button5 = Instance.new("TextButton")
  54. button5.Name = "Button5"
  55. button5.Text = "Traps"
  56. button5.Size = UDim2.new(0, 50, 0, 25)
  57. button5.Position = UDim2.new(0, 250, 0, 10)
  58. button5.Parent = gui
  59.  
  60. button1.MouseButton1Down:connect(function()
  61. KeyESP = true
  62. end)
  63. button2.MouseButton1Down:connect(function()
  64. EnemyESP = true
  65. end)
  66. button3.MouseButton1Down:connect(function()
  67. ToolESP = true
  68. end)
  69. button4.MouseButton1Down:connect(function()
  70. PlayerESP = true
  71. end)
  72. button5.MouseButton1Down:connect(function()
  73. TrapsESP = true
  74. end)
  75.  
  76. while wait(1) do
  77. local er = game.Workspace:WaitForChild("Map")
  78. local map = ""
  79.  
  80. local function updateMap()
  81. if er:FindFirstChild("House") then
  82. map = "House"
  83. elseif er:FindFirstChild("House II") then
  84. map = "House II"
  85. elseif er:FindFirstChild("Mansion") then
  86. map = "Mansion"
  87. elseif er:FindFirstChild("School") then
  88. map = "School"
  89. elseif er:FindFirstChild("House easy") then
  90. map = "House easy"
  91. elseif er:FindFirstChild("House II easy") then
  92. map = "House II easy"
  93. elseif er:FindFirstChild("Mansion easy") then
  94. map = "Mansion easy"
  95. elseif er:FindFirstChild("Ski resort") then
  96. map = "Ski resort"
  97. elseif er:FindFirstChild("") then
  98. map = ""
  99. end
  100. end
  101.  
  102. updateMap()
  103.  
  104. if er:FindFirstChild(map) then
  105. if KeyESP == true then
  106. for i, key in pairs(er[map]:WaitForChild("Tools").Map:GetChildren()) do
  107. if key.Name:find("key") then
  108. if not key:FindFirstChild("Highlight") then
  109. local Highlight = Instance.new("Highlight")
  110. local Billboard = Instance.new("BillboardGui")
  111. local Name = Instance.new("TextLabel")
  112. local NameStroke = Instance.new("UIStroke")
  113.  
  114. Highlight.FillColor = Color3.fromRGB(255, 170, 0)
  115. Highlight.OutlineTransparency = 0.9
  116. Highlight.Parent = key
  117.  
  118. Billboard.Parent = key.Handle
  119. Billboard.ExtentsOffset = Vector3.new(0, 2, 0)
  120. Billboard.Size = UDim2.new(0, 70, 0, 20)
  121. Billboard.AlwaysOnTop = true
  122. Billboard.LightInfluence = 0
  123.  
  124. Name.Parent = Billboard
  125. Name.BackgroundTransparency = 1
  126. Name.TextScaled = true
  127. Name.Text = key.Name
  128. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  129. Name.Font = Enum.Font.Arial
  130. Name.Size = UDim2.new(1, 0, 1, 0)
  131.  
  132. NameStroke.Parent = Name
  133. NameStroke.Thickness = 3
  134. end
  135. end
  136. end
  137.  
  138. else
  139.  
  140. for i, key in pairs(er[map]:WaitForChild("Tools").Map:GetChildren()) do
  141. if key:FindFirstChild("Highlight") then
  142. if key.Name:find("key") then
  143. key.Highlight:Destroy()
  144. key.Handle.BillboardGui:Destroy()
  145. end
  146. end
  147. end
  148. end
  149. if ToolESP == true then
  150. for i, tool in pairs(er[map]:WaitForChild("Tools").Map:GetChildren()) do
  151. if not tool.Name:find("key") then
  152. if not tool:FindFirstChild("Highlight") then
  153. local Highlight = Instance.new("Highlight")
  154. local Billboard = Instance.new("BillboardGui")
  155. local Name = Instance.new("TextLabel")
  156. local NameStroke = Instance.new("UIStroke")
  157.  
  158. Highlight.FillColor = Color3.fromRGB(255, 255, 0)
  159. Highlight.OutlineTransparency = 0.9
  160. Highlight.Parent = tool
  161.  
  162. Billboard.Parent = tool.Handle
  163. Billboard.ExtentsOffset = Vector3.new(0, 2, 0)
  164. Billboard.Size = UDim2.new(0, 70, 0, 20)
  165. Billboard.AlwaysOnTop = true
  166. Billboard.LightInfluence = 0
  167.  
  168. Name.Parent = Billboard
  169. Name.BackgroundTransparency = 1
  170. Name.TextScaled = true
  171. Name.Text = tool.Name
  172. Name.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. Name.Font = Enum.Font.Arial
  174. Name.Size = UDim2.new(1, 0, 1, 0)
  175.  
  176. NameStroke.Parent = Name
  177. NameStroke.Thickness = 3
  178. end
  179. end
  180. end
  181.  
  182. else
  183.  
  184. for i, tool in pairs(er[map]:WaitForChild("Tools").Map:GetChildren()) do
  185. if tool:FindFirstChild("Highlight") then
  186. if not tool.Name:find("key") then
  187. tool.Highlight:Destroy()
  188. tool.Handle.BillboardGui:Destroy()
  189. end
  190. end
  191. end
  192. end
  193. if EnemyESP == true then
  194. if er.Players:FindFirstChild("Enemy") then
  195. if not er:WaitForChild("Players").Enemy:FindFirstChild("Highlight") then
  196. local Highlight = Instance.new("Highlight")
  197. local Billboard = Instance.new("BillboardGui")
  198. local Name = Instance.new("TextLabel")
  199. local NameStroke = Instance.new("UIStroke")
  200.  
  201. Highlight.FillColor = Color3.fromRGB(255, 0, 0)
  202. Highlight.OutlineTransparency = 0.9
  203. Highlight.Parent = er.Players.Enemy
  204.  
  205. Billboard.Parent = er.Players.Enemy.HumanoidRootPart
  206. Billboard.ExtentsOffset = Vector3.new(0, 2, 0)
  207. Billboard.Size = UDim2.new(0, 70, 0, 20)
  208. Billboard.AlwaysOnTop = true
  209. Billboard.LightInfluence = 0
  210.  
  211. Name.Parent = Billboard
  212. Name.BackgroundTransparency = 1
  213. Name.TextScaled = true
  214. Name.Text = er.Players.Enemy.Name
  215. Name.TextColor3 = Color3.fromRGB(255, 0, 0)
  216. Name.Font = Enum.Font.Arial
  217. Name.Size = UDim2.new(1, 0, 1, 0)
  218.  
  219. NameStroke.Parent = Name
  220. NameStroke.Thickness = 3
  221. end
  222. end
  223.  
  224. else
  225.  
  226. if er:WaitForChild("Players"):FindFirstChild("Enemy") then
  227. if er.Players.Enemy:FindFirstChild("Highlight") then
  228. er.Players.Enemy.Highlight:Destroy()
  229. end
  230. end
  231. end
  232. if PlayerESP == true then
  233. for i, player in pairs(er:WaitForChild("Players"):GetChildren()) do
  234. if not player:FindFirstChild("Highlight") then
  235. local Highlight = Instance.new("Highlight")
  236. local Billboard = Instance.new("BillboardGui")
  237. local Name = Instance.new("TextLabel")
  238. local NameStroke = Instance.new("UIStroke")
  239.  
  240. Highlight.FillColor = Color3.fromRGB(0, 170, 0)
  241. Highlight.OutlineTransparency = 0.9
  242. Highlight.Parent = player
  243. Billboard.Parent = player.HumanoidRootPart
  244. Billboard.ExtentsOffset = Vector3.new(0, 2, 0)
  245. Billboard.Size = UDim2.new(0, 70, 0, 20)
  246. Billboard.AlwaysOnTop = true
  247. Billboard.LightInfluence = 0
  248.  
  249. Name.Parent = Billboard
  250. Name.BackgroundTransparency = 1
  251. Name.TextScaled = true
  252. Name.Text = player.Name
  253. Name.TextColor3 = Color3.fromRGB(0, 170, 0)
  254. Name.Font = Enum.Font.Arial
  255. Name.Size = UDim2.new(1, 0, 1, 0)
  256.  
  257. NameStroke.Parent = Name
  258. NameStroke.Thickness = 3
  259. end
  260. end
  261.  
  262. else
  263.  
  264. for i, player in pairs(er:WaitForChild("Players"):GetChildren()) do
  265. if player:FindFirstChild("Highlight") then
  266. if not player.Name == "Enemy" then
  267. player.Highlight:Destroy()
  268. end
  269. end
  270. end
  271.  
  272. end
  273. end
  274. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement