rayiahmadjuhandi

Untitled

Oct 15th, 2025
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.69 KB | None | 0 0
  1. -- Script Lua FE GUI Draggable: "GlobalMatrixMapDecal" - Matrix Decal on Entire Map (Visible to All)
  2. -- Buatan heckes15 - Persistent, Anti-Crash, Handle Respawn & Nil Checks
  3. -- Fitur: GUI bisa digeser, tombol X untuk tutup, tombol toggle untuk spam Matrix decal di SELURUH MAP (semua BasePart di workspace).
  4. -- Visible ke SEMUA player (global spam). WARNING: Bisa lag server parah! Gunakan bijak. Keyless, FE.
  5.  
  6. local Players = game:GetService("Players")
  7. local TweenService = game:GetService("TweenService")
  8. local RunService = game:GetService("RunService")
  9.  
  10. local player = Players.LocalPlayer
  11. local playerGui = player:WaitForChild("PlayerGui")
  12.  
  13. -- ID Decal Matrix Code (green code pattern, valid 2025)
  14. local decalTextureId = "rbxassetid://6031097222" -- Green code-like texture for map
  15.  
  16. -- Variables
  17. local decalConnections = {}
  18. local spamRate = 0.1 -- Detik antar spam (kurangi buat lebih cepat, tapi laggy)
  19.  
  20. -- Fungsi spam Decal ke seluruh map (semua BasePart di workspace)
  21. local function toggleMapDecals(toggle)
  22. if toggle then
  23. local conn = RunService.Heartbeat:Connect(function()
  24. for _, obj in ipairs(workspace:GetDescendants()) do
  25. if obj:IsA("BasePart") and obj.Name ~= "HumanoidRootPart" and not obj:FindFirstChild("MatrixMapDecal") then -- Skip HRP to avoid errors
  26. pcall(function()
  27. local decal = Instance.new("Decal")
  28. decal.Name = "MatrixMapDecal"
  29. decal.Texture = decalTextureId
  30. decal.Face = Enum.NormalId.Top -- Top face for ground/walls
  31. decal.Transparency = 0.3 -- Semi-transparent biar keliatan map asli
  32. decal.Parent = obj
  33. end)
  34. end
  35. end
  36. end)
  37. decalConnections[#decalConnections + 1] = conn
  38. print("Global Matrix decals spamming di SELURUH MAP! Visible to all πŸ’»πŸ—ΊοΈ")
  39. else
  40. for _, conn in ipairs(decalConnections) do
  41. conn:Disconnect()
  42. end
  43. decalConnections = {}
  44. -- Clean up all decals
  45. for _, obj in ipairs(workspace:GetDescendants()) do
  46. if obj:IsA("Decal") and obj.Name == "MatrixMapDecal" then
  47. obj:Destroy()
  48. end
  49. end
  50. print("Map decals removed globally.")
  51. end
  52. end
  53.  
  54. -- Fungsi buat GUI (tombol toggle utama untuk map decal)
  55. local function createGUI()
  56. local success = pcall(function()
  57. local oldGui = playerGui:FindFirstChild("MapDecalGUI")
  58. if oldGui then oldGui:Destroy() end
  59.  
  60. local screenGui = Instance.new("ScreenGui")
  61. screenGui.Name = "MapDecalGUI"
  62. screenGui.Parent = playerGui
  63. screenGui.ResetOnSpawn = false
  64.  
  65. local mainFrame = Instance.new("Frame")
  66. mainFrame.Size = UDim2.new(0, 300, 0, 150)
  67. mainFrame.Position = UDim2.new(0.5, -150, 0.5, -75)
  68. mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  69. mainFrame.BorderSizePixel = 0
  70. mainFrame.Active = true
  71. mainFrame.Draggable = true
  72. mainFrame.Parent = screenGui
  73.  
  74. local corner = Instance.new("UICorner")
  75. corner.CornerRadius = UDim.new(0, 10)
  76. corner.Parent = mainFrame
  77.  
  78. local titleBar = Instance.new("Frame")
  79. titleBar.Size = UDim2.new(1, 0, 0, 30)
  80. titleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  81. titleBar.Parent = mainFrame
  82.  
  83. local titleCorner = Instance.new("UICorner")
  84. titleCorner.CornerRadius = UDim.new(0, 10)
  85. titleCorner.Parent = titleBar
  86.  
  87. local title = Instance.new("TextLabel")
  88. title.Size = UDim2.new(1, -30, 1, 0)
  89. title.Position = UDim2.new(0, 5, 0, 0)
  90. title.BackgroundTransparency = 1
  91. title.Text = "πŸ—ΊοΈ Matrix Decal on Entire Map πŸ—ΊοΈ"
  92. title.TextColor3 = Color3.fromRGB(0, 255, 0)
  93. title.TextScaled = true
  94. title.Font = Enum.Font.SourceSansBold
  95. title.Parent = titleBar
  96.  
  97. local closeButton = Instance.new("TextButton")
  98. closeButton.Size = UDim2.new(0, 25, 0, 25)
  99. closeButton.Position = UDim2.new(1, -30, 0, 2.5)
  100. closeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
  101. closeButton.Text = "X"
  102. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  103. closeButton.TextScaled = true
  104. closeButton.Font = Enum.Font.SourceSansBold
  105. closeButton.Parent = titleBar
  106.  
  107. local closeCorner = Instance.new("UICorner")
  108. closeCorner.CornerRadius = UDim.new(0, 5)
  109. closeCorner.Parent = closeButton
  110.  
  111. closeButton.MouseEnter:Connect(function()
  112. TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
  113. end)
  114. closeButton.MouseLeave:Connect(function()
  115. TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 50, 50)}):Play()
  116. end)
  117.  
  118. -- Tombol Toggle Map Decal
  119. local mapDecalButton = Instance.new("TextButton")
  120. mapDecalButton.Size = UDim2.new(1, -20, 0, 50)
  121. mapDecalButton.Position = UDim2.new(0, 10, 0, 50)
  122. mapDecalButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  123. mapDecalButton.Text = "πŸ’» Toggle Matrix Decal on Entire Map"
  124. mapDecalButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  125. mapDecalButton.TextScaled = true
  126. mapDecalButton.Font = Enum.Font.SourceSansBold
  127. mapDecalButton.Parent = mainFrame
  128.  
  129. local mapDecalCorner = Instance.new("UICorner")
  130. mapDecalCorner.CornerRadius = UDim.new(0, 5)
  131. mapDecalCorner.Parent = mapDecalButton
  132.  
  133. mapDecalButton.MouseEnter:Connect(function()
  134. TweenService:Create(mapDecalButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 150, 200)}):Play()
  135. end)
  136. mapDecalButton.MouseLeave:Connect(function()
  137. TweenService:Create(mapDecalButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(0, 170, 255)}):Play()
  138. end)
  139.  
  140. local mapDecalActive = false
  141. mapDecalButton.MouseButton1Click:Connect(function()
  142. mapDecalActive = not mapDecalActive
  143. toggleMapDecals(mapDecalActive)
  144. mapDecalButton.Text = mapDecalActive and "βœ… Map Decal ON (Spamming!)" or "❌ Map Decal OFF"
  145. mapDecalButton.BackgroundColor3 = mapDecalActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(0, 170, 255)
  146. end)
  147.  
  148. local infoLabel = Instance.new("TextLabel")
  149. infoLabel.Size = UDim2.new(1, -20, 0, 30)
  150. infoLabel.Position = UDim2.new(0, 10, 0, 110)
  151. infoLabel.BackgroundTransparency = 1
  152. infoLabel.Text = "Spam green code decal di seluruh map!\n(Visible to all, lag warning - Top face, semi-transparent)"
  153. infoLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  154. infoLabel.TextScaled = true
  155. infoLabel.Font = Enum.Font.SourceSans
  156. infoLabel.TextWrapped = true
  157. infoLabel.Parent = mainFrame
  158.  
  159. local creditLabel = Instance.new("TextLabel")
  160. creditLabel.Size = UDim2.new(1, -20, 0, 15)
  161. creditLabel.Position = UDim2.new(0, 10, 1, -15)
  162. creditLabel.BackgroundTransparency = 1
  163. creditLabel.Text = "Buatan heckes15 πŸ”₯ (Map Decal Oct 2025)"
  164. creditLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  165. creditLabel.TextScaled = true
  166. creditLabel.Font = Enum.Font.SourceSansBold
  167. creditLabel.Parent = mainFrame
  168.  
  169. closeButton.MouseButton1Click:Connect(function()
  170. toggleMapDecals(false)
  171. local tweenOut = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, 0, 0, 0)})
  172. tweenOut:Play()
  173. tweenOut.Completed:Connect(function()
  174. screenGui:Destroy()
  175. end)
  176. end)
  177.  
  178. mainFrame.Size = UDim2.new(0, 300, 0, 150)
  179. end)
  180.  
  181. if success then
  182. print("Matrix Map Decal GUI loaded! Spam decal di seluruh map. πŸ—ΊοΈπŸ’»")
  183. else
  184. warn("Gagal load GUI.")
  185. end
  186. end
  187.  
  188. -- Handle workspace changes (new parts)
  189. workspace.DescendantAdded:Connect(function(desc)
  190. if desc:IsA("BasePart") and mapDecalActive then
  191. wait(spamRate)
  192. pcall(function()
  193. local decal = Instance.new("Decal")
  194. decal.Name = "MatrixMapDecal"
  195. decal.Texture = decalTextureId
  196. decal.Face = Enum.NormalId.Top
  197. decal.Transparency = 0.3
  198. decal.Parent = desc
  199. end)
  200. end
  201. end)
  202.  
  203. -- Jalankan
  204. createGUI()
  205.  
  206. -- Persistent
  207. player.CharacterAdded:Connect(function()
  208. wait(1)
  209. createGUI()
  210. end)
Advertisement
Add Comment
Please, Sign In to add comment