Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Script Lua FE GUI Draggable: "MatrixEffectsLoader" - Matrix Style Effects GUI (Anti-Error Universal)
- -- Buatan heckes15 - Persistent, Anti-Crash, Handle Respawn & Nil Checks
- -- 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.
- local Players = game:GetService("Players")
- local TweenService = game:GetService("TweenService")
- local Lighting = game:GetService("Lighting")
- local SoundService = game:GetService("SoundService")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- local head = character:WaitForChild("Head")
- -- ID Assets (dari sumber Roblox 2025, Matrix theme)
- local particleTextureId = "rbxassetid://241650934" -- Green sparkle/code-like particle
- local decalTextureId = "rbxassetid://107349278" -- Matrix code decal (example green code)
- local skyboxIds = {
- SkyboxBk = "rbxassetid://1012891", -- Green-ish starry for matrix feel
- SkyboxDn = "rbxassetid://1012890",
- SkyboxFt = "rbxassetid://1012892",
- SkyboxLf = "rbxassetid://1012893",
- SkyboxRt = "rbxassetid://1012894",
- SkyboxUp = "rbxassetid://1012895"
- }
- local musicId = "rbxassetid://1842940633" -- Matrix theme music
- -- Variables untuk toggle
- local particleEmitter = nil
- local decal = nil
- local sky = nil
- local musicSound = nil
- -- Fungsi apply Partikel (green code rain on HRP)
- local function applyParticle(toggle)
- if toggle and not particleEmitter then
- particleEmitter = Instance.new("ParticleEmitter")
- particleEmitter.Texture = particleTextureId
- particleEmitter.Color = ColorSequence.new(Color3.fromRGB(0, 255, 0))
- particleEmitter.Size = NumberSequence.new(0.5)
- particleEmitter.Lifetime = NumberRange.new(2, 5)
- particleEmitter.Rate = 50
- particleEmitter.Speed = NumberRange.new(5, 10)
- particleEmitter.SpreadAngle = Vector2.new(360, 360)
- particleEmitter.Parent = humanoidRootPart
- print("Matrix green code particles applied! 🌧️")
- elseif not toggle and particleEmitter then
- particleEmitter:Destroy()
- particleEmitter = nil
- print("Particles removed.")
- end
- end
- -- Fungsi apply Decal (matrix code on head)
- local function applyDecal(toggle)
- if toggle and not decal then
- decal = Instance.new("Decal")
- decal.Texture = decalTextureId
- decal.Face = Enum.NormalId.Front
- decal.Parent = head
- print("Matrix code decal applied to head! 💻")
- elseif not toggle and decal then
- decal:Destroy()
- decal = nil
- print("Decal removed.")
- end
- end
- -- Fungsi apply Skybox (green matrix theme)
- local function applySkybox(toggle)
- if toggle and not sky then
- sky = Instance.new("Sky")
- for face, id in pairs(skyboxIds) do
- sky[face] = id
- end
- sky.SunAngularSize = 10
- sky.Parent = Lighting
- Lighting.Brightness = 1
- Lighting.Ambient = Color3.fromRGB(0, 50, 0) -- Green tint for matrix
- print("Matrix green skybox applied! ☁️")
- elseif not toggle and sky then
- sky:Destroy()
- sky = nil
- Lighting.Brightness = 2
- Lighting.Ambient = Color3.fromRGB(128, 128, 128)
- print("Skybox removed.")
- end
- end
- -- Fungsi apply Musik (Matrix theme, loop)
- local function applyMusic(toggle)
- if toggle and not musicSound then
- musicSound = Instance.new("Sound")
- musicSound.SoundId = musicId
- musicSound.Volume = 0.5
- musicSound.Looped = true
- musicSound.Parent = workspace
- musicSound:Play()
- print("Matrix music playing! 🎵")
- elseif not toggle and musicSound then
- musicSound:Stop()
- musicSound:Destroy()
- musicSound = nil
- print("Music stopped.")
- end
- end
- -- Fungsi buat GUI (tombol toggle untuk masing-masing efek)
- local function createGUI()
- local success = pcall(function()
- local oldGui = playerGui:FindFirstChild("MatrixEffectsGUI")
- if oldGui then oldGui:Destroy() end
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "MatrixEffectsGUI"
- screenGui.Parent = playerGui
- screenGui.ResetOnSpawn = false
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 300, 0, 300) -- Lebih tinggi untuk 4 tombol
- mainFrame.Position = UDim2.new(0.5, -150, 0.5, -150)
- mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- mainFrame.BorderSizePixel = 0
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Parent = screenGui
- local corner = Instance.new("UICorner")
- corner.CornerRadius = UDim.new(0, 10)
- corner.Parent = mainFrame
- local titleBar = Instance.new("Frame")
- titleBar.Size = UDim2.new(1, 0, 0, 30)
- titleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- titleBar.Parent = mainFrame
- local titleCorner = Instance.new("UICorner")
- titleCorner.CornerRadius = UDim.new(0, 10)
- titleCorner.Parent = titleBar
- local title = Instance.new("TextLabel")
- title.Size = UDim2.new(1, -30, 1, 0)
- title.Position = UDim2.new(0, 5, 0, 0)
- title.BackgroundTransparency = 1
- title.Text = "🌐 Matrix Effects GUI 🌐"
- title.TextColor3 = Color3.fromRGB(0, 255, 0)
- title.TextScaled = true
- title.Font = Enum.Font.SourceSansBold
- title.Parent = titleBar
- local closeButton = Instance.new("TextButton")
- closeButton.Size = UDim2.new(0, 25, 0, 25)
- closeButton.Position = UDim2.new(1, -30, 0, 2.5)
- closeButton.BackgroundColor3 = Color3.fromRGB(255, 50, 50)
- closeButton.Text = "X"
- closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- closeButton.TextScaled = true
- closeButton.Font = Enum.Font.SourceSansBold
- closeButton.Parent = titleBar
- local closeCorner = Instance.new("UICorner")
- closeCorner.CornerRadius = UDim.new(0, 5)
- closeCorner.Parent = closeButton
- closeButton.MouseEnter:Connect(function()
- TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 0, 0)}):Play()
- end)
- closeButton.MouseLeave:Connect(function()
- TweenService:Create(closeButton, TweenInfo.new(0.2), {BackgroundColor3 = Color3.fromRGB(255, 50, 50)}):Play()
- end)
- -- Tombol Partikel
- local particleButton = Instance.new("TextButton")
- particleButton.Size = UDim2.new(1, -20, 0, 40)
- particleButton.Position = UDim2.new(0, 10, 0, 50)
- particleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
- particleButton.Text = "🌧️ Toggle Green Code Particles"
- particleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- particleButton.TextScaled = true
- particleButton.Font = Enum.Font.SourceSans
- particleButton.Parent = mainFrame
- local particleCorner = Instance.new("UICorner")
- particleCorner.CornerRadius = UDim.new(0, 5)
- particleCorner.Parent = particleButton
- local particleActive = false
- particleButton.MouseButton1Click:Connect(function()
- particleActive = not particleActive
- applyParticle(particleActive)
- particleButton.Text = particleActive and "✅ Particles ON" or "❌ Particles OFF"
- particleButton.BackgroundColor3 = particleActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(0, 170, 255)
- end)
- -- Tombol Decal
- local decalButton = Instance.new("TextButton")
- decalButton.Size = UDim2.new(1, -20, 0, 40)
- decalButton.Position = UDim2.new(0, 10, 0, 100)
- decalButton.BackgroundColor3 = Color3.fromRGB(255, 170, 0)
- decalButton.Text = "💻 Toggle Matrix Code Decal"
- decalButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- decalButton.TextScaled = true
- decalButton.Font = Enum.Font.SourceSans
- decalButton.Parent = mainFrame
- local decalCorner = Instance.new("UICorner")
- decalCorner.CornerRadius = UDim.new(0, 5)
- decalCorner.Parent = decalButton
- local decalActive = false
- decalButton.MouseButton1Click:Connect(function()
- decalActive = not decalActive
- applyDecal(decalActive)
- decalButton.Text = decalActive and "✅ Decal ON" or "❌ Decal OFF"
- decalButton.BackgroundColor3 = decalActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 170, 0)
- end)
- -- Tombol Skybox
- local skyboxButton = Instance.new("TextButton")
- skyboxButton.Size = UDim2.new(1, -20, 0, 40)
- skyboxButton.Position = UDim2.new(0, 10, 0, 150)
- skyboxButton.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
- skyboxButton.Text = "☁️ Toggle Green Matrix Skybox"
- skyboxButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- skyboxButton.TextScaled = true
- skyboxButton.Font = Enum.Font.SourceSans
- skyboxButton.Parent = mainFrame
- local skyboxCorner = Instance.new("UICorner")
- skyboxCorner.CornerRadius = UDim.new(0, 5)
- skyboxCorner.Parent = skyboxButton
- local skyboxActive = false
- skyboxButton.MouseButton1Click:Connect(function()
- skyboxActive = not skyboxActive
- applySkybox(skyboxActive)
- skyboxButton.Text = skyboxActive and "✅ Skybox ON" or "❌ Skybox OFF"
- skyboxButton.BackgroundColor3 = skyboxActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(170, 0, 255)
- end)
- -- Tombol Musik
- local musicButton = Instance.new("TextButton")
- musicButton.Size = UDim2.new(1, -20, 0, 40)
- musicButton.Position = UDim2.new(0, 10, 0, 200)
- musicButton.BackgroundColor3 = Color3.fromRGB(255, 0, 170)
- musicButton.Text = "🎵 Toggle Matrix Music"
- musicButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- musicButton.TextScaled = true
- musicButton.Font = Enum.Font.SourceSans
- musicButton.Parent = mainFrame
- local musicCorner = Instance.new("UICorner")
- musicCorner.CornerRadius = UDim.new(0, 5)
- musicCorner.Parent = musicButton
- local musicActive = false
- musicButton.MouseButton1Click:Connect(function()
- musicActive = not musicActive
- applyMusic(musicActive)
- musicButton.Text = musicActive and "✅ Music ON" or "❌ Music OFF"
- musicButton.BackgroundColor3 = musicActive and Color3.fromRGB(0, 255, 0) or Color3.fromRGB(255, 0, 170)
- end)
- local infoLabel = Instance.new("TextLabel")
- infoLabel.Size = UDim2.new(1, -20, 0, 20)
- infoLabel.Position = UDim2.new(0, 10, 1, -25)
- infoLabel.BackgroundTransparency = 1
- infoLabel.Text = "Matrix effects - Local FE, toggle on/off. Visible locally! 🌐"
- infoLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- infoLabel.TextScaled = true
- infoLabel.Font = Enum.Font.SourceSans
- infoLabel.TextWrapped = true
- infoLabel.Parent = mainFrame
- local creditLabel = Instance.new("TextLabel")
- creditLabel.Size = UDim2.new(1, -20, 0, 15)
- creditLabel.Position = UDim2.new(0, 10, 1, -5)
- creditLabel.BackgroundTransparency = 1
- creditLabel.Text = "Buatan heckes15 🔥 (Oct 2025)"
- creditLabel.TextColor3 = Color3.fromRGB(0, 255, 0)
- creditLabel.TextScaled = true
- creditLabel.Font = Enum.Font.SourceSansBold
- creditLabel.Parent = mainFrame
- closeButton.MouseButton1Click:Connect(function()
- local tweenOut = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Back), {Size = UDim2.new(0, 0, 0, 0)})
- tweenOut:Play()
- tweenOut.Completed:Connect(function()
- screenGui:Destroy()
- end)
- end)
- mainFrame.Size = UDim2.new(0, 300, 0, 300)
- end)
- if success then
- print("Matrix Effects GUI loaded! Toggle effects for Matrix style. 🌐")
- else
- warn("Gagal load GUI.")
- end
- end
- -- Update character on respawn
- local function onCharacterAdded(newChar)
- character = newChar
- humanoidRootPart = character:WaitForChild("HumanoidRootPart")
- head = character:WaitForChild("Head")
- -- Re-apply if active
- if particleActive then applyParticle(true) end
- if decalActive then applyDecal(true) end
- end
- player.CharacterAdded:Connect(onCharacterAdded)
- -- Jalankan
- createGUI()
- -- Persistent respawn
- player.CharacterAdded:Connect(function()
- wait(1)
- createGUI()
- end)
Advertisement
Add Comment
Please, Sign In to add comment