NYXRBLX

Untitled

Sep 9th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.66 KB | None | 0 0
  1. wait()
  2. script:Destroy()
  3.  
  4. local Player = Game:GetService("Players").LocalPlayer; -- The Player
  5. local Character = Player.Character;
  6. local Torso = Character:WaitForChild"Torso";
  7. local Tablets = {};
  8. local Commands = {};
  9. local Rotation = 0;
  10. local RotationIncrease = 0.05;
  11.  
  12. -- OnChatted (For Commands - Don't Touch!)
  13. function OnChatted(Message)
  14. local Command = ""
  15. for i,v in pairs(Commands)do
  16. if Message:sub(1,v.Cmd:len()):lower() == v.Cmd and Command == "" then
  17. Command = v.Cmd
  18. Spawn(function()
  19. a,b = pcall(function()
  20. v.Func(Message:sub(v.Cmd:len()+1):lower())
  21. end)
  22. if not a then
  23. error(b)
  24. end
  25. end)
  26. end
  27. end
  28. end
  29. -- More Commands!
  30. function AddCommand(Command,Description,Example,Function)
  31. table.insert(Commands,{Cmd=Command,Desc=Description,Example=Example,Func=Function});
  32. end
  33. -- Output! Time to design your tablets!
  34. function Output(Text,Colour,Function)
  35. local part = Instance.new("Part",Workspace)
  36. part.Anchored = true
  37. part.FormFactor = "Custom"
  38. part.Size = Vector3.new(2, 2, 2)
  39. part.Transparency = 1
  40. part.CanCollide = false
  41. part.BrickColor = BrickColor.new(1019)
  42. part.CFrame = CFrame.new(Torso.CFrame.p)
  43. part.TopSurface,part.BottomSurface = 0,0
  44. local se = Instance.new("SelectionBox",part)
  45. se.Adornee = part
  46. se.Color3 = Color3.new(255, 73, 252)
  47. se.LineThickness = "0.01"
  48. se.Transparency = "0.9"
  49. ------------------
  50. local sg = Instance.new("SurfaceGui", part)--Front!
  51. sg.CanvasSize = Vector2.new(300, 60)
  52. local sg2 = Instance.new("SurfaceGui", part)
  53. sg2.Face = "Bottom"
  54. sg2.CanvasSize = Vector2.new(300, 60)
  55. local sg3 = Instance.new("SurfaceGui", part)
  56. sg3.Face = "Back"
  57. sg3.CanvasSize = Vector2.new(300, 60)
  58. local sg4 = Instance.new("SurfaceGui", part)
  59. sg4.Face = "Left"
  60. sg4.CanvasSize = Vector2.new(300, 60)
  61. local sg5 = Instance.new("SurfaceGui", part)
  62. sg5.Face = "Right"
  63. sg5.CanvasSize = Vector2.new(300, 60)
  64. local sg6 = Instance.new("SurfaceGui", part)
  65. sg6.Face = "Top"
  66. sg6.CanvasSize = Vector2.new(300, 60)
  67. ---------------------------------------------------
  68. local bd = Instance.new("Frame", sg)-- Front!
  69. bd.Size = UDim2.new(0.8, 0,0.8, 0)
  70. bd.BackgroundTransparency = "0.5"
  71. bd.Position = UDim2.new(0.1, 0, 0.1, 0)
  72. bd.BorderSizePixel = "0"
  73. bd.BackgroundColor3 = Color3.new(20/255, 255/255, 248/255)
  74.  
  75. local bd2 = Instance.new("Frame", sg2)
  76. bd2.Size = UDim2.new(0.8, 0,0.8, 0)
  77. bd2.BackgroundTransparency = "0.5"
  78. bd2.Position = UDim2.new(0.1, 0, 0.1, 0)
  79. bd2.BorderSizePixel = "0"
  80. bd2.BackgroundColor3 = Color3.new(20/255, 255/255, 248/255)
  81.  
  82. local bd3 = Instance.new("Frame", sg3)
  83. bd3.Size = UDim2.new(0.8, 0,0.8, 0)
  84. bd3.BackgroundTransparency = "0.5"
  85. bd3.Position = UDim2.new(0.1, 0, 0.1, 0)
  86. bd3.BorderSizePixel = "0"
  87. bd3.BackgroundColor3 = Color3.new(20/255, 255/255, 248/255)
  88.  
  89. local bd4 = Instance.new("Frame", sg4)
  90. bd4.Size = UDim2.new(0.8, 0,0.8, 0)
  91. bd4.BackgroundTransparency = "0.5"
  92. bd4.Position = UDim2.new(0.1, 0, 0.1, 0)
  93. bd4.BorderSizePixel = "0"
  94. bd4.BackgroundColor3 = Color3.new(20/255, 255/255, 248/255)
  95.  
  96. local bd5 = Instance.new("Frame", sg5) --ALMOST THERE!!!
  97. bd5.Size = UDim2.new(0.8, 0,0.8, 0)
  98. bd5.BackgroundTransparency = "0.5"
  99. bd5.Position = UDim2.new(0.1, 0, 0.1, 0)
  100. bd5.BorderSizePixel = "0"
  101. bd5.BackgroundColor3 = Color3.new(20/255, 255/255, 248/255)
  102.  
  103. local bd6 = Instance.new("Frame", sg6) --LAST ONE!
  104. bd6.Size = UDim2.new(0.8, 0,0.8, 0)
  105. bd6.BackgroundTransparency = "0.5"
  106. bd6.Position = UDim2.new(0.1, 0, 0.1, 0)
  107. bd6.BorderSizePixel = "0"
  108. bd6.BackgroundColor3 = Color3.new(20/255, 255/255, 248/255)
  109. ------------------
  110. local bg = Instance.new("BodyGyro", part)
  111. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  112. local bg = Instance.new("BillboardGui",part)
  113. bg.Enabled = true
  114. bg.Adornee = part
  115. bg.AlwaysOnTop = true
  116. bg.Size = UDim2.new(1,0,1,0)
  117. bg.ExtentsOffset = Vector3.new(0,2,0)
  118. local text = Instance.new("TextLabel",bg)
  119. text.Text = Text
  120. text.Size = UDim2.new(1,0,1,0)
  121. text.BackgroundTransparency = 1
  122. text.Font = "ArialBold"
  123. text.FontSize = "Size24"
  124. text.TextStrokeTransparency = 0.7
  125. text.TextStrokeColor3 = Color3.new(0,0,0);
  126. text.TextColor3 = Color3.new(255, 0, 255)
  127. local point = Instance.new("PointLight",part)
  128. point.Brightness = 1/0
  129. point.Color = Color3.new(322)
  130. point.Range = 6
  131. local click = Instance.new("ClickDetector",part)
  132. click.MaxActivationDistance = 1/0
  133. coroutine.resume(coroutine.create(function()
  134. if Text == "Dismiss" then
  135. col = 21
  136. part.BrickColor = BrickColor.new(col)
  137. text.TextColor3 = part.BrickColor.Color
  138. sel.Color = part.BrickColor
  139. elseif Text == "Back" then
  140. col = 1010
  141. part.BrickColor = BrickColor.new(col)
  142. text.TextColor3 = part.BrickColor.Color
  143. sel.Color = part.BrickColor
  144. end
  145. click.MouseClick:connect(function(p)
  146. if p == Player then
  147. if Function == nil then
  148. pcall(function()
  149. coroutine.resume(coroutine.create(function()
  150. local Tabs = Tablets
  151. for i,v in pairs(Tabs) do
  152. if v==part then
  153. table.remove(Tabs,i)
  154. end
  155. end
  156. part:Destroy()
  157. end))
  158. end)
  159. else
  160. pcall(function()
  161. coroutine.resume(coroutine.create(function()
  162. local a,b = coroutine.resume(coroutine.create(function()
  163. Function();
  164. end))
  165. if a then
  166. return
  167. else
  168. Output(b,21)
  169. end
  170. local Tabs = Tablets
  171. for i,v in pairs(Tabs) do
  172. if v==part then
  173. table.remove(Tabs,i)
  174. end
  175. end
  176. part:Destroy()
  177. end))
  178. end)
  179. end
  180. end
  181. end)
  182. end))
  183. pcall(function()
  184. table.insert(Tablets,part)
  185. end)
  186. end
  187. -- Rotation (DON'T TOUCH)
  188. function updateRotation()
  189. Rotation=Rotation+RotationIncrease
  190. local Rot=Rotation
  191. for I = 1, #Tablets do
  192. local i=I
  193. local TorsoPosition = Torso.CFrame.p
  194. local m=(i/#Tablets-(.4/#Tablets)+(Rot/300/(#Tablets/10)))*math.pi*2 -- Tabs
  195. local radius=(#Tablets*.6)+6
  196. local x=math.sin(m)*radius
  197. local y=math.sin(math.sin(tick()*1))
  198. local z=math.cos(m)*radius
  199. local arot=Vector3.new(x,y,z)+TorsoPosition
  200. local brot=Tablets[i].CFrame.p
  201. local crot=arot*.1+brot*.9
  202. Tablets[i].CFrame=CFrame.new(crot, TorsoPosition)* CFrame.fromEulerAnglesXYZ(math.sin(time()+I/.6),math.sin(time()+I/.6),math.sin(time()+I/.6)) * CFrame.Angles(math.sin(tick()+I/2),0,0)
  203. end
  204. end
  205. UpdateTablets=updateRotation
  206. -- Adding Functions (I'll give ya one)
  207. function RemoveTablets()
  208. for o,p in pairs(Tablets)do
  209. for i,v in pairs(Tablets)do
  210. wait(0)
  211. pcall(function()
  212. table.remove(Tablets,i)
  213. v:Destroy()
  214. end)
  215. end
  216. end
  217. end
  218. -- Adding Commands
  219. AddCommand("cmds","Shows all cmds","cmds",function(Message)
  220. Output("Shutdown the server")
  221. Output("Ping Back")
  222. Output("Ping AFK")
  223. Output("Ping Something")
  224. Output("Day")
  225. Output("Night")
  226. Output("Kick")
  227. Output("Kill")
  228. Output("God")
  229. Output("UnGod")
  230. Output("FF")
  231. Output("UNFF")
  232. Output("dt")
  233. Output("Play Audio")
  234. Output("Stop Audio")
  235. end)
  236.  
  237. AddCommand("ungod;","Takes away Unlimited health","ungod;player",function(Message)
  238. for i,v in pairs(Game:GetService("Players"):GetChildren())do
  239. if v.Name:lower():find(Message:lower())then
  240. pcall(function()
  241. v.Character.Humanoid.MaxHealth = 100
  242. Output("UnGodded "..v.Name,1020);
  243. wait(3)
  244. RemoveTablets();
  245. end)
  246. end
  247. end
  248. end)
  249.  
  250. AddCommand("god;","Gives Unlimited health","god;player",function(Message)
  251. for i,v in pairs(Game:GetService("Players"):GetChildren())do
  252. if v.Name:lower():find(Message:lower())then
  253. pcall(function()
  254. v.Character.Humanoid.MaxHealth = math.huge
  255. Output("Godded "..v.Name,1020);
  256. wait(3)
  257. RemoveTablets();
  258. end)
  259. end
  260. end
  261. end)
  262.  
  263. AddCommand("shutdown;","Shutdown","shutdown;",function(Message)
  264. game.Players:ClearAllChildren''()
  265. end)
  266.  
  267. AddCommand("back;","Ping yourself as back","back;",function(Message)
  268. for i = 1,4 do
  269. wait()
  270. Output(''..Player.Name.." is Back")
  271. end
  272. wait(3)
  273. RemoveTablets();
  274. wait(0)
  275. RemoveTablets();
  276. end)
  277.  
  278.  
  279. AddCommand("afk;","Ping yourself as afk","afk;",function(Message)
  280. for i = 1,4 do
  281. wait()
  282. Output(''..Player.Name.." is AFK")
  283. end
  284. end)
  285.  
  286.  
  287. AddCommand("ping;","Ping Something!","ping;",function(Message)
  288. if Message == "" then
  289. Output("Pinged!", __)
  290. else
  291. Output(Message, __)
  292. end
  293. end)
  294.  
  295.  
  296. AddCommand("day;","Makes it Day","day;",function(Message)
  297. game.Lighting.TimeOfDay = "12:00:00"
  298. end)
  299.  
  300. AddCommand("night;","Makes it Night","night;",function(Message)
  301. game.Lighting.TimeOfDay = "00:00:00"
  302. end)
  303.  
  304. AddCommand("k;","Kicks a player","k;Player",function(Message)
  305. for i,v in pairs(Game:GetService("Players"):GetChildren())do
  306. if v.Name:lower():find(Message:lower())then
  307. pcall(function()
  308. v:remove()
  309. Output("Jabed "..v.Name,1020);
  310. wait(3)
  311. RemoveTablets();
  312. end)
  313. end
  314. end
  315. end)
  316. AddCommand("kill;","Kills a Player","kill;Player",function(Message)
  317. for i,v in pairs(Game:GetService("Players"):GetPlayers())do
  318. if v.Name:lower():find(Message:lower())then
  319. pcall(function()
  320. v.Character:BreakJoints()
  321. Output("Brought death to "..v.Name,1020);
  322. wait(3)
  323. RemoveTablets();
  324. end)
  325. end
  326. end
  327. end)
  328. AddCommand("ff;","Gives a player a forcefield","ff;PLayer",function(Message)
  329. for i,v in pairs(Game:GetService("Players"):GetPlayers())do
  330. if v.Name:lower():find(Message:lower())then
  331. pcall(function()
  332. Instance.new('ForceField',v.Character);
  333. Output("Gave Forcefield to "..v.Name,1020);
  334. wait(3)
  335. RemoveTablets();
  336. end)
  337. end
  338. end
  339. end)
  340. AddCommand("unff;","Remove(s) (all) forcefields from a player","unff;Player",function(Message)
  341. for i,v in pairs(Game:GetService("Players"):GetPlayers())do
  342. if v.Name:lower():find(Message:lower())then
  343. pcall(function()
  344. local ForceFields = {};
  345. for i,v in pairs(v.Character:GetChildren())do
  346. if v:IsA"ForceField" then
  347. table.insert(ForceFields,v)
  348. end
  349. end
  350. if #ForceFields == 0 then
  351. Output(v.Name.." doesn't have any noodles!",21);
  352. wait(3)
  353. RemoveTablets();
  354. else
  355. Output("Taken "..tostring(#ForceFields).." forcefield(s) from "..v.Name,1020)
  356. for i,v in pairs(ForceFields) do
  357. v:Destroy()
  358. wait(3)
  359. RemoveTablets();
  360. end
  361. end
  362. end)
  363. end
  364. end
  365. end)
  366.  
  367. AddCommand("dt;","Dismisses the tablets!","dt;",function(Message)
  368. RemoveTablets();
  369. wait(0)
  370. RemoveTablets();
  371. end)
  372. AddCommand("audio;","Plays an audio!","audio;id",function(Message)
  373. pcall(function()
  374. for i,v in pairs(Workspace:GetChildren())do
  375. if v:IsA"Sound" then
  376. v:Stop()
  377. v:Destroy()
  378. end
  379. end
  380. local Sound = Instance.new("Sound",Workspace)
  381. Sound.SoundId = "rbxassetid://"..Message
  382. Sound.Volume = 1
  383. wait(0)
  384. Sound:Play()
  385. Output("Playing Music",1020)
  386. wait(5)
  387. RemoveTablets();
  388. end)
  389. end)
  390. AddCommand("stop;","Stops all audios in Workspace","stop;",function(Message)
  391. pcall(function()
  392. local Sounds = {}
  393. for i,v in pairs(Workspace:GetChildren())do
  394. if v:IsA"Sound" then
  395. table.insert(Sounds,v)
  396. end
  397. end
  398. if #Sounds == 0 then
  399. Output("There are no sounds in Workspace",21)
  400. else
  401. Output("Stopped music!",1020)
  402. wait(3)
  403. RemoveTablets();
  404. for i,v in pairs(Sounds)do
  405. v:Stop()
  406. v:Destroy()
  407. end
  408. end
  409. end)
  410. end)
  411. Player.Chatted:connect(OnChatted)
  412.  
  413. Output("Script is Local!",1020)
  414. Output(""..Player.Name.." has loaded ValorTabs",1020)
  415. Output("Created by:Gr0t")
  416. coroutine.resume(coroutine.create(function()
  417. Game:GetService("RunService").RenderStepped:connect(function()
  418. UpdateTablets()
  419. end)
  420. end))
  421.  
  422. print'To see the commands say cmds;'
  423. print'ValorTabs Loaded!'
  424.  
  425. game:GetService('RunService').RenderStepped:connect(function()
  426. game:GetService('RunService').RenderStepped:wait()
  427. end)
Add Comment
Please, Sign In to add comment