Advertisement
pawtrails

Untitled

Apr 21st, 2018
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.13 KB | None | 0 0
  1. local lol = Instance.new("ScreenGui")
  2. local Login = Instance.new("Frame")
  3. local Username = Instance.new("TextBox")
  4. local Password = Instance.new("TextBox")
  5. local Logo = Instance.new("ImageLabel")
  6. local Texta = Instance.new("TextLabel")
  7. local Login_2 = Instance.new("TextButton")
  8. local Menu = Instance.new("Frame")
  9. local Bar = Instance.new("TextLabel")
  10. local The_Streets = Instance.new("TextButton")
  11. local Miners_Haven = Instance.new("TextButton")
  12. local Tower_Battles = Instance.new("TextButton")
  13. local TowerBattles = Instance.new("Frame")
  14. local Bar_2 = Instance.new("TextLabel")
  15. local SellOthers = Instance.new("TextButton")
  16. local PlaceAnywhere = Instance.new("TextButton")
  17. local X = Instance.new("TextButton")
  18.  
  19. -- {
  20. -- pass = synapsedrop
  21. -- user = pawtrails
  22. -- v 1.0.2
  23. -- }
  24.  
  25. lol.Name = "lol"
  26. lol.Parent = game.CoreGui
  27. lol.ResetOnSpawn = false
  28.  
  29. Login.Name = "Login"
  30. Login.Parent = lol
  31. Login.BackgroundColor3 = Color3.new(1, 1, 1)
  32. Login.BackgroundTransparency = 0.94999998807907
  33. Login.BorderColor3 = Color3.new(0, 0, 0)
  34. Login.BorderSizePixel = 2
  35. Login.Position = UDim2.new(0.5, -175, 0.5, -250)
  36. Login.Size = UDim2.new(0, 350, 0, 500)
  37.  
  38. Username.Name = "Username"
  39. Username.Parent = Login
  40. Username.BackgroundColor3 = Color3.new(0, 0, 0)
  41. Username.BackgroundTransparency = 0.69999998807907
  42. Username.BorderSizePixel = 0
  43. Username.Position = UDim2.new(0.5, -125, 0, 230)
  44. Username.Size = UDim2.new(0, 250, 0, 70)
  45. Username.Font = Enum.Font.Code
  46. Username.Text = "Username"
  47. Username.TextColor3 = Color3.new(1, 1, 1)
  48. Username.TextScaled = true
  49. Username.TextSize = 14
  50. Username.TextWrapped = true
  51.  
  52. Password.Name = "Password"
  53. Password.Parent = Login
  54. Password.BackgroundColor3 = Color3.new(0, 0, 0)
  55. Password.BackgroundTransparency = 0.69999998807907
  56. Password.BorderSizePixel = 0
  57. Password.Position = UDim2.new(0.5, -125, 0, 305)
  58. Password.Size = UDim2.new(0, 250, 0, 70)
  59. Password.Font = Enum.Font.Code
  60. Password.Text = "Password"
  61. Password.TextColor3 = Color3.new(1, 1, 1)
  62. Password.TextScaled = true
  63. Password.TextSize = 14
  64. Password.TextWrapped = true
  65.  
  66. Logo.Name = "Logo"
  67. Logo.Parent = Login
  68. Logo.BackgroundColor3 = Color3.new(1, 1, 1)
  69. Logo.BackgroundTransparency = 1
  70. Logo.Position = UDim2.new(0.5, -80, 0, 10)
  71. Logo.Size = UDim2.new(0, 160, 0, 150)
  72. Logo.Image = "rbxassetid://1573005982"
  73. Logo.ImageTransparency = 0.30000001192093
  74.  
  75. Texta.Name = "Texta"
  76. Texta.Parent = Login
  77. Texta.BackgroundColor3 = Color3.new(1, 1, 1)
  78. Texta.BackgroundTransparency = 1
  79. Texta.Position = UDim2.new(0.5, -100, 0, 175)
  80. Texta.Size = UDim2.new(0, 200, 0, 50)
  81. Texta.Font = Enum.Font.Code
  82. Texta.Text = "RICE$"
  83. Texta.TextColor3 = Color3.new(1, 1, 1)
  84. Texta.TextScaled = true
  85. Texta.TextSize = 14
  86. Texta.TextWrapped = true
  87.  
  88. Login_2.Name = "Login"
  89. Login_2.Parent = Login
  90. Login_2.BackgroundColor3 = Color3.new(0, 0, 0)
  91. Login_2.BackgroundTransparency = 0.69999998807907
  92. Login_2.Position = UDim2.new(0.5, -100, 0.800000012, 0)
  93. Login_2.Size = UDim2.new(0, 200, 0, 50)
  94. Login_2.Font = Enum.Font.Code
  95. Login_2.Text = "Login"
  96. Login_2.TextColor3 = Color3.new(1, 1, 1)
  97. Login_2.TextScaled = true
  98. Login_2.TextSize = 14
  99. Login_2.TextWrapped = true
  100.  
  101. Menu.Name = "Menu"
  102. Menu.Parent = lol
  103. Menu.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Menu.BackgroundTransparency = 0.94999998807907
  105. Menu.BorderColor3 = Color3.new(0, 0, 0)
  106. Menu.BorderSizePixel = 2
  107. Menu.Position = UDim2.new(0.465489566, -250, 0.467603922, -150)
  108. Menu.Size = UDim2.new(0, 586, 0, 353)
  109. Menu.Visible = false
  110.  
  111. Bar.Name = "Bar"
  112. Bar.Parent = Menu
  113. Bar.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  114. Bar.BorderSizePixel = 0
  115. Bar.Size = UDim2.new(1, 0, 0, 20)
  116. Bar.Font = Enum.Font.Code
  117. Bar.Text = "RICE$ - Menu"
  118. Bar.TextColor3 = Color3.new(1, 1, 1)
  119. Bar.TextScaled = true
  120. Bar.TextSize = 14
  121. Bar.TextWrapped = true
  122.  
  123. The_Streets.Name = "The_Streets"
  124. The_Streets.Parent = Menu
  125. The_Streets.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  126. The_Streets.Position = UDim2.new(0.0399999991, 0, 0.100000001, 0)
  127. The_Streets.Size = UDim2.new(0, 100, 0, 15)
  128. The_Streets.Font = Enum.Font.Code
  129. The_Streets.Text = "The Streets"
  130. The_Streets.TextColor3 = Color3.new(1, 1, 1)
  131. The_Streets.TextScaled = true
  132. The_Streets.TextSize = 14
  133. The_Streets.TextWrapped = true
  134.  
  135. Miners_Haven.Name = "Miners_Haven"
  136. Miners_Haven.Parent = Menu
  137. Miners_Haven.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  138. Miners_Haven.Position = UDim2.new(0.415426612, 0, 0.100000001, 0)
  139. Miners_Haven.Size = UDim2.new(0, 100, 0, 15)
  140. Miners_Haven.Font = Enum.Font.Code
  141. Miners_Haven.Text = "Miners Haven"
  142. Miners_Haven.TextColor3 = Color3.new(1, 1, 1)
  143. Miners_Haven.TextScaled = true
  144. Miners_Haven.TextSize = 14
  145. Miners_Haven.TextWrapped = true
  146.  
  147. Tower_Battles.Name = "Tower_Battles"
  148. Tower_Battles.Parent = Menu
  149. Tower_Battles.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  150. Tower_Battles.Position = UDim2.new(0.790853262, 0, 0.100000001, 0)
  151. Tower_Battles.Size = UDim2.new(0, 100, 0, 15)
  152. Tower_Battles.Font = Enum.Font.Code
  153. Tower_Battles.Text = "Tower Battles"
  154. Tower_Battles.TextColor3 = Color3.new(1, 1, 1)
  155. Tower_Battles.TextScaled = true
  156. Tower_Battles.TextSize = 14
  157. Tower_Battles.TextWrapped = true
  158.  
  159. TowerBattles.Name = "TowerBattles"
  160. TowerBattles.Parent = lol
  161. TowerBattles.BackgroundColor3 = Color3.new(1, 1, 1)
  162. TowerBattles.BackgroundTransparency = 0.94999998807907
  163. TowerBattles.BorderColor3 = Color3.new(0, 0, 0)
  164. TowerBattles.BorderSizePixel = 2
  165. TowerBattles.Position = UDim2.new(0.465489566, -250, 0.467603922, -150)
  166. TowerBattles.Size = UDim2.new(0, 586, 0, 353)
  167. TowerBattles.Visible = false
  168.  
  169. Bar_2.Name = "Bar"
  170. Bar_2.Parent = TowerBattles
  171. Bar_2.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  172. Bar_2.BorderSizePixel = 0
  173. Bar_2.Size = UDim2.new(1, 0, 0, 20)
  174. Bar_2.Font = Enum.Font.Code
  175. Bar_2.Text = "RICE$ - Tower Battles"
  176. Bar_2.TextColor3 = Color3.new(1, 1, 1)
  177. Bar_2.TextScaled = true
  178. Bar_2.TextSize = 14
  179. Bar_2.TextWrapped = true
  180.  
  181. SellOthers.Name = "SellOthers"
  182. SellOthers.Parent = TowerBattles
  183. SellOthers.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  184. SellOthers.Position = UDim2.new(0.0399999991, 0, 0.100000001, 0)
  185. SellOthers.Size = UDim2.new(0, 100, 0, 15)
  186. SellOthers.Font = Enum.Font.Code
  187. SellOthers.Text = "Sell Others"
  188. SellOthers.TextColor3 = Color3.new(1, 1, 1)
  189. SellOthers.TextScaled = true
  190. SellOthers.TextSize = 14
  191. SellOthers.TextWrapped = true
  192.  
  193. PlaceAnywhere.Name = "PlaceAnywhere"
  194. PlaceAnywhere.Parent = TowerBattles
  195. PlaceAnywhere.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  196. PlaceAnywhere.Position = UDim2.new(0.415426612, 0, 0.100000001, 0)
  197. PlaceAnywhere.Size = UDim2.new(0, 100, 0, 15)
  198. PlaceAnywhere.Font = Enum.Font.Code
  199. PlaceAnywhere.Text = "Place Anywhere"
  200. PlaceAnywhere.TextColor3 = Color3.new(1, 1, 1)
  201. PlaceAnywhere.TextScaled = true
  202. PlaceAnywhere.TextSize = 14
  203. PlaceAnywhere.TextWrapped = true
  204.  
  205. X.Name = "X"
  206. X.Parent = TowerBattles
  207. X.BackgroundColor3 = Color3.new(1, 1, 1)
  208. X.BackgroundTransparency = 1
  209. X.BorderSizePixel = 0
  210. X.Position = UDim2.new(0.963999987, 0, 0, 0)
  211. X.Size = UDim2.new(0, 20, 0, 20)
  212. X.Font = Enum.Font.Cartoon
  213. X.Text = "X"
  214. X.TextColor3 = Color3.new(1, 1, 1)
  215. X.TextScaled = true
  216. X.TextSize = 14
  217. X.TextWrapped = true
  218.  
  219. -- Scripts
  220.  
  221. PlaceAnywhere.MouseButton1Down:connect(function()
  222. while true do
  223. wait(.1)
  224. for i,v in pairs(game.Workspace.Towers:GetChildren()) do
  225. if v:FindFirstChild("Base") then
  226. v.Base:Destroy()
  227. end
  228. end
  229. end
  230. end)
  231.  
  232. X.MouseButton1Down:connect(function()
  233. local TowerBattles = X.Parent
  234. local GUI = TowerBattles
  235. GUI.Visible = not GUI.Visible
  236. GUI.Parent.Menu.Visible = true
  237. end)
  238.  
  239. SellOthers.MouseButton1Down:connect(function()
  240. while true do
  241. wait(.1)
  242. for i,v in pairs(game.Workspace.Towers:GetChildren()) do
  243. v.Owner.Value = game.Players.LocalPlayer
  244. end
  245. end
  246. end)
  247.  
  248. TowerBattles.MouseEnter:connect(function()
  249. local UserInputService = game:GetService("UserInputService")
  250.  
  251. local gui = TowerBattles
  252.  
  253. local dragging
  254. local dragInput
  255. local dragStart
  256. local startPos
  257.  
  258. local function update(input)
  259. local delta = input.Position - dragStart
  260. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  261. end
  262.  
  263. gui.InputBegan:Connect(function(input)
  264. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  265. dragging = true
  266. dragStart = input.Position
  267. startPos = gui.Position
  268.  
  269. input.Changed:Connect(function()
  270. if input.UserInputState == Enum.UserInputState.End then
  271. dragging = false
  272. end
  273. end)
  274. end
  275. end)
  276.  
  277. gui.InputChanged:Connect(function(input)
  278. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  279. dragInput = input
  280. end
  281. end)
  282.  
  283. UserInputService.InputChanged:Connect(function(input)
  284. if input == dragInput and dragging then
  285. update(input)
  286. end
  287. end)
  288. end)
  289.  
  290. Tower_Battles.MouseButton1Down:connect(function()
  291. local TowerBattles = Tower_Battles.Parent.Parent.TowerBattles
  292. local GUI = TowerBattles
  293. GUI.Visible = not GUI.Visible
  294. GUI.Parent.Menu.Visible = false
  295. end)
  296.  
  297. Menu.MouseEnter:connect(function()
  298. if Menu.Parent.TowerBattles.Visible == true then
  299. no()
  300. else
  301. local UserInputService = game:GetService("UserInputService")
  302.  
  303. local gui = Menu
  304.  
  305. local dragging
  306. local dragInput
  307. local dragStart
  308. local startPos
  309.  
  310. local function update(input)
  311. local delta = input.Position - dragStart
  312. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  313. end
  314.  
  315. gui.InputBegan:Connect(function(input)
  316. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  317. dragging = true
  318. dragStart = input.Position
  319. startPos = gui.Position
  320.  
  321. input.Changed:Connect(function()
  322. if input.UserInputState == Enum.UserInputState.End then
  323. dragging = false
  324. end
  325. end)
  326. end
  327. end)
  328.  
  329. gui.InputChanged:Connect(function(input)
  330. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  331. dragInput = input
  332. end
  333. end)
  334.  
  335. UserInputService.InputChanged:Connect(function(input)
  336. if input == dragInput and dragging then
  337. update(input)
  338. end
  339. end)
  340. end
  341.  
  342. end)
  343.  
  344.  
  345. Menu.MouseEnter:connect(function()
  346. local player = game.Players.LocalPlayer
  347. local Mouse = player:GetMouse()
  348. local GUI = Menu
  349.  
  350. Mouse.KeyDown:connect(function(key)
  351. if key == "e" then
  352. if Menu.Parent.TowerBattles.Visible == false then
  353. GUI.Visible = not GUI.Visible
  354. else
  355. no()
  356. end
  357.  
  358. end
  359. end)
  360. end)
  361.  
  362. Login_2.MouseButton1Down:connect(function()
  363. local user = Login_2.Parent.Username.Text
  364. local pass = Login_2.Parent.Password.Text
  365. local what = Login_2.Parent.Texta.Text
  366.  
  367. if user == "pawtrails" then
  368. if pass == "synapsedrop" then
  369. what = "Welcome "..user
  370. wait(3)
  371. Login_2.Parent.Parent.Menu.Visible = true
  372. Login_2.Parent.Visible = false
  373. wait(1)
  374. game:GetService("StarterGui"):SetCore("SendNotification", {
  375. Title = "Welcome to RICE$";
  376. Text = "Press E to close and open the GUI";
  377. Icon = nil;
  378. Duration = 3;
  379. })
  380. else
  381. print("Wrong Password!")
  382. end
  383. else
  384. print("Wrong Username!")
  385. end
  386. end)
  387.  
  388. Login.MouseEnter:connect(function()
  389. local UserInputService = game:GetService("UserInputService")
  390.  
  391. local gui = Login
  392.  
  393. local dragging
  394. local dragInput
  395. local dragStart
  396. local startPos
  397.  
  398. local function update(input)
  399. local delta = input.Position - dragStart
  400. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  401. end
  402.  
  403. gui.InputBegan:Connect(function(input)
  404. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  405. dragging = true
  406. dragStart = input.Position
  407. startPos = gui.Position
  408.  
  409. input.Changed:Connect(function()
  410. if input.UserInputState == Enum.UserInputState.End then
  411. dragging = false
  412. end
  413. end)
  414. end
  415. end)
  416.  
  417. gui.InputChanged:Connect(function(input)
  418. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  419. dragInput = input
  420. end
  421. end)
  422.  
  423. UserInputService.InputChanged:Connect(function(input)
  424. if input == dragInput and dragging then
  425. update(input)
  426. end
  427. end)
  428. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement