Advertisement
asdasdasd1312567dfsd

Untitled

Aug 17th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.04 KB | None | 0 0
  1. script.Parent = nil
  2.  
  3.  
  4. Player = game.Players.rigletto
  5. Char = Player.Character
  6. Version = "1st Generation"
  7. Tablets = {}
  8. function Tablet(message, img, clickFunction)
  9. tab = Instance.new("Part", game.Workspace)
  10. tab.FormFactor = "Custom"
  11. tab.Size = Vector3.new(1.5,2.5,0.05)
  12. tab.Anchored = true
  13. tab.BrickColor = BrickColor.new("Institutional white")
  14. tab.CanCollide = false
  15. tab.Transparency = 0
  16. if clickFunction == nil then
  17. -- nothing.
  18. else
  19. click = Instance.new("ClickDetector", tab)
  20. click.MouseClick:connect(function(play)
  21. if play.Name == Player.Name then
  22. loadstring(string.dump(clickFunction()))()
  23. end
  24. end)
  25. end
  26. box = Instance.new("SelectionBox", tab)
  27. box.Adornee = tab
  28. box.Color = BrickColor.new("Really black")
  29. mesh = Instance.new("BlockMesh", tab)
  30. gui = Instance.new("BillboardGui", tab)
  31. gui.Adornee = tab
  32. gui.StudsOffset = Vector3.new(0,3,0)
  33. gui.Size = UDim2.new(1,0,1,0)
  34. text = Instance.new("TextLabel", gui)
  35. text.Text = message
  36. text.Position = UDim2.new(0.5,0,0.5,0)
  37. text.Font = "ArialBold"
  38. text.FontSize = "Size24"
  39. text.TextColor3 = Color3.new(1,1,1)
  40. text.TextStrokeColor3 = Color3.new(0,0,0)
  41. text.TextStrokeTransparency = 0
  42. image = Instance.new("ImageLabel", gui)
  43. image.Position = UDim2.new(-2,0,-4.5,0)
  44. image.Image = img
  45. image.Size = UDim2.new(5,0,5,0)
  46. image.BackgroundTransparency = 1
  47. table.insert(Tablets, {tablet = tab, sb = box, txt = text})
  48. end
  49.  
  50. function DismissTablet()
  51. tab = Instance.new("Part", game.Workspace)
  52. tab.FormFactor = "Custom"
  53. tab.Size = Vector3.new(1.5,2.5,0.05)
  54. tab.Anchored = true
  55. tab.BrickColor = BrickColor.new("Institutional white")
  56. tab.CanCollide = false
  57. tab.Transparency = 0
  58. click = Instance.new("ClickDetector", tab)
  59. click.MouseClick:connect(function(ply)
  60. if ply.Name == Player.Name then
  61. DismissAll()
  62. end
  63. end)
  64. box = Instance.new("SelectionBox", tab)
  65. box.Adornee = tab
  66. box.Color = BrickColor.new("Really red")
  67. mesh = Instance.new("BlockMesh", tab)
  68. gui = Instance.new("BillboardGui", tab)
  69. gui.Adornee = tab
  70. gui.StudsOffset = Vector3.new(0,3,0)
  71. gui.Size = UDim2.new(1,0,1,0)
  72. text = Instance.new("TextLabel", gui)
  73. text.Text = "Dismiss"
  74. text.Position = UDim2.new(0.5,0,0.5,0)
  75. text.Font = "ArialBold"
  76. text.FontSize = "Size24"
  77. text.TextColor3 = Color3.new(1,1,1)
  78. text.TextStrokeColor3 = Color3.new(1,0,0)
  79. text.TextStrokeTransparency = 0
  80. table.insert(Tablets, {tablet = tab, sb = box, txt = text})
  81. end
  82.  
  83. function match(str) -- thas some of it
  84. c = {}
  85. if str:lower() == "me" then
  86. return Player
  87. end
  88. for i,v in pairs(game.Players:GetChildren()) do
  89. if v.Name:sub(1,str:len()):lower() == str:lower() then
  90. return v
  91. end
  92. end
  93. return c
  94. end
  95.  
  96. function GetArgs(Text)
  97. if Text == "" or type(Text) ~= "string" then return {""} end
  98. local Divider = ";"
  99. local Position, Words = 0, {}
  100. for Start, Stop in function() return string.find(Text, Divider, Position, true) end do
  101. table.insert(Words, string.sub(Text, Position, Start - 1))
  102. Position = Stop + 1
  103. end
  104. table.insert(Words, string.sub(Text, Position))
  105. return Words
  106. end
  107.  
  108. commands = {
  109. {cmd = "$dismiss", name = "Dismiss", desc = "Dismisses all tablets", synt = "$dismiss", func = function(arg)
  110. DismissAll()
  111. end
  112. };
  113. {cmd = "$cmds", name = "Commands", desc = "Shows all commands", synt = "$help", func = function(arg)
  114. for i = 1, #commands do
  115. Tablet(commands[i].name, "", function(ply)
  116. DismissAll()
  117. Tablet("Name: "..commands[i].name, "", nil)
  118. Tablet("Use: "..commands[i].desc, "", nil)
  119. Tablet("Syntax: "..commands[i].synt, "", nil)
  120. DismissTablet()
  121. end)
  122. end
  123. DismissTablet()
  124. end
  125. };
  126. {cmd = "$uinfo", name = "User Information", desc = "Shows information about the user", synt = "$uinfo", func = function(msg)
  127. pcall(function()
  128. v = match(msg)
  129. Tablet("Name: "..v.Name, "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..v.Name, nil)
  130. Tablet("Age: "..v.AccountAge, "", nil)
  131. Tablet("ID: "..v.userId, "", nil)
  132. DismissTablet()
  133. end)
  134. end
  135. };
  136. {cmd = "$ping", name = "Ping", desc = "Makes a tablet with a custom message", synt = "$ping;message", func = function(msg)
  137. pcall(function()
  138. Tablet(msg, "", function() DismissAll() end)
  139. end)
  140. end
  141. };
  142. {cmd = "$info", name = "Information", desc = "Shows information about CIRON", synt = "$info", func = function(msg)
  143. Tablet("CIRON is a administration script", "", nil)
  144. Tablet("CIRON was made by Taduliukas", "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username=rigletto", nil)
  145. Tablet("CIRON will not be given out", "", nil)
  146. Tablet("See $cmds", "", function() DismissAll() commands[2].func("") end)
  147. DismissTablet()
  148. end
  149. };
  150. {cmd = "$remove", name = "Remove", desc = "Removes the script", synt = "$remove", func = function(msg)
  151. Tablet("Yes", "", function() DisconnectChatting() end)
  152. Tablet("Are you sure?", "", nil)
  153. Tablet("No", "", function() DismissAll() end)
  154. end
  155. };
  156. {cmd = "$kill", name = "Kill", desc = "Kills the specified player", synt = "$kill;player", func = function(msg)
  157. pcall(function()
  158. v = match(msg)
  159. v.Character:BreakJoints()
  160. end)
  161. end
  162. };
  163. {cmd = "$kick", name = "Kick", desc = "Kicks the specified player", synt = "$kick;player", func = function(msg)
  164. pcall(function()
  165. v = match(msg)
  166. v:Destroy()
  167. end)
  168. end
  169. };
  170. {cmd = "$exe", name = "Execute", desc = "Execute a Lua script", synt = "$exe;source", func = function(msg)
  171. pcall(function()
  172. loadstring(msg)()
  173. end)
  174. end
  175. };
  176. {cmd = "$speed", name = "Walkspeed", desc = "Speeds a player up", synt = "$speed;player;speed", func = function(msg)
  177. pcall(function()
  178. local args = GetArgs(msg)
  179. if not match(args[1]) then return end
  180. pcall(function()
  181. match(args[1]).Character.Humanoid.WalkSpeed = args[2]
  182. end)
  183. end)
  184. end
  185. };
  186. {cmd = "$list", name = "Player List", desc = "Show a player list", synt = "$list", func = function(msg)
  187. for i,v in pairs(game.Players:GetChildren()) do
  188. Tablet(v.Name, "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..v.Name, function() DismissAll() commands[3].func(v.Name) end)
  189. end
  190. DismissTablet()
  191. end
  192. };
  193. {cmd = "$ff", name = "Forcefield", desc = "Enables/disables forcefield on the specified player", synt = "$ff;player;bool", func = function(msg)
  194. pcall(function()
  195. local args = GetArgs(msg)
  196. if not match(args[1]) then return end
  197. pcall(function()
  198. if args[2] == "true" and not match(args[1]).Character:FindFirstChild("ForceField") then
  199. Instance.new("ForceField", match(args[1]).Character)
  200. else
  201. for _,v in pairs(match(args[1]).Character:children()) do
  202. if v.ClassName == "ForceField" then
  203. v:Destroy()
  204. end
  205. end
  206. end
  207. end)
  208. end)
  209. end
  210. };
  211. }
  212.  
  213. function AddCommand(Cmd,Name,Desc,Synt,Func)
  214. table.insert(commands, {cmd = Cmd, name = Name, desc = Desc, synt = Synt, func = Func})
  215. end
  216.  
  217. function DismissAll()
  218. for i = 1, #Tablets do
  219. Delay(0, function()
  220. for a = 0, 1, .1 do
  221. Tablets[i].tablet.Transparency = a
  222. Tablets[i].sb.Transparency = a
  223. Tablets[i].txt.TextTransparency = a
  224. wait()
  225. end
  226. end)
  227. end
  228. while wait() do
  229. if Tablets[1].tablet.Transparency == 1 then
  230. break
  231. end
  232. end
  233. for i = 1, #Tablets do
  234. Tablets[i].tablet:Destroy()
  235. Tablets[i] = nil
  236. end
  237. Tablets = {}
  238. end
  239.  
  240. Tablet("Loaded CIRON : "..Version, "", nil)
  241. Tablet("See $cmds", "", function() DismissAll() commands[2].func("") end)
  242. DismissTablet()
  243.  
  244. function DisconnectChatting()
  245. DismissAll()
  246. chatConnection:disconnect()
  247. end
  248.  
  249. function CmdsFunc(msg)
  250. local find = GetArgs(msg)[1]
  251. for i = 1, #commands do
  252. if commands[i].cmd:lower():find(find:lower()) then
  253. commands[i].func(string.sub(msg, commands[i].cmd:len() + 2))
  254. end
  255. end
  256. end
  257.  
  258. chatConnection = Player.Chatted:connect(CmdsFunc)
  259.  
  260. rotation = 0
  261. while wait() do
  262. rotation = rotation + 0.0001
  263. pcall(function()
  264. for i = 1, #Tablets do
  265. pcall(function()
  266. position = Player.Character.Torso.CFrame
  267. end)
  268. radius = 5 + (#Tablets * 0.5)
  269. x = math.cos((i / #Tablets - (0.5 / #Tablets) + rotation * 2) * math.pi * 2) * radius
  270. y = 0
  271. z = math.sin((i / #Tablets - (0.5 / #Tablets) + rotation * 2) * math.pi * 2) * radius
  272. pcall(function()
  273. tposition = position:toWorldSpace(CFrame.new(x,y,z):inverse())
  274. end)
  275. pcall(function()
  276. Tablets[i].tablet.CFrame = CFrame.new(tposition.p, position.p) * CFrame.Angles(math.rad(25),0,0)
  277. end)
  278. end
  279. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement