rayiahmadjuhandi

MatrixEffectsLoader

Oct 15th, 2025
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.94 KB | Gaming | 0 0
  1. -- Script Lua FE GUI Draggable: "MatrixEffectsLoader" - Matrix Style Effects GUI (Anti-Error Universal)
  2. -- Buatan heckes15 - Persistent, Anti-Crash, Handle Respawn & Nil Checks
  3. -- Fitur: GUI bisa digeser, tombol X untuk tutup, tombol untuk apply Partikel (green code rain), Decal (matrix code on head), Skybox (green matrix), Musik (Matrix theme) - Visible locally, FE compatible.
  4.  
  5. local Players = game:GetService("Players")
  6. local TweenService = game:GetService("TweenService")
  7. local Lighting = game:GetService("Lighting")
  8. local SoundService = game:GetService("SoundService")
  9.  
  10. local player = Players.LocalPlayer
  11. local playerGui = player:WaitForChild("PlayerGui")
  12. local character = player.Character or player.CharacterAdded:Wait()
  13. local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  14. local head = character:WaitForChild("Head")
  15.  
  16. -- ID Assets (dari sumber Roblox 2025, Matrix theme)
  17. local particleTextureId = "rbxassetid://241650934" -- Green sparkle/code-like particle
  18. local decalTextureId = "rbxassetid://107349278" -- Matrix code decal (example green code)
  19. local skyboxIds = {
  20. SkyboxBk = "rbxassetid://1012891", -- Green-ish starry for matrix feel
  21. SkyboxDn = "rbxassetid://1012890",
  22. SkyboxFt = "rbxassetid://1012892",
  23. SkyboxLf = "rbxassetid://1012893",
  24. SkyboxRt = "rbxassetid://1012894",
  25. SkyboxUp = "rbxassetid://1012895"
  26. }
  27. local musicId = "rbxassetid://1842940633" -- Matrix theme music
  28.  
  29. -- Variables untuk toggle
  30. local particleEmitter = nil
  31. local decal = nil
  32. local sky = nil
  33. local musicSound = nil
  34.  
  35. -- Fungsi apply Partikel (green code rain on HRP)
  36. local function applyParticle(toggle)
  37. if toggle and not particleEmitter then
  38. particleEmitter = Instance.new("ParticleEmitter")
  39. particleEmitter.Texture = particleTextureId
  40. particleEmitter.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0))
  41. particleEmitter.Size = NumberSequence.new(0.5)
  42. particleEmitter.Lifetime = NumberRange.new(2, 5)
  43. particleEmitter.Rate = 50
  44. particleEmitter.Speed = NumberRange.new(5, 10)
  45. particleEmitter.SpreadAngle = Vector2.new(360, 360)
  46. particleEmitter.Parent = humanoidRootPart
  47. print("Matrix green code particles applied! 🌧️")
  48. elseif not toggle and particleEmitter then
  49. particleEmitter:Destroy()
  50. particleEmitter = nil
  51. print("Particles removed.")
  52. end
  53. end
  54.  
  55. -- Fungsi apply Decal (matrix code on head)
  56. local function applyDecal(toggle)
  57. if toggle and not decal then
  58. decal = Instance.new("Decal")
  59. decal.Texture = decalTextureId
  60. decal.Face = Enum.NormalId.Front
  61. decal.Parent = head
  62. print("Matrix code decal applied to head! 💻")
  63. elseif not toggle and decal then
  64. decal:Destroy()
  65. decal = nil
  66. print("Decal removed.")
  67. end
  68. end
  69.  
  70. -- Fungsi apply Skybox (green matrix theme)
  71. local function applySkybox(toggle)
  72. if toggle and not sky then
  73. sky = Instance.new("Sky")
  74. for face, id in pairs(skyboxIds) do
  75. sky[face] = id
  76. end
  77. sky.SunAngularSize = 10
  78. sky.Parent = Lighting
  79. Lighting.Brightness = 1
  80. Lighting.Ambient = Color3.fromRGB(0, 50, 0) -- Green tint for matrix
  81. print("Matrix green skybox applied! ☁️")
  82. elseif not toggle and sky then
  83. sky:Destroy()
  84. sky = nil
  85. Lighting.Brightness = 2
  86. Lighting.Ambient = Color3.fromRGB(128, 128, 128)
  87. print("Skybox removed.")
  88. end
  89. end
  90.  
  91. -- Fungsi apply Musik (Matrix theme, loop)
  92. local function applyMusic(toggle)
  93. if toggle and not musicSound then
  94. musicSound = Instance.new("Sound")
  95. musicSound.SoundId = musicId
  96. musicSound.Volume = 0.5
  97. musicSound.Looped = true
  98. musicSound.Parent = workspace
  99. musicSound:Play()
  100. print("Matrix music playing! 🎵")
  101. elseif not toggle and musicSound then
  102. musicSound:Stop()
  103. musicSound:Destroy()
  104. musicSound = nil
  105. print("Music stopped.")
  106. end
  107. end
  108.  
  109. -- Fungsi buat GUI (tombol toggle untuk masing-masing efek)
  110. local function createGUI()
  111. local success = pcall(function()
  112. local oldGui = playerGui:FindFirstChild("MatrixEffectsGUI")
  113. if oldGui then oldGui:Destroy() end
  114.  
  115. local screenGui = Instance.new("ScreenGui")
  116. screenGui.Name = "MatrixEffectsGUI"
  117. screenGui.Parent = playerGui
  118. screenGui.ResetOnSpawn = false
  119.  
  120. local mainFrame = Instance.new("Frame")
  121. mainFrame.Size = UDim2.new(0, 300, 0, 300) -- Lebih tinggi untuk 4 tombol
  122. mainFrame.Position = UDim2.new(0.5, -150, 0.5, -150)
  123. mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  124. mainFrame.BorderSizePixel = 0
  125. mainFrame.Active = true
  126. mainFrame.Draggable = true
  127. mainFrame.Parent = screenGui
  128.  
  129. local corner = Instance.new("UICorner")
  130. corner.CornerRadius = UDim.new(0, 10)
  131. corner.Parent = mainFrame
  132.  
  133. local titleBar = Instance.new("Frame")
  134. titleBar.Size = UDim2.new(1, 0, 0, 30)
  135. titleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  136. titleBar.Parent = mainFrame
  137.  
  138. local titleCorner = Instance.new("UICorner")
  139. titleCorner.CornerRadius = UDim.new(0, 10)
  140. titleCorner.Parent = titleBar
  141.  
  142. local title = Instance.new("TextLabel")
  143. title.Size = UDim2.new(1, -30, 1, 0)
  144. title.Position = UDim2.new(0, 5, 0, 0)
  145. title.BackgroundTransparency = 1
  146. title.Text = "🌐 Matrix Effects GUI 🌐"
  147. title.TextColor3 = Color3.fromRGB(0, 255, 0)
  148. title.TextScaled = true
  149. title.Font = Enum.Font.SourceSansBold
  150. title.Parent = titleBar
  151.  
  152. local closeButton = Instance.new("TextButton")
  153. closeButton.Size = UDim2.new(0, 25, 0, 25)
  154. closeButton.Position = UDim2.new(1, -30, 0, 2.5)
  155. closeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
  156. closeButton.Text = "X"
  157. closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  158. closeButton.TextScaled = true
  159. closeButton.Font = Enum.Font.SourceSansBold
  160. closeButton.Parent = titleBar
  161.  
  162. local closeCorner = Instance.new("UICorner")
  163. closeCorner.CornerRadius = UDim.new(0, 5)
  164. closeCorner.Parent = closeButton
  165.  
  166. closeButton.MouseEnter:Connect(function()
  167. TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
  168. end)
  169. closeButton.MouseLeave:Connect(function()
  170. TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 50, 50)}):Play()
  171. end)
  172.  
  173. -- Tombol Partikel
  174. local particleButton = Instance.new("TextButton")
  175. particleButton.Size = UDim2.new(1, -20, 0, 40)
  176. particleButton.Position = UDim2.new(0, 10, 0, 50)
  177. particleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  178. particleButton.Text = "🌧️ Toggle Green Code Particles"
  179. particleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  180. particleButton.TextScaled = true
  181. particleButton.Font = Enum.Font.SourceSans
  182. particleButton.Parent = mainFrame
  183.  
  184. local particleCorner = Instance.new("UICorner")
  185. particleCorner.CornerRadius = UDim.new(0, 5)
  186. particleCorner.Parent = particleButton
  187.  
  188. local particleActive = false
  189. particleButton.MouseButton1Click:Connect(function()
  190. particleActive = not particleActive
  191. applyParticle(particleActive)
  192. particleButton.Text = particleActive and "✅ Particles ON" or "❌ Particles OFF"
  193. particleButton.BackgroundColor3 = particleActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(0, 170, 255)
  194. end)
  195.  
  196. -- Tombol Decal
  197. local decalButton = Instance.new("TextButton")
  198. decalButton.Size = UDim2.new(1, -20, 0, 40)
  199. decalButton.Position = UDim2.new(0, 10, 0, 100)
  200. decalButton.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
  201. decalButton.Text = "💻 Toggle Matrix Code Decal"
  202. decalButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  203. decalButton.TextScaled = true
  204. decalButton.Font = Enum.Font.SourceSans
  205. decalButton.Parent = mainFrame
  206.  
  207. local decalCorner = Instance.new("UICorner")
  208. decalCorner.CornerRadius = UDim.new(0, 5)
  209. decalCorner.Parent = decalButton
  210.  
  211. local decalActive = false
  212. decalButton.MouseButton1Click:Connect(function()
  213. decalActive = not decalActive
  214. applyDecal(decalActive)
  215. decalButton.Text = decalActive and "✅ Decal ON" or "❌ Decal OFF"
  216. decalButton.BackgroundColor3 = decalActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 170, 0)
  217. end)
  218.  
  219. -- Tombol Skybox
  220. local skyboxButton = Instance.new("TextButton")
  221. skyboxButton.Size = UDim2.new(1, -20, 0, 40)
  222. skyboxButton.Position = UDim2.new(0, 10, 0, 150)
  223. skyboxButton.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
  224. skyboxButton.Text = "☁️ Toggle Green Matrix Skybox"
  225. skyboxButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  226. skyboxButton.TextScaled = true
  227. skyboxButton.Font = Enum.Font.SourceSans
  228. skyboxButton.Parent = mainFrame
  229.  
  230. local skyboxCorner = Instance.new("UICorner")
  231. skyboxCorner.CornerRadius = UDim.new(0, 5)
  232. skyboxCorner.Parent = skyboxButton
  233.  
  234. local skyboxActive = false
  235. skyboxButton.MouseButton1Click:Connect(function()
  236. skyboxActive = not skyboxActive
  237. applySkybox(skyboxActive)
  238. skyboxButton.Text = skyboxActive and "✅ Skybox ON" or "❌ Skybox OFF"
  239. skyboxButton.BackgroundColor3 = skyboxActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(170, 0, 255)
  240. end)
  241.  
  242. -- Tombol Musik
  243. local musicButton = Instance.new("TextButton")
  244. musicButton.Size = UDim2.new(1, -20, 0, 40)
  245. musicButton.Position = UDim2.new(0, 10, 0, 200)
  246. musicButton.BackgroundColor3 = Color3.fromRGB(255, 0, 170)
  247. musicButton.Text = "🎵 Toggle Matrix Music"
  248. musicButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  249. musicButton.TextScaled = true
  250. musicButton.Font = Enum.Font.SourceSans
  251. musicButton.Parent = mainFrame
  252.  
  253. local musicCorner = Instance.new("UICorner")
  254. musicCorner.CornerRadius = UDim.new(0, 5)
  255. musicCorner.Parent = musicButton
  256.  
  257. local musicActive = false
  258. musicButton.MouseButton1Click:Connect(function()
  259. musicActive = not musicActive
  260. applyMusic(musicActive)
  261. musicButton.Text = musicActive and "✅ Music ON" or "❌ Music OFF"
  262. musicButton.BackgroundColor3 = musicActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 170)
  263. end)
  264.  
  265. local infoLabel = Instance.new("TextLabel")
  266. infoLabel.Size = UDim2.new(1, -20, 0, 20)
  267. infoLabel.Position = UDim2.new(0, 10, 1, -25)
  268. infoLabel.BackgroundTransparency = 1
  269. infoLabel.Text = "Matrix effects - Local FE, toggle on/off. Visible locally! 🌐"
  270. infoLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
  271. infoLabel.TextScaled = true
  272. infoLabel.Font = Enum.Font.SourceSans
  273. infoLabel.TextWrapped = true
  274. infoLabel.Parent = mainFrame
  275.  
  276. local creditLabel = Instance.new("TextLabel")
  277. creditLabel.Size = UDim2.new(1, -20, 0, 15)
  278. creditLabel.Position = UDim2.new(0, 10, 1, -5)
  279. creditLabel.BackgroundTransparency = 1
  280. creditLabel.Text = "Buatan heckes15 🔥 (Oct 2025)"
  281. creditLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
  282. creditLabel.TextScaled = true
  283. creditLabel.Font = Enum.Font.SourceSansBold
  284. creditLabel.Parent = mainFrame
  285.  
  286. closeButton.MouseButton1Click:Connect(function()
  287. local tweenOut = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, 0, 0, 0)})
  288. tweenOut:Play()
  289. tweenOut.Completed:Connect(function()
  290. screenGui:Destroy()
  291. end)
  292. end)
  293.  
  294. mainFrame.Size = UDim2.new(0, 300, 0, 300)
  295. end)
  296.  
  297. if success then
  298. print("Matrix Effects GUI loaded! Toggle effects for Matrix style. 🌐")
  299. else
  300. warn("Gagal load GUI.")
  301. end
  302. end
  303.  
  304. -- Update character on respawn
  305. local function onCharacterAdded(newChar)
  306. character = newChar
  307. humanoidRootPart = character:WaitForChild("HumanoidRootPart")
  308. head = character:WaitForChild("Head")
  309. -- Re-apply if active
  310. if particleActive then applyParticle(true) end
  311. if decalActive then applyDecal(true) end
  312. end
  313.  
  314. player.CharacterAdded:Connect(onCharacterAdded)
  315.  
  316. -- Jalankan
  317. createGUI()
  318.  
  319. -- Persistent respawn
  320. player.CharacterAdded:Connect(function()
  321. wait(1)
  322. createGUI()
  323. end)
Advertisement
Add Comment
Please, Sign In to add comment