Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local lol = Instance.new("ScreenGui")
- local Login = Instance.new("Frame")
- local Username = Instance.new("TextBox")
- local Password = Instance.new("TextBox")
- local Logo = Instance.new("ImageLabel")
- local Texta = Instance.new("TextLabel")
- local Login_2 = Instance.new("TextButton")
- local Menu = Instance.new("Frame")
- local Bar = Instance.new("TextLabel")
- local The_Streets = Instance.new("TextButton")
- local Miners_Haven = Instance.new("TextButton")
- local Tower_Battles = Instance.new("TextButton")
- local TowerBattles = Instance.new("Frame")
- local Bar_2 = Instance.new("TextLabel")
- local SellOthers = Instance.new("TextButton")
- local PlaceAnywhere = Instance.new("TextButton")
- local X = Instance.new("TextButton")
- -- {
- -- pass = synapsedrop
- -- user = pawtrails
- -- v 1.0.2
- -- }
- lol.Name = "lol"
- lol.Parent = game.CoreGui
- lol.ResetOnSpawn = false
- Login.Name = "Login"
- Login.Parent = lol
- Login.BackgroundColor3 = Color3.new(1, 1, 1)
- Login.BackgroundTransparency = 0.94999998807907
- Login.BorderColor3 = Color3.new(0, 0, 0)
- Login.BorderSizePixel = 2
- Login.Position = UDim2.new(0.5, -175, 0.5, -250)
- Login.Size = UDim2.new(0, 350, 0, 500)
- Username.Name = "Username"
- Username.Parent = Login
- Username.BackgroundColor3 = Color3.new(0, 0, 0)
- Username.BackgroundTransparency = 0.69999998807907
- Username.BorderSizePixel = 0
- Username.Position = UDim2.new(0.5, -125, 0, 230)
- Username.Size = UDim2.new(0, 250, 0, 70)
- Username.Font = Enum.Font.Code
- Username.Text = "Username"
- Username.TextColor3 = Color3.new(1, 1, 1)
- Username.TextScaled = true
- Username.TextSize = 14
- Username.TextWrapped = true
- Password.Name = "Password"
- Password.Parent = Login
- Password.BackgroundColor3 = Color3.new(0, 0, 0)
- Password.BackgroundTransparency = 0.69999998807907
- Password.BorderSizePixel = 0
- Password.Position = UDim2.new(0.5, -125, 0, 305)
- Password.Size = UDim2.new(0, 250, 0, 70)
- Password.Font = Enum.Font.Code
- Password.Text = "Password"
- Password.TextColor3 = Color3.new(1, 1, 1)
- Password.TextScaled = true
- Password.TextSize = 14
- Password.TextWrapped = true
- Logo.Name = "Logo"
- Logo.Parent = Login
- Logo.BackgroundColor3 = Color3.new(1, 1, 1)
- Logo.BackgroundTransparency = 1
- Logo.Position = UDim2.new(0.5, -80, 0, 10)
- Logo.Size = UDim2.new(0, 160, 0, 150)
- Logo.Image = "rbxassetid://1573005982"
- Logo.ImageTransparency = 0.30000001192093
- Texta.Name = "Texta"
- Texta.Parent = Login
- Texta.BackgroundColor3 = Color3.new(1, 1, 1)
- Texta.BackgroundTransparency = 1
- Texta.Position = UDim2.new(0.5, -100, 0, 175)
- Texta.Size = UDim2.new(0, 200, 0, 50)
- Texta.Font = Enum.Font.Code
- Texta.Text = "RICE$"
- Texta.TextColor3 = Color3.new(1, 1, 1)
- Texta.TextScaled = true
- Texta.TextSize = 14
- Texta.TextWrapped = true
- Login_2.Name = "Login"
- Login_2.Parent = Login
- Login_2.BackgroundColor3 = Color3.new(0, 0, 0)
- Login_2.BackgroundTransparency = 0.69999998807907
- Login_2.Position = UDim2.new(0.5, -100, 0.800000012, 0)
- Login_2.Size = UDim2.new(0, 200, 0, 50)
- Login_2.Font = Enum.Font.Code
- Login_2.Text = "Login"
- Login_2.TextColor3 = Color3.new(1, 1, 1)
- Login_2.TextScaled = true
- Login_2.TextSize = 14
- Login_2.TextWrapped = true
- Menu.Name = "Menu"
- Menu.Parent = lol
- Menu.BackgroundColor3 = Color3.new(1, 1, 1)
- Menu.BackgroundTransparency = 0.94999998807907
- Menu.BorderColor3 = Color3.new(0, 0, 0)
- Menu.BorderSizePixel = 2
- Menu.Position = UDim2.new(0.465489566, -250, 0.467603922, -150)
- Menu.Size = UDim2.new(0, 586, 0, 353)
- Menu.Visible = false
- Bar.Name = "Bar"
- Bar.Parent = Menu
- Bar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Bar.BorderSizePixel = 0
- Bar.Size = UDim2.new(1, 0, 0, 20)
- Bar.Font = Enum.Font.Code
- Bar.Text = "RICE$ - Menu"
- Bar.TextColor3 = Color3.new(1, 1, 1)
- Bar.TextScaled = true
- Bar.TextSize = 14
- Bar.TextWrapped = true
- The_Streets.Name = "The_Streets"
- The_Streets.Parent = Menu
- The_Streets.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- The_Streets.Position = UDim2.new(0.0399999991, 0, 0.100000001, 0)
- The_Streets.Size = UDim2.new(0, 100, 0, 15)
- The_Streets.Font = Enum.Font.Code
- The_Streets.Text = "The Streets"
- The_Streets.TextColor3 = Color3.new(1, 1, 1)
- The_Streets.TextScaled = true
- The_Streets.TextSize = 14
- The_Streets.TextWrapped = true
- Miners_Haven.Name = "Miners_Haven"
- Miners_Haven.Parent = Menu
- Miners_Haven.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Miners_Haven.Position = UDim2.new(0.415426612, 0, 0.100000001, 0)
- Miners_Haven.Size = UDim2.new(0, 100, 0, 15)
- Miners_Haven.Font = Enum.Font.Code
- Miners_Haven.Text = "Miners Haven"
- Miners_Haven.TextColor3 = Color3.new(1, 1, 1)
- Miners_Haven.TextScaled = true
- Miners_Haven.TextSize = 14
- Miners_Haven.TextWrapped = true
- Tower_Battles.Name = "Tower_Battles"
- Tower_Battles.Parent = Menu
- Tower_Battles.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Tower_Battles.Position = UDim2.new(0.790853262, 0, 0.100000001, 0)
- Tower_Battles.Size = UDim2.new(0, 100, 0, 15)
- Tower_Battles.Font = Enum.Font.Code
- Tower_Battles.Text = "Tower Battles"
- Tower_Battles.TextColor3 = Color3.new(1, 1, 1)
- Tower_Battles.TextScaled = true
- Tower_Battles.TextSize = 14
- Tower_Battles.TextWrapped = true
- TowerBattles.Name = "TowerBattles"
- TowerBattles.Parent = lol
- TowerBattles.BackgroundColor3 = Color3.new(1, 1, 1)
- TowerBattles.BackgroundTransparency = 0.94999998807907
- TowerBattles.BorderColor3 = Color3.new(0, 0, 0)
- TowerBattles.BorderSizePixel = 2
- TowerBattles.Position = UDim2.new(0.465489566, -250, 0.467603922, -150)
- TowerBattles.Size = UDim2.new(0, 586, 0, 353)
- TowerBattles.Visible = false
- Bar_2.Name = "Bar"
- Bar_2.Parent = TowerBattles
- Bar_2.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- Bar_2.BorderSizePixel = 0
- Bar_2.Size = UDim2.new(1, 0, 0, 20)
- Bar_2.Font = Enum.Font.Code
- Bar_2.Text = "RICE$ - Tower Battles"
- Bar_2.TextColor3 = Color3.new(1, 1, 1)
- Bar_2.TextScaled = true
- Bar_2.TextSize = 14
- Bar_2.TextWrapped = true
- SellOthers.Name = "SellOthers"
- SellOthers.Parent = TowerBattles
- SellOthers.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- SellOthers.Position = UDim2.new(0.0399999991, 0, 0.100000001, 0)
- SellOthers.Size = UDim2.new(0, 100, 0, 15)
- SellOthers.Font = Enum.Font.Code
- SellOthers.Text = "Sell Others"
- SellOthers.TextColor3 = Color3.new(1, 1, 1)
- SellOthers.TextScaled = true
- SellOthers.TextSize = 14
- SellOthers.TextWrapped = true
- PlaceAnywhere.Name = "PlaceAnywhere"
- PlaceAnywhere.Parent = TowerBattles
- PlaceAnywhere.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- PlaceAnywhere.Position = UDim2.new(0.415426612, 0, 0.100000001, 0)
- PlaceAnywhere.Size = UDim2.new(0, 100, 0, 15)
- PlaceAnywhere.Font = Enum.Font.Code
- PlaceAnywhere.Text = "Place Anywhere"
- PlaceAnywhere.TextColor3 = Color3.new(1, 1, 1)
- PlaceAnywhere.TextScaled = true
- PlaceAnywhere.TextSize = 14
- PlaceAnywhere.TextWrapped = true
- X.Name = "X"
- X.Parent = TowerBattles
- X.BackgroundColor3 = Color3.new(1, 1, 1)
- X.BackgroundTransparency = 1
- X.BorderSizePixel = 0
- X.Position = UDim2.new(0.963999987, 0, 0, 0)
- X.Size = UDim2.new(0, 20, 0, 20)
- X.Font = Enum.Font.Cartoon
- X.Text = "X"
- X.TextColor3 = Color3.new(1, 1, 1)
- X.TextScaled = true
- X.TextSize = 14
- X.TextWrapped = true
- -- Scripts
- PlaceAnywhere.MouseButton1Down:connect(function()
- while true do
- wait(.1)
- for i,v in pairs(game.Workspace.Towers:GetChildren()) do
- if v:FindFirstChild("Base") then
- v.Base:Destroy()
- end
- end
- end
- end)
- X.MouseButton1Down:connect(function()
- local TowerBattles = X.Parent
- local GUI = TowerBattles
- GUI.Visible = not GUI.Visible
- GUI.Parent.Menu.Visible = true
- end)
- SellOthers.MouseButton1Down:connect(function()
- while true do
- wait(.1)
- for i,v in pairs(game.Workspace.Towers:GetChildren()) do
- v.Owner.Value = game.Players.LocalPlayer
- end
- end
- end)
- TowerBattles.MouseEnter:connect(function()
- local UserInputService = game:GetService("UserInputService")
- local gui = TowerBattles
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end)
- Tower_Battles.MouseButton1Down:connect(function()
- local TowerBattles = Tower_Battles.Parent.Parent.TowerBattles
- local GUI = TowerBattles
- GUI.Visible = not GUI.Visible
- GUI.Parent.Menu.Visible = false
- end)
- Menu.MouseEnter:connect(function()
- if Menu.Parent.TowerBattles.Visible == true then
- no()
- else
- local UserInputService = game:GetService("UserInputService")
- local gui = Menu
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end
- end)
- Menu.MouseEnter:connect(function()
- local player = game.Players.LocalPlayer
- local Mouse = player:GetMouse()
- local GUI = Menu
- Mouse.KeyDown:connect(function(key)
- if key == "e" then
- if Menu.Parent.TowerBattles.Visible == false then
- GUI.Visible = not GUI.Visible
- else
- no()
- end
- end
- end)
- end)
- Login_2.MouseButton1Down:connect(function()
- local user = Login_2.Parent.Username.Text
- local pass = Login_2.Parent.Password.Text
- local what = Login_2.Parent.Texta.Text
- if user == "pawtrails" then
- if pass == "synapsedrop" then
- what = "Welcome "..user
- wait(3)
- Login_2.Parent.Parent.Menu.Visible = true
- Login_2.Parent.Visible = false
- wait(1)
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Welcome to RICE$";
- Text = "Press E to close and open the GUI";
- Icon = nil;
- Duration = 3;
- })
- else
- print("Wrong Password!")
- end
- else
- print("Wrong Username!")
- end
- end)
- Login.MouseEnter:connect(function()
- local UserInputService = game:GetService("UserInputService")
- local gui = Login
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement