Run it
Copy the script and paste it into your executor.
-- 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
player = Players.LocalPlayer
PlayerGui = player:()
mainGui = .()
mainGui.Name =
mainGui.ResetOnSpawn =
mainGui.Parent = PlayerGui
toggleButton = .()
toggleButton.Name =
toggleButton.Size = .(, , , )
toggleButton.Position = .(, , , -)
toggleButton.BackgroundColor3 = .(, , )
toggleButton.Text =
toggleButton.TextColor3 = .(, , )
toggleButton.TextScaled =
toggleButton.Parent = mainGui
mainFrame = .()
mainFrame.Name =
mainFrame.Size = .(, , , )
mainFrame.Position = .(, , , -)
mainFrame.BackgroundColor3 = .(, , )
mainFrame.Visible =
mainFrame.Parent = mainGui
title = .()
title.Size = .(, , , )
title.BackgroundTransparency =
title.Text =
title.TextColor3 = .(, , )
title.TextScaled =
title.Parent = mainFrame
button = .()
button.Name =
button.Size = .(, , , )
button.Position = .(, , , )
button.BackgroundColor3 = .(, , )
button.Text =
button.TextColor3 = .(, , )
button.TextScaled =
button.Parent = mainFrame
button.MouseButton1Click:(()
Train:()
)
toggleButton.MouseButton1Click:(()
mainFrame.Visible = mainFrame.Visible
)Unlimited Materials

Universal