-- Made by scriptdude999 -- LocalScript: Put in StarterPlayer > StarterPlayerScripts --// Services local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") --// RemoteEvent local Train = ReplicatedStorage:WaitForChild("Event"):WaitForChild("Train") --// Player GUI setup local player = Players.LocalPlayer local PlayerGui = player:WaitForChild("PlayerGui") --// Main ScreenGui local mainGui = Instance.new("ScreenGui") mainGui.Name = "MadeByScriptdude999" mainGui.ResetOnSpawn = false mainGui.Parent = PlayerGui --// Toggle Button (Small Square) local toggleButton = Instance.new("TextButton") toggleButton.Name = "ToggleButton" toggleButton.Size = UDim2.new(0, 50, 0, 50) toggleButton.Position = UDim2.new(0, 20, 0.5, -25) toggleButton.BackgroundColor3 = Color3.fromRGB(40, 40, 40) toggleButton.Text = "scriptdude999\nscripts" toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.TextScaled = true toggleButton.Parent = mainGui --// Frame for GUI contents local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 200, 0, 100) mainFrame.Position = UDim2.new(0, 80, 0.5, -50) mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) mainFrame.Visible = false mainFrame.Parent = mainGui --// Title local title = Instance.new("TextLabel") title.Size = UDim2.new(1, 0, 0, 30) title.BackgroundTransparency = 1 title.Text = "Made by scriptdude999" title.TextColor3 = Color3.fromRGB(0, 255, 0) title.TextScaled = true title.Parent = mainFrame --// Unlimited Material Button local button = Instance.new("TextButton") button.Name = "UnlimitedMaterialButton" button.Size = UDim2.new(0, 180, 0, 50) button.Position = UDim2.new(0, 10, 0, 40) button.BackgroundColor3 = Color3.fromRGB(0, 150, 0) button.Text = "Unlimited Material" button.TextColor3 = Color3.fromRGB(255, 255, 255) button.TextScaled = true button.Parent = mainFrame --// Button click event button.MouseButton1Click:Connect(function() Train:FireServer(10000000000000000000) end) --// Toggle open/close toggleButton.MouseButton1Click:Connect(function() mainFrame.Visible = not mainFrame.Visible end)