Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.97 KB | None | 0 0
  1. local on = false
  2. local ena = false
  3. local admon = true
  4. local num = 0
  5. local exnum = {}
  6. exnum.exaddcount = 0
  7. local TPGUI = Instance.new("ScreenGui")
  8. local Destroy = Instance.new("TextButton")
  9. local Frame = Instance.new("Frame")
  10. local Title = Instance.new("TextLabel")
  11. local Toggle = Instance.new("TextButton")
  12. local Close = Instance.new("TextButton")
  13. local Open = Instance.new("TextButton")
  14. local Plrs = game:GetService("Players")
  15. local Exclusions = {}
  16. local add;
  17. local rem;
  18.  
  19. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("Core") then
  20. game.Players.LocalPlayer.PlayerGui.Core:Destroy()
  21. game.StarterGui.Core:Destroy()
  22. end
  23.  
  24. TPGUI.Name = "TPGUI"
  25. TPGUI.Parent = game:GetService("CoreGui")
  26.  
  27. Destroy.Name = "Destroy"
  28. Destroy.Parent = TPGUI
  29. Destroy.BackgroundColor3 = Color3.new(1, 1, 1)
  30. Destroy.Position = UDim2.new(0, 0, 0, 400)
  31. Destroy.Size = UDim2.new(0, 100, 0, 25)
  32. Destroy.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  33. Destroy.Font = Enum.Font.Cartoon
  34. Destroy.Text = "Destroy"
  35. Destroy.TextSize = 14
  36.  
  37. Frame.Parent = TPGUI
  38. Frame.Active = true
  39. Frame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  40. Frame.Draggable = true
  41. Frame.Position = UDim2.new(0, -2333, 0, 200)
  42. Frame.Size = UDim2.new(0, 300, 0, 200)
  43.  
  44. Title.Name = "Title"
  45. Title.Parent = Frame
  46. Title.BackgroundColor3 = Color3.new(0.25, 0.25, 0.8)
  47. Title.Size = UDim2.new(0, 300, 0, 30)
  48. Title.Font = Enum.Font.Cartoon
  49. Title.Text = "TP GUI"
  50. Title.TextColor3 = Color3.new(1, 1, 1)
  51. Title.TextSize = 14
  52.  
  53. Toggle.Name = "Toggle"
  54. Toggle.Parent = Frame
  55. Toggle.BackgroundColor3 = Color3.new(1, 0, 0)
  56. Toggle.Position = UDim2.new(0, 75, 0, 75)
  57. Toggle.Size = UDim2.new(0, 150, 0, 50)
  58. Toggle.Font = Enum.Font.SciFi
  59. Toggle.Text = "Toggle"
  60. Toggle.TextColor3 = Color3.new(1, 1, 1)
  61. Toggle.TextSize = 18
  62.  
  63. Close.Name = "Close"
  64. Close.Parent = Frame
  65. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  66. Close.BackgroundTransparency = 1
  67. Close.BorderSizePixel = 100
  68. Close.Position = UDim2.new(0.899999976, 0, 0, 0)
  69. Close.Size = UDim2.new(0.100000001, 0, 0, 30)
  70. Close.Font = Enum.Font.Cartoon
  71. Close.Text = "X"
  72. Close.TextColor3 = Color3.new(1, 0, 0)
  73. Close.TextSize = 30
  74.  
  75. Open.Name = "Open"
  76. Open.Parent = TPGUI
  77. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  78. Open.Position = UDim2.new(0, 0, 0, 350)
  79. Open.Size = UDim2.new(0, 100, 0, 25)
  80. Open.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  81. Open.Font = Enum.Font.Cartoon
  82. Open.Text = "Open"
  83. Open.TextSize = 14
  84.  
  85. function CreateMessage(msg)
  86. spawn(function()
  87. local gui = game:GetService("CoreGui")
  88. if gui:FindFirstChild('filtering') then
  89. gui.filtering:Destroy()
  90. end
  91. local sc = Instance.new('ScreenGui', gui)
  92. local fr = Instance.new('Frame', sc)
  93. fr.Size = UDim2.new(2,0,0.17,0)
  94. fr.Position = UDim2.new(-0.5,0,-1,0)
  95. fr.Style = 'DropShadow'
  96. local tx = Instance.new('TextLabel',fr)
  97. tx.Text = ""
  98. tx.Size = UDim2.new(1,0,0.4,0)
  99. tx.Position = UDim2.new(0,0,0.6,0)
  100. tx.TextScaled = true
  101. tx.BackgroundTransparency = 1
  102. tx.TextColor3 = Color3.new(1,1,1)
  103. fr:TweenPosition(UDim2.new(-0.5, 0, -0.1, 0), "Out", Enum.EasingStyle.Bounce, 2)
  104. wait(2)
  105. local String = msg
  106. local Length = string.len(String)
  107. for i=1,Length do
  108. tx.Text = string.sub(String,1,i)
  109. wait()
  110. end
  111. wait(4)
  112. sc:Destroy()
  113. end)
  114. end
  115.  
  116. function ToggleC(bool)
  117. if bool == true then
  118. Toggle.Text = "Untoggle"
  119. Toggle.BackgroundColor3 = Color3.new(0,1,0)
  120. else
  121. Toggle.Text = "Toggle"
  122. Toggle.BackgroundColor3 = Color3.new(1, 0, 0)
  123. end
  124. end
  125.  
  126. Open.MouseButton1Click:connect(function()
  127. Frame:TweenPosition(UDim2.new(0, 400, 0, 200), "In", "Linear", 1.5)
  128. Open:TweenPosition(UDim2.new(0, -2333, 0, 350), "Out", "Linear", 1.5)
  129. end)
  130.  
  131. Toggle.MouseButton1Click:connect(function()
  132. Frame:TweenPosition(UDim2.new(0, -2333, 0, 200), "Out", "Linear", 1.5)
  133. Open:TweenPosition(UDim2.new(0, 0, 0, 350), "In", "Linear", 1.5)
  134. on = not on
  135. if on then
  136. if not on then
  137. return
  138. end
  139. if #game:GetService("Teams").Alive:GetPlayers() <= 1 then
  140. on = false
  141. num = 0
  142. CreateMessage("The game has not started so teleporting is off.")
  143. ToggleC(false)
  144. return
  145. end
  146. CreateMessage("Teleporting has been turned on")
  147. ToggleC(true)
  148. for i, v in pairs(game:GetService("Teams").Alive:GetPlayers()) do
  149. if not on then
  150. return
  151. end
  152. if not exnum[v.Name] then
  153. exnum[v.Name] = 0
  154. end
  155. if v.Name ~= Plrs.LocalPlayer.Name and exnum[v.Name] == 0 then
  156. print(v)
  157. while v.Team ~= game:GetService("Teams").Dead do
  158. wait(0.1)
  159. if not on then
  160. return
  161. end
  162. Plrs.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Character.Torso.CFrame
  163. end
  164. end
  165. end
  166. if #Exclusions == 0 then
  167. if #game:GetService("Teams").Alive:GetPlayers() == 1 and Plrs.LocalPlayer.Team ~= game:GetService("Teams").Alive then
  168. on = false
  169. num = 0
  170. CreateMessage("The game has ended so teleporting is off.")
  171. ToggleC(false)
  172. return
  173. elseif #game:GetService("Teams").Alive:GetPlayers() == 1 and Plrs.LocalPlayer.Team == game:GetService("Teams").Alive then
  174. on = false
  175. num = 0
  176. CreateMessage("Everyone has been eliminated! TPing has stopped.")
  177. ToggleC(false)
  178. return
  179. end
  180. else
  181. if Plrs.LocalPlayer.Team == game:GetService("Teams").Alive then
  182. on = false
  183. num = 0
  184. CreateMessage("Everyone has been eliminated! TPing has stopped. ("..tostring(#Exclusions).." exclusions made)")
  185. ToggleC(false)
  186. return
  187. else
  188. on = false
  189. num = 0
  190. ToggleC(false)
  191. return
  192. end
  193. end
  194. else
  195. CreateMessage("Teleporting has been turned off.")
  196. ToggleC(false)
  197. end
  198. end)
  199.  
  200. Close.MouseButton1Click:connect(function()
  201. Frame:TweenPosition(UDim2.new(0, -2333, 0, 200), "Out", "Linear", 1.5)
  202. Open:TweenPosition(UDim2.new(0, 0, 0, 350), "In", "Linear", 1.5)
  203. end)
  204.  
  205. Destroy.MouseButton1Click:connect(function()
  206. TPGUI:Destroy()
  207. admon = false
  208. CreateMessage("You have deleted the GUI. If this was a mistake, execute the script again.")
  209. end)
  210.  
  211. adm = Plrs.LocalPlayer.Chatted:connect(function(m)
  212. spawn(function()
  213. while wait(1) do
  214. if admon == false then
  215. adm:Disconnect()
  216. end
  217. end
  218. end)
  219. if m:sub(1,2) == "/e" then
  220. if m:sub(4,6) == "add" then
  221. if m:len() < 8 then
  222. CreateMessage("You didn't specify a player / type")
  223. return
  224. end
  225. end
  226. if m:sub(8, m:len()) == "friends" then
  227. ena = true
  228. for i, v in pairs(Plrs:GetPlayers()) do
  229. if not exnum[v.Name] then
  230. exnum[v.Name] = 0
  231. end
  232. if #Exclusions > 0 then
  233. for a, b in pairs(Exclusions) do
  234. if v:IsFriendsWith(Plrs.LocalPlayer.userId) and exnum[v.Name] == 0 and v.Name ~= Plrs.LocalPlayer.Name then
  235. exnum[v.Name] = 1
  236. table.insert(Exclusions, v.Name)
  237. exnum.exaddcount = exnum.exaddcount + 1
  238. elseif v:IsFriendsWith(Plrs.LocalPlayer.userId) and v.Name == b then
  239. break
  240. end
  241. end
  242. else
  243. if v:IsFriendsWith(Plrs.LocalPlayer.userId) and v.Name ~= Plrs.LocalPlayer.Name then
  244. exnum[v.Name] = 1
  245. table.insert(Exclusions, v.Name)
  246. exnum.exaddcount = exnum.exaddcount + 1
  247. elseif v:IsFriendsWith(Plrs.LocalPlayer.userId) and v.Name == b then
  248. break
  249. end
  250. end
  251. end
  252. if exnum.exaddcount == 0 then
  253. CreateMessage("No players have been added to the exclusions.")
  254. elseif exnum.exaddcount == 1 then
  255. CreateMessage(tostring(exnum.exaddcount).." player has been added to the exclusions.")
  256. exnum.exaddcount = 0
  257. else
  258. CreateMessage(tostring(exnum.exaddcount).. " players have been added to the exclusions.")
  259. exnum.exaddcount = 0
  260. end
  261. add = Plrs.PlayerAdded:connect(function(p)
  262. spawn(function()
  263. while wait(1) do
  264. if en == false then
  265. add:Disconnect()
  266. break
  267. end
  268. end
  269. end)
  270. exnum[p.Name] = 1
  271. if p:IsFriendsWith(Plrs.LocalPlayer.userId) then
  272. table.insert(Exclusions, p.Name)
  273. CreateMessage(p.Name.." has joined and has been added to the exclusions.")
  274. return
  275. end
  276. end)
  277. return
  278. else
  279. local plr = m:sub(8, m:len())
  280. for i, v in pairs(Plrs:GetPlayers()) do
  281. if not exnum[v.Name] then
  282. exnum[v.Name] = 0
  283. end
  284. local newplr = v.Name:sub(1,plr:len())
  285. if v.Name == plr or plr == newplr and exnum[v.Name] == 0 then
  286. table.insert(Exclusions, v.Name)
  287. CreateMessage(v.Name.." has been added to the exclusions.")
  288. exnum[v.Name] = 1
  289. return
  290. end
  291. if i == #Plrs:GetPlayers() then
  292. CreateMessage("Unable to find your specified player or the player is excluded already.")
  293. return
  294. end
  295. end
  296. end
  297. elseif m:sub(4,9) == "remove" then
  298. if m:len() < 11 then
  299. CreateMessage("You didn't specify a player / type.")
  300. return
  301. end
  302. if m:sub(11,m:len()) == "friends" then
  303. local cnt = 0
  304. en = false
  305. for i, v in pairs(Exclusions) do
  306. if Plrs[v]:IsFriendsWith(Plrs.LocalPlayer.userId) then
  307. cnt = cnt + 1
  308. print(cnt)
  309. table.remove(Exclusions, i)
  310. exnum[v] = 0
  311. end
  312. if i == #Exclusions then
  313. CreateMessage("THIS IS BROKEN AND I CANT FIGURE OUT WHY DSFKSD")
  314. return
  315. end
  316. end
  317. else
  318. local plr = m:sub(11, m:len())
  319. for i, v in pairs(Exclusions) do
  320. local amt = #Exclusions
  321. local newplr = v:sub(1,plr:len())
  322. if plr == newplr or plr == v then
  323. table.remove(Exclusions, i)
  324. exnum[v] = 0
  325. CreateMessage("Successfully removed player: "..v.." from the exclusions")
  326. return
  327. end
  328. if i == amt then
  329. CreateMessage("Unable to find the player specified in the exclusions")
  330. return
  331. end
  332. end
  333. end
  334. elseif m:sub(4,7) == "list" then
  335. if #Exclusions > 0 then
  336. CreateMessage(table.concat(Exclusions, ", "))
  337. return
  338. else
  339. CreateMessage("No players are excluded.")
  340. end
  341. elseif m:sub(4,8) == "clear" then
  342. if #Exclusions > 0 then
  343. Exclusions = {}
  344. CreateMessage("Exclusions have been cleared!")
  345. return
  346. else
  347. CreateMessage("There are no exclusions to clear.")
  348. return
  349. end
  350. elseif m:sub(4,10) == "weapons" then
  351. NOW = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  352. game.ReplicatedStorage.Remotes.ArenaToggle:FireServer()
  353. wait(1.9)
  354.  
  355. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  356. if (v:IsA("Tool")) then
  357. v.Parent = game.Players.LocalPlayer
  358. end
  359. end
  360. wait()
  361. game.ReplicatedStorage.Remotes.ArenaToggle:FireServer()
  362. wait(0.6)
  363.  
  364. for i,v in pairs(game.Players.LocalPlayer:GetChildren()) do
  365. if (v:IsA("Tool")) then
  366. v.Parent = game.Players.LocalPlayer.Backpack
  367. end
  368. end
  369.  
  370. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = NOW
  371.  
  372. CreateMessage("Teleported to weapons.")
  373. return
  374. elseif m:sub(4,9) == "vspeed" then
  375. for i,v in pairs(game.Workspace:GetChildren()) do
  376. if v.Name == "Motorcycle" and v:IsA("Model") then
  377. v.Configuration["Forwards Speed"].Value = 135
  378. end
  379. end
  380. wait()
  381. for i,v in pairs(game.Workspace:GetChildren()) do
  382. if v.Name == "Car" and v:IsA("Model") then
  383. v.Configuration["Forwards Speed"].Value = 125
  384. end
  385. end
  386. wait()
  387. for i,v in pairs(game.Workspace:GetChildren()) do
  388. if v.Name == "Van" and v:IsA("Model") then
  389. v.Configuration["Forwards Speed"].Value = 115
  390. return
  391. end
  392. end
  393. elseif m:sub(4,8) == "crash" then
  394. local part = workspace.Arena
  395. local cf = CFrame.new(part.Position)
  396. local size = Vector3.new(999, 999, 999)
  397. local color = BrickColor.new("Medium stone grey")
  398. game:service'RunService'.RenderStepped:connect(function()
  399. wait()
  400. game.ReplicatedStorage.Remotes.ServerGun:FireServer(cf, size, color, part)
  401. end)
  402. elseif m:sub(4,7) == "kill" then
  403. if m:len() < 9 then
  404. CreateMessage("You didn't specify a player / type.")
  405. return
  406. else
  407. local plr = m:sub(9,m:len())
  408. for i, v in pairs(Plrs:GetPlayers()) do
  409. local newplr = v.Name:sub(1,plr:len())
  410. if v.Name == plr or plr == newplr then
  411. while v.Team ~= game:GetService("Teams").Dead do
  412. wait(0.1)
  413. Plrs.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Character.Torso.CFrame
  414. end
  415. end
  416. end
  417. end
  418. end
  419. end)
  420.  
  421. rem = Plrs.PlayerRemoving:connect(function(p)
  422. for i, v in pairs(Exclusions) do
  423. if p.Name == v then
  424. table.remove(Exclusions, i)
  425. exnum[p.Name] = 0
  426. return
  427. end
  428. end
  429. end)
  430.  
  431. -- End Of Script ( Made By StayBlue & LegoHacksAreTheBest )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement