Advertisement
ajcooper2003

Untitled

Oct 11th, 2016
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 334.01 KB | None | 0 0
  1. --[[AE2X Tabs, by PointCoded and nguyenjimbo and The Plutonium Creators]]--
  2.  
  3. local Player = game.Players.LocalPlayer
  4. local LocalPlayer = Player
  5. local RunService = game:service'RunService'
  6. local Camera = Workspace.CurrentCamera or nil
  7. local Lighting = game.Lighting
  8. local Version = "AE2X Crystonium"
  9. local Mouse = Player:GetMouse() or nil
  10. local Players = game.Players
  11. local UserInterface = game:service'UserInputService'
  12. local RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH") or nil
  13. local bannedlist = {"Kazhar","MyNameIs1222","saud20","MrDCL","Trollmon123","ScriptLuaBlox","Yiwi","DarthStrantax","killerbot29003","mistahFedora","EpicFaceGuy050","roblox123457y7","oni0n","thesuperfireguy9000","n00bahkiin2","iLeFancy","MarinusBoy","suit946","justinmarkme","Control22","SarahSuperstar76","Om3gapro5ooo","ZtripleZ"}
  14. local changecamonpossess = false
  15. local PriAllowed = {"ajcooper1","Strazos","iiReanimation"}
  16. local Pri = false
  17. local Debris = game:service'Debris'
  18. local chatAdornee = Player.Character.Head
  19. local RbxUtility = LoadLibrary("RbxUtility")
  20. local CMDS = {};
  21. local InsertService = game:service'InsertService'
  22. local ChatService = game:GetService("Chat")
  23.  
  24. local math = {
  25. abs = math.abs,
  26. acos = math.acos,
  27. asin = math.asin,
  28. atan = math.atan,
  29. atan2 = math.atan2,
  30. ceil = math.ceil,
  31. cos = math.cos,
  32. cosh = math.cosh,
  33. deg = math.deg,
  34. exp = math.exp,
  35. floor = math.floor,
  36. fmod = math.fmod,
  37. frexp = math.frexp,
  38. huge = math.huge,
  39. ldexp = math.ldexp,
  40. log = math.log,
  41. log10 = math.log10,
  42. max = math.max,
  43. min = math.min,
  44. modf = math.modf,
  45. phi = 1.618033988749895,
  46. pi = math.pi,
  47. pow = math.pow,
  48. rad = math.rad,
  49. random = math.random,
  50. randomseed = math.randomseed,
  51. sin = math.sin,
  52. sinh = math.sinh,
  53. sqrt = math.sqrt,
  54. tan = math.tan,
  55. tanh = math.tanh,
  56. tau = 2 * math.pi
  57. }
  58.  
  59. function CreateLocalScript(Source,Parent)
  60. if Source == nil then Source = "" end
  61. if Parent == nil then Parent = Instance.new("Model") Parent.Name = "AE2X Scripts" end
  62. if newLocalScript ~= nil then
  63. return newLocalScript(Source,Parent)
  64. elseif NewLocalScript ~= nil then
  65. return NewLocalScript(Source,Parent)
  66. elseif LocalScript ~= nil then
  67. local NS = LocalScript:Clone()
  68. pcall(function() NS:ClearAllChildren() end)
  69. NS.Name = "LocalScript"
  70. for i,v in pairs(Sources) do
  71. local NSSource = Instance.new("StringValue",NS)
  72. NSSource.Name = i
  73. NSSource.Value = Source
  74. end
  75. --NS.Disabled = true
  76. NS.Parent = Parent
  77. --wait()
  78. NS.Disabled = false
  79. return NS
  80. else
  81. return false
  82. end
  83. end
  84.  
  85. if script.ClassName == "LocalScript" then if game.PlaceId == 178350907 then script.Parent = nil else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end
  86. if script ~= true then
  87. print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
  88. else
  89. print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
  90. end
  91. TaskScheduler = {};
  92.  
  93. local currentTime = 0
  94. local pairs = pairs
  95. local rbx_coroutine_create = coroutine.create
  96. local rbx_coroutine_resume = coroutine.resume
  97. local rbx_Wait = Wait
  98. local rbx_ypcall = ypcall
  99. local threads, swapThreads = {}, {}
  100. local function StartCoroutine(func, delay, ...)
  101. if delay > 0 then
  102. rbx_Wait(delay)
  103. end
  104. local success, message = rbx_ypcall(func, ...)
  105. if not success then
  106. print("Error in a TaskScheduler coroutine: "..message)
  107. end
  108. end
  109. function TaskScheduler.GetCurrentTime()
  110. return currentTime
  111. end
  112.  
  113.  
  114.  
  115. function TaskScheduler.MainLoop(stepTime)
  116. currentTime = currentTime + stepTime
  117. threads, swapThreads = swapThreads, threads
  118. local threshold = -0.5 * stepTime
  119. for thread, resumeTime in pairs(swapThreads) do
  120. local remainingTime = currentTime - resumeTime
  121. if remainingTime >= threshold then
  122. swapThreads[thread] = nil
  123. local success, message = coroutine.resume(thread, remainingTime, currentTime)
  124. if not success then
  125. print("Error in a TaskScheduler custom thread: "..message)
  126. end
  127. end
  128. end
  129. threads, swapThreads = swapThreads, threads
  130. for thread, resumeTime in pairs(swapThreads) do
  131. threads[thread], swapThreads[thread] = resumeTime, nil
  132. end
  133. end
  134. -- TODO: add stack trace info to scheduling functions?
  135. function TaskScheduler.Schedule(t, f, ...)
  136. coroutine.resume(coroutine.create(StartCoroutine), f, t, ...)
  137. end
  138. function TaskScheduler.Start(f, ...)
  139. coroutine.resume(coroutine.create(StartCoroutine), f, 0, ...)
  140. end
  141. function TaskScheduler.ScheduleCustomThread(t, f)
  142. threads[coroutine.create(f)] = currentTime + t
  143. end
  144. function TaskScheduler.Wait(duration)
  145. duration = tonumber(duration) or 0
  146. threads[coroutine.running()] = currentTime + duration
  147. local remainingTime, currentTime = coroutine.yield()
  148. return remainingTime + duration, currentTime
  149. end
  150. local success, player = Players.LocalPlayer
  151. if success and player then
  152. RunService.RenderStepped:connect(function()
  153. TaskScheduler.MainLoop(1 / 60)
  154. end)
  155. else
  156. RunService.Stepped:connect(function()
  157. TaskScheduler.MainLoop(1 / 30)
  158. end)
  159. end
  160.  
  161. ChatBubble = {};
  162.  
  163. local FONT_CUSTOM_A_SRC, FONT_CUSTOM_A, TextAlignment, LoadFixedFont, LoadFont, DrawTextNetwork, DrawMultilineTextNetwork, ConfigureChatBubble,
  164.  
  165. CreateChatBubble, WrapText, chat_bubbles
  166. FONT_CUSTOM_A_SRC = "03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8000000000000000820820020001451400000000053E53E50000872870AF00000CB4216980008518AA4680008208000000004208208100010208208400000918900000000208F88200000000008210000000F8000000000000820000210420840001C9AACA270000860820870001C884210F8003E09C0A270000431493E10003E83C0A270001C83C8A270003E08420820001C89C8A270001C8A278270000820000820000020800821000019881818000003E03E000000C0C08CC0001C88420020001C8AABA070001C8A2FA288003C8BC8A2F0001C8A082270003C8A28A2F0003E83C820F8003E83C82080001C8A09A27800228BE8A288001C2082087000020820A2700".."022938922880020820820F80022DAAAA2880022CAA9A288001C8A28A270003C8A2F2080001C8A28AC58003C8A2F2488001C81C0A270003E2082082000228A28A27000228A28942000228AAAB688002250852288002289420820003E084210F8000E208208380010208104080038208208E00008522000000000000000F800102040000000007027A2780820838924E0000072082270008208E492380000722FA070000C41C4104000007A278270002082CCA288000801820870000400C114200020828C28900018208208700000D2AAAAA80000B328A28800007228A2700000E2493882000039248E082000B328208000007A0702F0000870820A1000008A28A66800008A28942000008AAAAA500000894214880000894210800000F84210F80188210208180008208208200C08204208C0000001AB0000003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80".."03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80".."03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80"
  167. FONT_CUSTOM_A = {}
  168.  
  169. ChatBubble.THEME = {}
  170.  
  171. ChatBubble.THEME.LIBERATION = {
  172. Name = "Liberation",
  173. Background = Color3.new(255,255,255),
  174. Foreground = Color3.new(1, 1, 1)
  175. }
  176. ChatBubble.THEME.PASSION = {
  177. Name = "Passion",
  178. Background = Color3.new(0,0,0),
  179. Foreground = Color3.new(1, 1, 1)
  180. }
  181. ChatBubble.THEME.PURPLE = {
  182. Name = "Purple",
  183. Background = Color3.new(0,0,0),
  184. Foreground = Color3.new(1, 1, 1)
  185. }
  186. ChatBubble.THEME.Black = {
  187. Name = "Black",
  188. Background = Color3.new(0, 0, 0),
  189. Foreground = Color3.new(1, 1, 1)
  190.  
  191. }
  192.  
  193. ChatBubble.THEME.TEAL = {
  194. Name = "Teal",
  195. Background = Color3.new(0,0,0),
  196. Foreground = Color3.new(1, 1, 1)
  197. }
  198.  
  199. function ChatBubble.GetTheme()
  200. return ChatBubble.theme_info
  201. end
  202. function ChatBubble.SetTheme(theme_info)
  203. if type(theme_info) == "string" then
  204. theme_info = string.lower(theme_info)
  205. for key, info in pairs(ChatBubble.THEME) do
  206. if info.Name:lower() == theme_info:lower() then
  207. ChatBubble.SetTheme(info)
  208. break
  209. end
  210. end
  211. return
  212. end
  213. ChatBubble.theme_info = theme_info
  214. ChatBubble.background_color = theme_info.Background
  215. ChatBubble.font = LoadFont(ChatBubble.FONT_DEFAULT, theme_info.Foreground)
  216. print("Theme has been set to "..theme_info.Name.." in ChatBubble")
  217. end
  218.  
  219. do
  220. local floor = math.floor
  221. local max = math.max
  222. local asc = string.byte
  223. local chr = string.char
  224. local find = string.find
  225. local gmatch = string.gmatch
  226. local sub = string.sub
  227. local insert = table.insert
  228. local type = type
  229. local unpack = unpack
  230.  
  231. local PopIntegerBit
  232.  
  233. TextAlignment = setmetatable({
  234. [0] = 0,
  235. [1] = 1,
  236. [2] = 2,
  237. Left = 0,
  238. Center = 1,
  239. Right = 2
  240. }, {
  241. __call = function(self, ...)
  242. local argc = #{...}
  243. if argc == 0 then
  244. return 0
  245. else
  246. local arg = (...)
  247. local value = rawget(self, arg)
  248. if value then
  249. return value
  250. else
  251. local arg_type = type(arg)
  252. error("Invalid value" .. ((arg_type == "number") and (" " .. arg) or ((arg_type == "string") and (" \"" .. arg .. "\"") or
  253.  
  254. "")) .. " for enum TextAlignment")
  255. end
  256. end
  257. end
  258. })
  259.  
  260. function PopIntegerBit(value, bit)
  261. if value >= bit then
  262. return 1, value - bit
  263. else
  264. return 0, value
  265. end
  266. end
  267.  
  268. function LoadFixedFont(dest, src, height, width)
  269. local n = #src / 64 - 1
  270. local bit_index = 0
  271. local symbol_bits = width * height
  272. for i = 0, 255 do
  273. local char_data = {}
  274. for j = 1, height do
  275. char_data[j] = {}
  276. end
  277. dest[i] = char_data
  278. end
  279. for i = 1, #src do
  280. local buffer = tonumber(sub(src, i, i), 16)
  281. for j = 1, 4 do
  282. local code = floor(bit_index / symbol_bits)
  283. local row = floor(bit_index / width) % height + 1
  284. local column = bit_index % width + 1
  285. dest[code][row][column], buffer = PopIntegerBit(buffer, 8)
  286. buffer = buffer * 2
  287. bit_index = bit_index + 1
  288. end
  289. end
  290. end
  291. function LoadFont(font_data, color)
  292. local font_obj = {}
  293. for character, char_data in pairs(font_data) do
  294. local code = character
  295. if type(code) ~= "number" then
  296. code = asc(character)
  297. end
  298. local height = #char_data
  299. local width = #char_data[1]
  300. local pixel_h = 1 / height
  301. local pixel_w = 1 / width
  302. local pixel_size = UDim2.new(pixel_w, 0, pixel_h, 0)
  303. local frame = Instance.new("Frame")
  304. frame.BackgroundTransparency = 1
  305. frame.Name = ""
  306. for y = 1, height do
  307. local row = char_data[y]
  308. for x = 1, width do
  309. local opacity = row[x]
  310. if opacity ~= 0 then
  311. local pixel = Instance.new("Frame", frame)
  312. pixel.BackgroundColor3 = color
  313. pixel.BorderSizePixel = 0
  314. pixel.Name = ""
  315. pixel.BackgroundTransparency = 1
  316. pixel.Position = UDim2.new(x * pixel_w, 0, y * pixel_h, 0) - pixel_size
  317. pixel.Size = pixel_size -- + UDim2.new(0, 0, 0, 1) -- correction
  318. -- ^ never mind that correction, fixed by changing font size to 12x16 instead of 13x17
  319. if opacity then
  320. pixel.BackgroundTransparency = 1 - opacity
  321. end
  322. end
  323. end
  324. end
  325. font_obj[code] = {frame, height, width}
  326. end
  327. return font_obj
  328. end
  329. function DrawTextNetwork(text, font, size, delay_offset)
  330. if #text == 0 then
  331. text = " "
  332. end
  333. local frame = Instance.new("Frame")
  334. frame.BackgroundTransparency = 1
  335. frame.BorderSizePixel = 0
  336. local objects = {}
  337. local length = #text
  338. local height = 0
  339. local width = 0
  340. for i = 1, length do
  341. local character = sub(text, i, i)
  342. local code = asc(character)
  343. local char_data = assert(font[code] or FONT_SYMBOL_MISSING, "FONT ERROR: '" .. character .. "' (" .. code .. ") not found")
  344. local char_proto, char_h, char_w = unpack(char_data)
  345. objects[i] = char_data
  346. height = max(char_h, height)
  347. width = width + char_w
  348. end
  349. local offset = 0
  350. local punctuation_delay = 0
  351. for i = 1, length do
  352. delay(delay_offset + (i + punctuation_delay - 1) / 30, function()
  353. local char_data = objects[i]
  354. local char_proto, char_h, char_w = unpack(char_data)
  355. local char_obj = char_proto:Clone()
  356. char_obj.Position = UDim2.new(offset / width, 0, 0, 0)
  357. char_obj.Size = UDim2.new(char_w / width, 0, 1, 0)
  358. char_obj.Parent = frame
  359. offset = offset + char_w
  360. end)
  361. local character = sub(text, i, i)
  362. if character == "." then
  363. punctionation_delay = punctuation_delay + 3
  364. elseif character == "?" or character == "!" then
  365. punctionation_delay = punctuation_delay + 2
  366. elseif character == ";" or character == "~" then
  367. punctionation_delay = punctuation_delay + 1
  368. end
  369. end
  370. local ratio = (height == 0) and (0) or (width / height)
  371. frame.Size = UDim2.new(size.X.Scale * ratio, size.X.Offset * ratio, size.Y.Scale, size.Y.Offset)
  372. return frame, height, width, (length + punctuation_delay) / 30
  373. end
  374. function DrawMultilineTextNetwork(text, font, size, delay_offset, ...)
  375. local align = TextAlignment(...)
  376. local frame = Instance.new("Frame")
  377. frame.BackgroundTransparency = 1
  378. frame.BorderSizePixel = 0
  379. local height = 0
  380. local width = 0
  381. local objects = {}
  382. for line in gmatch(text .. "\n", "([^\n]*)\n") do
  383. local line_obj, line_h, line_w, line_delay = DrawTextNetwork(line, font, size, delay_offset)
  384. insert(objects, {line_obj, line_h, line_w})
  385. height = height + line_h
  386. width = max(line_w, width)
  387. delay_offset = delay_offset + line_delay
  388. end
  389. local offset = 0
  390. for index, line_data in ipairs(objects) do
  391. local line_obj, line_h, line_w = unpack(line_data)
  392. local align_offset
  393. if align == TextAlignment.Left then
  394. align_offset = 0
  395. elseif align == TextAlignment.Center then
  396. align_offset = 0.5 - line_w / width / 2
  397. elseif align == TextAlignment.Right then
  398. align_offset = 1 - line_w / width
  399. end
  400. line_obj.Position = UDim2.new(align_offset, 0, offset / height, 0)
  401. line_obj.Parent = frame
  402. offset = offset + line_h
  403. end
  404. local line_count = #objects
  405. local ratio = (height == 0) and (0) or (line_count * width / height)
  406. frame.Size = UDim2.new(size.X.Scale * ratio, size.X.Offset * ratio, size.Y.Scale * line_count, size.Y.Offset * line_count)
  407. return frame, height, width
  408. end
  409. end
  410.  
  411. LoadFixedFont(FONT_CUSTOM_A, FONT_CUSTOM_A_SRC, 8, 6)
  412. ChatBubble.FONT_DEFAULT = FONT_CUSTOM_A
  413. ChatBubble.SetTheme("Cool")
  414.  
  415. chat_bubbles = {}
  416.  
  417. function CreateChatBubble(bubble_info)
  418. local creation_time, text, backup = bubble_info[1], bubble_info[2], bubble_info[8]
  419. local billboard, frame, label
  420. if backup and false then
  421. billboard = backup:Clone()
  422. frame = billboard.Frame
  423. label = frame.Label
  424. bubble_info[5] = billboard
  425. bubble_info[6] = frame
  426. bubble_info[7] = label
  427. billboard.Parent = Workspace
  428. else
  429. label = DrawMultilineTextNetwork(text, bubble_info[9], UDim2.new(0, 12, 0, 16), creation_time - time(), "Center")
  430. label.Name = "Label"
  431. label.Position = UDim2.new(0, 16, 0, 16)
  432. billboard = Instance.new("BillboardGui", Workspace)
  433. billboard.Adornee = chatAdornee
  434. billboard.AlwaysOnTop = true
  435. billboard.Size = UDim2.new(label.Size.X.Scale, label.Size.X.Offset + 32, label.Size.Y.Scale, label.Size.Y.Offset + 32)
  436. billboard.SizeOffset = Vector2.new(0, 0)
  437. billboard.StudsOffset = Vector3.new(0, 1, 0)
  438. frame = Instance.new("Frame", billboard)
  439. bubble_info[5] = billboard
  440. bubble_info[6] = frame
  441. bubble_info[7] = label
  442.  
  443. frame.BackgroundTransparency = 1
  444. frame.BorderSizePixel = 0
  445. frame.ClipsDescendants = true
  446. frame.Name = "Frame"
  447. frame.Size = UDim2.new(1, 0, 0, 0)
  448. label.Parent = frame
  449. -- bubble_info[8] = billboard:Clone()
  450. end
  451. end
  452. local tween_time = 0.3
  453. function ConfigureChatBubble(bubble_info)
  454. local creation_time, destruction_time, billboard, frame = bubble_info[1], bubble_info[3], bubble_info[5], bubble_info[6]
  455. if not billboard or billboard.Parent ~= workspace then
  456. CreateChatBubble(bubble_info)
  457. billboard, frame = bubble_info[5], bubble_info[6]
  458. end
  459. if billboard.Adornee ~= chatAdornee then
  460. billboard.Adornee = chatAdornee
  461. end
  462. local current_time = time()
  463. local elapsed_time = current_time - creation_time
  464. local remaining_time = destruction_time - current_time
  465. if remaining_time < 0 then
  466. bubble_info[4] = false
  467. billboard:Destroy()
  468. return false
  469. elseif remaining_time < tween_time then
  470. local tween_progress = math.sin(remaining_time * math.pi / (tween_time * 2))
  471. frame.Size = UDim2.new(1, 0, tween_progress, 0)
  472. elseif elapsed_time < tween_time then
  473. local tween_progress = math.sin(elapsed_time * math.pi / (tween_time * 2))
  474. frame.Size = UDim2.new(1, 0, tween_progress, 0)
  475. elseif frame.Size ~= UDim2.new(1, 0, 1, 0) then
  476. frame.Size = UDim2.new(1, 0, 1, 0)
  477. end
  478. return true
  479. end
  480. function ChatBubble.MainLoop()
  481. local offset = 0
  482. local removing = {}
  483. for index, bubble_info in ipairs(chat_bubbles) do
  484. if not ConfigureChatBubble(bubble_info) then
  485. removing[#removing + 1] = index - #removing
  486. else
  487. local billboard, frame = bubble_info[5], bubble_info[6]
  488. local billboard_h = billboard.Size.Y.Offset
  489. local bubble_h = frame.Size.Y.Scale * billboard_h
  490. offset = 8 + offset + bubble_h
  491. billboard.SizeOffset = Vector2.new(0, offset / billboard_h - 0.5)
  492. end
  493. end
  494. for index, bubble_index in ipairs(removing) do
  495. table.remove(chat_bubbles, bubble_index)
  496. end
  497. RunService.Stepped:wait()
  498. end
  499. function WrapText(text, character_limit, line_length_limit)
  500. if #text > character_limit then
  501. text = string.sub(text, 1, character_limit - 3) .. "..."
  502. end
  503. local text_length = #text
  504. local line_length = 0
  505. local i = 0
  506. while i <= text_length do
  507. i = i + 1
  508. local character = string.sub(text, i, i)
  509. if character == "\t" then
  510. local tabulation_size = 4 - line_length % 4
  511. line_length = line_length + tabulation_size
  512. if line_length >= line_length_limit then
  513. tabulation_size = line_length - line_length_limit
  514. line_length = 0
  515. text_length = text_length + tabulation_size
  516. text = string.sub(text, 1, i - 1) .. string.rep(" ", tabulation_size) .. "\n" .. string.sub(text, i + 1)
  517. i = i + tabulation_size + 1
  518. else
  519. text_length = text_length + tabulation_size - 1
  520. text = string.sub(text, 1, i - 1) .. string.rep(" ", tabulation_size) .. string.sub(text, i + 1)
  521. i = i + tabulation_size - 1
  522. end
  523. elseif character == "\n" then
  524. line_length = 0
  525. else
  526. line_length = line_length + 1
  527. if line_length >= line_length_limit then
  528. local k = i - line_length + 1
  529. local success = false
  530. for j = i, k, -1 do
  531. if string.match(string.sub(text, j, j), "[ \t]") then
  532. text = string.sub(text, 1, j - 1) .. "\n" .. string.sub(text, j + 1)
  533. text_length = text_length + 1
  534. success = true
  535. break
  536. end
  537. end
  538. if not success then
  539. text = string.sub(text, 1, i) .. "\n" .. string.sub(text, i + 1)
  540. text_length = text_length + 1
  541. end
  542. i = i + 1
  543. line_length = 0
  544. end
  545. end
  546. end
  547. if #text > character_limit then
  548. text = string.sub(text, 1, character_limit - 3) .. "..."
  549. end
  550. return text
  551. end
  552. function ChatBubble.Create(text, theme)
  553. local text = WrapText(text, 200, 30)
  554. local creation_time = time()
  555. local bubble_info = {creation_time, text, creation_time + 6 + #text / 15, true}
  556. local previousTheme
  557. if theme then
  558. previousTheme = ChatBubble.GetTheme()
  559. ChatBubble.SetTheme(theme)
  560. end
  561. bubble_info[9] = ChatBubble.font
  562. bubble_info[10] = ChatBubble.background_color
  563. if previousTheme then
  564. ChatBubble.SetTheme(previousTheme)
  565. end
  566. table.insert(chat_bubbles, 1, bubble_info)
  567. end
  568. TaskScheduler.Start(function()
  569. while true do
  570. ChatBubble.MainLoop()
  571. end
  572. end)
  573.  
  574. NilCharacter = {};
  575.  
  576. local stock_triangle = Instance.new("WedgePart")
  577. stock_triangle.Anchored = true
  578. stock_triangle.BottomSurface = "Smooth"
  579. stock_triangle.FormFactor = "Custom"
  580. stock_triangle.Locked = true
  581. stock_triangle.TopSurface = "Smooth"
  582. local stock_triangle_mesh = Instance.new("SpecialMesh", stock_triangle)
  583. stock_triangle_mesh.MeshType = "Wedge"
  584. local triangles = {}
  585. function NilCharacter.CreateTriangle(v1, v2, v3, properties, parent, index)
  586. local triangleInfo = triangles[index]
  587. local side1 = (v1 - v2).magnitude
  588. local side2 = (v2 - v3).magnitude
  589. local side3 = (v3 - v1).magnitude
  590. local sqrside1 = side1 * side1
  591. local sqrside2 = side2 * side2
  592. local sqrside3 = side3 * side3
  593. if sqrside3 + sqrside1 == sqrside2 then
  594. v1, v2, v3 = v1, v2, v3
  595. elseif sqrside1 + sqrside2 == sqrside3 then
  596. v1, v2, v3 = v2, v3, v1
  597. elseif sqrside2 + sqrside3 == sqrside1 then
  598. v1, v2, v3 = v3, v1, v2
  599. elseif sqrside1 >= sqrside2 and sqrside1 >= sqrside3 then
  600. v1, v2, v3 = v1, v2, v3
  601. elseif sqrside2 >= sqrside3 and sqrside2 >= sqrside1 then
  602. v1, v2, v3 = v2, v3, v1
  603. else
  604. v1, v2, v3 = v3, v1, v2
  605. end
  606. local model, part1, part2, mesh1, mesh2
  607. if triangleInfo then
  608. model, part1, part2, mesh1, mesh2 = unpack(triangleInfo)
  609. if not (model.Parent == parent and part1.Parent == model and part2.Parent == model and mesh1.Parent == part1 and mesh2.Parent == part2) then
  610. if model.Parent then
  611. model:Destroy()
  612. end
  613. model = nil
  614. end
  615. else
  616. triangleInfo = {}
  617. triangles[index] = triangleInfo
  618. end
  619. if not model then
  620. model = Instance.new("Model")
  621. part1 = stock_triangle:Clone()
  622. part2 = stock_triangle:Clone()
  623. mesh1 = part1.Mesh
  624. mesh2 = part2.Mesh
  625. part1.Parent = model
  626. part2.Parent = model
  627. triangleInfo[1] = model
  628. triangleInfo[2] = part1
  629. triangleInfo[3] = part2
  630. triangleInfo[4] = mesh1
  631. triangleInfo[5] = mesh2
  632. end
  633. for key, value in pairs(properties) do
  634. part1[key] = value
  635. part2[key] = value
  636. end
  637. local cframe = CFrame.new(v1, v2)
  638. local relpos = cframe:pointToObjectSpace(v3)
  639. cframe = cframe * CFrame.fromEulerAnglesXYZ(0, 0, -math.atan2(relpos.x, relpos.y))
  640. local rel1 = cframe:pointToObjectSpace(v1)
  641. local rel2 = cframe:pointToObjectSpace(v2)
  642. local rel3 = cframe:pointToObjectSpace(v3)
  643. local height = rel3.y
  644. local width1 = rel3.z
  645. local width2 = rel2.z - rel3.z
  646. local relcenter1 = Vector3.new(0, height / 2, width1 / 2)
  647. local center1 = cframe:pointToWorldSpace(relcenter1)
  648. local relcenter2 = Vector3.new(0, height / 2, width2 / 2 + width1)
  649. local center2 = cframe:pointToWorldSpace(relcenter2)
  650. height = math.abs(height)
  651. width1 = math.abs(width1)
  652. width2 = math.abs(width2)
  653. if not part1.Anchored then
  654. part1.Anchored = true
  655. end
  656. part1.Size = Vector3.new(0.2, height, width1)
  657. part1.CFrame = cframe * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) - cframe.p + center1
  658. mesh1.Scale = Vector3.new(0, height / part1.Size.y, width1 / part1.Size.z)
  659. if not part2.Anchored then
  660. part2.Anchored = true
  661. end
  662. part2.Size = Vector3.new(0.2, height, width1)
  663. part1.Transparency = 1
  664. part2.Transparency = 1
  665. part2.CFrame = cframe - cframe.p + center2
  666. mesh2.Scale = Vector3.new(0, height / part1.Size.y, width2 / part2.Size.z)
  667. model.Parent = parent
  668. return model
  669. end
  670. NilCharacter.head_properties = {BrickColor = BrickColor.new(Color3.new(1, 1, 1)), Transparency = 0.5}
  671. NilCharacter.head_radius = math.pi
  672. NilCharacter.center = CFrame.new(0, 10, 0)
  673. NilCharacter.point1 = Vector3.new()
  674. NilCharacter.point2 = Vector3.new()
  675. NilCharacter.point3 = Vector3.new()
  676. NilCharacter.point4 = Vector3.new()
  677. NilCharacter.core_mesh_scale = Vector3.new(0.833, 0.833, 0.833)
  678. NilCharacter.visible = false
  679. function NilCharacter.Teleport(location)
  680. NilCharacter.point1 = location
  681. NilCharacter.point2 = location
  682. NilCharacter.point3 = location
  683. NilCharacter.point4 = location
  684. end
  685. local stock_core = Instance.new("Part")
  686. stock_core.Anchored = true
  687. stock_core.BottomSurface = "Smooth"
  688. stock_core.Color = Color3.new(255,255,255)
  689. stock_core.FormFactor = "Custom"
  690. stock_core.Locked = true
  691. stock_core.Name = "CubePyramid"
  692. stock_core.Size = Vector3.new(0.5, 0.5, 0.5)
  693. stock_core.TopSurface = "Smooth"
  694. stock_core.Material = "Neon"
  695. local S = Instance.new("SelectionBox")
  696. S.Adornee = stock_core
  697. S.Color3 = Color3.new(0,0,0)
  698. S.LineThickness = 0.08
  699. S.Transparency = 0.5
  700. S.Parent = stock_core
  701. NilCharacter.stock_core = stock_core
  702. NilCharacter.core = stock_core:Clone()
  703. NilCharacter.Archivable = false
  704. NilCharacter.core_mesh = Instance.new("BlockMesh", core)
  705. NilCharacter.core_lights = {}
  706. NilCharacter.coreLightCount = 1
  707. for index = 1, NilCharacter.coreLightCount do
  708. NilCharacter.core_lights[index] = Instance.new("PointLight", core)
  709. end
  710. NilCharacter.camera_distance = (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude
  711. NilCharacter.camera_position = Vector3.new()
  712. Camera.Changed:connect(function(property)
  713. if NilCharacter.visible then
  714. if property == "CoordinateFrame" then
  715. local cframe, focus = Camera.CoordinateFrame, Camera.Focus
  716. local eventTime = time()
  717. local connection
  718. connection = Camera.Changed:connect(function()
  719. connection:disconnect()
  720. if eventTime == time() and Camera.Focus ~= focus then
  721. local camera_distance = NilCharacter.camera_distance
  722. Camera.Focus = Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)
  723. NilCharacter.camera_position = (Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)).p
  724. end
  725. end)
  726. coroutine.yield()
  727. if Camera.Focus == focus then
  728. NilCharacter.camera_distance = (focus.p - cframe.p).magnitude
  729. else
  730. local camera_distance = NilCharacter.camera_distance
  731. Camera.Focus = Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)
  732. NilCharacter.camera_position = (Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)).p
  733. end
  734. if connection.connected then
  735. connection:disconnect()
  736. end
  737. end
  738. end
  739. end)
  740. function NilCharacter.Animate()
  741. local total_time = time()
  742. local core = NilCharacter.core
  743. local frame = NilCharacter.frame
  744. if NilCharacter.visible then
  745. local core_mesh = NilCharacter.core_mesh
  746. local core_lights = NilCharacter.core_lights
  747. if not frame or frame.Parent ~= core then
  748. frame = Instance.new("Model")
  749. frame.Archivable = false
  750. frame.Parent = core
  751. NilCharacter.frame = frame
  752. end
  753. if core.Parent ~= Workspace then
  754. core = NilCharacter.stock_core:Clone()
  755. NilCharacter.core = core
  756. core.Archivable = false
  757. core.Parent = Workspace
  758. chatAdornee = core
  759. end
  760. if core_mesh.Parent ~= core then
  761. core_mesh = Instance.new("BlockMesh", core)
  762. NilCharacter.core_mesh = core_mesh
  763. end
  764. for index, core_light in ipairs(core_lights) do
  765. if core_light.Parent ~= core then
  766. core_light = Instance.new("PointLight", core)
  767. core_lights[index] = core_light
  768. end
  769. local vertexColor = Vector3.new(Utility.GetRainbowRGB(total_time)) * 0.25 + Vector3.new(1, 1, 1) * 0.75
  770. core_light.Color = Color3.new(vertexColor.X, vertexColor.Y, vertexColor.Z)
  771. core_light.Brightness = 0.85 + 0.15 * math.random()
  772. if core_light.Range ~= 30 then
  773. core_light.Range = 30
  774. end
  775. if not core_light.Shadows then
  776. core_light.Shadows = true
  777. end
  778. end
  779. if core_mesh.Offset ~= Vector3.new(0, 0, 0) then
  780. core_mesh.Offset = Vector3.new(0, 0, 0)
  781. end
  782. if not core.Anchored then
  783. core.Anchored = true
  784. end
  785. if core.Transparency ~= 0 then
  786. core.Transparency = 0
  787. end
  788. local core_mesh_scale = NilCharacter.core_mesh_scale
  789. local transition_speed = (math.sin(total_time * math.tau) + 1) / 16
  790. core_mesh_scale = core_mesh_scale * (1 - transition_speed) + Vector3.new(math.random() * 0.5 + 0.5, math.random() * 0.5 + 0.5, math.random()
  791.  
  792. * 0.5 + 0.5) * transition_speed
  793. core_mesh.Scale = core_mesh_scale * 2
  794. local center = CFrame.new(NilCharacter.camera_position) * CFrame.Angles(0, total_time * math.tau, 0)
  795. local cframe1 = CFrame.new(NilCharacter.head_radius, 0, 0)
  796. local cframe2 = CFrame.Angles(math.tau / -2, 0, 0)
  797. local cframe3 = CFrame.Angles(0, math.tau / 4, 0)
  798. local cframe4 = center * cframe3
  799. local desired1 = center * CFrame.new(0, NilCharacter.head_radius, 0)
  800. local desired2 = center * cframe2 * cframe1
  801. local desired3 = cframe4 * cframe2 * cframe1
  802. local desired4 = cframe4 * cframe3 * cframe2 * cframe1
  803. local point1 = (NilCharacter.point1 * 3 + desired1.p) / 4
  804. local point2 = (NilCharacter.point2 * 3 + desired2.p) / 4
  805. local point3 = (NilCharacter.point3 * 3 + desired3.p) / 4
  806. local point4 = (NilCharacter.point4 * 3 + desired4.p) / 4
  807. NilCharacter.point1 = point1
  808. NilCharacter.point2 = point2
  809. NilCharacter.point3 = point3
  810. NilCharacter.point4 = point4
  811. local head_properties = NilCharacter.head_properties
  812. NilCharacter.CreateTriangle(point1, point2, point3, head_properties, frame, 1).Archivable = false
  813. NilCharacter.CreateTriangle(point2, point3, point4, head_properties, frame, 2).Archivable = false
  814. NilCharacter.CreateTriangle(point3, point4, point1, head_properties, frame, 3).Archivable = false
  815. NilCharacter.CreateTriangle(point4, point1, point2, head_properties, frame, 4).Archivable = false
  816. core.CFrame = CFrame.new((point1 + point2 + point3 + point4) / 4) * CFrame.Angles(total_time * math.tau, total_time * math.tau / 2,
  817.  
  818. total_time * math.tau / 3)
  819. NilCharacter.center = center
  820. else
  821. if core.Parent then
  822. core:Destroy()
  823. end
  824. if frame and frame.Parent then
  825. frame:Destroy()
  826. end
  827. NilCharacter.frame = nil
  828. end
  829. end
  830. function NilCharacter.MainLoop()
  831. NilCharacter.Animate()
  832. RunService.Stepped:wait()
  833. end
  834. TaskScheduler.Start(function()
  835. while true do
  836. NilCharacter.MainLoop()
  837. end
  838. end)
  839.  
  840. RBXInstance = {};
  841.  
  842. RBXInstance.init_metatable = {}
  843. function RBXInstance.init_metatable:__call(data)
  844. local instance = Instance.new(self[1])
  845. for key, value in pairs(data) do
  846. if type(key) == "number" then
  847. value.Parent = instance
  848. else
  849. instance[key] = value
  850. end
  851. end
  852. return instance
  853. end
  854. function RBXInstance.new(className)
  855. return setmetatable({className}, RBXInstance.init_metatable)
  856. end
  857.  
  858. Utility = {};
  859.  
  860. function Utility.CleanLighting()
  861. Lighting.Ambient = Color3.new(0, 0, 0)
  862. Lighting.Brightness = 1
  863. Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  864. Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  865. Lighting.FogColor = Color3.new(0.75294125080109, 0.75294125080109, 0.75294125080109)
  866. Lighting.FogEnd = 100000
  867. Lighting.FogStart = 0
  868. Lighting.GeographicLatitude = 41.733299255371095
  869. Lighting.GlobalShadows = true
  870. Lighting.OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  871. Lighting.Outlines = false
  872. Lighting.ShadowColor = Color3.new(0.70196080207825, 0.70196080207825, 0.72156864404678)
  873. Lighting.TimeOfDay = "14:00:00"
  874. for index, child in ipairs(Lighting:GetChildren()) do
  875. if child:IsA("Sky") then
  876. child:Destroy()
  877. end
  878. end
  879. end
  880.  
  881. function Utility.GetProperty(object, field)
  882. return object[field]
  883. end
  884.  
  885. function Utility.CaseInsensitivePattern(pattern)
  886. return string.gsub(pattern, "(%%?)(.)", Utility.CaseInsensitivePatternReplaceFunc)
  887. end
  888. function Utility.CaseInsensitivePatternReplaceFunc(percent, letter)
  889. if percent ~= "" or not letter:match("%a") then
  890. return percent .. letter
  891. else
  892. return "[" .. string.lower(letter) .. string.upper(letter) .. "]"
  893. end
  894. end
  895. function Utility.FindHumanoidClosestToRay(ray, exlusionList)
  896. local view = CFrame.new(ray.Origin, ray.Origin + ray.Direction)
  897. local inverseView = view:inverse()
  898. local objects = Workspace:GetChildren()
  899. local numObjects = #objects
  900. local minDistance = math.huge
  901. local closestHumanoid, closestTorso, closestTorsoPosition
  902. for index, object in ipairs(objects) do
  903. for index, child in ipairs(object:GetChildren()) do
  904. numObjects = numObjects + 1
  905. objects[numObjects] = child
  906. end
  907. if object.ClassName == "Humanoid" and object.Health > 0 then
  908. local torso = object.Torso
  909. if torso and not (exlusionList and exlusionList[torso]) then
  910. local torsoPosition = torso.Position
  911. local relativePosition = inverseView * torsoPosition
  912. local distanceZ = -relativePosition.Z
  913. if distanceZ > 0 then
  914. local distance = (inverseView * torsoPosition * Vector3.new(1, 1, 0)).magnitude / distanceZ
  915. if distance < 0.25 and distance < minDistance then
  916. closestHumanoid = object
  917. closestTorso = torso
  918. closestTorsoPosition = torsoPosition
  919. minDistance = distance
  920. end
  921. end
  922. end
  923. end
  924. end
  925. return closestHumanoid, closestTorso, closestTorsoPosition, minDistance
  926. end
  927. function Utility.FindLocalHead()
  928. if Player then
  929. local head, position, view
  930. pcall(function()
  931. position = Camera.Focus.p
  932. view = Camera.CoordinateFrame
  933. end)
  934. pcall(function()
  935. for _, child in ipairs(Workspace:GetChildren()) do
  936. if Players:GetPlayerFromCharacter(child) == Player then
  937. for _, child in ipairs(child:GetChildren()) do
  938. if tostring(child) == "Head" and pcall(assert, pcall(Game.IsA, child, "BasePart")) then
  939. head = child
  940. break
  941. end
  942. end
  943. break
  944. end
  945. end
  946. if not head and view then
  947. local min_distance = math.huge
  948. local objects = Workspace:GetChildren()
  949. for _, object in ipairs(objects) do
  950. local success, is_part = pcall(Game.IsA, object, "BasePart")
  951. if success and is_part then
  952. pcall(function()
  953. local distance = (view:pointToObjectSpace(object.Position) * Vector3.new(1, 1, 0)).magnitude
  954. if distance < min_distance and distance < 1 then
  955. min_distance = distance
  956. head = object
  957. elseif tostring(object) == "Head" and tostring(object.Parent):lower():match("^" .. tostring(Player):lower()) then
  958. min_distance = 0
  959. head = object
  960. end
  961. end)
  962. if min_distance < 5e-4 then
  963. break
  964. end
  965. end
  966. pcall(function()
  967. if not object:IsA("Camera") then
  968. for _, child in ipairs(object:GetChildren()) do
  969. objects[#objects + 1] = child
  970. end
  971. end
  972. end)
  973. end
  974. end
  975. end)
  976. return head, position, view
  977. end
  978. end
  979. function Utility.GetBuildingTools()
  980. local backpack = Player:FindFirstChild("Backpack")
  981. if backpack then
  982. local moveTool = Instance.new("HopperBin")
  983. local cloneTool = Instance.new("HopperBin")
  984. local deleteTool = Instance.new("HopperBin")
  985. moveTool.BinType = Enum.BinType.GameTool
  986. cloneTool.BinType = Enum.BinType.Clone
  987. deleteTool.BinType = Enum.BinType.Hammer
  988. moveTool.Parent = backpack
  989. cloneTool.Parent = backpack
  990. deleteTool.Parent = backpack
  991. end
  992. end
  993. function Utility.Rejoin()
  994. Workspace.Parent:service'TeleportService':Teleport(Game.PlaceId)
  995. end
  996.  
  997. function Utility.BlockRobloxFilter(text)
  998. return string.gsub(text, ".", "%1\143")
  999. end
  1000.  
  1001. function Utility.GetTimestamp()
  1002. local unix_time = tick()
  1003. local time_secs = math.floor(unix_time % 60)
  1004. local time_mins = math.floor(unix_time / 60 % 60)
  1005. local time_hours = math.floor(unix_time / 3600 % 24)
  1006. return string.format("%02i:%02i:%02i", time_hours, time_mins, time_secs)
  1007. end
  1008.  
  1009. function Utility.GetRainbowRGB(hue)
  1010. local section = hue % 1 * 3
  1011. local secondary = 0.5 * math.pi * (section % 1)
  1012. if section < 1 then
  1013. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  1014. elseif section < 2 then
  1015. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  1016. else
  1017. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  1018. end
  1019. end
  1020.  
  1021. function Utility.SetProperty(object, field, value)
  1022. object[field] = value
  1023. end
  1024. local OutlineColor = PlayerColor
  1025.  
  1026. function Utility.CleanWorkspace()
  1027. for index, child in ipairs(Workspace:GetChildren()) do
  1028. if not (Players:GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child:IsA("Script") or child.ClassName == "Terrain") then
  1029. pcall(child.Destroy, child)
  1030. end
  1031. end
  1032. Workspace.Terrain:Clear()
  1033. local base = Instance.new("Part")
  1034. base.Anchored = true
  1035. base.BrickColor = BrickColor.new("Earth green")
  1036. base.Locked = true
  1037. base.Name = "Base"
  1038. base.Size = Vector3.new(512, 1.2, 512)
  1039. base.Parent = Workspace
  1040. end
  1041.  
  1042. function Utility.CleanWorkspaceAndScripts()
  1043. for index, child in ipairs(Workspace:GetChildren()) do
  1044. if not (Players:GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child.ClassName == "Terrain") then
  1045. pcall(child.Destroy, child)
  1046. end
  1047. end
  1048. Workspace.Terrain:Clear()
  1049. local base = Instance.new("Part")
  1050. base.Anchored = true
  1051. base.BrickColor = BrickColor.new("Earth green")
  1052. base.Locked = true
  1053. base.Name = "Base"
  1054. base.Size = Vector3.new(512, 1.2, 512)
  1055. base.Parent = Workspace
  1056. end
  1057.  
  1058. function Utility.CreateDummy(cframe, name, parent)
  1059. local model = Instance.new("Model")
  1060. model.Archivable = false
  1061. model.Name = name
  1062. local humanoid = Instance.new("Humanoid", model)
  1063. local head = Instance.new("Part", model)
  1064. local face = Instance.new("Decal", head)
  1065. local head_mesh = Instance.new("SpecialMesh", head)
  1066. local torso = Instance.new("Part", model)
  1067. local right_arm = Instance.new("Part", model)
  1068. local left_arm = Instance.new("Part", model)
  1069. local right_leg = Instance.new("Part", model)
  1070. local left_leg = Instance.new("Part", model)
  1071. local neck = Instance.new("Motor", torso)
  1072. local right_shoulder = Instance.new("Motor", torso)
  1073. local left_shoulder = Instance.new("Motor", torso)
  1074. local right_hip = Instance.new("Motor", torso)
  1075. local left_hip = Instance.new("Motor", torso)
  1076. head.BrickColor = BrickColor.Yellow()
  1077. head.CFrame = cframe * CFrame.new(0, 1.5, 0)
  1078. head.FormFactor = "Symmetric"
  1079. head.Locked = true
  1080. head.Name = "Head"
  1081. head.Size = Vector3.new(2, 1, 1)
  1082. head.TopSurface = "Smooth"
  1083. face.Texture = "rbxasset://textures/face.png"
  1084. head_mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  1085. torso.BrickColor = BrickColor.Blue()
  1086. torso.CFrame = cframe
  1087. torso.FormFactor = "Symmetric"
  1088. torso.LeftSurface = "Weld"
  1089. torso.Locked = true
  1090. torso.RightSurface = "Weld"
  1091. torso.Name = "Torso"
  1092. torso.Size = Vector3.new(2, 2, 1)
  1093. right_arm.BrickColor = BrickColor.Yellow()
  1094. right_arm.CanCollide = false
  1095. right_arm.CFrame = cframe * CFrame.new(1.5, 0, 0)
  1096. right_arm.FormFactor = "Symmetric"
  1097. right_arm.Locked = true
  1098. right_arm.Name = "Right Arm"
  1099. right_arm.Size = Vector3.new(1, 2, 1)
  1100. left_arm.BrickColor = BrickColor.Yellow()
  1101. left_arm.CanCollide = false
  1102. left_arm.CFrame = cframe * CFrame.new(-1.5, 0, 0)
  1103. left_arm.FormFactor = "Symmetric"
  1104. left_arm.Locked = true
  1105. left_arm.Name = "Left Arm"
  1106. left_arm.Size = Vector3.new(1, 2, 1)
  1107. right_leg.BrickColor = BrickColor.new("Br. yellowish green")
  1108. right_leg.BottomSurface = "Smooth"
  1109. right_leg.CanCollide = false
  1110. right_leg.CFrame = cframe * CFrame.new(0.5, -2, 0)
  1111. right_leg.FormFactor = "Symmetric"
  1112. right_leg.Locked = true
  1113. right_leg.Name = "Right Leg"
  1114. right_leg.Size = Vector3.new(1, 2, 1)
  1115. right_leg.TopSurface = "Smooth"
  1116. left_leg.BrickColor = BrickColor.new("Br. yellowish green")
  1117. left_leg.BottomSurface = "Smooth"
  1118. left_leg.CanCollide = false
  1119. left_leg.CFrame = cframe * CFrame.new(-0.5, -2, 0)
  1120. left_leg.FormFactor = "Symmetric"
  1121. left_leg.Locked = true
  1122. left_leg.Name = "Left Leg"
  1123. left_leg.Size = Vector3.new(1, 2, 1)
  1124. left_leg.TopSurface = "Smooth"
  1125. neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1126. neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1127. neck.Name = "Neck"
  1128. neck.Part0 = torso
  1129. neck.Part1 = head
  1130. right_shoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1131. right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1132. right_shoulder.MaxVelocity = 0.15
  1133. right_shoulder.Name = "Right Shoulder"
  1134. right_shoulder.Part0 = torso
  1135. right_shoulder.Part1 = right_arm
  1136. left_shoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1137. left_shoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1138. left_shoulder.MaxVelocity = 0.15
  1139. left_shoulder.Name = "Left Shoulder"
  1140. left_shoulder.Part0 = torso
  1141. left_shoulder.Part1 = left_arm
  1142. right_hip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1143. right_hip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1144. right_hip.MaxVelocity = 0.1
  1145. right_hip.Name = "Right Hip"
  1146. right_hip.Part0 = torso
  1147. right_hip.Part1 = right_leg
  1148. left_hip.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1149. left_hip.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1150. left_hip.MaxVelocity = 0.1
  1151. left_hip.Name = "Left Hip"
  1152. left_hip.Part0 = torso
  1153. left_hip.Part1 = left_leg
  1154. humanoid.Died:connect(function()
  1155. wait(5)
  1156. model:Destroy()
  1157. end)
  1158. model.Parent = parent
  1159. return model
  1160. end
  1161.  
  1162.  
  1163. CharacterAppearance = {};
  1164.  
  1165. CharacterAppearance.defaultAppearanceId = 2
  1166. CharacterAppearance.stock = {}
  1167. function CharacterAppearance.Create(properties)
  1168. local id = properties.Id
  1169. local bodyColors = Instance.new("BodyColors")
  1170. bodyColors.HeadColor = properties.HeadColor
  1171. bodyColors.TorsoColor = properties.TorsoColor
  1172. bodyColors.RightArmColor = properties.RightArmColor
  1173. bodyColors.LeftArmColor = properties.LeftArmColor
  1174. bodyColors.RightLegColor = properties.RightLegColor
  1175. bodyColors.LeftLegColor = properties.LeftLegColor
  1176. local characterObjects = {bodyColors}
  1177. local headObjects = {}
  1178. local data = {
  1179. characterObjects = characterObjects,
  1180. headObjects = headObjects,
  1181. tshirt = properties.TShirt
  1182. }
  1183. for _, assetId in ipairs(properties.CharacterAssets) do
  1184. TaskScheduler.Start(CharacterAppearance.LoadAsset, characterObjects, assetId)
  1185. end
  1186. for _, assetId in ipairs(properties.HeadAssets) do
  1187. TaskScheduler.Start(CharacterAppearance.LoadAsset, headObjects, assetId)
  1188. end
  1189. CharacterAppearance.stock[id] = data
  1190. end
  1191. function CharacterAppearance.GetDefaultAppearance()
  1192. return CharacterAppearance.stock[CharacterAppearance.defaultAppearanceId]
  1193. end
  1194. function CharacterAppearance.LoadAsset(objects, assetId)
  1195. local asset = InsertService:LoadAsset(assetId)
  1196. for _, child in ipairs(asset:GetChildren()) do
  1197. child.Archivable = true
  1198. table.insert(objects, child:Clone())
  1199. end
  1200. end
  1201. CharacterAppearance.Create {
  1202. Id = 1,
  1203. HeadColor = BrickColor.new("Institutional white"),
  1204. TorsoColor = BrickColor.new("Really black"),
  1205. RightArmColor = BrickColor.new("Institutional white"),
  1206. LeftArmColor = BrickColor.new("Institutional white"),
  1207. RightLegColor = BrickColor.new("Institutional white"),
  1208. LeftLegColor = BrickColor.new("Institutional white"),
  1209. CharacterAssets = {
  1210.  
  1211. },
  1212. HeadAssets = {
  1213.  
  1214. }
  1215. }
  1216. CharacterAppearance.Create {
  1217. Id = 2,
  1218. HeadColor = BrickColor.new("Institutional white"),
  1219. TorsoColor = BrickColor.new("Really black"),
  1220. RightArmColor = BrickColor.new("Institutional white"),
  1221. LeftArmColor = BrickColor.new("Institutional white"),
  1222. RightLegColor = BrickColor.new("Institutional white"),
  1223. LeftLegColor = BrickColor.new("Institutional white"),
  1224. CharacterAssets = {
  1225.  
  1226. },
  1227. HeadAssets = {
  1228.  
  1229. }
  1230. }
  1231. CharacterAppearance.Create {
  1232. Id = 3,
  1233. HeadColor = BrickColor.new("Pastel brown"),
  1234. TorsoColor = BrickColor.new("Pastel brown"),
  1235. RightArmColor = BrickColor.new("Pastel brown"),
  1236. LeftArmColor = BrickColor.new("Pastel brown"),
  1237. RightLegColor = BrickColor.new("White"),
  1238. LeftLegColor = BrickColor.new("White"),
  1239. CharacterAssets = {
  1240. 0, 0,
  1241. 0, 0,
  1242. 0
  1243. },
  1244. HeadAssets = {},
  1245. TShirt = "0"
  1246. }
  1247. CharacterAppearance.Create {
  1248. Id = 4,
  1249. HeadColor = BrickColor.new("Pastel brown"),
  1250. TorsoColor = BrickColor.new("Pastel brown"),
  1251. RightArmColor = BrickColor.new("Pastel brown"),
  1252. LeftArmColor = BrickColor.new("Pastel brown"),
  1253. RightLegColor = BrickColor.new("White"),
  1254. LeftLegColor = BrickColor.new("White"),
  1255. CharacterAssets = {
  1256.  
  1257. },
  1258. HeadAssets = {},
  1259. TShirt = "rbxassetid://160146697"
  1260. }
  1261.  
  1262. GraphicalEffects = {};
  1263.  
  1264. local MESH_IDS = {"rbxassetid://15310891"}
  1265. local SOUND_IDS = {"rbxassetid://2248511", "rbxassetid://1369158"}
  1266. local TEXTURE_IDS = {"rbxassetid://36527089", "rbxassetid://122610943", "rbxassetid://126561317", "rbxassetid://127033719"}
  1267. local preloadConnections = {}
  1268. local reloadingPreloads = false
  1269. function GraphicalEffects.InitPreloads()
  1270. local preload_part = Instance.new("Part")
  1271. GraphicalEffects.preload_part = preload_part
  1272. preload_part.Anchored = true
  1273. preload_part.Archivable = false
  1274. preload_part.BottomSurface = "Smooth"
  1275. preload_part.CanCollide = false
  1276. preload_part.CFrame = CFrame.new(math.huge, math.huge, math.huge)
  1277. preload_part.FormFactor = "Custom"
  1278. preload_part.Locked = true
  1279. preload_part.Name = "Asset Preloader"
  1280. preload_part.Size = Vector3.new(0.2, 0.2, 0.2)
  1281. preload_part.TopSurface = "Smooth"
  1282. preload_part.Transparency = 1
  1283. preloadConnections[preload_part] = preload_part.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
  1284. for _, mesh_id in ipairs(MESH_IDS) do
  1285. local mesh = Instance.new("SpecialMesh")
  1286. mesh.MeshType = "FileMesh"
  1287. mesh.MeshId = mesh_id
  1288. preloadConnections[mesh] = mesh.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
  1289. mesh.Parent = preload_part
  1290. end
  1291. for _, sound_id in ipairs(SOUND_IDS) do
  1292. local sound = Instance.new("Sound")
  1293. sound.SoundId = sound_id
  1294. sound.Volume = 0
  1295. preloadConnections[sound] = sound.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
  1296. sound.Parent = preload_part
  1297. end
  1298. for _, texture_id in ipairs(TEXTURE_IDS) do
  1299. local decal = Instance.new("Decal")
  1300. decal.Texture = texture_id
  1301. preloadConnections[decal] = decal.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
  1302. decal.Parent = preload_part
  1303. end
  1304. preload_part.Parent = Workspace
  1305. end
  1306. function GraphicalEffects.PreloadsAncestryChanged(child, parent)
  1307. if not reloadingPreloads and parent ~= GraphicalEffects.preload_part and parent ~= Workspace then
  1308. reloadingPreloads = true
  1309. for _, connection in pairs(preloadConnections) do
  1310. connection:disconnect()
  1311. preloadConnections[_] = nil
  1312. end
  1313. wait(1)
  1314. reloadingPreloads = false
  1315. GraphicalEffects.InitPreloads()
  1316. end
  1317. end
  1318. GraphicalEffects.InitPreloads()
  1319. -- Hyper beam
  1320. function GraphicalEffects.FireSpaceHyperBeam(target, power, duration, radius, height, deviation)
  1321. local stepTime, gameTime = 1 / 30, TaskScheduler.GetCurrentTime()
  1322. local frames = duration * 30
  1323. local beamColorOffset = 0.75 * tick() -- math.random()
  1324. local blastPressure = power * 62500 + 250000
  1325. local beamPart = Instance.new("Part")
  1326. local beamMesh = Instance.new("SpecialMesh", beamPart)
  1327. local explosion = Instance.new("Explosion")
  1328. local sound = Instance.new("Sound", beamPart)
  1329. beamPart.Anchored = true
  1330. beamPart.CanCollide = false
  1331. beamPart.CFrame = CFrame.new(target, target + Vector3.new(deviation * (math.random() - 0.5), deviation * (math.random() - 0.5), height))
  1332. beamPart.FormFactor = "Custom"
  1333. beamPart.Locked = true
  1334. beamPart.Size = Vector3.new(0.2, 0.2, 0.2)
  1335. beamMesh.MeshId = "rbxassetid://15310891"
  1336. beamMesh.MeshType = "FileMesh"
  1337. beamMesh.TextureId = "rbxassetid://36527089"
  1338. local beamGlowPart1 = beamPart:Clone()
  1339. local beamGlowMesh1 = beamMesh:Clone()
  1340. local beamGlowPart2 = beamPart:Clone()
  1341. local beamGlowMesh2 = beamMesh:Clone()
  1342. local beamLight = Instance.new("PointLight", beamPart)
  1343. beamLight.Range = power * 2
  1344. beamLight.Shadows = true
  1345. explosion.BlastPressure = blastPressure
  1346. explosion.BlastRadius = power
  1347. explosion.Position = target
  1348. sound.SoundId = "rbxassetid://2248511"
  1349. sound.Volume = 1
  1350. local explosionHitConnection = explosion.Hit:connect(function(part, distance)
  1351. if not part.Anchored and part:GetMass() < power * power then
  1352. pcall(part.BreakJoints, part)
  1353. part.Color = Color3.new(math.random,math.random,math.random)
  1354. end
  1355. end)
  1356. beamPart.Transparency = 0.5
  1357. beamPart.Archivable = false
  1358. beamGlowPart1.Transparency = 0.75
  1359. beamGlowPart2.Transparency = 0.75
  1360. beamGlowMesh1.Parent = beamGlowPart1
  1361. beamGlowPart1.Parent = beamPart
  1362. beamGlowMesh2.Parent = beamGlowPart2
  1363. beamGlowPart2.Parent = beamPart
  1364. beamPart.Parent = workspace
  1365. explosion.Parent = workspace
  1366. for frame = 1, frames do
  1367. local progress = frame / frames
  1368. local alpha = 1 - math.sin(0.5 * math.pi * progress)
  1369. local scale = 0.4 * alpha
  1370. local glowScale1 = alpha * (0.5 + 0.5 * math.sin(math.tau * (8 * gameTime + beamColorOffset)))
  1371. local glowScale2 = alpha * (0.5 + 0.5 * math.cos(math.tau * (8 * gameTime + beamColorOffset)))
  1372. local vertexColor = Vector3.new(Utility.GetRainbowRGB(1.5 * gameTime + beamColorOffset))
  1373. beamLight.Brightness = 1 - progress
  1374. beamLight.Color = Color3.new(vertexColor.x, vertexColor.y, vertexColor.z)
  1375. beamMesh.Scale = Vector3.new(radius * scale, 9000, radius * scale)
  1376. beamMesh.VertexColor = vertexColor
  1377. beamGlowMesh1.Scale = Vector3.new(1.2 * radius * glowScale1, 9000, 1.2 * radius * glowScale1)
  1378. beamGlowMesh1.VertexColor = vertexColor
  1379. beamGlowMesh2.Scale = Vector3.new(1.2 * radius * glowScale2, 9000, 1.2 * radius * glowScale2)
  1380. beamGlowMesh2.VertexColor = vertexColor
  1381. RunService.Stepped:wait()
  1382. gameTime = TaskScheduler.GetCurrentTime()
  1383. if frame <= 2 then
  1384. local explosion = Instance.new("Explosion")
  1385. explosion.BlastPressure = (1 - progress) * blastPressure
  1386. explosion.BlastRadius = (1 - progress) * power
  1387. explosion.Position = target
  1388. explosion.Parent = Workspace
  1389. if frame == 2 then
  1390. sound:Play()
  1391. end
  1392. end
  1393. end
  1394. pcall(beamPart.Destroy, beamPart)
  1395. explosionHitConnection:disconnect()
  1396. end
  1397. function GraphicalEffects.SpaceHyperBeam(target, power, duration, radius, height, deviation)
  1398. TaskScheduler.Start(GraphicalEffects.FireSpaceHyperBeam, target, power or 12, duration or 1.5, radius or 6, height or 600, deviation or 20)
  1399. end
  1400.  
  1401. function GraphicalEffects.CrystalRing(data)
  1402. data = data or {}
  1403. local crystal_count = data.crystal_count or 30
  1404. local crystal_color = data.crystal_color or BrickColor.new("Bright red")
  1405. local crystal_scale = data.crystal_scale or Vector3.new(2 / 3, 2, 2 / 3)
  1406. local fade_out_color = data.fade_out_color or BrickColor.new("Really black")
  1407. local radius = radius or 1.25 * crystal_count / math.pi
  1408. local spawn_duration = data.spawn_duration or 0.065
  1409. local full_spawn_duration = spawn_duration * crystal_count
  1410. local float_duration = data.float_duration or 5
  1411. local wave_amplitude = data.wave_amplitude or 0.5
  1412. local wave_period = data.wave_period or 3
  1413. local appear_duration = data.appear_duration or 0.1
  1414. local disappear_duration = data.disappear_duration or 2
  1415. local base_part = data.base_part
  1416. local offset_cframe
  1417. if data.position then
  1418. offset_cframe = CFrame.new(data.position)
  1419. if base_part then
  1420. offset_cframe = base_part.CFrame:toObjectSpace(offset_cframe)
  1421. end
  1422. else
  1423. offset_cframe = CFrame.new()
  1424. end
  1425. local crystal_template = Instance.new("Part")
  1426. crystal_template.Anchored = true
  1427. crystal_template.Locked = true
  1428. crystal_template.CanCollide = false
  1429. crystal_template.BottomSurface = "Smooth"
  1430. crystal_template.TopSurface = "Smooth"
  1431. crystal_template.BrickColor = crystal_color
  1432. crystal_template.FormFactor = "Symmetric"
  1433. crystal_template.Size = Vector3.new(1, 1, 1)
  1434. local crystal_light = Instance.new("PointLight", crystal_template)
  1435. crystal_light.Brightness = 0.1 / crystal_count
  1436. crystal_light.Color = crystal_color.Color
  1437. crystal_light.Name = "Light"
  1438. crystal_light.Range = radius
  1439. crystal_light.Shadows = true
  1440. local crystal_mesh = Instance.new("SpecialMesh", crystal_template)
  1441. crystal_mesh.MeshId = "rbxassetid://9756362"
  1442. crystal_mesh.MeshType = "FileMesh"
  1443. crystal_mesh.Name = "Mesh"
  1444. crystal_mesh.Scale = crystal_scale
  1445. local crystal_model = Instance.new("Model")
  1446. crystal_model.Archivable = false
  1447. crystal_model.Name = "Crystal Model"
  1448. crystal_model.Parent = Workspace
  1449. local Se = Instance.new("SelectionBox")
  1450. Se.Color3 = Color3.new(255,255,255)
  1451. Se.LineThickness = 0.05
  1452. Se.SurfaceTransparency = 0.8
  1453. Se.Adornee = crystal_template
  1454. local crystals = {}
  1455. local lights = {}
  1456. local meshes = {}
  1457. for index = 1, crystal_count do
  1458. local crystal = crystal_template:Clone()
  1459. crystal.Parent = crystal_model
  1460. crystals[index] = crystal
  1461. lights[index] = crystal.Light
  1462. meshes[index] = crystal.Mesh
  1463. end
  1464. local start_time = tick()
  1465. repeat
  1466. local base_cframe = offset_cframe
  1467. if base_part then
  1468. base_cframe = base_part.CFrame * base_cframe
  1469. end
  1470. local elapsed_time = tick() - start_time
  1471. for index, crystal in ipairs(crystals) do
  1472. local crystal_time = elapsed_time - index * spawn_duration
  1473. local disappear_time = crystal_time - float_duration
  1474. local offset
  1475. if crystal_time < 0 then
  1476. offset = 0
  1477. elseif crystal_time < appear_duration then
  1478. offset = radius * crystal_time / appear_duration
  1479. else
  1480. offset = radius
  1481. end
  1482. local wave_offset
  1483. if disappear_time >= 0 then
  1484. local disappear_progress = disappear_time / disappear_duration
  1485. if disappear_progress > 1 then
  1486. if crystal.Parent then
  1487. crystal:Destroy()
  1488. end
  1489. else
  1490. local inverse_progress = 1 - disappear_progress
  1491. local light = lights[index]
  1492. local mesh = meshes[index]
  1493. crystal.BrickColor = fade_out_color
  1494. light.Brightness = 2 * inverse_progress
  1495. light.Range = 2 * radius
  1496. mesh.Scale = crystal_scale * inverse_progress
  1497. end
  1498. wave_offset = 0
  1499. else
  1500. wave_offset = wave_amplitude * math.sin(math.tau * (elapsed_time - index / crystal_count * 3) / wave_period)
  1501. end
  1502. local rotation_angle = (tick() * 0.5 + (index - 1) / crystal_count) % 1 * math.tau
  1503. crystal.CFrame = base_cframe * CFrame.Angles(0, rotation_angle, 0) * CFrame.new(0, wave_offset, -offset)
  1504. end
  1505. RunService.Stepped:wait()
  1506. until elapsed_time >= float_duration + full_spawn_duration + disappear_duration
  1507. if crystal_model.Parent then
  1508. crystal_model:Destroy()
  1509. end
  1510. end
  1511.  
  1512. function GraphicalEffects.KillerCrystalRing(data)
  1513. data = data or {}
  1514. local crystal_count = data.crystal_count or 30
  1515. local crystal_color = data.crystal_color or BrickColor.new("Bright red")
  1516. local crystal_scale = data.crystal_scale or Vector3.new(2 / 3, 2, 2 / 3)
  1517. local fade_out_color = data.fade_out_color or BrickColor.new("Really black")
  1518. local radius = radius or 1.25 * crystal_count / math.pi
  1519. local spawn_duration = data.spawn_duration or 0.065
  1520. local full_spawn_duration = spawn_duration * crystal_count
  1521. local float_duration = data.float_duration or 5
  1522. local wave_amplitude = data.wave_amplitude or 0.5
  1523. local wave_period = data.wave_period or 3
  1524. local appear_duration = data.appear_duration or 0.1
  1525. local disappear_duration = data.disappear_duration or 2
  1526. local base_part = data.base_part
  1527. local offset_cframe
  1528. if data.position then
  1529. offset_cframe = CFrame.new(data.position)
  1530. if base_part then
  1531. offset_cframe = base_part.CFrame:toObjectSpace(offset_cframe)
  1532. end
  1533. else
  1534. offset_cframe = CFrame.new()
  1535. end
  1536. local crystal_template = Instance.new("Part")
  1537. crystal_template.Anchored = true
  1538. crystal_template.Locked = true
  1539. crystal_template.CanCollide = false
  1540. crystal_template.BottomSurface = "Smooth"
  1541. crystal_template.TopSurface = "Smooth"
  1542. crystal_template.BrickColor = crystal_color
  1543. crystal_template.FormFactor = "Symmetric"
  1544. crystal_template.Size = Vector3.new(1, 1, 1)
  1545. function onTouch(part)
  1546. local humanoid = part.Parent:FindFirstChild("Humanoid")
  1547. if (humanoid ~= nil) then -- if a humanoid exists, then
  1548. humanoid.Health = 0 -- damage the humanoid
  1549. humanoid.Parent:BreakJoints()
  1550. end
  1551. end
  1552.  
  1553. crystal_template.Touched:connect(onTouch)
  1554.  
  1555. local crystal_light = Instance.new("PointLight", crystal_template)
  1556. crystal_light.Brightness = 0.1 / crystal_count
  1557. crystal_light.Color = crystal_color.Color
  1558. crystal_light.Name = "Light"
  1559. crystal_light.Range = radius
  1560. crystal_light.Shadows = true
  1561. local crystal_mesh = Instance.new("SpecialMesh", crystal_template)
  1562. crystal_mesh.MeshId = "rbxassetid://9756362"
  1563. crystal_mesh.MeshType = "FileMesh"
  1564. crystal_mesh.Name = "Mesh"
  1565. crystal_mesh.Scale = crystal_scale
  1566. local crystal_model = Instance.new("Model")
  1567. crystal_model.Archivable = false
  1568. crystal_model.Name = "Crystal Model"
  1569. crystal_model.Parent = Workspace
  1570. local Se = Instance.new("SelectionBox")
  1571. Se.Color3 = Color3.new(255,255,255)
  1572. Se.LineThickness = 0.05
  1573. Se.SurfaceTransparency = 0.8
  1574. Se.Adornee = crystal_template
  1575. local crystals = {}
  1576. local lights = {}
  1577. local meshes = {}
  1578. for index = 1, crystal_count do
  1579. local crystal = crystal_template:Clone()
  1580. crystal.Parent = crystal_model
  1581. crystals[index] = crystal
  1582. lights[index] = crystal.Light
  1583. meshes[index] = crystal.Mesh
  1584. end
  1585. local start_time = tick()
  1586. repeat
  1587. local base_cframe = offset_cframe
  1588. if base_part then
  1589. base_cframe = base_part.CFrame * base_cframe
  1590. end
  1591. local elapsed_time = tick() - start_time
  1592. for index, crystal in ipairs(crystals) do
  1593. local crystal_time = elapsed_time - index * spawn_duration
  1594. local disappear_time = crystal_time - float_duration
  1595. local offset
  1596. if crystal_time < 0 then
  1597. offset = 0
  1598. elseif crystal_time < appear_duration then
  1599. offset = radius * crystal_time / appear_duration
  1600. else
  1601. offset = radius
  1602. end
  1603. local wave_offset
  1604. if disappear_time >= 0 then
  1605. local disappear_progress = disappear_time / disappear_duration
  1606. if disappear_progress > 1 then
  1607. if crystal.Parent then
  1608. crystal:Destroy()
  1609. end
  1610. else
  1611. local inverse_progress = 1 - disappear_progress
  1612. local light = lights[index]
  1613. local mesh = meshes[index]
  1614. crystal.BrickColor = fade_out_color
  1615. light.Brightness = 2 * inverse_progress
  1616. light.Range = 2 * radius
  1617. mesh.Scale = crystal_scale * inverse_progress
  1618. end
  1619. wave_offset = 0
  1620. else
  1621. wave_offset = wave_amplitude * math.sin(math.tau * (elapsed_time - index / crystal_count * 3) / wave_period)
  1622. end
  1623. local rotation_angle = (tick() * 0.5 + (index - 1) / crystal_count) % 1 * math.tau
  1624. crystal.CFrame = base_cframe * CFrame.Angles(0, rotation_angle, 0) * CFrame.new(0, wave_offset, -offset)
  1625. end
  1626. RunService.Stepped:wait()
  1627. until elapsed_time >= float_duration + full_spawn_duration + disappear_duration
  1628. if crystal_model.Parent then
  1629. crystal_model:Destroy()
  1630. end
  1631. end
  1632.  
  1633. GraphicalEffects.magicCircleData = {}
  1634. GraphicalEffects.MAGIC_CIRCLE_DEFAULT_OFFSET = 6.25
  1635. function GraphicalEffects.AnimateMagicCircle(data)
  1636. local frame, direction, magic_circle_model, magic_circle_part, magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, duration,
  1637.  
  1638. stay, magic_circle_adornee_func, magic_circle_offset = unpack(data)
  1639. frame = frame + 1
  1640. data[1] = frame
  1641. local transparency = (frame / duration) ^ stay
  1642. local opacity = 1 - transparency
  1643. if frame == duration then
  1644. pcall(Game.Destroy, magic_circle_model)
  1645. GraphicalEffects.magicCircleData[data] = nil
  1646. else
  1647. if magic_circle_model.Parent ~= Workspace then
  1648. pcall(Utility.SetProperty, magic_circle_model, "Parent", Workspace)
  1649. end
  1650. local magic_circle_adornee = magic_circle_adornee_func()
  1651. magic_circle_position = magic_circle_adornee.Position + direction * magic_circle_offset
  1652. local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0, math.tau * frame /
  1653.  
  1654. 25)
  1655. magic_circle_part.CFrame = magic_circle_cframe
  1656. magic_circle_light.Brightness = opacity
  1657. magic_circle_decal_back.Transparency = transparency
  1658. magic_circle_decal_front.Transparency = transparency
  1659. end
  1660. end
  1661. function GraphicalEffects.CreateMagicCircle(target, magic_circle_scale, magic_circle_image, light_color, duration, stay, magic_circle_adornee_func,
  1662.  
  1663. magic_circle_offset)
  1664. local magic_circle_adornee = magic_circle_adornee_func()
  1665. if magic_circle_adornee then
  1666. local origin = magic_circle_adornee.Position
  1667. local direction = (target - origin).unit
  1668. local magic_circle_position = origin + direction * magic_circle_offset
  1669. local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction)
  1670. local magic_circle_model = Instance.new("Model")
  1671. local magic_circle_part = Instance.new("Part", magic_circle_model)
  1672. local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part)
  1673. local magic_circle_light = Instance.new("PointLight", magic_circle_part)
  1674. local magic_circle_decal_back = Instance.new("Decal", magic_circle_part)
  1675. local magic_circle_decal_front = Instance.new("Decal", magic_circle_part)
  1676. magic_circle_model.Archivable = false
  1677. magic_circle_part.Anchored = true
  1678. magic_circle_part.BottomSurface = "Smooth"
  1679. magic_circle_part.CanCollide = false
  1680. magic_circle_part.CFrame = magic_circle_cframe
  1681. magic_circle_part.FormFactor = "Custom"
  1682. magic_circle_part.Locked = true
  1683. magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2)
  1684. magic_circle_part.TopSurface = "Smooth"
  1685. magic_circle_part.Transparency = 1
  1686. magic_circle_mesh.Scale = Vector3.new(60, 60, 0) * magic_circle_scale
  1687. magic_circle_light.Color = light_color
  1688. magic_circle_light.Range = 16 * magic_circle_scale
  1689. magic_circle_light.Shadows = true
  1690. magic_circle_decal_back.Face = "Back"
  1691. magic_circle_decal_back.Texture = magic_circle_image
  1692. magic_circle_decal_front.Face = "Front"
  1693. magic_circle_decal_front.Texture = magic_circle_image
  1694. magic_circle_model.Parent = Workspace
  1695. local data = {0, direction, magic_circle_model, magic_circle_part, magic_circle_light, magic_circle_decal_back, magic_circle_decal_front,
  1696.  
  1697. duration, stay, magic_circle_adornee_func, magic_circle_offset}
  1698. GraphicalEffects.magicCircleData[data] = true
  1699. return data
  1700. end
  1701. end
  1702.  
  1703. GraphicalEffects.missileData = {}
  1704. GraphicalEffects.missileParts = {}
  1705. function GraphicalEffects.AnimateMissile(data)
  1706. local frame, missilePart, targetPart, timeCreated, direction, touchedConnection, explodeRequested, bodyGyro, swooshSound, magicCircleData, lifeTime,
  1707.  
  1708. pointOnPart, flipped = unpack(data)
  1709. frame = frame + 1
  1710. data[1] = frame
  1711. if flipped then
  1712. direction = -direction
  1713. end
  1714. if frame <= 10 then
  1715. if frame == 2 then
  1716. swooshSound:Play()
  1717. end
  1718. missilePart.Anchored = true
  1719. local progress = frame / 10
  1720. missilePart.Size = Vector3.new(1, 1, progress * 4)
  1721. local magicCirclePart = magicCircleData[4]
  1722. local magicCirclePosition = magicCirclePart.Position
  1723. local missileOffset = 2 * progress * direction
  1724. local missilePosition = magicCirclePosition + missileOffset
  1725. missilePart.CFrame = CFrame.new(missilePosition, missilePosition + direction)
  1726. --missilePart.Transparency = 0.5 * (1 - progress)
  1727. if frame == 10 then
  1728. touchedConnection = missilePart.Touched:connect(function(hit)
  1729. if hit.CanCollide and hit.Parent and not GraphicalEffects.missileParts[hit] then
  1730. touchedConnection:disconnect()
  1731. data[7] = true
  1732. end
  1733. end)
  1734. data[6] = touchedConnection
  1735. end
  1736. else
  1737. missilePart.Anchored = false
  1738. local missilePosition = missilePart.Position
  1739. local targetPosition = targetPart.CFrame * pointOnPart
  1740. local distanceVector = targetPosition - missilePosition
  1741. local elapsedTime = time() - timeCreated
  1742. local targetParent = targetPart.Parent
  1743. if explodeRequested or (targetParent and distanceVector.magnitude < 10) or elapsedTime > lifeTime then
  1744. GraphicalEffects.missileData[data] = nil
  1745. GraphicalEffects.missileParts[missilePart] = nil
  1746. touchedConnection:disconnect()
  1747. if missilePart.Parent then
  1748. missilePart:Destroy()
  1749. local explosion = Instance.new("Explosion")
  1750. explosion.BlastRadius = 12.5
  1751. explosion.Position = missilePosition
  1752. local explosionHitConnection = explosion.Hit:connect(function(hit, distance)
  1753. local missileData = GraphicalEffects.missileParts[hit]
  1754. if missileData and distance < 3 then
  1755. missileData[7] = true
  1756. else
  1757. pcall(hit.BreakJoints, hit)
  1758. end
  1759. end)
  1760. explosion.Parent = Workspace
  1761. TaskScheduler.Schedule(1, explosionHitConnection.disconnect, explosionHitConnection)
  1762. end
  1763. else
  1764. local targetInWorkspace = targetPart:IsDescendantOf(Workspace)
  1765. if targetInWorkspace then
  1766. direction = distanceVector.unit
  1767. data[5] = direction
  1768. end
  1769. local speed = 14 + elapsedTime * 10
  1770. local gyroD
  1771. if elapsedTime < 42.5 and targetInWorkspace then
  1772. gyroD = 1000 - elapsedTime * 15
  1773. else
  1774. gyroD = 100
  1775. bodyGyro.maxTorque = Vector3.new(0, 0, 0)
  1776. if elapsedTime + 7.5 < lifeTime then
  1777. data[11] = elapsedTime + 7.5
  1778. end
  1779. end
  1780. bodyGyro.D = gyroD
  1781. bodyGyro.cframe = CFrame.new(Vector3.new(), direction)
  1782. missilePart.Velocity = missilePart.CFrame.lookVector * speed
  1783. end
  1784. end
  1785. end
  1786. function GraphicalEffects.ShootMissile(targetPart, pointOnPart, direction, magic_circle_adornee_func, magic_circle_offset, flipped)
  1787. if not magic_circle_offset then
  1788. magic_circle_offset = GraphicalEffects.MAGIC_CIRCLE_DEFAULT_OFFSET
  1789. end
  1790. local targetPosition = targetPart.Position
  1791. local headPosition = chatAdornee.Position
  1792. local origin = CFrame.new(headPosition, headPosition + direction) + direction * magic_circle_offset
  1793. local missilePart = Instance.new("Part")
  1794. local antiGravityForce = Instance.new("BodyForce", missilePart)
  1795. local bodyGyro = Instance.new("BodyGyro", missilePart)
  1796. local explosionSound = Instance.new("Sound", missilePart)
  1797. local swooshSound = Instance.new("Sound", missilePart)
  1798. antiGravityForce.force = Vector3.new(0, 196.2 * 4, 0)
  1799. bodyGyro.D = 1000
  1800. bodyGyro.maxTorque = Vector3.new(1, 1, 1)
  1801. explosionSound.PlayOnRemove = true
  1802. explosionSound.SoundId = "rbxasset://sounds/collide.wav"
  1803. explosionSound.Volume = 1
  1804. missilePart.Anchored = true
  1805. missilePart.BackSurface = "Studs"
  1806. missilePart.BottomSurface = "Studs"
  1807. missilePart.BrickColor = BrickColor.Red()
  1808. missilePart.CFrame = origin
  1809. missilePart.FormFactor = "Custom"
  1810. missilePart.FrontSurface = "Studs"
  1811. missilePart.LeftSurface = "Studs"
  1812. missilePart.Locked = true
  1813. missilePart.RightSurface = "Studs"
  1814. missilePart.Size = Vector3.new(1, 1, 0.2)
  1815. missilePart.TopSurface = "Studs"
  1816. --missilePart.Transparency = 0.5
  1817. swooshSound.Looped = true
  1818. swooshSound.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  1819. swooshSound.Volume = 0.7
  1820. local magicCircleData = GraphicalEffects.CreateMagicCircle(headPosition + direction * 1000, 0.875, "rbxassetid://127033719", Color3.new(1, 1, 1),
  1821.  
  1822. 40, 4, magic_circle_adornee_func or function() return chatAdornee end, magic_circle_offset)
  1823. local data = {0, missilePart, targetPart, time(), direction, false, false, bodyGyro, swooshSound, magicCircleData, 50, pointOnPart, flipped}
  1824. missilePart.Parent = Workspace
  1825. GraphicalEffects.missileData[data] = true
  1826. GraphicalEffects.missileParts[missilePart] = data
  1827. end
  1828.  
  1829. function GraphicalEffects.CubicInterpolate(y0, y1, y2, y3, mu)
  1830. local a0, a1, a2, a3, mu2
  1831. mu2 = mu * mu
  1832. a0 = y3 - y2 - y0 + y1
  1833. a1 = y0 - y1 - a0
  1834. a2 = y2 - y0
  1835. a3 = y1
  1836. return a0 * mu * mu2 + a1 * mu2 + a2 * mu + a3
  1837. end
  1838. function GraphicalEffects.JointCrap(model, cycletime)
  1839. if model then
  1840. local cycletime = cycletime or (0.75 * (1 + math.random() * 4))
  1841. local offsetradius = 0.75
  1842. local rotationoffset = math.pi
  1843. local joints = {}
  1844. local stack = model:GetChildren()
  1845. while #stack ~= 0 do
  1846. local object = stack[#stack]
  1847. table.remove(stack)
  1848. for index, child in ipairs(object:GetChildren()) do
  1849. table.insert(stack, child)
  1850. end
  1851. if object:IsA("JointInstance") then
  1852. table.insert(joints, object)
  1853. end
  1854. end
  1855. local rot0 = {}
  1856. local rot1 = {}
  1857. local rot2 = {}
  1858. local rot3 = {}
  1859. local rot4 = {}
  1860. for index, joint in ipairs(joints) do
  1861. local pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
  1862. local rot = Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
  1863. rot0[index] = {joint.C0, joint.C1}
  1864. rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
  1865. rot2[index] = {pos, rot}
  1866. pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
  1867. rot = rot + Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
  1868. rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
  1869. rot3[index] = {pos, rot}
  1870. pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
  1871. rot = rot + Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
  1872. rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
  1873. rot4[index] = {pos, rot}
  1874. end
  1875. while model.Parent do
  1876. for i, j in ipairs(joints) do
  1877. local pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
  1878. local rot = rot4[i][2] + Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
  1879. rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
  1880. rot1[i], rot2[i], rot3[i], rot4[i] = rot2[i], rot3[i], rot4[i], {pos, rot}
  1881. end
  1882. local start = tick()
  1883. while true do
  1884. local ctime = tick()
  1885. local elapsed = ctime - start
  1886. if elapsed > cycletime then
  1887. break
  1888. end
  1889. local progress = elapsed / cycletime
  1890. for index, joint in ipairs(joints) do
  1891. local v0, v1, v2, v3, v4 = rot0[index], rot1[index], rot2[index], rot3[index], rot4[index]
  1892. local p1, p2, p3, p4, r1, r2, r3, r4 = v1[1], v2[1], v3[1], v4[1], v1[2], v2[2], v3[2], v4[2]
  1893. local px = GraphicalEffects.CubicInterpolate(p1.x, p2.x, p3.x, p4.x, progress)
  1894. local py = GraphicalEffects.CubicInterpolate(p1.y, p2.y, p3.y, p4.y, progress)
  1895. local pz = GraphicalEffects.CubicInterpolate(p1.z, p2.z, p3.z, p4.z, progress)
  1896. local rx = GraphicalEffects.CubicInterpolate(r1.x, r2.x, r3.x, r4.x, progress)
  1897. local ry = GraphicalEffects.CubicInterpolate(r1.y, r2.y, r3.y, r4.y, progress)
  1898. local rz = GraphicalEffects.CubicInterpolate(r1.z, r2.z, r3.z, r4.z, progress)
  1899. local cframe = CFrame.new(px, py, pz) * CFrame.Angles(rx, ry, rz)
  1900. joint.C0 = v0[1] * cframe
  1901. joint.C1 = v0[2] * cframe:inverse()
  1902. end
  1903. RunService.Stepped:wait()
  1904. end
  1905. end
  1906. end
  1907. end
  1908.  
  1909. GraphicalEffects.LASER_WIDTH = 0.15
  1910. GraphicalEffects.LASER_MAGIC_CIRCLE_DISTANCE = 6.25
  1911. GraphicalEffects.laser_data = {}
  1912. --GraphicalEffects.fragmentation = {}
  1913. function GraphicalEffects.AnimateLaserOfDeath(data)
  1914. local frame, directionOrientation, direction, magic_circle_model, laser_part, laser_mesh, magic_circle_part, magic_circle_light,
  1915.  
  1916. magic_circle_decal_back, magic_circle_decal_front, sound, laser_scale, fragmentation_size, duration, laser_lights, laser_effects, stay, light_effects =
  1917.  
  1918. unpack(data)
  1919. local laser_color = laser_part.Color
  1920. frame = frame + 1
  1921. data[1] = frame
  1922. local transparency = (frame / duration) ^ stay
  1923. local opacity = 1 - transparency
  1924. if frame == 2 then
  1925. sound:Play()
  1926. end
  1927. if frame == duration then
  1928. pcall(Game.Destroy, magic_circle_model)
  1929. GraphicalEffects.laser_data[data] = nil
  1930. else
  1931. if magic_circle_model.Parent ~= Workspace then
  1932. pcall(Utility.SetProperty, magic_circle_model, "Parent", Workspace)
  1933. end
  1934. local laser_distance = 0
  1935. local origin = chatAdornee.CFrame
  1936. if not light_effects then
  1937. direction = (origin * directionOrientation - origin.p).unit
  1938. end
  1939. local magic_circle_position = origin.p + direction * GraphicalEffects.LASER_MAGIC_CIRCLE_DISTANCE
  1940. local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0, math.tau * frame /
  1941.  
  1942. 25)
  1943. local loop_scale = (laser_scale - 1) / 10
  1944. for x_offset = -loop_scale, loop_scale, 2 do
  1945. for y_offset = -loop_scale, loop_scale, 2 do
  1946. local origin_position = magic_circle_cframe * Vector3.new(x_offset, y_offset, 0)
  1947. for index = 1, 8 do
  1948. local part, position
  1949. for ray_index = 1, 10 do
  1950. local ray = Ray.new(origin_position + direction * (999 * (ray_index - 1)), direction * 999)
  1951. part, position = Workspace:FindPartOnRay(ray, magic_circle_model)
  1952. if part then
  1953. break
  1954. end
  1955. end
  1956. if part then
  1957. laser_distance = (position - origin_position).magnitude
  1958. if frame % 8 == 1 and index == 1 then
  1959. Instance.new("Explosion", Workspace).Position = position
  1960. end
  1961. if not part:IsA("Terrain") then
  1962. pcall(part.BreakJoints, part)
  1963. local is_block = part:IsA("Part") and part.Shape == Enum.PartType.Block
  1964. local mass = part:GetMass()
  1965. local size = part.Size
  1966. if (is_block and ((size.X < fragmentation_size and size.Y < fragmentation_size and size.Z <
  1967.  
  1968. fragmentation_size) or (not part.Anchored and mass < 750))) or (not is_block and mass < 250000) then
  1969. local part_transparency = math.max(part.Transparency + 0.007 * fragmentation_size, 0.5)
  1970. if part_transparency >= 0.5 then -- temporarily to minimize debris
  1971. pcall(Game.Destroy, part)
  1972. else
  1973. local cframe = part.CFrame
  1974. part.Anchored = false
  1975. part.BrickColor = BrickColor.new("Medium stone grey")
  1976. part.CanCollide = true
  1977. if part:IsA("FormFactorPart") then
  1978. part.FormFactor = "Custom"
  1979. end
  1980. part.Size = size - Vector3.new(0.135, 0.135, 0.135) * fragmentation_size
  1981. part.Transparency = part_transparency
  1982. part.CFrame = cframe + direction * 5
  1983. part.Velocity = part.Velocity + direction * 40
  1984. end
  1985. elseif is_block then
  1986. local parts = {part}
  1987. local model = Instance.new("Model", part.Parent)
  1988. model.Name = "Fragments"
  1989. if size.X >= fragmentation_size then
  1990. size = Vector3.new(0.5, 1, 1) * size
  1991. local archivable = part.Archivable
  1992. local cframe = part.CFrame
  1993. part.FormFactor = "Custom"
  1994. part.Size = size
  1995. part.Archivable = true
  1996. local part_clone = part:Clone()
  1997. part.Archivable = archivable
  1998. part_clone.Archivable = archivable
  1999. part.CFrame = cframe * CFrame.new(-0.5 * size.X, 0, 0)
  2000. part_clone.CFrame = cframe * CFrame.new(0.5 * size.X, 0, 0)
  2001. part_clone.Parent = model
  2002. parts[2] = part_clone
  2003. end
  2004. if size.Y >= fragmentation_size then
  2005. size = Vector3.new(1, 0.5, 1) * size
  2006. for part_index = 1, #parts do
  2007. local part = parts[part_index]
  2008. local archivable = part.Archivable
  2009. local cframe = part.CFrame
  2010. part.FormFactor = "Custom"
  2011. part.Size = size
  2012. part.Archivable = true
  2013. local part_clone = part:Clone()
  2014. part.Archivable = archivable
  2015. part_clone.Archivable = archivable
  2016. part.CFrame = cframe * CFrame.new(0, -0.5 * size.Y, 0)
  2017. part_clone.CFrame = cframe * CFrame.new(0, 0.5 * size.Y, 0)
  2018. part_clone.Parent = model
  2019. table.insert(parts, part_clone)
  2020. end
  2021. end
  2022. if size.Z >= fragmentation_size then
  2023. size = Vector3.new(1, 1, 0.5) * size
  2024. for part_index = 1, #parts do
  2025. local part = parts[part_index]
  2026. local archivable = part.Archivable
  2027. local cframe = part.CFrame
  2028. part.FormFactor = "Custom"
  2029. part.Size = size
  2030. part.Archivable = true
  2031. local part_clone = part:Clone()
  2032. part.Archivable = archivable
  2033. part_clone.Archivable = archivable
  2034. part.CFrame = cframe * CFrame.new(0, 0, -0.5 * size.Z)
  2035. part_clone.CFrame = cframe * CFrame.new(0, 0, 0.5 * size.Z)
  2036. part_clone.Parent = model
  2037. table.insert(parts, part_clone)
  2038. end
  2039. end
  2040. for _, part in ipairs(parts) do
  2041. part:MakeJoints()
  2042. end
  2043. else
  2044. break
  2045. end
  2046. end
  2047. else
  2048. laser_distance = 9990
  2049. break
  2050. end
  2051. end
  2052. end
  2053. end
  2054. local laser_cframe = magic_circle_cframe * CFrame.Angles(-0.5 * math.pi, 0, 0)
  2055. local laser_width = GraphicalEffects.LASER_WIDTH * opacity * laser_scale
  2056. local laser_mesh_offset = Vector3.new(0, 0.5 * laser_distance, 0)
  2057. laser_part.CFrame = laser_cframe
  2058. if laser_effects then
  2059. local laser_effect_data_1, laser_effect_data_2 = laser_effects[1], laser_effects[2]
  2060. local laser_effect_1, laser_effect_mesh_1 = laser_effect_data_1[1], laser_effect_data_1[2]
  2061. local laser_effect_2, laser_effect_mesh_2 = laser_effect_data_2[1], laser_effect_data_2[2]
  2062. laser_effect_1.CFrame = laser_cframe
  2063. laser_effect_2.CFrame = laser_cframe
  2064. laser_effect_mesh_1.Offset = laser_mesh_offset
  2065. laser_effect_mesh_2.Offset = laser_mesh_offset
  2066. local game_time = time()
  2067. local effect_scale_1 = 0.5 + 0.5 * math.sin(16 * math.pi * game_time)
  2068. local effect_scale_2 = 0.5 + 0.5 * math.cos(16 * math.pi * game_time)
  2069. laser_effect_mesh_1.Scale = 5 * Vector3.new(laser_width * effect_scale_1, laser_distance, laser_width * effect_scale_1)
  2070. laser_effect_mesh_2.Scale = 5 * Vector3.new(laser_width * effect_scale_2, laser_distance, laser_width * effect_scale_2)
  2071. laser_width = laser_width * 0.25
  2072. end
  2073. laser_mesh.Offset = laser_mesh_offset
  2074. laser_mesh.Scale = 5 * Vector3.new(laser_width, laser_distance, laser_width)
  2075. magic_circle_part.CFrame = magic_circle_cframe
  2076. magic_circle_light.Brightness = opacity
  2077. magic_circle_decal_back.Transparency = transparency
  2078. magic_circle_decal_front.Transparency = transparency
  2079. if light_effects then
  2080. for index, data in ipairs(laser_lights) do
  2081. local laser_spotlight_part, laser_spotlight = data[1], data[2]
  2082. local laser_spotlight_offset = 30 * (index - 1)
  2083. if laser_spotlight_offset <= laser_distance then
  2084. laser_spotlight_part.CFrame = magic_circle_cframe * CFrame.new(0, 0, -laser_spotlight_offset)
  2085. laser_spotlight.Brightness = opacity
  2086. laser_spotlight.Enabled = true
  2087. else
  2088. laser_spotlight.Enabled = false
  2089. end
  2090. end
  2091. end
  2092. end
  2093. end
  2094. function GraphicalEffects.ShootLaserOfDeath(target, data)
  2095. if chatAdornee then
  2096. data = data or {}
  2097. local brickcolor = data.brickcolor or BrickColor.new("Really black")
  2098. local duration = data.duration or 40
  2099. local fragmentation_size = data.fragmentation_size or 3
  2100. local laser_scale = data.laser_scale or 1
  2101. local light_color = data.light_color or Color3.new(1, 0.5, 1)
  2102. local magic_circle_image = data.magic_circle_image or "rbxassetid://122610943"
  2103. local magic_circle_scale = data.magic_circle_scale or 1
  2104. local sound_volume = data.sound_volume or 1 / 3
  2105. local special_effects = data.special_effects
  2106. local stay = data.stay or 4
  2107. local origin = chatAdornee.CFrame
  2108. local directionOrientation = origin:pointToObjectSpace(target)
  2109. local direction = (target - origin.p).unit
  2110. local magic_circle_position = origin.p + direction * GraphicalEffects.LASER_MAGIC_CIRCLE_DISTANCE
  2111. local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction)
  2112. local magic_circle_model = Instance.new("Model")
  2113. local laser_part = Instance.new("Part", magic_circle_model)
  2114. local laser_mesh = Instance.new("CylinderMesh", laser_part)
  2115. local magic_circle_part = Instance.new("Part", magic_circle_model)
  2116. local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part)
  2117. local magic_circle_light = Instance.new("PointLight", magic_circle_part)
  2118. local magic_circle_decal_back = Instance.new("Decal", magic_circle_part)
  2119. local magic_circle_decal_front = Instance.new("Decal", magic_circle_part)
  2120. local sound = Instance.new("Sound", magic_circle_part)
  2121. sound.Pitch = 1.25
  2122. sound.SoundId = "rbxassetid://2248511"
  2123. sound.Volume = sound_volume
  2124. magic_circle_model.Archivable = false
  2125. laser_part.Anchored = true
  2126. laser_part.BottomSurface = "Smooth"
  2127. laser_part.BrickColor = brickcolor
  2128. laser_part.CanCollide = false
  2129. laser_part.CFrame = magic_circle_cframe * CFrame.Angles(-0.5 * math.pi, 0, 0)
  2130. laser_part.FormFactor = "Custom"
  2131. laser_part.Locked = true
  2132. laser_part.Size = Vector3.new(0.2, 0.2, 0.2)
  2133. laser_part.TopSurface = "Smooth"
  2134. laser_mesh.Offset = Vector3.new(0, 0, 0)
  2135. laser_mesh.Name = "Mesh"
  2136. laser_mesh.Scale = 5 * laser_scale * Vector3.new(GraphicalEffects.LASER_WIDTH, 0, GraphicalEffects.LASER_WIDTH)
  2137. magic_circle_part.Anchored = true
  2138. magic_circle_part.BottomSurface = "Smooth"
  2139. magic_circle_part.CanCollide = false
  2140. magic_circle_part.CFrame = magic_circle_cframe
  2141. magic_circle_part.FormFactor = "Custom"
  2142. magic_circle_part.Locked = true
  2143. magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2)
  2144. magic_circle_part.TopSurface = "Smooth"
  2145. magic_circle_part.Transparency = 1
  2146. magic_circle_mesh.Scale = Vector3.new(60, 60, 0) * magic_circle_scale
  2147. magic_circle_light.Color = light_color
  2148. magic_circle_light.Range = 16 * magic_circle_scale
  2149. magic_circle_light.Shadows = true
  2150. magic_circle_decal_back.Face = "Back"
  2151. magic_circle_decal_back.Texture = magic_circle_image
  2152. magic_circle_decal_front.Face = "Front"
  2153. magic_circle_decal_front.Texture = magic_circle_image
  2154. magic_circle_model.Parent = Workspace
  2155. local laser_color = brickcolor.Color
  2156. local laser_lights = {}
  2157. local light_effects = laser_color.r + laser_color.g + laser_color.b > 0.25
  2158. if light_effects then
  2159. local laser_spotlight_part_template = Instance.new("Part")
  2160. local laser_spotlight_light_template = Instance.new("SpotLight", laser_spotlight_part_template)
  2161. laser_spotlight_part_template.Anchored = true
  2162. laser_spotlight_part_template.Anchored = true
  2163. laser_spotlight_part_template.BottomSurface = "Smooth"
  2164. laser_spotlight_part_template.CanCollide = false
  2165. laser_spotlight_part_template.FormFactor = "Custom"
  2166. laser_spotlight_part_template.Locked = true
  2167. laser_spotlight_part_template.Size = Vector3.new(0.2, 0.2, 0.2)
  2168. laser_spotlight_part_template.TopSurface = "Smooth"
  2169. laser_spotlight_part_template.Transparency = 1
  2170. laser_spotlight_light_template.Angle = 45
  2171. laser_spotlight_light_template.Color = laser_color
  2172. laser_spotlight_light_template.Enabled = true
  2173. laser_spotlight_light_template.Name = "Light"
  2174. laser_spotlight_light_template.Range = 60
  2175. for index = 1, 40 do
  2176. local laser_spotlight_part = laser_spotlight_part_template:Clone()
  2177. laser_spotlight_part.CFrame = magic_circle_cframe * CFrame.new(0, 0, -30 * (index - 1))
  2178. laser_spotlight_part.Parent = magic_circle_model
  2179. laser_lights[index] = {laser_spotlight_part, laser_spotlight_part.Light}
  2180. end
  2181. end
  2182. local laser_effects
  2183. if special_effects then
  2184. laser_effects = {}
  2185. local laser_effect_1 = laser_part:Clone()
  2186. laser_effect_1.BrickColor = special_effects
  2187. laser_effect_1.Transparency = 0.5
  2188. local laser_effect_2 = laser_effect_1:Clone()
  2189. laser_effects[1], laser_effects[2] = {laser_effect_1, laser_effect_1.Mesh}, {laser_effect_2, laser_effect_2.Mesh}
  2190. laser_effect_1.Parent = magic_circle_model
  2191. laser_effect_2.Parent = magic_circle_model
  2192. end
  2193. GraphicalEffects.laser_data[{0, directionOrientation, direction, magic_circle_model, laser_part, laser_mesh, magic_circle_part,
  2194.  
  2195. magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, sound, laser_scale, fragmentation_size, duration, laser_lights, laser_effects, stay,
  2196.  
  2197. light_effects}] = true
  2198. end
  2199. end
  2200.  
  2201. function GraphicalEffects.SpawnSapientRock(position)
  2202. local part = Instance.new("Part", Workspace)
  2203. local size = 8 + math.random(0, 5)
  2204. part.BottomSurface = "Smooth"
  2205. part.TopSurface = "Smooth"
  2206. part.Material = "Slate"
  2207. part.Locked = true
  2208. part.Shape = "Ball"
  2209. part.FormFactor = "Custom"
  2210. part.Size = Vector3.new(size, size, size)
  2211. part.Position = position
  2212. local bodypos = Instance.new("BodyPosition", part)
  2213. bodypos.maxForce = Vector3.new(0, 0, 0)
  2214. local angry = false
  2215. local damage_ready = true
  2216. local torso_following
  2217. local torso_changed = -1000
  2218. local touched_conn = part.Touched:connect(function(hit)
  2219. local character = hit.Parent
  2220. if character then
  2221. local humanoid
  2222. for _, child in ipairs(character:GetChildren()) do
  2223. if child:IsA("Humanoid") then
  2224. humanoid = child
  2225. break
  2226. end
  2227. end
  2228. if humanoid then
  2229. if angry then
  2230. if damage_ready then
  2231. damage_ready = false
  2232. humanoid:TakeDamage(100)
  2233. wait(1)
  2234. damage_ready = true
  2235. angry = false
  2236. part.BrickColor = BrickColor.new("Medium stone grey")
  2237. end
  2238. else
  2239. local torso = humanoid.Torso
  2240. if torso then
  2241. torso_following = torso
  2242. torso_changed = tick()
  2243. end
  2244. end
  2245. end
  2246. end
  2247. end)
  2248. TaskScheduler.Start(function()
  2249. while part.Parent == Workspace do
  2250. if torso_following then
  2251. bodypos.position = torso_following.Position
  2252. if tick() - torso_changed > 60 or not torso_following.Parent then
  2253. torso_following = nil
  2254. bodypos.maxForce = Vector3.new(0, 0, 0)
  2255. angry = false
  2256. part.BrickColor = BrickColor.new("Medium stone grey")
  2257. else
  2258. local speed = angry and Vector3.new(16, 16, 16) or Vector3.new(6, 0, 6)
  2259. bodypos.maxForce = part:GetMass() * speed
  2260. if part.Position.Y < -250 then
  2261. part.Velocity = Vector3.new()
  2262. part.Position = torso_following.Position + Vector3.new(0, 80, 0)
  2263. part.BrickColor = BrickColor.new("Bright red")
  2264. angry = true
  2265. torso_changed = tick()
  2266. end
  2267. end
  2268. end
  2269. RunService.Stepped:wait()
  2270. end
  2271. touched_conn:disconnect()
  2272. end)
  2273. TaskScheduler.Start(function()
  2274. while part.Parent == Workspace do
  2275. wait(25 + math.random() * 10)
  2276. local next_size = 8 + math.random() * 5
  2277. if math.random(100) == 1 then
  2278. next_size = next_size * (2 + 6 * math.random())
  2279. end
  2280. next_size = math.floor(next_size + 0.5)
  2281. local start_time = tick()
  2282. local mesh = Instance.new("SpecialMesh", part)
  2283. mesh.MeshType = "Sphere"
  2284. repeat
  2285. local elapsed_time = tick() - start_time
  2286. local alpha = math.cos(elapsed_time * math.pi * 0.5)
  2287. local interpolated_size = size * alpha + next_size * (1 - alpha)
  2288. local size_vector = Vector3.new(interpolated_size, interpolated_size, interpolated_size)
  2289. local cframe = part.CFrame
  2290. part.Size = size_vector
  2291. part.CFrame = cframe
  2292. mesh.Scale = size_vector / part.Size
  2293. RunService.Stepped:wait()
  2294. until tick() - start_time >= 1
  2295. mesh:Destroy()
  2296. local cframe = part.CFrame
  2297. part.Size = Vector3.new(next_size, next_size, next_size)
  2298. part.CFrame = cframe
  2299. size = next_size
  2300. end
  2301. end)
  2302. end
  2303.  
  2304. function GraphicalEffects.MainLoop()
  2305. RunService.Stepped:wait()
  2306. for data in pairs(GraphicalEffects.magicCircleData) do
  2307. GraphicalEffects.AnimateMagicCircle(data)
  2308. end
  2309. for data in pairs(GraphicalEffects.laser_data) do
  2310. GraphicalEffects.AnimateLaserOfDeath(data)
  2311. end
  2312. for data in pairs(GraphicalEffects.missileData) do
  2313. GraphicalEffects.AnimateMissile(data)
  2314. end
  2315. end
  2316. TaskScheduler.Start(function()
  2317. while true do
  2318. GraphicalEffects.MainLoop()
  2319. end
  2320. end)
  2321.  
  2322. PlayerControl = {};
  2323.  
  2324. PlayerControl.fly_acceleration = 10
  2325. PlayerControl.fly_basespeed = 250
  2326. PlayerControl.fly_speed = PlayerControl.fly_basespeed
  2327. PlayerControl.featherfallEnabled = true
  2328. PlayerControl.pushable = false
  2329. PlayerControl.rolling = false
  2330. PlayerControl.rollingAngle = 0
  2331. PlayerControl.rollingOffset = 0
  2332. PlayerControl.rollingMaxOffset = 3
  2333. PlayerControl.rollingSpeed = 1 / 50
  2334. PlayerControl.characterEnabled = false
  2335. PlayerControl.characterMode = "normal"
  2336. local character = nil
  2337. local flying, flyingMomentum, flyingTilt = false, Vector3.new(), 0
  2338. local pose, regeneratingHealth, jumpDebounce = "Standing", false, false
  2339. -- TODO: make local variables public
  2340. local model, bodyColors, leftArmMesh, leftLegMesh, rightArmMesh, rightLegMesh, torsoMesh, wildcardHat, wildcardHandle, wildcardMesh, pants, shirt, humanoid,
  2341.  
  2342. head, leftArm, leftLeg, rightArm, rightLeg, torso, rootPart, rootJoint, face, soundFreeFalling, soundGettingUp, soundRunning, leftHip, leftShoulder,
  2343.  
  2344. rightHip, rightShoulder, neck, wildcardWeld, feetPart, feetWeld, feetTouchInterest, bodyGyro, bodyVelocity, headMesh, torsoLight
  2345. local AnimateCharacter
  2346. local UserInterface = game:service'UserInputService'
  2347. local chatBubbles = {}
  2348. local chatCharacterLimit = 240
  2349. function PlayerControl.CreateCharacter()
  2350. local characterMode = PlayerControl.characterMode
  2351. if characterMode == "normal" then
  2352. if not PlayerControl.characterEnabled then
  2353. return
  2354. end
  2355. local appearance = CharacterAppearance.GetDefaultAppearance()
  2356. local active = true
  2357. local torsoCFrame = (torso and torso.CFrame) or PlayerControl.torso_cframe or CFrame.new(0, 10, 0)
  2358. if torsoCFrame.p.Y < -450 then
  2359. torsoCFrame = CFrame.new(0, 10, 0)
  2360. end
  2361. local rootPartCFrame = (rootPart and rootPart.CFrame) or PlayerControl.torso_cframe or CFrame.new(0, 10, 0)
  2362. if rootPartCFrame.p.Y < -450 then
  2363. rootPartCFrame = CFrame.new(0, 10, 0)
  2364. end
  2365. local cameraCFrame = Camera.CoordinateFrame
  2366. local connections = {}
  2367. local feetTouching = {}
  2368. local previousWalkSpeed = 0
  2369. local prevLeftHip, prevLeftShoulder, prevRightHip, prevRightShoulder = leftHip, leftShoulder, rightHip, rightShoulder
  2370. model = Instance.new("Model")
  2371. humanoid = Instance.new("Humanoid", model)
  2372. head = Instance.new("Part", model)
  2373. leftArm = Instance.new("Part", model)
  2374. leftLeg = Instance.new("Part", model)
  2375. rightArm = Instance.new("Part", model)
  2376. rightLeg = Instance.new("Part", model)
  2377. torso = Instance.new("Part", model)
  2378. rootPart = Instance.new("Part", model)
  2379. soundFallingDown = Instance.new("Sound", head)
  2380. soundFreeFalling = Instance.new("Sound", head)
  2381. soundGettingUp = Instance.new("Sound", head)
  2382. soundJumping = Instance.new("Sound", head)
  2383. soundRunning = Instance.new("Sound", head)
  2384. leftHip = Instance.new("Motor", torso)
  2385. leftShoulder = Instance.new("Motor", torso)
  2386. rightHip = Instance.new("Motor", torso)
  2387. rightShoulder = Instance.new("Motor", torso)
  2388. neck = Instance.new("Motor", torso)
  2389. rootJoint = Instance.new("Motor", rootPart)
  2390. feetPart = Instance.new("Part", model)
  2391. feetWeld = Instance.new("Weld", torso)
  2392. bodyGyro = Instance.new("BodyGyro", rootPart)
  2393. bodyVelocity = Instance.new("BodyVelocity", rootPart)
  2394. model.Archivable = false
  2395. model.Name = user_name or Player.Name
  2396. model.PrimaryPart = head
  2397. humanoid.LeftLeg = leftLeg
  2398. humanoid.RightLeg = rightLeg
  2399. humanoid.Torso = rootPart
  2400. head.CFrame = torsoCFrame * CFrame.new(0, 1.5, 0)
  2401. head.FormFactor = "Symmetric"
  2402. head.Locked = true
  2403. head.Name = "Head"
  2404. head.Size = Vector3.new(2, 1, 1)
  2405. head.TopSurface = "Smooth"
  2406. leftArm.CanCollide = false
  2407. leftArm.CFrame = torsoCFrame * CFrame.new(-1.5, 0, 0)
  2408. leftArm.FormFactor = "Symmetric"
  2409. leftArm.Locked = true
  2410. leftArm.Name = "Left Arm"
  2411. leftArm.Size = Vector3.new(1, 2, 1)
  2412. leftLeg.BottomSurface = "Smooth"
  2413. leftLeg.CanCollide = false
  2414. leftLeg.CFrame = torsoCFrame * CFrame.new(-0.5, -2, 0)
  2415. leftLeg.FormFactor = "Symmetric"
  2416. leftLeg.Locked = true
  2417. leftLeg.Name = "Left Leg"
  2418. leftLeg.Size = Vector3.new(1, 2, 1)
  2419. leftLeg.TopSurface = "Smooth"
  2420. rightArm.CanCollide = false
  2421. rightArm.CFrame = torsoCFrame * CFrame.new(1.5, 0, 0)
  2422. rightArm.FormFactor = "Symmetric"
  2423. rightArm.Locked = true
  2424. rightArm.Name = "Right Arm"
  2425. rightArm.Size = Vector3.new(1, 2, 1)
  2426. rightLeg.BottomSurface = "Smooth"
  2427. rightLeg.CanCollide = false
  2428. rightLeg.CFrame = torsoCFrame * CFrame.new(0.5, -2, 0)
  2429. rightLeg.FormFactor = "Symmetric"
  2430. rightLeg.Locked = true
  2431. rightLeg.Name = "Right Leg"
  2432. rightLeg.Size = Vector3.new(1, 2, 1)
  2433. rightLeg.TopSurface = "Smooth"
  2434. torso.CFrame = torsoCFrame
  2435. torso.FormFactor = "Symmetric"
  2436. torso.LeftSurface = "Weld"
  2437. torso.Locked = true
  2438. torso.RightSurface = "Weld"
  2439. torso.Name = "Torso"
  2440. torso.Size = Vector3.new(2, 2, 1)
  2441. rootPart.BottomSurface = "Smooth"
  2442. rootPart.BrickColor = BrickColor.Blue()
  2443. rootPart.CFrame = rootPartCFrame
  2444. rootPart.FormFactor = "Symmetric"
  2445. rootPart.LeftSurface = "Weld"
  2446. rootPart.Locked = true
  2447. rootPart.RightSurface = "Weld"
  2448. rootPart.Name = "HumanoidRootPart"
  2449. rootPart.Size = Vector3.new(2, 2, 1)
  2450. rootPart.TopSurface = "Smooth"
  2451. rootPart.Transparency = 1
  2452. soundFreeFalling.Archivable = false
  2453. soundFreeFalling.SoundId = "rbxasset://sounds/swoosh.wav"
  2454. soundGettingUp.Archivable = false
  2455. soundGettingUp.SoundId = "rbxasset://sounds/hit.wav"
  2456. soundRunning.Archivable = false
  2457. soundRunning.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
  2458. soundRunning.Looped = true
  2459. leftHip.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2460. leftHip.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2461. leftHip.MaxVelocity = 0.1
  2462. leftHip.Name = "Left Hip"
  2463. leftHip.Part0 = torso
  2464. leftHip.Part1 = leftLeg
  2465. leftShoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2466. leftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  2467. leftShoulder.MaxVelocity = 0.15
  2468. leftShoulder.Name = "Left Shoulder"
  2469. leftShoulder.Part0 = torso
  2470. leftShoulder.Part1 = leftArm
  2471. rightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2472. rightHip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2473. rightHip.MaxVelocity = 0.1
  2474. rightHip.Name = "Right Hip"
  2475. rightHip.Part0 = torso
  2476. rightHip.Part1 = rightLeg
  2477. rightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2478. rightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  2479. rightShoulder.MaxVelocity = 0.15
  2480. rightShoulder.Name = "Right Shoulder"
  2481. rightShoulder.Part0 = torso
  2482. rightShoulder.Part1 = rightArm
  2483. if prevLeftHip then
  2484. leftHip.CurrentAngle = prevLeftHip.CurrentAngle
  2485. leftHip.DesiredAngle = prevLeftHip.DesiredAngle
  2486. end
  2487. if prevLeftShoulder then
  2488. leftShoulder.CurrentAngle = prevLeftShoulder.CurrentAngle
  2489. leftShoulder.DesiredAngle = prevLeftShoulder.DesiredAngle
  2490. end
  2491. if prevRightHip then
  2492. rightHip.CurrentAngle = prevRightHip.CurrentAngle
  2493. rightHip.DesiredAngle = prevRightHip.DesiredAngle
  2494. end
  2495. if prevRightShoulder then
  2496. rightShoulder.CurrentAngle = prevRightShoulder.CurrentAngle
  2497. rightShoulder.DesiredAngle = prevRightShoulder.DesiredAngle
  2498. end
  2499. neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2500. neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  2501. neck.Name = "Neck"
  2502. neck.Part0 = torso
  2503. neck.Part1 = head
  2504. rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2505. rootJoint.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2506. rootJoint.Name = "RootJoint"
  2507. rootJoint.Part0 = rootPart
  2508. rootJoint.Part1 = torso
  2509. feetPart.BottomSurface = "Smooth"
  2510. feetPart.CanCollide = false
  2511. feetPart.CFrame = torsoCFrame * CFrame.new(0, -3.1, 0)
  2512. feetPart.FormFactor = "Custom"
  2513. feetPart.Locked = true
  2514. feetPart.Name = "Platform"
  2515. feetPart.Size = Vector3.new(1.8, 0.2, 0.8)
  2516. feetPart.TopSurface = "Smooth"
  2517. feetPart.Transparency = 1
  2518. feetWeld.C0 = CFrame.new(0, -3, 0)
  2519. feetWeld.C1 = CFrame.new(0, 0.1, 0)
  2520. feetWeld.Name = "PlatformWeld"
  2521. feetWeld.Part0 = torso
  2522. feetWeld.Part1 = feetPart
  2523. table.insert(connections, feetPart.Touched:connect(function(hit)
  2524. feetTouching[hit] = true
  2525. end))
  2526. table.insert(connections, feetPart.TouchEnded:connect(function(hit)
  2527. feetTouching[hit] = nil
  2528. end))
  2529. feetTouchInterest = feetPart:FindFirstChild("TouchInterest")
  2530. bodyGyro.D = 3250
  2531. bodyGyro.P = 400000
  2532. bodyGyro.maxTorque = Vector3.new(1000000000, 0, 1000000000)
  2533. bodyVelocity.P = 5000
  2534. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  2535. bodyVelocity.velocity = Vector3.new(0, 0, 0)
  2536. torsoLight = Instance.new("PointLight", torso)
  2537. torsoLight.Brightness = 0.4
  2538. torsoLight.Color = Color3.new(1, 1, 1)
  2539. torsoLight.Range = 16
  2540. torsoLight.Shadows = true
  2541. local ff1, ff2, ff3, ff4, ff5, ff6, ff7, ff8, ff9 = Instance.new("ForceField", head.Parent), Instance.new("ForceField", leftArm), Instance.new("ForceField", leftLeg), Instance.new("ForceField", rightArm), Instance.new("ForceField", rightLeg), Instance.new("ForceField", torso), Instance.new("ForceField", wildcardHandle), Instance.new("ForceField", feetPart), Instance.new("ForceField", rootPart)
  2542. local forcefields = {[ff1] = head, [ff2] = leftArm, [ff3] = leftLeg, [ff4] = rightArm, [ff5] = rightLeg, [ff6] = torso, [ff7] = wildcardHandle, [ff8] = feetPart, [ff9] = rootPart}
  2543. local objects = {[humanoid] = true, [head] = true, [leftArm] = true, [leftLeg] = true, [rightArm] = true, [rightLeg] = true, [torso] = true, [rootPart] = true, [rootJoint] = true, [soundFreeFalling] = true, [soundGettingUp] = true, [soundRunning] = true, [leftHip] = true, [leftShoulder] = true, [rightHip] = true, [rightShoulder] = true, [neck] = true, [feetPart] = true, [feetWeld] = true, [feetTouchInterest] = true, [bodyGyro] = true, [bodyVelocity] = true, [ff1] = true, [ff2] = true, [ff3] = true, [ff4] = true, [ff5] = true, [ff6] = true, [ff7] = true, [ff8] = true, [ff9] = true}
  2544. local tshirtUrl = appearance.tshirt
  2545. if tshirtUrl then
  2546. local tshirt = Instance.new("Decal", torso)
  2547. tshirt.Name = "roblox"
  2548. tshirt.Texture = tshirtUrl
  2549. objects[tshirt] = true
  2550. end
  2551. for _, template in ipairs(appearance.characterObjects) do
  2552. local object = template:Clone()
  2553. local newObjects = {object}
  2554. for _, object in ipairs(newObjects) do
  2555. objects[object] = true
  2556. for _, child in ipairs(object:GetChildren()) do
  2557. table.insert(newObjects, child)
  2558. end
  2559. end
  2560. if object:IsA("BodyColors") then
  2561. head.BrickColor = object.HeadColor
  2562. leftArm.BrickColor = object.LeftArmColor
  2563. leftLeg.BrickColor = object.LeftLegColor
  2564. rightArm.BrickColor = object.RightArmColor
  2565. rightLeg.BrickColor = object.RightLegColor
  2566. torso.BrickColor = object.TorsoColor
  2567. elseif object:IsA("Hat") then
  2568. local handle = object:FindFirstChild("Handle")
  2569. if handle and handle:IsA("BasePart") then
  2570. local weld = Instance.new("Weld", head)
  2571. weld.C0 = CFrame.new(0, 0.5, 0)
  2572. local attachmentPos = object.AttachmentPos
  2573. local attachmentRight = object.AttachmentRight
  2574. local attachmentUp = object.AttachmentUp
  2575. local attachmentForward = object.AttachmentForward
  2576. weld.C1 = CFrame.new(attachmentPos.X, attachmentPos.Y, attachmentPos.Z,
  2577. attachmentRight.X, attachmentUp.X, -attachmentForward.X,
  2578. attachmentRight.Y, attachmentUp.Y, -attachmentForward.Y,
  2579. attachmentRight.Z, attachmentUp.Z, -attachmentForward.Z)
  2580. weld.Name = "HeadWeld"
  2581. weld.Part0 = head
  2582. weld.Part1 = handle
  2583. handle.Parent = model
  2584. local antiGravity = Instance.new("BodyForce", handle)
  2585. antiGravity.force = Vector3.new(0, handle:GetMass() * 196.2, 0)
  2586. objects[object] = false
  2587. object.Parent = nil
  2588. objects[weld] = true
  2589. end
  2590. end
  2591. object.Parent = model
  2592. end
  2593. local facePresent = false
  2594. local headMeshPresent = false
  2595. for _, template in ipairs(appearance.headObjects) do
  2596. local object = template:Clone()
  2597. local newObjects = {object}
  2598. for _, object in ipairs(newObjects) do
  2599. objects[object] = true
  2600. for _, child in ipairs(object:GetChildren()) do
  2601. table.insert(newObjects, child)
  2602. end
  2603. end
  2604. if object:IsA("DataModelMesh") then
  2605. headMeshPresent = true
  2606. elseif object:IsA("Decal") then
  2607. facePresent = true
  2608. end
  2609. object.Parent = head
  2610. end
  2611. if not facePresent then
  2612. local face = Instance.new("Decal", head)
  2613. face.Texture = "rbxasset://textures/face.png"
  2614. objects[face] = true
  2615. end
  2616. if not headMeshPresent then
  2617. local headMesh = Instance.new("SpecialMesh", head)
  2618. headMesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  2619. objects[headMesh] = true
  2620. end
  2621. table.insert(connections, model.DescendantAdded:connect(function(object)
  2622. local success, is_localscript = pcall(Game.IsA, object, "LocalScript")
  2623. if success and is_localscript then
  2624. pcall(Utility.SetProperty, object, "Disabled", true)
  2625. local changed_connection = pcall(object.Changed.connect, object.Changed, function(property)
  2626. if property == "Disabled" and not object.Disabled then
  2627. pcall(Utility.SetProperty, object, "Disabled", true)
  2628. object:Destroy()
  2629. end
  2630. end)
  2631. end
  2632. if not objects[object] then
  2633. object:Destroy()
  2634. end
  2635. end))
  2636. model.Parent = Workspace
  2637. Player.Character = model
  2638. Camera.CameraSubject = humanoid
  2639. Camera.CameraType = "Track"
  2640. Camera.CoordinateFrame = cameraCFrame
  2641. local IsStanding
  2642. local RegenerateHealth
  2643. local ResetCharacter
  2644. function IsStanding()
  2645. return not not next(feetTouching)
  2646. end
  2647. function RegenerateHealth()
  2648. if humanoid.Health < 1 then
  2649. humanoid.Health = 100
  2650. elseif not regeneratingHealth then
  2651. regeneratingHealth = true
  2652. local elapsedTime = wait(1)
  2653. regeneratingHealth = false
  2654. if humanoid.Health < 100 then
  2655. humanoid.Health = math.min(humanoid.Health + elapsedTime, 100)
  2656. end
  2657. end
  2658. end
  2659. function ResetCharacter()
  2660. for index, connection in ipairs(connections) do
  2661. connection:disconnect()
  2662. end
  2663. active = false
  2664. end
  2665. table.insert(connections, model.AncestryChanged:connect(ResetCharacter))
  2666. table.insert(connections, model.DescendantRemoving:connect(function(object)
  2667. local parent = forcefields[object]
  2668. if parent then
  2669. forcefields[object] = nil
  2670. local new_forcefield = Instance.new("ForceField")
  2671. forcefields[new_forcefield] = parent
  2672. objects[new_forcefield] = true
  2673. new_forcefield.Parent = parent
  2674. elseif objects[object] then
  2675. ResetCharacter()
  2676. end
  2677. end))
  2678. table.insert(connections, humanoid.HealthChanged:connect(RegenerateHealth))
  2679. table.insert(connections, humanoid.Climbing:connect(function() pose = "Climbing" end))
  2680. table.insert(connections, humanoid.FallingDown:connect(function(state) pose = "FallingDown" end))
  2681. table.insert(connections, humanoid.FreeFalling:connect(function(state) pose = "FreeFall" if state then soundFreeFalling:Play() else
  2682.  
  2683. soundFreeFalling:Pause() end end))
  2684. table.insert(connections, humanoid.GettingUp:connect(function(state) pose = "GettingUp" if state then soundGettingUp:Play() else
  2685.  
  2686. soundGettingUp:Pause() end end))
  2687. table.insert(connections, humanoid.PlatformStanding:connect(function() pose = "PlatformStanding" end))
  2688. table.insert(connections, humanoid.Seated:connect(function() pose = "Seated" end))
  2689. table.insert(connections, humanoid.Swimming:connect(function(speed) if speed > 0 then pose = "Swimming" else pose = "Standing" end end))
  2690. local previousRootPartCFrame = rootPart.CFrame
  2691. TaskScheduler.Start(function()
  2692. while active do
  2693. local totalTime = TaskScheduler.GetCurrentTime()
  2694. local stepTime = 1 / 60
  2695. if not PlayerControl.characterEnabled then
  2696. ResetCharacter()
  2697. break
  2698. end
  2699. torsoLight.Brightness = 0.5 + 0.15 * math.sin(totalTime * 0.75 * math.pi)
  2700. local featherfallEnabled = PlayerControl.IsFeatherfallEnabled()
  2701. local rootPartCFrame = rootPart.CFrame
  2702. if not jumpDebounce and UserInterface:IsKeyDown(Enum.KeyCode.Space) then
  2703. if humanoid.Sit then
  2704. humanoid.Sit = false
  2705. end
  2706. if IsStanding() then
  2707. jumpDebounce = true
  2708. pose = "Jumping"
  2709. rootPart.Velocity = Vector3.new(rootPart.Velocity.X, 50, rootPart.Velocity.Z)
  2710. torso.Velocity = Vector3.new(torso.Velocity.X, 50, torso.Velocity.Z)
  2711. TaskScheduler.Schedule(1, function()
  2712. if pose == "Jumping" then
  2713. pose = "FreeFall"
  2714. end
  2715. jumpDebounce = false
  2716. humanoid.Jump = false
  2717. end)
  2718. end
  2719. end
  2720. local cameraCFrame = Camera.CoordinateFrame
  2721. local cameraDirection = cameraCFrame.lookVector
  2722. if flying then
  2723. if PlayerControl.rolling then
  2724. local rootPartCFrame = rootPart.CFrame
  2725. local speed = (rootPartCFrame - rootPartCFrame.p):pointToObjectSpace(rootPart.Velocity).Y
  2726. local decay = 0.5 ^ stepTime
  2727. if math.abs(speed) <= 50 then
  2728. PlayerControl.rollingAngle = (((PlayerControl.rollingAngle + 0.5) % 1 - 0.5) * decay) % 1
  2729. PlayerControl.rollingOffset = PlayerControl.rollingOffset * decay
  2730. else
  2731. PlayerControl.rollingAngle = (PlayerControl.rollingAngle + stepTime * speed * PlayerControl.rollingSpeed) % 1
  2732. PlayerControl.rollingOffset = (PlayerControl.rollingOffset + PlayerControl.rollingMaxOffset * (1 / decay - 1)) * decay
  2733. end
  2734. rootJoint.C0 = (CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) * CFrame.Angles(PlayerControl.rollingAngle * 2 * math.pi, 0, 0)) * CFrame.new(0, -PlayerControl.rollingOffset, 0)
  2735. else
  2736. rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2737. PlayerControl.rollingAngle = 0
  2738. PlayerControl.rollingOffset = 0
  2739. end
  2740. rightShoulder.MaxVelocity = 0.5
  2741. leftShoulder.MaxVelocity = 0.5
  2742. rightShoulder.DesiredAngle = 0
  2743. leftShoulder.DesiredAngle = 0
  2744. rightHip.DesiredAngle = 0
  2745. leftHip.DesiredAngle = 0
  2746. bodyGyro.D = 500
  2747. bodyGyro.P = 1e6
  2748. bodyGyro.maxTorque = Vector3.new(1e6, 1e6, 1e6)
  2749. bodyVelocity.P = 1250
  2750. bodyVelocity.maxForce = Vector3.new(1e6, 1e6, 1e6)
  2751. local movementRight = 0
  2752. local movementForward = 0
  2753. local movementUp = 0
  2754. if UserInterface:IsKeyDown(Enum.KeyCode.A) and not UserInterface:IsKeyDown(Enum.KeyCode.D) then
  2755. movementRight = -1
  2756. elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
  2757. movementRight = 1
  2758. end
  2759. if UserInterface:IsKeyDown(Enum.KeyCode.W) then
  2760. movementUp = 0.2
  2761. if not UserInterface:IsKeyDown(Enum.KeyCode.S) then
  2762. movementForward = -1
  2763. end
  2764. elseif UserInterface:IsKeyDown(Enum.KeyCode.S) then
  2765. movementForward = 1
  2766. end
  2767. local movement = PlayerControl.fly_acceleration * cameraCFrame:vectorToWorldSpace(Vector3.new(movementRight, movementUp, movementForward))
  2768. local previousMomentum = flyingMomentum
  2769. local previousTilt = flyingTilt
  2770. flyingMomentum = movement + flyingMomentum * (1 - PlayerControl.fly_acceleration / PlayerControl.fly_speed)
  2771. flyingTilt = ((flyingMomentum * Vector3.new(1, 0, 1)).unit:Cross((previousMomentum * Vector3.new(1, 0, 1)).unit)).Y
  2772. if flyingTilt ~= flyingTilt or flyingTilt == math.huge then
  2773. flyingTilt = 0
  2774. end
  2775. local absoluteTilt = math.abs(flyingTilt)
  2776. if absoluteTilt > 0.06 or absoluteTilt < 0.0001 then
  2777. if math.abs(previousTilt) > 0.0001 then
  2778. flyingTilt = previousTilt * 0.9
  2779. else
  2780. flyingTilt = 0
  2781. end
  2782. else
  2783. flyingTilt = previousTilt * 0.77 + flyingTilt * 0.25
  2784. end
  2785. previousTilt = flyingTilt
  2786. if flyingMomentum.magnitude < 0.1 then
  2787. flyingMomentum = Vector3.new(0, 0, 0)
  2788. -- bodyGyro.cframe = cameraCFrame
  2789. else
  2790. local momentumOrientation = CFrame.new(Vector3.new(0, 0, 0), flyingMomentum)
  2791. local tiltOrientation = CFrame.Angles(0, 0, -20 * flyingTilt)
  2792. bodyGyro.cframe = momentumOrientation * tiltOrientation * CFrame.Angles(-0.5 * math.pi * math.min(flyingMomentum.magnitude / PlayerControl.fly_speed, 1), 0, 0)
  2793. end
  2794. bodyVelocity.velocity = flyingMomentum + Vector3.new(0, 0.15695775618683547, 0)
  2795. rootPart.Velocity = flyingMomentum
  2796. previousMomentum = flyingMomentum
  2797. else
  2798. rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  2799. PlayerControl.rollingAngle = 0
  2800. PlayerControl.rollingOffset = 0
  2801. bodyGyro.D = 3250
  2802. bodyGyro.P = 400000
  2803. bodyVelocity.P = 5000
  2804. local cameraDirection = cameraCFrame.lookVector
  2805. local walkDirection = Vector3.new(0, 0, 0)
  2806. local walkSpeed = 16
  2807. if UserInterface:IsKeyDown(Enum.KeyCode.W) then
  2808. if UserInterface:IsKeyDown(Enum.KeyCode.A) then
  2809. walkDirection = Vector3.new(cameraDirection.X + cameraDirection.Z, 0, cameraDirection.Z - cameraDirection.X).unit
  2810. elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
  2811. walkDirection = Vector3.new(cameraDirection.X - cameraDirection.Z, 0, cameraDirection.Z + cameraDirection.X).unit
  2812. else
  2813. walkDirection = Vector3.new(cameraDirection.X, 0, cameraDirection.Z).unit
  2814. end
  2815. elseif UserInterface:IsKeyDown(Enum.KeyCode.S) then
  2816. if UserInterface:IsKeyDown(Enum.KeyCode.A) then
  2817. walkDirection = Vector3.new(-cameraDirection.X + cameraDirection.Z, 0, -cameraDirection.Z - cameraDirection.X).unit
  2818. elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
  2819. walkDirection = Vector3.new(-cameraDirection.X - cameraDirection.Z, 0, -cameraDirection.Z + cameraDirection.X).unit
  2820. else
  2821. walkDirection = Vector3.new(-cameraDirection.X, 0, -cameraDirection.Z).unit
  2822. end
  2823. elseif UserInterface:IsKeyDown(Enum.KeyCode.A) then
  2824. walkDirection = Vector3.new(cameraDirection.Z, 0, -cameraDirection.X).unit
  2825. elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
  2826. walkDirection = Vector3.new(-cameraDirection.Z, 0, cameraDirection.X).unit
  2827. else
  2828. walkSpeed = 0
  2829. end
  2830. if walkSpeed ~= previousWalkSpeed then
  2831. if walkSpeed > 0 then
  2832. soundRunning:Play()
  2833. else
  2834. soundRunning:Pause()
  2835. end
  2836. end
  2837. if walkSpeed > 0 then
  2838. if pose ~= "Jumping" then
  2839. if IsStanding() then
  2840. pose = "Running"
  2841. else
  2842. pose = "FreeFall"
  2843. end
  2844. end
  2845. bodyGyro.cframe = CFrame.new(Vector3.new(), walkDirection)
  2846. bodyGyro.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
  2847. bodyVelocity.maxForce = Vector3.new(1000000, maxForceY, 1000000)
  2848. else
  2849. if pose ~= "Jumping" then
  2850. if IsStanding() then
  2851. pose = "Standing"
  2852. else
  2853. pose = "FreeFall"
  2854. end
  2855. end
  2856. -- TODO: find and fix bug that causes torso to rotate back to some angle
  2857. bodyGyro.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000) -- Vector3.new(1000000000, 0, 1000000000)
  2858. if PlayerControl.pushable then
  2859. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  2860. else
  2861. bodyVelocity.maxForce = Vector3.new(1000000, 0, 1000000)
  2862. end
  2863. end
  2864. if featherfallEnabled then
  2865. local velocity = rootPart.Velocity
  2866. if velocity.Y > 50 then
  2867. rootPart.Velocity = Vector3.new(velocity.X, 50, velocity.Z)
  2868. elseif velocity.Y < -50 then
  2869. rootPart.Velocity = Vector3.new(velocity.X, -50, velocity.Z)
  2870. end
  2871. local distanceVector = rootPartCFrame.p - previousRootPartCFrame.p
  2872. local offsetX, offsetY, offsetZ = distanceVector.X, distanceVector.Y, distanceVector.Z
  2873. local MAX_MOVEMENT = 50 * 0.03333333507180214
  2874. if offsetX > MAX_MOVEMENT then
  2875. offsetX = MAX_MOVEMENT
  2876. elseif offsetX < -MAX_MOVEMENT then
  2877. offsetX = -MAX_MOVEMENT
  2878. end
  2879. if offsetY > MAX_MOVEMENT then
  2880. offsetY = MAX_MOVEMENT
  2881. elseif offsetY < -MAX_MOVEMENT then
  2882. offsetY = -MAX_MOVEMENT
  2883. end
  2884. if offsetZ > MAX_MOVEMENT then
  2885. offsetZ = MAX_MOVEMENT
  2886. elseif offsetZ < -MAX_MOVEMENT then
  2887. offsetZ = -MAX_MOVEMENT
  2888. end
  2889. local offset = Vector3.new(offsetX, offsetY, offsetZ)
  2890. if offset ~= distanceVector then
  2891. rootPartCFrame = previousRootPartCFrame + offset
  2892. --rootPart.CFrame = rootPartCFrame
  2893. end
  2894. end
  2895. local walkingVelocity = walkDirection * walkSpeed
  2896. bodyVelocity.velocity = walkingVelocity
  2897. if not jumpDebounce and math.abs(rootPart.Velocity.Y) <= 0.1 then
  2898. rootPart.Velocity = Vector3.new(walkingVelocity.X, rootPart.Velocity.Y, walkingVelocity.Z)
  2899. end
  2900. previousWalkSpeed = walkSpeed
  2901. if pose == "Jumping" or jumpDebounce then
  2902. rightShoulder.MaxVelocity = 0.5
  2903. leftShoulder.MaxVelocity = 0.5
  2904. rightShoulder.DesiredAngle = 3.14
  2905. leftShoulder.DesiredAngle = -3.14
  2906. rightHip.DesiredAngle = 0
  2907. leftHip.DesiredAngle = 0
  2908. elseif pose == "FreeFall" then
  2909. rightShoulder.MaxVelocity = 0.5
  2910. leftShoulder.MaxVelocity = 0.5
  2911. rightShoulder.DesiredAngle = 3.14
  2912. leftShoulder.DesiredAngle = -3.14
  2913. rightHip.DesiredAngle = 0
  2914. leftHip.DesiredAngle = 0
  2915. elseif pose == "Seated" then
  2916. rightShoulder.MaxVelocity = 0.15
  2917. leftShoulder.MaxVelocity = 0.15
  2918. rightShoulder.DesiredAngle = 3.14 / 2
  2919. leftShoulder.DesiredAngle = -3.14 / 2
  2920. rightHip.DesiredAngle = 3.14 / 2
  2921. leftHip.DesiredAngle = -3.14 / 2
  2922. else
  2923. local climbFudge = 0
  2924. local amplitude
  2925. local frequency
  2926. if pose == "Running" then
  2927. rightShoulder.MaxVelocity = 0.15
  2928. leftShoulder.MaxVelocity = 0.15
  2929. amplitude = 1
  2930. frequency = 9
  2931. elseif (pose == "Climbing") then
  2932. rightShoulder.MaxVelocity = 0.5
  2933. leftShoulder.MaxVelocity = 0.5
  2934. amplitude = 1
  2935. frequency = 9
  2936. climbFudge = 3.14
  2937. else
  2938. amplitude = 0.1
  2939. frequency = 1
  2940. end
  2941. local desiredAngle = amplitude * math.sin(totalTime * frequency)
  2942. rightShoulder.DesiredAngle = desiredAngle + climbFudge
  2943. leftShoulder.DesiredAngle = desiredAngle - climbFudge
  2944. rightHip.DesiredAngle = -desiredAngle
  2945. leftHip.DesiredAngle = -desiredAngle
  2946. end
  2947. end
  2948. previousRootPartCFrame = rootPartCFrame
  2949. RunService.RenderStepped:wait()
  2950. end
  2951. if model.Parent ~= nil then
  2952. model.Parent = nil
  2953. end
  2954. PlayerControl.CreateCharacter()
  2955. end)
  2956. humanoid.Health = 100
  2957. character = model
  2958. chatAdornee = head
  2959. elseif characterMode == "pyramid" then
  2960. if PlayerControl.characterEnabled then
  2961. Camera.CameraType = "Fixed"
  2962. NilCharacter.camera_distance = (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude
  2963. NilCharacter.camera_position = Camera.Focus.p
  2964. NilCharacter.Teleport(Camera.Focus.p)
  2965. NilCharacter.visible = true
  2966. Player.Character = nil
  2967. else
  2968. NilCharacter.visible = false
  2969. end
  2970. end
  2971. end
  2972. function PlayerControl.GetCharacter()
  2973. return character
  2974. end
  2975. function PlayerControl.GetHead()
  2976. local characterMode = PlayerControl.characterMode
  2977. if characterMode == "normal" then
  2978. return head
  2979. elseif characterMode == "pyramid" then
  2980. return NilCharacter.core
  2981. end
  2982. end
  2983. function PlayerControl.GetHumanoid()
  2984. return humanoid
  2985. end
  2986. function PlayerControl.GetRootPart()
  2987. return rootPart
  2988. end
  2989. function PlayerControl.GetTorso()
  2990. return torso
  2991. end
  2992. function PlayerControl.IsEnabled()
  2993. return PlayerControl.characterEnabled
  2994. end
  2995. function PlayerControl.IsFeatherfallEnabled()
  2996. return PlayerControl.featherfallEnabled
  2997. end
  2998. function PlayerControl.IsPushable()
  2999. return PlayerControl.pushable
  3000. end
  3001. function PlayerControl.IsRolling()
  3002. return PlayerControl.rolling
  3003. end
  3004. function PlayerControl.ResetCharacter()
  3005. if character and character.Parent then
  3006. character.Parent = nil
  3007. end
  3008. NilCharacter.visible = false
  3009. end
  3010. function PlayerControl.SetEnabled(state, no_animation)
  3011. state = not not state
  3012. if state ~= PlayerControl.characterEnabled then
  3013. PlayerControl.characterEnabled = state
  3014. local characterMode = PlayerControl.characterMode
  3015. if characterMode == "normal" then
  3016. local torso = PlayerControl.GetRootPart()
  3017. local rootPart = PlayerControl.GetRootPart()
  3018. if rootPart then
  3019. if PlayerControl.characterEnabled then
  3020. local torso_cframe = Camera.Focus:toWorldSpace(PlayerControl.hide_torso_object_cframe)
  3021. PlayerControl.torso_cframe = torso_cframe
  3022. torso.CFrame = torso_cframe
  3023. rootPart.CFrame = torso_cframe
  3024. else
  3025. PlayerControl.hide_torso_object_cframe = Camera.Focus:toObjectSpace(rootPart.CFrame)
  3026. end
  3027. else
  3028. PlayerControl.torso_cframe = Camera.Focus
  3029. end
  3030. if PlayerControl.characterEnabled then
  3031. PlayerControl.CreateCharacter()
  3032. RunService.Stepped:wait()
  3033. coroutine.yield()
  3034. if not no_animation then
  3035. GraphicalEffects.CrystalRing({base_part = PlayerControl.GetTorso(), crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
  3036. end
  3037. else
  3038. Player.Character = nil
  3039. Camera.CameraType = "Fixed"
  3040. if not no_animation then
  3041. GraphicalEffects.CrystalRing({position = PlayerControl.GetTorso().Position, crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
  3042. end
  3043. end
  3044. else
  3045. if state then
  3046. PlayerControl.CreateCharacter()
  3047. RunService.Stepped:wait()
  3048. coroutine.yield()
  3049. if not no_animation then
  3050. GraphicalEffects.CrystalRing({base_part = NilCharacter.core, crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
  3051. end
  3052. else
  3053. NilCharacter.visible = false
  3054. if not no_animation then
  3055. GraphicalEffects.CrystalRing({position = NilCharacter.core.Position, crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
  3056. end
  3057. end
  3058. end
  3059. end
  3060. end
  3061. function PlayerControl.SetFeatherfallEnabled(state)
  3062. state = not not state
  3063. if state ~= PlayerControl.featherfallEnabled then
  3064. PlayerControl.featherfallEnabled = state
  3065. if state then
  3066. Logger.print("Info", "Featherfall enabled in PlayerControl")
  3067. else
  3068. Logger.print("Info", "Featherfall disabled in PlayerControl")
  3069. end
  3070. end
  3071. end
  3072. function PlayerControl.SetPushable(state)
  3073. state = not not state
  3074. if state ~= PlayerControl.pushable then
  3075. PlayerControl.pushable = state
  3076. if state then
  3077. Logger.print("Info", "Pushing enabled in PlayerControl")
  3078. else
  3079. Logger.print("Info", "Pushing disabled in PlayerControl")
  3080. end
  3081. end
  3082. end
  3083. function PlayerControl.SetRolling(state)
  3084. state = not not state
  3085. if state ~= PlayerControl.rolling then
  3086. PlayerControl.rolling = state
  3087. if state then
  3088. Logger.print("Info", "Rolling fly mode enabled in PlayerControl")
  3089. else
  3090. Logger.print("Info", "Rolling fly mode disabled in PlayerControl")
  3091. end
  3092. end
  3093. end
  3094. function PlayerControl.StartFlying()
  3095. PlayerControl.fly_speed = PlayerControl.fly_basespeed
  3096. if torso then
  3097. flyingMomentum = torso.Velocity + torso.CFrame.lookVector * 3 + Vector3.new(0, 10, 0)
  3098. else
  3099. flyingMomentum = Vector3.new()
  3100. end
  3101. flyingTilt = 0
  3102. flying = true
  3103. end
  3104. function PlayerControl.StopFlying()
  3105. if bodyGyro.cframe then
  3106. local lookVector = bodyGyro.cframe.lookVector
  3107. if lookVector.X ~= 0 or lookVector.Z ~= 0 then
  3108. bodyGyro.cframe = CFrame.new(Vector3.new(), Vector3.new(lookVector.X, 0, lookVector.Z))
  3109. end
  3110. end
  3111. flying = false
  3112. end
  3113. local previousTime = 0
  3114.  
  3115. ControllerCommands = {};
  3116.  
  3117. ControllerCommands = {};
  3118.  
  3119. ControllerCommands.BALEFIRE_SPEED = 40
  3120. function ControllerCommands.BalefireAtMouse()
  3121. local head = chatAdornee
  3122. if head then
  3123. local target = Mouse.Hit.p
  3124. local origin = head.Position
  3125. local direction = (target - origin).unit
  3126. local explosionCount = 0
  3127. local animation_frame = 0
  3128. local magic_circle_position = origin + direction * 4
  3129. local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction)
  3130. local magic_circle_part = Instance.new("Part")
  3131. local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part)
  3132. local magic_circle_light = Instance.new("PointLight", magic_circle_part)
  3133. local magic_circle_decal_back = Instance.new("Decal", magic_circle_part)
  3134. local magic_circle_decal_front = Instance.new("Decal", magic_circle_part)
  3135. magic_circle_part.Anchored = true
  3136. magic_circle_part.Archivable = false
  3137. magic_circle_part.BottomSurface = "Smooth"
  3138. magic_circle_part.CanCollide = false
  3139. magic_circle_part.CFrame = magic_circle_cframe
  3140. magic_circle_part.FormFactor = "Custom"
  3141. magic_circle_part.Locked = true
  3142. magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2)
  3143. magic_circle_part.TopSurface = "Smooth"
  3144. magic_circle_part.Transparency = 1
  3145. magic_circle_mesh.Scale = Vector3.new(60, 60, 0)
  3146. magic_circle_light.Color = Color3.new(1, 0.5, 1)
  3147. magic_circle_light.Range = 16
  3148. magic_circle_light.Shadows = true
  3149. magic_circle_decal_back.Face = "Back"
  3150. magic_circle_decal_back.Texture = "rbxassetid://122610943"
  3151. magic_circle_decal_front.Face = "Front"
  3152. magic_circle_decal_front.Texture = "rbxassetid://122610943"
  3153. local function NextExplosion()
  3154. explosionCount = explosionCount + 1
  3155. Instance.new("Explosion", Workspace).Position = origin + direction * (explosionCount * 8 + 4)
  3156. end
  3157. local function AnimateMagicCircle()
  3158. animation_frame = animation_frame + 1
  3159. local transparency = (animation_frame / 40) ^ 3
  3160. if animation_frame == 40 then
  3161. pcall(Game.Destroy, magic_circle_part)
  3162. else
  3163. if magic_circle_part.Parent ~= Workspace then
  3164. pcall(Utility.SetProperty, magic_circle_part, "Parent", Workspace)
  3165. end
  3166. head = PlayerControl.GetHead()
  3167. if head then
  3168. magic_circle_position = head.Position + direction * 4
  3169. end
  3170. magic_circle_part.CFrame = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0,
  3171.  
  3172. math.tau * animation_frame / 40 * 1.5)
  3173. magic_circle_light.Brightness = 1 - transparency
  3174. magic_circle_decal_back.Transparency = transparency
  3175. magic_circle_decal_front.Transparency = transparency
  3176. end
  3177. end
  3178. magic_circle_part.Parent = Workspace
  3179. for i = 1, 40 do
  3180. Delay((i - 1) / ControllerCommands.BALEFIRE_SPEED, NextExplosion)
  3181. Delay((i - 1) / 30, AnimateMagicCircle)
  3182. end
  3183. for i = 1, 20 do
  3184. Delay((i - 1) / ControllerCommands.BALEFIRE_SPEED, NextExplosion)
  3185. end
  3186. end
  3187. end
  3188. function ControllerCommands.ControlRandomDummy()
  3189. local dummies = {}
  3190. local numDummies = 0
  3191. for _, character in ipairs(Workspace:GetChildren()) do
  3192. local name = tostring(character)
  3193. if name == "???" or name == "Dummy" then
  3194. local head, humanoid
  3195. for _, child in ipairs(character:GetChildren()) do
  3196. local className = child.ClassName
  3197. if className == "Part" and tostring(child) == "Head" then
  3198. head = child
  3199. if humanoid then
  3200. break
  3201. end
  3202. elseif className == "Humanoid" then
  3203. if child.Health > 0 then
  3204. humanoid = child
  3205. if head then
  3206. break
  3207. end
  3208. else
  3209. break
  3210. end
  3211. end
  3212. end
  3213. if head and humanoid then
  3214. numDummies = numDummies + 1
  3215. dummies[numDummies] = {character, head, humanoid}
  3216. end
  3217. end
  3218. end
  3219. if numDummies > 0 then
  3220. local dummy = dummies[math.random(numDummies)]
  3221. Player.Character = dummy[1]
  3222. chatAdornee = dummy[2]
  3223. Camera.CameraSubject = dummy[3]
  3224. Camera.CameraType = "Track"
  3225. end
  3226. end
  3227. function ControllerCommands.Decalify(textures, exclusion)
  3228. local objects = Workspace:GetChildren()
  3229. for _, object in ipairs(objects) do
  3230. if not exclusion[object] then
  3231. for _, child in ipairs(object:GetChildren()) do
  3232. objects[#objects + 1] = child
  3233. end
  3234. if object:IsA("BasePart") then
  3235. local texture = textures[math.random(#textures)]
  3236. local face_left = Instance.new("Decal", object)
  3237. face_left.Face = Enum.NormalId.Left
  3238. face_left.Texture = texture
  3239. local face_right = Instance.new("Decal", object)
  3240. face_right.Face = Enum.NormalId.Right
  3241. face_right.Texture = texture
  3242. local face_bottom = Instance.new("Decal", object)
  3243. face_bottom.Face = Enum.NormalId.Bottom
  3244. face_bottom.Texture = texture
  3245. local face_top = Instance.new("Decal", object)
  3246. face_top.Face = Enum.NormalId.Top
  3247. face_top.Texture = texture
  3248. local face_front = Instance.new("Decal", object)
  3249. face_front.Face = Enum.NormalId.Front
  3250. face_front.Texture = texture
  3251. local face_back = Instance.new("Decal", object)
  3252. face_back.Face = Enum.NormalId.Back
  3253. face_back.Texture = texture
  3254. end
  3255. end
  3256. end
  3257. end
  3258.  
  3259. function ControllerCommands.ExplodeAtMouse()
  3260. local explosion = Instance.new("Explosion")
  3261. explosion.Position = Mouse.Hit.p
  3262. explosion.Parent = Workspace
  3263. end
  3264. function ControllerCommands.LaserAtMouse()
  3265. GraphicalEffects.ShootLaserOfDeath(Mouse.Hit.p)
  3266. end
  3267. function ControllerCommands.BigLaser(target)
  3268. GraphicalEffects.ShootLaserOfDeath(target, {brickcolor = BrickColor.new("New Yeller"), duration = 80, fragmentation_size = 6,laser_scale = 30, light_color = Color3.new(1, 0.5, 0), magic_circle_image = "rbxassetid://126561317", magic_circle_scale = 1.5, sound_volume = 1,special_effects = BrickColor.new("Deep orange"), stay = 2})
  3269. end
  3270. function ControllerCommands.BigLaserAtMouse()
  3271. ControllerCommands.BigLaser(Mouse.Hit.p)
  3272. end
  3273. function ControllerCommands.ShootMissile(targetPart, pointOnPart, direction)
  3274. GraphicalEffects.ShootMissile(targetPart, pointOnPart, direction)
  3275. end
  3276. function ControllerCommands.ShootMissileAtMouse(amount, spread, delayTime)
  3277. local exclusionList = {}
  3278. local playerHead = PlayerControl.GetHead()
  3279. local playerTorso = PlayerControl.GetTorso()
  3280. if playerHead and playerTorso then
  3281. exclusionList[playerTorso] = true
  3282. local humanoid, torso = Utility.FindHumanoidClosestToRay(Mouse.UnitRay, exclusionList)
  3283. local targetPart, pointOnPart
  3284. if humanoid and torso then
  3285. targetPart, pointOnPart = torso, Vector3.new()
  3286. else
  3287. local target = Mouse.Target
  3288. if target then
  3289. targetPart, pointOnPart = target, target.CFrame:pointToObjectSpace(Mouse.Hit.p)
  3290. else
  3291. return
  3292. end
  3293. end
  3294. if targetPart then
  3295. local direction = (Mouse.Hit.p - playerHead.Position).unit
  3296. delayTime = delayTime or 0
  3297. for index = 1, amount do
  3298. local angles = math.tau * (index - 0.5) * spread / amount * Vector3.new(math.random() - 0.5, math.random() - 0.5,math.random() - 0.5).unit
  3299. TaskScheduler.Schedule(delayTime * (index - 1), ControllerCommands.ShootMissile, targetPart, pointOnPart, CFrame.Angles(angles.X, angles.Y, angles.Z) * direction)
  3300. end
  3301. end
  3302. end
  3303. end
  3304. function ControllerCommands.ShootMissileAroundMouse(amount, offset, delayTime)
  3305. local exclusionList = {}
  3306. local playerHead = PlayerControl.GetHead()
  3307. local playerTorso = PlayerControl.GetTorso()
  3308. if playerHead and playerTorso then
  3309. exclusionList[playerTorso] = true
  3310. local humanoid, torso = Utility.FindHumanoidClosestToRay(Mouse.UnitRay, exclusionList)
  3311. local targetPart, pointOnPart
  3312. if humanoid and torso then
  3313. targetPart, pointOnPart = torso, Vector3.new()
  3314. else
  3315. local target = Mouse.Target
  3316. if target then
  3317. targetPart, pointOnPart = target, target.CFrame:pointToObjectSpace(Mouse.Hit.p)
  3318. else
  3319. return
  3320. end
  3321. end
  3322. if targetPart then
  3323. delayTime = delayTime or 0
  3324. local index = 1
  3325. local targetPoint = targetPart.CFrame * pointOnPart
  3326. local rotation_offset_angles = math.tau * Vector3.new(math.random() - 0.5, math.random() - 0.5, 0).unit
  3327. local rotation_offset = CFrame.Angles(rotation_offset_angles.x, rotation_offset_angles.y, 0)
  3328. local angle_x = 0
  3329. local angle_x_step = math.tau / math.phi
  3330. for i = 1, 8 * amount do
  3331. angle_x = angle_x + angle_x_step
  3332. local direction = rotation_offset * (CFrame.Angles(0, math.tau * index / amount, 0) * CFrame.Angles(angle_x, 0,0).lookVector)
  3333. local blocked = Workspace:FindPartOnRay(Ray.new(targetPoint, direction * offset), targetPart.Parent)
  3334. if not blocked then
  3335. local p0, p1, p2, p3 = targetPart, pointOnPart, direction, offset; GraphicalEffects.ShootMissile(p0, p1, p2, function() return p0 end, p3, true)
  3336. index = index + 1
  3337. if index > amount then
  3338. break
  3339. end
  3340. end
  3341. end
  3342. end
  3343. end
  3344. end
  3345.  
  3346. function ControllerCommands.HugeExplosionOfDoom(position)
  3347. local connections = {}
  3348. local parts = {}
  3349. local cframe = CFrame.new(position)
  3350. local function ExplosionHit(part)
  3351. if part:GetMass() < 10000 and part.Parent ~= Camera then
  3352. parts[part] = true
  3353. part.Anchored = true
  3354. part:BreakJoints()
  3355. part.BrickColor = BrickColor.new("Instituational white")
  3356. end
  3357. end
  3358. for i = 1, 4 do
  3359. local quantity = 0.5 * i * (1 + i)
  3360. local fraction = math.tau / quantity
  3361. for x = 1, quantity do
  3362. for y = 1, quantity do
  3363. local explosion = Instance.new("Explosion")
  3364. connections[#connections + 1] = explosion.Hit:connect(ExplosionHit)
  3365. explosion.BlastRadius = 5
  3366. explosion.Position = cframe * (CFrame.Angles(fraction * x, fraction * y, 0) * Vector3.new((i - 1) * 6, 0, 0))
  3367. explosion.Parent = Workspace
  3368. end
  3369. end
  3370. wait(0.075)
  3371. end
  3372. for part in pairs(parts) do
  3373. for _, child in ipairs(part:GetChildren()) do
  3374. if child:IsA("BodyMover") then
  3375. child:Destroy()
  3376. end
  3377. end
  3378. local mass = part:GetMass()
  3379. local velocity = CFrame.Angles(math.tau * math.random(), math.tau * math.random(), 0) * Vector3.new(25, 0, 0)
  3380. local bodythrust = Instance.new("BodyThrust")
  3381. bodythrust.force = mass * -velocity
  3382. bodythrust.Parent = part
  3383. local bodyforce = Instance.new("BodyForce")
  3384. bodyforce.force = mass * Vector3.new(0, 196.2, 0)
  3385. bodyforce.Parent = part
  3386. part.Anchored = false
  3387. part.Reflectance = 1
  3388. part.RotVelocity = math.tau * Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5)
  3389. part.Transparency = 0.5
  3390. part.Velocity = (part.CFrame - part.Position) * velocity
  3391. end
  3392. for _, connection in ipairs(connections) do
  3393. connection:disconnect()
  3394. end
  3395. for i = 0, 99 do
  3396. Delay(i / 10, function()
  3397. for part in pairs(parts) do
  3398. local new_transparency = 0.5 * (1 + i / 50)
  3399. part.Reflectance = 0.98 * part.Reflectance
  3400. if new_transparency > part.Transparency then
  3401. part.Transparency = new_transparency
  3402. end
  3403. end
  3404. end)
  3405. end
  3406. Delay(10, function()
  3407. for part in pairs(parts) do
  3408. pcall(part.Destroy, part)
  3409. end
  3410. end)
  3411. end
  3412. function ControllerCommands.HugeExplosionOfDoomAtMouse()
  3413. ControllerCommands.HugeExplosionOfDoom(Mouse.Hit.p)
  3414. end
  3415.  
  3416. function ControllerCommands.SpaceHyperBeam(asd)
  3417. GraphicalEffects.SpaceHyperBeam(asd)
  3418. end
  3419. function ControllerCommands.SpaceHyperBeamAtMouse()
  3420. ControllerCommands.SpaceHyperBeam(Mouse.Hit.p)
  3421. end
  3422. function ControllerCommands.ConcentratedSpaceHyperBeamAtMouse()
  3423. local p = Mouse.Hit.p; for i = 1, 50 do GraphicalEffects.SpaceHyperBeam(p) end
  3424. end
  3425.  
  3426. function ControllerCommands.TeleportCharacterToMouse()
  3427. if PlayerControl.IsEnabled() then
  3428. local torso = PlayerControl.GetTorso()
  3429. if torso then
  3430. local pos = Mouse.Hit.p + Vector3.new(0, 5, 0)
  3431. torso.CFrame = CFrame.new(pos, pos + torso.CFrame.lookVector)
  3432. end
  3433. else
  3434. local new_focus_position = Mouse.Hit.p
  3435. local direction_vector = Camera.CoordinateFrame.lookVector
  3436. local new_focus = CFrame.new(new_focus_position, new_focus_position + direction_vector)
  3437. Camera.CoordinateFrame = new_focus * CFrame.new(0, 0, 25)
  3438. Camera.Focus = new_focus
  3439. end
  3440. end
  3441.  
  3442. AdvancedGUI = {};
  3443.  
  3444.  
  3445.  
  3446. function GetPlayers(str)
  3447. local found = {};
  3448. if str == "all" then
  3449. for i,v in pairs(game.Players:children()) do
  3450. if v:IsA("Player") then table.insert(found,v) end
  3451. end
  3452. else
  3453. for i,v in pairs(game.Players:children()) do
  3454. if string.match(v.Name:lower(), str:lower()) and v:IsA("Player") then
  3455. table.insert(found,v)
  3456. end
  3457. end
  3458. end
  3459. return found
  3460. end
  3461.  
  3462. function NewCMD(nme, usg, desc,func)
  3463. table.insert(CMDS, {['Name']=nme, ['Usage']=usg, ['Description']=desc, ['Function']=func})
  3464. end
  3465.  
  3466. NewCMD("Clean", "clr", "Clears the game", function() Utility.CleanWorkspaceAndScripts() end)
  3467. NewCMD("Private Server", "Pri:on", "Turn Private Server on", function()
  3468. Pri = true
  3469. Tablet("Private server is On!",Colors.White)
  3470. end)
  3471. NewCMD("Turn off Private Server", "Pri:off", "Turn Private Server on", function()
  3472. Pri = false
  3473. Tablet("Private server is Off!",Colors.Black)
  3474. end)
  3475. NewCMD("Fix Lighting", "fixl", "Fixes the lighting",function() Utility.CleanLighting() end)
  3476.  
  3477. NewCMD("Kill", "kill", "Kills the player", function(msg)
  3478. local plrs = GetPlayers(msg)
  3479. for _,plr in next,plrs do
  3480. plr.Character:BreakJoints()
  3481.  
  3482. end
  3483. end)
  3484.  
  3485.  
  3486. NewCMD("Remove hidden sb", "rhs", "Removes a player's hidden sb", function(msg)
  3487. local plrs = GetPlayers(msg)
  3488. for _,plr in next,plrs do
  3489. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really red"), float_duration = 0.2})
  3490. plr.PlayerGui:ClearAllChildren()
  3491. end
  3492. end)
  3493. NewCMD("nclip","nclip","noclip",
  3494. function()
  3495. repeat wait(1/44) until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Humanoid") and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer:GetMouse() and game.Workspace.CurrentCamera local mouse = game.Players.LocalPlayer:GetMouse() local torso = game.Players.LocalPlayer.Character.Torso local dir = {w = 0, s = 0, a = 0, d = 0} local spd = 2 mouse.KeyDown:connect(function(key) if key:lower() == "w" then dir.w = 1 elseif key:lower() == "s" then dir.s = 1 elseif key:lower() == "a" then dir.a = 1 elseif key:lower() == "d" then dir.d = 1 elseif key:lower() == "q" then spd = spd + 1 elseif key:lower() == "e" then spd = spd - 1 end end) mouse.KeyUp:connect(function(key) if key:lower() == "w" then dir.w = 0 elseif key:lower() == "s" then dir.s = 0 elseif key:lower() == "a" then dir.a = 0 elseif key:lower() == "d" then dir.d = 0 end end) torso.Anchored = true game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function() game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true end) repeat wait(1/44) torso.CFrame = CFrame.new(torso.Position, game.Workspace.CurrentCamera.CoordinateFrame.p) * CFrame.Angles(0,math.rad(180),0) * CFrame.new((dir.d-dir.a)*spd,0,(dir.s-dir.w)*spd) until nil
  3496. end
  3497. )
  3498. NewCMD("Console","lc","Load Console",
  3499. function()
  3500. --[[AE2X Console]]--
  3501. local LocalPlayer = game:GetService("Players").LocalPlayer
  3502. local UserInterface = game:service'UserInputService'
  3503. local RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH")
  3504. local WL = true
  3505. game.ReplicatedStorage.DescendantRemoving:connect(function(itm)
  3506. if itm.Name == "AE2XATTACH" then
  3507. wait(2)
  3508. RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH") or nil
  3509. end
  3510.  
  3511. end)
  3512. local Char = LocalPlayer.Character
  3513. local Terrain = game.Workspace.Terrain
  3514. local Player = LocalPlayer.Name
  3515. local LoadedAlready = false
  3516. local BC = game.Workspace.Base:Clone() or nil
  3517. script.Parent = game.Players.LocalPlayer
  3518. local bannedlist = {"Kazhar","MrDCL","Trollmon123","ScriptLuaBlox","DevDeadly3652","suit946","mistahFedora","EpicFaceGuy050","roblox123457y7","thesuperfireguy9000","n00bahkiin2","iLeFancy","ThrownException","justinmarkme","Control22","SarahSuperstar76","ZtripleZ"}
  3519. print("")
  3520. print("Local Script")
  3521. print("")
  3522. print("Current banned list is:")
  3523. print("")
  3524. for _,BannedPlr in pairs(bannedlist) do
  3525. print(BannedPlr.." Is Banned")
  3526. end
  3527.  
  3528. local Torso = Char.Torso or nil
  3529. local Head = Char.Head or nil
  3530. local Pre = ";"
  3531. local Bet = "/"
  3532. local M = "218211859"
  3533. local CC = "Camo"
  3534.  
  3535.  
  3536. if script.ClassName == "LocalScript" then if game.PlaceId == 20279777 then script.Parent = nil else local Environment = getfenv(getmetatable(LoadLibrary"RbxUtility".Create).__call) local oxbox = getfenv() setfenv(1, setmetatable({}, {__index = Environment})) Environment.coroutine.yield() oxbox.script:Destroy() end end
  3537. if script ~= true then
  3538. print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
  3539. else
  3540. print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
  3541. end
  3542.  
  3543. local Credits = {"PointCoded","Nilzers","nguyenjimbo","5ZR","Breathable","GuyWithACleverName"}
  3544. for _,Creator in pairs(Credits) do
  3545. print("|"..Creator.."| : Made This")
  3546. end
  3547.  
  3548.  
  3549. function RhumPlr ()
  3550. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3551. G.Name = "GUI"
  3552. local T = Instance.new("TextLabel", G)
  3553. T.BackgroundColor3 = Color3.new(0,0,0)
  3554. T.BackgroundTransparency = 0.5
  3555. T.Position = UDim2.new(0,0,0,350)
  3556. T.BorderSizePixel = 0
  3557. T.Name = "Base"
  3558. T.FontSize = "Size24"
  3559. T.Text = "Rhum"
  3560. T.TextColor3 = Color3.new(255,255,255)
  3561. T.Font = "SourceSansBold"
  3562. T.TextStrokeTransparency = 0
  3563. T.Size = UDim2.new(0,180,0,75)
  3564.  
  3565. local TB = Instance.new("TextBox", G)
  3566. TB.BackgroundColor3 = Color3.new(0,0,0)
  3567. TB.BackgroundTransparency = 0.5
  3568. TB.BorderSizePixel = 0
  3569. TB.Name = "TextboxFF"
  3570. TB.Text = Player
  3571. TB.TextColor3 = Color3.new(255,255,255)
  3572. TB.Font = "SourceSans"
  3573. TB.FontSize = "Size24"
  3574. TB.TextStrokeTransparency = 0
  3575. TB.Size = UDim2.new(0,180,0,75)
  3576. TB.Position = UDim2.new(0,185,0,350)
  3577.  
  3578. local Q2 = Instance.new("TextButton", G)
  3579. Q2.BackgroundColor3 = Color3.new(0,0,0)
  3580. Q2.BackgroundTransparency = 0.5
  3581. Q2.BorderSizePixel = 0
  3582. Q2.Name = "Close"
  3583. Q2.Text = "Close"
  3584. Q2.Font = "ArialBold"
  3585. Q2.FontSize = "Size24"
  3586. Q2.TextStrokeTransparency = 0
  3587. Q2.Size = UDim2.new(0,180,0,75)
  3588. Q2.Position = UDim2.new(0,370,0,275)
  3589. Q2.MouseButton1Click:connect(function()
  3590. G:remove()
  3591. end)
  3592.  
  3593. local FFE = Instance.new("TextButton", G)
  3594. FFE.BackgroundColor3 = Color3.new(0,0,0)
  3595. FFE.BackgroundTransparency = 0.5
  3596. FFE.BorderSizePixel = 0
  3597. FFE.Name = "EnterF"
  3598. FFE.Text = "EXE"
  3599. FFE.Font = "ArialBold"
  3600. FFE.FontSize = "Size24"
  3601. FFE.TextStrokeTransparency = 0
  3602. FFE.Size = UDim2.new(0,180,0,75)
  3603. FFE.Position = UDim2.new(0,370,0,350)
  3604. FFE.MouseButton1Click:connect(function()
  3605. Player = TB.Text
  3606. G:remove()
  3607. local Char = game.Players[Player].Character or nil
  3608. local Hum = Char.Humanoid or nil
  3609. Hum:remove()
  3610. if Char.Console then
  3611. print("Console is working")
  3612. else
  3613. print("Console is missing!")
  3614. end
  3615. end)
  3616.  
  3617. end
  3618.  
  3619. function ExpPlr ()
  3620. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3621. G.Name = "GUI"
  3622. local T = Instance.new("TextLabel", G)
  3623. T.BackgroundColor3 = Color3.new(0,0,0)
  3624. T.BackgroundTransparency = 0.5
  3625. T.Position = UDim2.new(0,0,0,350)
  3626. T.BorderSizePixel = 0
  3627. T.Name = "Base"
  3628. T.FontSize = "Size24"
  3629. T.Text = "Explode"
  3630. T.TextColor3 = Color3.new(255,255,255)
  3631. T.Font = "SourceSansBold"
  3632. T.TextStrokeTransparency = 0
  3633. T.Size = UDim2.new(0,180,0,75)
  3634.  
  3635. local TB = Instance.new("TextBox", G)
  3636. TB.BackgroundColor3 = Color3.new(0,0,0)
  3637. TB.BackgroundTransparency = 0.5
  3638. TB.BorderSizePixel = 0
  3639. TB.Name = "TextboxFF"
  3640. TB.Text = Player
  3641. TB.TextColor3 = Color3.new(255,255,255)
  3642. TB.Font = "SourceSans"
  3643. TB.FontSize = "Size24"
  3644. TB.TextStrokeTransparency = 0
  3645. TB.Size = UDim2.new(0,180,0,75)
  3646. TB.Position = UDim2.new(0,185,0,350)
  3647.  
  3648. local Q2 = Instance.new("TextButton", G)
  3649. Q2.BackgroundColor3 = Color3.new(0,0,0)
  3650. Q2.BackgroundTransparency = 0.5
  3651. Q2.BorderSizePixel = 0
  3652. Q2.Name = "Close"
  3653. Q2.Text = "Close"
  3654. Q2.Font = "ArialBold"
  3655. Q2.FontSize = "Size24"
  3656. Q2.TextStrokeTransparency = 0
  3657. Q2.Size = UDim2.new(0,180,0,75)
  3658. Q2.Position = UDim2.new(0,370,0,275)
  3659. Q2.MouseButton1Click:connect(function()
  3660. G:remove()
  3661. end)
  3662.  
  3663. local FFE = Instance.new("TextButton", G)
  3664. FFE.BackgroundColor3 = Color3.new(0,0,0)
  3665. FFE.BackgroundTransparency = 0.5
  3666. FFE.BorderSizePixel = 0
  3667. FFE.Name = "EnterF"
  3668. FFE.Text = "EXE"
  3669. FFE.Font = "ArialBold"
  3670. FFE.FontSize = "Size24"
  3671. FFE.TextStrokeTransparency = 0
  3672. FFE.Size = UDim2.new(0,180,0,75)
  3673. FFE.Position = UDim2.new(0,370,0,350)
  3674. FFE.MouseButton1Click:connect(function()
  3675. Player = TB.Text
  3676. G:remove()
  3677. local Char = game.Players[Player].Character or nil
  3678. local Tor = Char.Torso or nil
  3679. local Ex = Instance.new("Explosion")
  3680. Ex.Parent = Tor
  3681. Ex.Position = Tor.Position
  3682.  
  3683. if Char.Console then
  3684. print("Console is working")
  3685. else
  3686. print("Console is missing!")
  3687. end
  3688. end)
  3689.  
  3690. end
  3691.  
  3692. function BanPlr ()
  3693. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3694. G.Name = "GUI"
  3695. local T = Instance.new("TextLabel", G)
  3696. T.BackgroundColor3 = Color3.new(0,0,0)
  3697. T.BackgroundTransparency = 0.5
  3698. T.Position = UDim2.new(0,0,0,350)
  3699. T.BorderSizePixel = 0
  3700. T.Name = "Base"
  3701. T.FontSize = "Size24"
  3702. T.Text = "Ban"
  3703. T.TextColor3 = Color3.new(255,255,255)
  3704. T.Font = "SourceSansBold"
  3705. T.TextStrokeTransparency = 0
  3706. T.Size = UDim2.new(0,180,0,75)
  3707.  
  3708. local TB = Instance.new("TextBox", G)
  3709. TB.BackgroundColor3 = Color3.new(0,0,0)
  3710. TB.BackgroundTransparency = 0.5
  3711. TB.BorderSizePixel = 0
  3712. TB.Name = "TextboxFF"
  3713. TB.Text = "INSERT NAME HERE"
  3714. TB.TextColor3 = Color3.new(255,255,255)
  3715. TB.Font = "SourceSans"
  3716. TB.FontSize = "Size24"
  3717. TB.TextStrokeTransparency = 0
  3718. TB.Size = UDim2.new(0,180,0,75)
  3719. TB.Position = UDim2.new(0,185,0,350)
  3720.  
  3721. local Q2 = Instance.new("TextButton", G)
  3722. Q2.BackgroundColor3 = Color3.new(0,0,0)
  3723. Q2.BackgroundTransparency = 0.5
  3724. Q2.BorderSizePixel = 0
  3725. Q2.Name = "Close"
  3726. Q2.Text = "Close"
  3727. Q2.Font = "ArialBold"
  3728. Q2.FontSize = "Size24"
  3729. Q2.TextStrokeTransparency = 0
  3730. Q2.Size = UDim2.new(0,180,0,75)
  3731. Q2.Position = UDim2.new(0,370,0,275)
  3732. Q2.MouseButton1Click:connect(function()
  3733. G:remove()
  3734. end)
  3735.  
  3736. local FFE = Instance.new("TextButton", G)
  3737. FFE.BackgroundColor3 = Color3.new(0,0,0)
  3738. FFE.BackgroundTransparency = 0.5
  3739. FFE.BorderSizePixel = 0
  3740. FFE.Name = "EnterF"
  3741. FFE.Text = "EXE"
  3742. FFE.Font = "ArialBold"
  3743. FFE.FontSize = "Size24"
  3744. FFE.TextStrokeTransparency = 0
  3745. FFE.Size = UDim2.new(0,180,0,75)
  3746. FFE.Position = UDim2.new(0,370,0,350)
  3747. FFE.MouseButton1Click:connect(function()
  3748. Player = TB.Text
  3749. G:remove()
  3750. table.insert(bannedlist,TB.Text)
  3751. game.Players[TB.Text]:remove()
  3752. print(TB.Text.." Is Banned")
  3753. if Char.Console then
  3754. print("Console is working")
  3755. else
  3756. print("Console is missing!")
  3757. end
  3758. end)
  3759.  
  3760. end
  3761.  
  3762. function FirePlr ()
  3763. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3764. G.Name = "GUI"
  3765. local T = Instance.new("TextLabel", G)
  3766. T.BackgroundColor3 = Color3.new(0,0,0)
  3767. T.BackgroundTransparency = 0.5
  3768. T.Position = UDim2.new(0,0,0,350)
  3769. T.BorderSizePixel = 0
  3770. T.Name = "Base"
  3771. T.FontSize = "Size24"
  3772. T.Text = "Fire"
  3773. T.TextColor3 = Color3.new(255,255,255)
  3774. T.Font = "SourceSansBold"
  3775. T.TextStrokeTransparency = 0
  3776. T.Size = UDim2.new(0,180,0,75)
  3777.  
  3778. local TB = Instance.new("TextBox", G)
  3779. TB.BackgroundColor3 = Color3.new(0,0,0)
  3780. TB.BackgroundTransparency = 0.5
  3781. TB.BorderSizePixel = 0
  3782. TB.Name = "TextboxFF"
  3783. TB.Text = Player
  3784. TB.TextColor3 = Color3.new(255,255,255)
  3785. TB.Font = "SourceSans"
  3786. TB.FontSize = "Size24"
  3787. TB.TextStrokeTransparency = 0
  3788. TB.Size = UDim2.new(0,180,0,75)
  3789. TB.Position = UDim2.new(0,185,0,350)
  3790.  
  3791. local Q2 = Instance.new("TextButton", G)
  3792. Q2.BackgroundColor3 = Color3.new(0,0,0)
  3793. Q2.BackgroundTransparency = 0.5
  3794. Q2.BorderSizePixel = 0
  3795. Q2.Name = "Close"
  3796. Q2.Text = "Close"
  3797. Q2.Font = "ArialBold"
  3798. Q2.FontSize = "Size24"
  3799. Q2.TextStrokeTransparency = 0
  3800. Q2.Size = UDim2.new(0,180,0,75)
  3801. Q2.Position = UDim2.new(0,370,0,275)
  3802. Q2.MouseButton1Click:connect(function()
  3803. G:remove()
  3804. end)
  3805.  
  3806. local N = Instance.new("TextButton", G)
  3807. N.BackgroundColor3 = Color3.new(0,0,0)
  3808. N.BackgroundTransparency = 0.5
  3809. N.BorderSizePixel = 0
  3810. N.Name = "EnterS1"
  3811. N.Text = "UnFire"
  3812. N.Font = "ArialBold"
  3813. N.FontSize = "Size24"
  3814. N.TextStrokeTransparency = 0
  3815. N.Size = UDim2.new(0,180,0,75)
  3816. N.Position = UDim2.new(0,185,0,275)
  3817. N.MouseButton1Click:connect(function()
  3818. game.Players[TB.Text].Character.Torso.Fire:remove()
  3819. end)
  3820.  
  3821. local FFE = Instance.new("TextButton", G)
  3822. FFE.BackgroundColor3 = Color3.new(0,0,0)
  3823. FFE.BackgroundTransparency = 0.5
  3824. FFE.BorderSizePixel = 0
  3825. FFE.Name = "EnterF"
  3826. FFE.Text = "EXE"
  3827. FFE.Font = "ArialBold"
  3828. FFE.FontSize = "Size24"
  3829. FFE.TextStrokeTransparency = 0
  3830. FFE.Size = UDim2.new(0,180,0,75)
  3831. FFE.Position = UDim2.new(0,370,0,350)
  3832. FFE.MouseButton1Click:connect(function()
  3833. Player = TB.Text
  3834. G:remove()
  3835. local Char = game.Players[Player].Character or nil
  3836. local Tor = Char.Torso or nil
  3837. Instance.new("Fire",Tor)
  3838.  
  3839. if Char.Console then
  3840. print("Console is working")
  3841. else
  3842. print("Console is missing!")
  3843. end
  3844. end)
  3845.  
  3846. end
  3847.  
  3848. function SitPlr ()
  3849. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3850. G.Name = "GUI"
  3851. local T = Instance.new("TextLabel", G)
  3852. T.BackgroundColor3 = Color3.new(0,0,0)
  3853. T.BackgroundTransparency = 0.5
  3854. T.Position = UDim2.new(0,0,0,350)
  3855. T.BorderSizePixel = 0
  3856. T.Name = "Base"
  3857. T.FontSize = "Size24"
  3858. T.Text = "Sit"
  3859. T.TextColor3 = Color3.new(255,255,255)
  3860. T.Font = "SourceSansBold"
  3861. T.TextStrokeTransparency = 0
  3862. T.Size = UDim2.new(0,180,0,75)
  3863.  
  3864.  
  3865. local TB = Instance.new("TextBox", G)
  3866. TB.BackgroundColor3 = Color3.new(0,0,0)
  3867. TB.BackgroundTransparency = 0.5
  3868. TB.BorderSizePixel = 0
  3869. TB.Name = "TextboxFF"
  3870. TB.Text = Player
  3871. TB.TextColor3 = Color3.new(255,255,255)
  3872. TB.Font = "SourceSans"
  3873. TB.FontSize = "Size24"
  3874. TB.TextStrokeTransparency = 0
  3875. TB.Size = UDim2.new(0,180,0,75)
  3876. TB.Position = UDim2.new(0,185,0,350)
  3877.  
  3878.  
  3879. local Q2 = Instance.new("TextButton", G)
  3880. Q2.BackgroundColor3 = Color3.new(0,0,0)
  3881. Q2.BackgroundTransparency = 0.5
  3882. Q2.BorderSizePixel = 0
  3883. Q2.Name = "Close"
  3884. Q2.Text = "Close"
  3885. Q2.Font = "ArialBold"
  3886. Q2.FontSize = "Size24"
  3887. Q2.TextStrokeTransparency = 0
  3888. Q2.Size = UDim2.new(0,180,0,75)
  3889. Q2.Position = UDim2.new(0,370,0,275)
  3890. Q2.MouseButton1Click:connect(function()
  3891. G:remove()
  3892. end)
  3893.  
  3894. local FFE = Instance.new("TextButton", G)
  3895. FFE.BackgroundColor3 = Color3.new(0,0,0)
  3896. FFE.BackgroundTransparency = 0.5
  3897. FFE.BorderSizePixel = 0
  3898. FFE.Name = "EnterF"
  3899. FFE.Text = "EXE"
  3900. FFE.Font = "ArialBold"
  3901. FFE.FontSize = "Size24"
  3902. FFE.TextStrokeTransparency = 0
  3903. FFE.Size = UDim2.new(0,180,0,75)
  3904. FFE.Position = UDim2.new(0,370,0,350)
  3905. FFE.MouseButton1Click:connect(function()
  3906. Player = TB.Text
  3907. G:remove()
  3908. local Char = game.Players[Player].Character
  3909. local Human = Char.Humanoid or nil
  3910. Human.Sit = true
  3911. if Char.Console then
  3912. print("Console is working")
  3913. else
  3914. print("Console is missing!")
  3915. end
  3916. end)
  3917.  
  3918. end
  3919.  
  3920. function CBackPlr ()
  3921. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3922. G.Name = "GUI"
  3923. local T = Instance.new("TextLabel", G)
  3924. T.BackgroundColor3 = Color3.new(0,0,0)
  3925. T.BackgroundTransparency = 0.5
  3926. T.Position = UDim2.new(0,0,0,350)
  3927. T.BorderSizePixel = 0
  3928. T.Name = "Base"
  3929. T.FontSize = "Size24"
  3930. T.Text = "CBack"
  3931. T.TextColor3 = Color3.new(255,255,255)
  3932. T.Font = "SourceSansBold"
  3933. T.TextStrokeTransparency = 0
  3934. T.Size = UDim2.new(0,180,0,75)
  3935.  
  3936.  
  3937. local TB = Instance.new("TextBox", G)
  3938. TB.BackgroundColor3 = Color3.new(0,0,0)
  3939. TB.BackgroundTransparency = 0.5
  3940. TB.BorderSizePixel = 0
  3941. TB.Name = "TextboxFF"
  3942. TB.Text = Player
  3943. TB.TextColor3 = Color3.new(255,255,255)
  3944. TB.Font = "SourceSans"
  3945. TB.FontSize = "Size24"
  3946. TB.TextStrokeTransparency = 0
  3947. TB.Size = UDim2.new(0,180,0,75)
  3948. TB.Position = UDim2.new(0,185,0,350)
  3949.  
  3950.  
  3951. local Q2 = Instance.new("TextButton", G)
  3952. Q2.BackgroundColor3 = Color3.new(0,0,0)
  3953. Q2.BackgroundTransparency = 0.5
  3954. Q2.BorderSizePixel = 0
  3955. Q2.Name = "Close"
  3956. Q2.Text = "Close"
  3957. Q2.Font = "ArialBold"
  3958. Q2.FontSize = "Size24"
  3959. Q2.TextStrokeTransparency = 0
  3960. Q2.Size = UDim2.new(0,180,0,75)
  3961. Q2.Position = UDim2.new(0,370,0,275)
  3962. Q2.MouseButton1Click:connect(function()
  3963. G:remove()
  3964. end)
  3965.  
  3966. local FFE = Instance.new("TextButton", G)
  3967. FFE.BackgroundColor3 = Color3.new(0,0,0)
  3968. FFE.BackgroundTransparency = 0.5
  3969. FFE.BorderSizePixel = 0
  3970. FFE.Name = "EnterF"
  3971. FFE.Text = "EXE"
  3972. FFE.Font = "ArialBold"
  3973. FFE.FontSize = "Size24"
  3974. FFE.TextStrokeTransparency = 0
  3975. FFE.Size = UDim2.new(0,180,0,75)
  3976. FFE.Position = UDim2.new(0,370,0,350)
  3977. FFE.MouseButton1Click:connect(function()
  3978. Player = TB.Text
  3979. G:remove()
  3980. local Char = game.Players[Player].Character or nil
  3981. local Back = game.Players[Player].Backpack or nil
  3982. Back:ClearAllChildren()
  3983. if Char.Console then
  3984. print("Console is working")
  3985. else
  3986. print("Console is missing!")
  3987. end
  3988. end)
  3989.  
  3990. end
  3991.  
  3992.  
  3993. function BaseEdit ()
  3994. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  3995. G.Name = "GUI"
  3996. local T = Instance.new("TextLabel", G)
  3997. T.BackgroundColor3 = Color3.new(0,0,0)
  3998. T.BackgroundTransparency = 0.5
  3999. T.Position = UDim2.new(0,0,0,350)
  4000. T.BorderSizePixel = 0
  4001. T.Name = "Base"
  4002. T.FontSize = "Size24"
  4003. T.Text = "BaseColour"
  4004. T.TextColor3 = Color3.new(255,255,255)
  4005. T.Font = "SourceSansBold"
  4006. T.TextStrokeTransparency = 0
  4007. T.Size = UDim2.new(0,180,0,75)
  4008.  
  4009.  
  4010. local TB = Instance.new("TextBox", G)
  4011. TB.BackgroundColor3 = Color3.new(0,0,0)
  4012. TB.BackgroundTransparency = 0.5
  4013. TB.BorderSizePixel = 0
  4014. TB.Name = "TextboxFF"
  4015. TB.Text = CC
  4016. TB.TextColor3 = Color3.new(255,255,255)
  4017. TB.Font = "SourceSans"
  4018. TB.FontSize = "Size24"
  4019. TB.TextStrokeTransparency = 0
  4020. TB.Size = UDim2.new(0,180,0,75)
  4021. TB.Position = UDim2.new(0,185,0,350)
  4022.  
  4023.  
  4024. local Q2 = Instance.new("TextButton", G)
  4025. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4026. Q2.BackgroundTransparency = 0.5
  4027. Q2.BorderSizePixel = 0
  4028. Q2.Name = "Close"
  4029. Q2.Text = "Close"
  4030. Q2.Font = "ArialBold"
  4031. Q2.FontSize = "Size24"
  4032. Q2.TextStrokeTransparency = 0
  4033. Q2.Size = UDim2.new(0,180,0,75)
  4034. Q2.Position = UDim2.new(0,370,0,275)
  4035. Q2.MouseButton1Click:connect(function()
  4036. G:remove()
  4037. end)
  4038.  
  4039. local Q5 = Instance.new("TextButton", G)
  4040. Q5.BackgroundColor3 = Color3.new(0,0,0)
  4041. Q5.BackgroundTransparency = 0.5
  4042. Q5.BorderSizePixel = 0
  4043. Q5.Name = "Close"
  4044. Q5.Text = "Base"
  4045. Q5.Font = "ArialBold"
  4046. Q5.FontSize = "Size24"
  4047. Q5.TextStrokeTransparency = 0
  4048. Q5.Size = UDim2.new(0,180,0,75)
  4049. Q5.Position = UDim2.new(0,0,0,275)
  4050. Q5.MouseButton1Click:connect(function()
  4051. BC.Parent = game.Workspace
  4052. end)
  4053.  
  4054. local Q6 = Instance.new("TextButton", G)
  4055. Q6.BackgroundColor3 = Color3.new(0,0,0)
  4056. Q6.BackgroundTransparency = 0.5
  4057. Q6.BorderSizePixel = 0
  4058. Q6.Name = "Close"
  4059. Q6.Text = "Del-Base"
  4060. Q6.Font = "ArialBold"
  4061. Q6.FontSize = "Size24"
  4062. Q6.TextStrokeTransparency = 0
  4063. Q6.Size = UDim2.new(0,180,0,75)
  4064. Q6.Position = UDim2.new(0,185,0,275)
  4065. Q6.MouseButton1Click:connect(function()
  4066. game.Workspace.Base:remove()
  4067. end)
  4068.  
  4069. local FFE = Instance.new("TextButton", G)
  4070. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4071. FFE.BackgroundTransparency = 0.5
  4072. FFE.BorderSizePixel = 0
  4073. FFE.Name = "EnterF"
  4074. FFE.Text = "EXE"
  4075. FFE.Font = "ArialBold"
  4076. FFE.FontSize = "Size24"
  4077. FFE.TextStrokeTransparency = 0
  4078. FFE.Size = UDim2.new(0,180,0,75)
  4079. FFE.Position = UDim2.new(0,370,0,350)
  4080. FFE.MouseButton1Click:connect(function()
  4081. CC = TB.Text
  4082. G:remove()
  4083. local Char = game.Players[Player].Character
  4084. local Base = game.Workspace.Base or nil
  4085. Base.BrickColor = BrickColor.new(CC)
  4086. if Char.Console then
  4087. print("Console is working")
  4088. else
  4089. print("Console is missing!")
  4090. end
  4091. end)
  4092.  
  4093. end
  4094.  
  4095. function GodPlr ()
  4096. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  4097. G.Name = "GUI"
  4098. local T = Instance.new("TextLabel", G)
  4099. T.BackgroundColor3 = Color3.new(0,0,0)
  4100. T.BackgroundTransparency = 0.5
  4101. T.Position = UDim2.new(0,0,0,350)
  4102. T.BorderSizePixel = 0
  4103. T.Name = "God"
  4104. T.FontSize = "Size24"
  4105. T.Text = "God"
  4106. T.TextColor3 = Color3.new(255,255,255)
  4107. T.Font = "SourceSansBold"
  4108. T.TextStrokeTransparency = 0
  4109. T.Size = UDim2.new(0,180,0,75)
  4110.  
  4111.  
  4112. local TB = Instance.new("TextBox", G)
  4113. TB.BackgroundColor3 = Color3.new(0,0,0)
  4114. TB.BackgroundTransparency = 0.5
  4115. TB.BorderSizePixel = 0
  4116. TB.Name = "TextboxFF"
  4117. TB.Text = LocalPlayer.Name
  4118. TB.TextColor3 = Color3.new(255,255,255)
  4119. TB.Font = "SourceSans"
  4120. TB.FontSize = "Size24"
  4121. TB.TextStrokeTransparency = 0
  4122. TB.Size = UDim2.new(0,180,0,75)
  4123. TB.Position = UDim2.new(0,185,0,350)
  4124.  
  4125.  
  4126. local Q2 = Instance.new("TextButton", G)
  4127. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4128. Q2.BackgroundTransparency = 0.5
  4129. Q2.BorderSizePixel = 0
  4130. Q2.Name = "Close"
  4131. Q2.Text = "Close"
  4132. Q2.Font = "ArialBold"
  4133. Q2.FontSize = "Size24"
  4134. Q2.TextStrokeTransparency = 0
  4135. Q2.Size = UDim2.new(0,180,0,75)
  4136. Q2.Position = UDim2.new(0,370,0,275)
  4137. Q2.MouseButton1Click:connect(function()
  4138. G:remove()
  4139. end)
  4140.  
  4141. local FFE = Instance.new("TextButton", G)
  4142. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4143. FFE.BackgroundTransparency = 0.5
  4144. FFE.BorderSizePixel = 0
  4145. FFE.Name = "EnterF"
  4146. FFE.Text = "EXE"
  4147. FFE.Font = "ArialBold"
  4148. FFE.FontSize = "Size24"
  4149. FFE.TextStrokeTransparency = 0
  4150. FFE.Size = UDim2.new(0,180,0,75)
  4151. FFE.Position = UDim2.new(0,370,0,350)
  4152. FFE.MouseButton1Click:connect(function()
  4153. Player = TB.Text
  4154. G:remove()
  4155. local Char = game.Players[Player].Character
  4156. Char.Head.Transparency = 0.6
  4157.  
  4158. local KT = Instance.new("Part")
  4159. KT.Name = "Killer Torso"
  4160. KT.BrickColor = Char.Torso.BrickColor
  4161. KT.Transparency = Char.Torso.Transparency
  4162. KT.Reflectance = Char.Torso.Reflectance
  4163. KT.Anchored = false
  4164. KT.CanCollide = true
  4165. KT.Locked = true
  4166. KT.Size = Vector3.new(2,2,1)
  4167.  
  4168. local W = Instance.new("Weld")
  4169. W.Parent = KT
  4170. W.Part0 = Char.Torso
  4171. W.Part1 = KT
  4172. W.C1 = W.C1 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
  4173. W.Name = "KT Weld"
  4174.  
  4175. while true do
  4176. Instance.new("ForceField", Char)
  4177. Char.Humanoid.MaxHealth = 10000000
  4178. Char.Humanoid.Health = 10000000
  4179. wait(0.8)
  4180. Char.ForceField:remove()
  4181. wait(0.001)
  4182. end
  4183.  
  4184.  
  4185. if Char.Console then
  4186. print("Console is working")
  4187. else
  4188. print("Console is missing!")
  4189. end
  4190. end)
  4191.  
  4192. end
  4193.  
  4194.  
  4195. function MusicShow ()
  4196. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  4197. G.Name = "GUI"
  4198. local T = Instance.new("TextLabel", G)
  4199. T.BackgroundColor3 = Color3.new(0,0,0)
  4200. T.BackgroundTransparency = 0.5
  4201. T.Position = UDim2.new(0,0,0,350)
  4202. T.BorderSizePixel = 0
  4203. T.Name = "Music"
  4204. T.FontSize = "Size24"
  4205. T.Text = "Music:"
  4206. T.TextColor3 = Color3.new(255,255,255)
  4207. T.Font = "SourceSansBold"
  4208. T.TextStrokeTransparency = 0
  4209. T.Size = UDim2.new(0,180,0,75)
  4210.  
  4211.  
  4212. local TB = Instance.new("TextBox", G)
  4213. TB.BackgroundColor3 = Color3.new(0,0,0)
  4214. TB.BackgroundTransparency = 0.5
  4215. TB.BorderSizePixel = 0
  4216. TB.Name = "TextboxFF"
  4217. TB.Text = M
  4218. TB.TextColor3 = Color3.new(255,255,255)
  4219. TB.Font = "SourceSans"
  4220. TB.FontSize = "Size24"
  4221. TB.TextStrokeTransparency = 0
  4222. TB.Size = UDim2.new(0,180,0,75)
  4223. TB.Position = UDim2.new(0,185,0,350)
  4224.  
  4225.  
  4226. local Q = Instance.new("TextButton", G)
  4227. Q.BackgroundColor3 = Color3.new(0,0,0)
  4228. Q.BackgroundTransparency = 0.5
  4229. Q.BorderSizePixel = 0
  4230. Q.Name = "EnterS1"
  4231. Q.Text = "Hotline Bling"
  4232. Q.Font = "ArialBold"
  4233. Q.FontSize = "Size24"
  4234. Q.TextStrokeTransparency = 0
  4235. Q.Size = UDim2.new(0,180,0,75)
  4236. Q.Position = UDim2.new(0,0,0,275)
  4237. Q.MouseButton1Click:connect(function()
  4238. TB.Text = "283801001"
  4239. end)
  4240. local N = Instance.new("TextButton", G)
  4241. N.BackgroundColor3 = Color3.new(0,0,0)
  4242. N.BackgroundTransparency = 0.5
  4243. N.BorderSizePixel = 0
  4244. N.Name = "EnterS1"
  4245. N.Text = "Fireflies"
  4246. N.Font = "ArialBold"
  4247. N.FontSize = "Size24"
  4248. N.TextStrokeTransparency = 0
  4249. N.Size = UDim2.new(0,180,0,75)
  4250. N.Position = UDim2.new(0,185,0,275)
  4251. N.MouseButton1Click:connect(function()
  4252. TB.Text = "218211859"
  4253. end)
  4254. local NB = Instance.new("TextButton", G)
  4255. NB.BackgroundColor3 = Color3.new(0,0,0)
  4256. NB.BackgroundTransparency = 0.5
  4257. NB.BorderSizePixel = 0
  4258. NB.Name = "EnterS1"
  4259. NB.Text = "Pilots"
  4260. NB.Font = "ArialBold"
  4261. NB.FontSize = "Size24"
  4262. NB.TextStrokeTransparency = 0
  4263. NB.Size = UDim2.new(0,180,0,75)
  4264. NB.Position = UDim2.new(0,0,0,195)
  4265. NB.MouseButton1Click:connect(function()
  4266. TB.Text = "243372213"
  4267. end)
  4268. local Q2 = Instance.new("TextButton", G)
  4269. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4270. Q2.BackgroundTransparency = 0.5
  4271. Q2.BorderSizePixel = 0
  4272. Q2.Name = "Close"
  4273. Q2.Text = "CLOSE"
  4274. Q2.Font = "ArialBold"
  4275. Q2.FontSize = "Size24"
  4276. Q2.TextStrokeTransparency = 0
  4277. Q2.Size = UDim2.new(0,180,0,75)
  4278. Q2.Position = UDim2.new(0,370,0,275)
  4279. Q2.MouseButton1Click:connect(function()
  4280. G:remove()
  4281. end)
  4282.  
  4283.  
  4284. local Qy = Instance.new("TextButton", G)
  4285. Qy.BackgroundColor3 = Color3.new(0,0,0)
  4286. Qy.BackgroundTransparency = 0.5
  4287. Qy.BorderSizePixel = 0
  4288. Qy.Name = "Close"
  4289. Qy.Text = "Stop"
  4290. Qy.Font = "ArialBold"
  4291. Qy.FontSize = "Size24"
  4292. Qy.TextStrokeTransparency = 0
  4293. Qy.Size = UDim2.new(0,180,0,75)
  4294. Qy.Position = UDim2.new(0,370,0,200)
  4295. Qy.MouseButton1Click:connect(function()
  4296. game.Workspace.S:remove()
  4297. end)
  4298.  
  4299.  
  4300. local FFE = Instance.new("TextButton", G)
  4301. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4302. FFE.BackgroundTransparency = 0.5
  4303. FFE.BorderSizePixel = 0
  4304. FFE.Name = "EnterM"
  4305. FFE.Text = "EXE"
  4306. FFE.Font = "ArialBold"
  4307. FFE.FontSize = "Size36"
  4308. FFE.TextStrokeTransparency = 0
  4309. FFE.Size = UDim2.new(0,180,0,75)
  4310. FFE.Position = UDim2.new(0,370,0,350)
  4311. FFE.MouseButton1Click:connect(function()
  4312. M = TB.Text
  4313. G:remove()
  4314. local S = Instance.new("Sound")
  4315. S.SoundId = "http://www.roblox.com/asset/?id="..M
  4316. S.Volume = 1
  4317. S.Parent = game.Workspace
  4318. S.MaxDistance = 1000
  4319. S.MinDistance = 100
  4320. S.Name = "S"
  4321. S.Looped = true
  4322. S:Play()
  4323. if Char.Console then
  4324. print("Console is working")
  4325. else
  4326. print("Console is missing!")
  4327. end
  4328. end)
  4329.  
  4330.  
  4331.  
  4332. end
  4333.  
  4334.  
  4335. function CommandGuiFF ()
  4336. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  4337. G.Name = "GUI"
  4338. local T = Instance.new("TextLabel", G)
  4339. T.BackgroundColor3 = Color3.new(0,0,0)
  4340. T.BackgroundTransparency = 0.5
  4341. T.Position = UDim2.new(0,0,0,350)
  4342. T.BorderSizePixel = 0
  4343. T.Name = "FF"
  4344. T.FontSize = "Size24"
  4345. T.Text = "ForceField"
  4346. T.TextColor3 = Color3.new(255,255,255)
  4347. T.Font = "SourceSansBold"
  4348. T.TextStrokeTransparency = 0
  4349. T.Size = UDim2.new(0,180,0,75)
  4350.  
  4351.  
  4352. local TB = Instance.new("TextBox", G)
  4353. TB.BackgroundColor3 = Color3.new(0,0,0)
  4354. TB.BackgroundTransparency = 0.5
  4355. TB.BorderSizePixel = 0
  4356. TB.Name = "TextboxFF"
  4357. TB.Text = LocalPlayer.Name
  4358. TB.TextColor3 = Color3.new(255,255,255)
  4359. TB.Font = "SourceSans"
  4360. TB.FontSize = "Size24"
  4361. TB.TextStrokeTransparency = 0
  4362. TB.Size = UDim2.new(0,180,0,75)
  4363. TB.Position = UDim2.new(0,185,0,350)
  4364.  
  4365.  
  4366. local Q2 = Instance.new("TextButton", G)
  4367. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4368. Q2.BackgroundTransparency = 0.5
  4369. Q2.BorderSizePixel = 0
  4370. Q2.Name = "Close"
  4371. Q2.Text = "Close"
  4372. Q2.Font = "ArialBold"
  4373. Q2.FontSize = "Size24"
  4374. Q2.TextStrokeTransparency = 0
  4375. Q2.Size = UDim2.new(0,180,0,75)
  4376. Q2.Position = UDim2.new(0,370,0,275)
  4377. Q2.MouseButton1Click:connect(function()
  4378. G:remove()
  4379. end)
  4380.  
  4381. local N = Instance.new("TextButton", G)
  4382. N.BackgroundColor3 = Color3.new(0,0,0)
  4383. N.BackgroundTransparency = 0.5
  4384. N.BorderSizePixel = 0
  4385. N.Name = "EnterS1"
  4386. N.Text = "UnFF"
  4387. N.Font = "ArialBold"
  4388. N.FontSize = "Size24"
  4389. N.TextStrokeTransparency = 0
  4390. N.Size = UDim2.new(0,180,0,75)
  4391. N.Position = UDim2.new(0,185,0,275)
  4392. N.MouseButton1Click:connect(function()
  4393. game.Players[TB.Text].Character.ForceField:remove()
  4394. end)
  4395.  
  4396. local FFE = Instance.new("TextButton", G)
  4397. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4398. FFE.BackgroundTransparency = 0.5
  4399. FFE.BorderSizePixel = 0
  4400. FFE.Name = "EnterF"
  4401. FFE.Text = "EXE"
  4402. FFE.Font = "ArialBold"
  4403. FFE.FontSize = "Size24"
  4404. FFE.TextStrokeTransparency = 0
  4405. FFE.Size = UDim2.new(0,180,0,75)
  4406. FFE.Position = UDim2.new(0,370,0,350)
  4407. FFE.MouseButton1Click:connect(function()
  4408. Player = TB.Text
  4409. G:remove()
  4410. local Char = game.Players[Player].Character
  4411. Instance.new("ForceField", Char)
  4412. if Char.Console then
  4413. print("Console is working")
  4414. else
  4415. print("Console is missing!")
  4416. end
  4417. end)
  4418.  
  4419.  
  4420.  
  4421. end
  4422. function KillPlr ()
  4423. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  4424. G.Name = "GUI"
  4425. local T = Instance.new("TextLabel", G)
  4426. T.BackgroundColor3 = Color3.new(0,0,0)
  4427. T.BackgroundTransparency = 0.5
  4428. T.Position = UDim2.new(0,0,0,350)
  4429. T.BorderSizePixel = 0
  4430. T.Name = "FF"
  4431. T.FontSize = "Size24"
  4432. T.Text = "Kill"
  4433. T.TextColor3 = Color3.new(255,255,255)
  4434. T.Font = "SourceSansBold"
  4435. T.TextStrokeTransparency = 0
  4436. T.Size = UDim2.new(0,180,0,75)
  4437.  
  4438.  
  4439. local TB = Instance.new("TextBox", G)
  4440. TB.BackgroundColor3 = Color3.new(0,0,0)
  4441. TB.BackgroundTransparency = 0.5
  4442. TB.BorderSizePixel = 0
  4443. TB.Name = "TextboxFF"
  4444. TB.Text = LocalPlayer.Name
  4445. TB.TextColor3 = Color3.new(255,255,255)
  4446. TB.Font = "SourceSans"
  4447. TB.FontSize = "Size24"
  4448. TB.TextStrokeTransparency = 0
  4449. TB.Size = UDim2.new(0,180,0,75)
  4450. TB.Position = UDim2.new(0,185,0,350)
  4451.  
  4452.  
  4453. local Q2 = Instance.new("TextButton", G)
  4454. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4455. Q2.BackgroundTransparency = 0.5
  4456. Q2.BorderSizePixel = 0
  4457. Q2.Name = "Close"
  4458. Q2.Text = "Close"
  4459. Q2.Font = "ArialBold"
  4460. Q2.FontSize = "Size24"
  4461. Q2.TextStrokeTransparency = 0
  4462. Q2.Size = UDim2.new(0,180,0,75)
  4463. Q2.Position = UDim2.new(0,370,0,275)
  4464. Q2.MouseButton1Click:connect(function()
  4465. G:remove()
  4466. end)
  4467.  
  4468.  
  4469. local FFE = Instance.new("TextButton", G)
  4470. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4471. FFE.BackgroundTransparency = 0.5
  4472. FFE.BorderSizePixel = 0
  4473. FFE.Name = "EnterF"
  4474. FFE.Text = "EXE"
  4475. FFE.Font = "ArialBold"
  4476. FFE.FontSize = "Size24"
  4477. FFE.TextStrokeTransparency = 0
  4478. FFE.Size = UDim2.new(0,180,0,75)
  4479. FFE.Position = UDim2.new(0,370,0,350)
  4480. FFE.MouseButton1Click:connect(function()
  4481. Player = TB.Text
  4482. G:remove()
  4483. local Char = game.Players[Player].Character
  4484. Char.Humanoid.Health = 0
  4485. wait(0.1)
  4486. Char.Humanoid.Health = 0
  4487. wait(0.1)
  4488. Char.Humanoid.Health = 0
  4489. wait(0.1)
  4490. Char.Humanoid.Health = 0
  4491. wait(0.1)
  4492. Char.Humanoid.Health = 0
  4493. wait(0.1)
  4494. Char.Humanoid.Health = 0
  4495. wait(0.1)
  4496. Char.Humanoid.Health = 0
  4497. wait(0.1)
  4498. Char.Humanoid.Health = 0
  4499. wait(0.1)
  4500. Char.Humanoid.Health = 0
  4501. wait(0.1)
  4502. Char.Humanoid.Health = 0
  4503. if Char.Console then
  4504. print("Console is working")
  4505. else
  4506. print("Console is missing!")
  4507. end
  4508. end)
  4509.  
  4510.  
  4511.  
  4512. end
  4513. function KickPlr ()
  4514. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  4515. G.Name = "GUI"
  4516. local T = Instance.new("TextLabel", G)
  4517. T.BackgroundColor3 = Color3.new(0,0,0)
  4518. T.BackgroundTransparency = 0.5
  4519. T.Position = UDim2.new(0,0,0,350)
  4520. T.BorderSizePixel = 0
  4521. T.Name = "Kick"
  4522. T.FontSize = "Size24"
  4523. T.Text = "Kick"
  4524. T.TextColor3 = Color3.new(255,255,255)
  4525. T.Font = "SourceSansBold"
  4526. T.TextStrokeTransparency = 0
  4527. T.Size = UDim2.new(0,180,0,75)
  4528.  
  4529.  
  4530. local TB = Instance.new("TextBox", G)
  4531. TB.BackgroundColor3 = Color3.new(0,0,0)
  4532. TB.BackgroundTransparency = 0.5
  4533. TB.BorderSizePixel = 0
  4534. TB.Name = "TextboxFF"
  4535. TB.Text = LocalPlayer.Name
  4536. TB.TextColor3 = Color3.new(255,255,255)
  4537. TB.Font = "SourceSans"
  4538. TB.FontSize = "Size24"
  4539. TB.TextStrokeTransparency = 0
  4540. TB.Size = UDim2.new(0,180,0,75)
  4541. TB.Position = UDim2.new(0,185,0,350)
  4542.  
  4543.  
  4544. local Q2 = Instance.new("TextButton", G)
  4545. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4546. Q2.BackgroundTransparency = 0.5
  4547. Q2.BorderSizePixel = 0
  4548. Q2.Name = "Close"
  4549. Q2.Text = "Close"
  4550. Q2.Font = "ArialBold"
  4551. Q2.FontSize = "Size24"
  4552. Q2.TextStrokeTransparency = 0
  4553. Q2.Size = UDim2.new(0,180,0,75)
  4554. Q2.Position = UDim2.new(0,370,0,275)
  4555. Q2.MouseButton1Click:connect(function()
  4556. G:remove()
  4557. end)
  4558.  
  4559.  
  4560. local FFE = Instance.new("TextButton", G)
  4561. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4562. FFE.BackgroundTransparency = 0.5
  4563. FFE.BorderSizePixel = 0
  4564. FFE.Name = "EnterF"
  4565. FFE.Text = "EXE"
  4566. FFE.Font = "ArialBold"
  4567. FFE.FontSize = "Size24"
  4568. FFE.TextStrokeTransparency = 0
  4569. FFE.Size = UDim2.new(0,180,0,75)
  4570. FFE.Position = UDim2.new(0,370,0,350)
  4571. FFE.MouseButton1Click:connect(function()
  4572. Player = TB.Text
  4573. G:remove()
  4574. local Char = game.Players[Player].Character
  4575. Char:remove()
  4576. game.Players[Player]:remove()
  4577. if Char.Console then
  4578. print("Console is working")
  4579. else
  4580. print("Console is missing!")
  4581. end
  4582. end)
  4583.  
  4584.  
  4585.  
  4586. end
  4587.  
  4588. function FirePlr ()
  4589. local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
  4590. G.Name = "GUI"
  4591. local T = Instance.new("TextLabel", G)
  4592. T.BackgroundColor3 = Color3.new(0,0,0)
  4593. T.BackgroundTransparency = 0.5
  4594. T.Position = UDim2.new(0,0,0,350)
  4595. T.BorderSizePixel = 0
  4596. T.Name = "God"
  4597. T.FontSize = "Size24"
  4598. T.Text = "Fire"
  4599. T.TextColor3 = Color3.new(255,255,255)
  4600. T.Font = "SourceSansBold"
  4601. T.TextStrokeTransparency = 0
  4602. T.Size = UDim2.new(0,180,0,75)
  4603.  
  4604.  
  4605. local TB = Instance.new("TextBox", G)
  4606. TB.BackgroundColor3 = Color3.new(0,0,0)
  4607. TB.BackgroundTransparency = 0.5
  4608. TB.BorderSizePixel = 0
  4609. TB.Name = "TextboxFF"
  4610. TB.Text = LocalPlayer.Name
  4611. TB.TextColor3 = Color3.new(255,255,255)
  4612. TB.Font = "SourceSans"
  4613. TB.FontSize = "Size24"
  4614. TB.TextStrokeTransparency = 0
  4615. TB.Size = UDim2.new(0,180,0,75)
  4616. TB.Position = UDim2.new(0,185,0,350)
  4617.  
  4618.  
  4619. local Q2 = Instance.new("TextButton", G)
  4620. Q2.BackgroundColor3 = Color3.new(0,0,0)
  4621. Q2.BackgroundTransparency = 0.5
  4622. Q2.BorderSizePixel = 0
  4623. Q2.Name = "Close"
  4624. Q2.Text = "Close"
  4625. Q2.Font = "ArialBold"
  4626. Q2.FontSize = "Size24"
  4627. Q2.TextStrokeTransparency = 0
  4628. Q2.Size = UDim2.new(0,180,0,75)
  4629. Q2.Position = UDim2.new(0,370,0,275)
  4630. Q2.MouseButton1Click:connect(function()
  4631. G:remove()
  4632. end)
  4633.  
  4634.  
  4635. local FFE = Instance.new("TextButton", G)
  4636. FFE.BackgroundColor3 = Color3.new(0,0,0)
  4637. FFE.BackgroundTransparency = 0.5
  4638. FFE.BorderSizePixel = 0
  4639. FFE.Name = "EnterF"
  4640. FFE.Text = "EXE"
  4641. FFE.Font = "ArialBold"
  4642. FFE.FontSize = "Size24"
  4643. FFE.TextStrokeTransparency = 0
  4644. FFE.Size = UDim2.new(0,180,0,75)
  4645. FFE.Position = UDim2.new(0,370,0,350)
  4646. FFE.MouseButton1Click:connect(function()
  4647. Player = TB.Text
  4648. G:remove()
  4649. local Char = game.Players[Player].Character
  4650. Instance.new("Fire",Char.Torso)
  4651. if Char.Console then
  4652. print("Console is working")
  4653. else
  4654. print("Console is missing!")
  4655. end
  4656. end)
  4657. end
  4658. function Console ()
  4659. local Part1 = Instance.new("Part", Char)
  4660. Part1.FormFactor = Enum.FormFactor.Custom
  4661. Part1.Size = Vector3.new(16, 10, 0)
  4662. Part1.Position = Vector3.new(7, 7.2, 14.5)
  4663. Part1.Material = "Neon" --[[Sexy Like]]--
  4664. Part1.Locked = true
  4665. Part1.Anchored = true
  4666. Part1.TopSurface = 'Smooth'
  4667. Part1.Name = "Console"
  4668. Part1.CanCollide = false
  4669. Part1.BottomSurface = 'Smooth'
  4670. game:GetService("RunService").RenderStepped:connect(function()
  4671. Part1.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.new(0,3,-5)
  4672. end)
  4673.  
  4674. local sg = Instance.new("SurfaceGui",Part1)
  4675. sg.Name = "G"
  4676. sg.Adornee = Part1
  4677. sg.Face = "Back"
  4678. local tl = Instance.new("Frame",sg)
  4679. tl.BackgroundColor3 = Color3.new(0,0,0)
  4680. tl.Size = UDim2.new(1,0, 1,0)
  4681.  
  4682.  
  4683. local button = Instance.new("TextButton", tl)
  4684. button.Size = UDim2.new(0,800,0,50)
  4685. button.Position = UDim2.new(0,0,0,0)
  4686. button.Font = 'Legacy'
  4687. button.FontSize = 'Size12'
  4688. button.Text = 'Activate'
  4689. button.TextColor3 = Color3.new(255, 255, 255)
  4690. button.BackgroundColor3 = Color3.new(0, 0, 0)
  4691.  
  4692.  
  4693. local FF = Instance.new("TextButton", tl)
  4694. FF.Size = UDim2.new(0,200,0,50)
  4695. FF.Position = UDim2.new(0,0,0,200)
  4696. FF.Font = 'Legacy'
  4697. FF.FontSize = 'Size12'
  4698. FF.Text = 'FF'
  4699. FF.BorderColor3 = Color3.new(0,85,255)
  4700. FF.TextColor3 = Color3.new(255, 255, 255)
  4701. FF.BackgroundColor3 = Color3.new(0, 0, 0)
  4702. FF.Visible = false
  4703.  
  4704.  
  4705. FF.MouseButton1Click:connect(function()
  4706. CommandGuiFF()
  4707. FF.Visible = false
  4708. wait(5)
  4709. FF.Visible = true
  4710. end)
  4711. local Music = Instance.new("TextButton", tl)
  4712. Music.Size = UDim2.new(0,200,0,50)
  4713. Music.Position = UDim2.new(0,205,0,200)
  4714. Music.Font = 'Legacy'
  4715. Music.FontSize = 'Size12'
  4716. Music.Text = 'Music'
  4717. Music.BorderColor3 = Color3.new(0,85,255)
  4718. Music.TextColor3 = Color3.new(255, 255, 255)
  4719. Music.BackgroundColor3 = Color3.new(0, 0, 0)
  4720. Music.Visible = false
  4721.  
  4722.  
  4723. Music.MouseButton1Click:connect(function()
  4724. MusicShow()
  4725. end)
  4726. local Kick = Instance.new("TextButton", tl)
  4727. Kick.Size = UDim2.new(0,200,0,50)
  4728. Kick.Position = UDim2.new(0,410,0,200)
  4729. Kick.Font = 'Legacy'
  4730. Kick.FontSize = 'Size12'
  4731. Kick.Text = 'Kick'
  4732. Kick.BorderColor3 = Color3.new(0,85,255)
  4733. Kick.TextColor3 = Color3.new(255, 255, 255)
  4734. Kick.BackgroundColor3 = Color3.new(0, 0, 0)
  4735. Kick.Visible = false
  4736.  
  4737.  
  4738. Kick.MouseButton1Click:connect(function()
  4739. KickPlr()
  4740. end)
  4741. local Kill = Instance.new("TextButton", tl)
  4742. Kill.Size = UDim2.new(0,200,0,50)
  4743. Kill.Position = UDim2.new(0,0,0,255)
  4744. Kill.Font = 'Legacy'
  4745. Kill.BorderColor3 = Color3.new(0,85,255)
  4746. Kill.FontSize = 'Size12'
  4747. Kill.Text = 'Kill'
  4748. Kill.TextColor3 = Color3.new(255, 255, 255)
  4749. Kill.BackgroundColor3 = Color3.new(0, 0, 0)
  4750. Kill.Visible = false
  4751.  
  4752.  
  4753. Kill.MouseButton1Click:connect(function()
  4754. KillPlr()
  4755. end)
  4756. local God = Instance.new("TextButton", tl)
  4757. God.Size = UDim2.new(0,200,0,50)
  4758. God.Position = UDim2.new(0,205,0,255)
  4759. God.Font = 'Legacy'
  4760. God.FontSize = 'Size12'
  4761. God.Text = 'God'
  4762. God.BorderColor3 = Color3.new(0,85,255)
  4763. God.TextColor3 = Color3.new(255, 255, 255)
  4764. God.BackgroundColor3 = Color3.new(0, 0, 0)
  4765. God.Visible = false
  4766.  
  4767.  
  4768. God.MouseButton1Click:connect(function()
  4769. GodPlr()
  4770. end)
  4771. local Fire = Instance.new("TextButton", tl)
  4772. Fire.Size = UDim2.new(0,200,0,50)
  4773. Fire.Position = UDim2.new(0,410,0,255)
  4774. Fire.Font = 'Legacy'
  4775. Fire.FontSize = 'Size12'
  4776. Fire.BorderColor3 = Color3.new(0,85,255)
  4777. Fire.Text = 'Fire'
  4778. Fire.TextColor3 = Color3.new(255, 255, 255)
  4779. Fire.BackgroundColor3 = Color3.new(0, 0, 0)
  4780. Fire.Visible = false
  4781. Fire.MouseButton1Click:connect(function()
  4782. FirePlr()
  4783. end)
  4784.  
  4785. local Base = Instance.new("TextButton", tl)
  4786. Base.Size = UDim2.new(0,200,0,50)
  4787. Base.Position = UDim2.new(0,0,0,310)
  4788. Base.Font = 'Legacy'
  4789. Base.FontSize = 'Size12'
  4790. Base.Text = 'Base'
  4791. Base.BorderColor3 = Color3.new(0,85,255)
  4792. Base.TextColor3 = Color3.new(255, 255, 255)
  4793. Base.BackgroundColor3 = Color3.new(0, 0, 0)
  4794. Base.Visible = false
  4795.  
  4796. Base.MouseButton1Click:connect(function()
  4797. BaseEdit()
  4798. end)
  4799.  
  4800. local Sit = Instance.new("TextButton", tl)
  4801. Sit.Size = UDim2.new(0,200,0,50)
  4802. Sit.Position = UDim2.new(0,205,0,310)
  4803. Sit.Font = 'Legacy'
  4804. Sit.FontSize = 'Size12'
  4805. Sit.Text = 'Sit'
  4806. Sit.BorderColor3 = Color3.new(0,85,255)
  4807. Sit.TextColor3 = Color3.new(255, 255, 255)
  4808. Sit.BackgroundColor3 = Color3.new(0, 0, 0)
  4809. Sit.Visible = false
  4810.  
  4811. Sit.MouseButton1Click:connect(function()
  4812. SitPlr()
  4813. end)
  4814.  
  4815. local Back = Instance.new("TextButton", tl)
  4816. Back.Size = UDim2.new(0,200,0,50)
  4817. Back.Position = UDim2.new(0,410,0,310)
  4818. Back.Font = 'Legacy'
  4819. Back.FontSize = 'Size12'
  4820. Back.BorderColor3 = Color3.new(0,85,255)
  4821. Back.Text = 'CBack'
  4822. Back.TextColor3 = Color3.new(255, 255, 255)
  4823. Back.BackgroundColor3 = Color3.new(0, 0, 0)
  4824. Back.Visible = false
  4825.  
  4826. Back.MouseButton1Click:connect(function()
  4827. CBackPlr()
  4828. end)
  4829. local Rh = Instance.new("TextButton", tl)
  4830. Rh.Size = UDim2.new(0,200,0,50)
  4831. Rh.Position = UDim2.new(0,0,0,365)
  4832. Rh.Font = 'Legacy'
  4833. Rh.FontSize = 'Size12'
  4834. Rh.Text = 'Rhum'
  4835. Rh.BorderColor3 = Color3.new(0,85,255)
  4836. Rh.TextColor3 = Color3.new(255, 255, 255)
  4837. Rh.BackgroundColor3 = Color3.new(0, 0, 0)
  4838. Rh.Visible = false
  4839.  
  4840. Rh.MouseButton1Click:connect(function()
  4841. RhumPlr()
  4842. end)
  4843. local Exp = Instance.new("TextButton", tl)
  4844. Exp.Size = UDim2.new(0,200,0,50)
  4845. Exp.Position = UDim2.new(0,205,0,365)
  4846. Exp.Font = 'Legacy'
  4847. Exp.FontSize = 'Size12'
  4848. Exp.Text = 'Explo'
  4849. Exp.BorderColor3 = Color3.new(0,85,255)
  4850. Exp.TextColor3 = Color3.new(255, 255, 255)
  4851. Exp.BackgroundColor3 = Color3.new(0, 0, 0)
  4852. Exp.Visible = false
  4853.  
  4854. Exp.MouseButton1Click:connect(function()
  4855. ExpPlr()
  4856. end)
  4857. local Ban = Instance.new("TextButton", tl)
  4858. Ban.Size = UDim2.new(0,200,0,50)
  4859. Ban.Position = UDim2.new(0,410,0,365)
  4860. Ban.Font = 'Legacy'
  4861. Ban.FontSize = 'Size12'
  4862. Ban.Text = 'Ban'
  4863. Ban.BorderColor3 = Color3.new(0,85,255)
  4864. Ban.TextColor3 = Color3.new(255, 255, 255)
  4865. Ban.BackgroundColor3 = Color3.new(0, 0, 0)
  4866. Ban.Visible = false
  4867.  
  4868. Ban.MouseButton1Click:connect(function()
  4869. BanPlr()
  4870. end)
  4871.  
  4872. button.MouseButton1Click:connect(function()
  4873. button.TextColor3 = Color3.new(255, 255, 255)
  4874. button.Size =UDim2.new(0,235,0,50)
  4875. button.Text = 'Loading.'
  4876. wait(.5)
  4877. button.Text = 'Loading..'
  4878. wait(.5)
  4879. button.Text = 'Loading...'
  4880. wait(.5)
  4881. button.TextColor3 = Color3.new(255, 128, 0)
  4882. button.Text = 'Gettings Cmd Bets...'
  4883. wait(.5)
  4884. button.Text = 'Starting'
  4885. wait(.5)
  4886. button.TextColor3 = Color3.new(255, 0, 0)
  4887. button.Text = 'Getting Kernal32 check'
  4888. wait(.6)
  4889. button.Text = 'Console Loaded'
  4890. wait(1)
  4891. button.Text = '[STATUS] Moderate'
  4892. wait(.6)
  4893. button.TextColor3 = Color3.new(255, 255, 255)
  4894. button.Text = '[STATUS] ACTIVE'
  4895. button:remove()
  4896. local button = Instance.new("TextLabel", tl)
  4897. button.Size = UDim2.new(0,800,0,50)
  4898. button.Position = UDim2.new(0,0,0,0)
  4899. button.Font = 'Legacy'
  4900. button.FontSize = 'Size14'
  4901. button.Text = '[AE2X CONSOLE]'
  4902. button.BorderColor3 = Color3.new(0,85,255)
  4903. button.TextColor3 = Color3.new(255, 255, 255)
  4904. button.BackgroundColor3 = Color3.new(0, 0, 0)
  4905. local button2 = Instance.new("TextLabel", tl)
  4906. button2.Size = UDim2.new(0,800,0,50)
  4907. button2.Position = UDim2.new(0,0,0,55)
  4908. button2.Font = 'Legacy'
  4909. button2.FontSize = 'Size14'
  4910. button2.Text = 'Made by PointCoded, nguyenjimbo and Nilzers'
  4911. button2.BorderColor3 = Color3.new(0,85,255)
  4912. button2.TextColor3 = Color3.new(255, 255, 255)
  4913. button2.BackgroundColor3 = Color3.new(0, 0, 0)
  4914. FF.Visible = true
  4915. Music.Visible = true
  4916. Kick.Visible = true
  4917. Kill.Visible = true
  4918. God.Visible = true
  4919. Fire.Visible = true
  4920. Base.Visible = true
  4921. Sit.Visible = true
  4922. Back.Visible = true
  4923. Rh.Visible = true
  4924. Exp.Visible = true
  4925. Ban.Visible = true
  4926. Part1.BrickColor = BrickColor.new("Cyan")
  4927. local S = Instance.new("SelectionBox")
  4928. S.Color3 = Color3.new(0,0,0)
  4929. S.LineThickness = 0.07
  4930. S.Adornee = Part1
  4931. S.Transparency = 0.6
  4932. S.Parent = Part1
  4933. end)
  4934. end
  4935. LocalPlayer.Chatted:connect(function(msg)
  4936. if msg == Pre.."LoadConsole"..Bet then
  4937. Console()
  4938. end
  4939.  
  4940. end)
  4941. LocalPlayer.Chatted:connect(function(msg)
  4942. if msg == Pre.."Shutdown"..Bet then
  4943. while true do
  4944. game.Workspace:ClearAllChildren()
  4945. wait(0.1)
  4946. local M =Instance.new("Message")
  4947. M.Parent = game.Workspace
  4948. M.Text = "Goodbye m8's :P"
  4949. game.Players:ClearAllChildren()
  4950. wait(2)
  4951. end
  4952. end
  4953.  
  4954. end)
  4955. LocalPlayer.Chatted:connect(function(msg)
  4956. if msg == Pre.."CloseConsole"..Bet then
  4957. Char.Console:remove()
  4958. end
  4959.  
  4960. end)
  4961.  
  4962.  
  4963.  
  4964. game["Players"].PlayerAdded:connect(function(newPlr)
  4965. for _,BannedPlr in pairs(bannedlist) do
  4966. if(newPlr["Name"]==BannedPlr)then
  4967. if(newPlr["Name"]~=(game.Players.LocalPlayer.Name))then
  4968. newPlr:WaitForChild("Backpack")
  4969. game.Players[newPlr.Name]:remove()
  4970. print(newPlr.Name.." Has tried to join!")
  4971. elseif(newPlr["Name"]~=BannedPlr)then
  4972. print("Allowed")
  4973. end
  4974. end
  4975. end
  4976. end)
  4977.  
  4978. Console()
  4979. while true do
  4980. if Char.Console and Char.Humanoid.Health == 0 then
  4981. Char.Console:remove()
  4982. wait(0.1)
  4983. wait(10)
  4984. Console()
  4985. end
  4986. wait(0.1)
  4987. end
  4988.  
  4989.  
  4990. end)
  4991. NewCMD("Day", "day", "Makes the time day", function()
  4992. game.Lighting.TimeOfDay = "12:00:00"
  4993. end)
  4994.  
  4995. NewCMD("Night", "night", "Makes the time night", function()
  4996. game.Lighting.TimeOfDay = "00:00:00"
  4997. end)
  4998.  
  4999. NewCMD("Midnight", "midnight", "Makes the time midnight", function()
  5000. game.Lighting.TimeOfDay = "06:00:00"
  5001. end)
  5002. NewCMD("Epic Katana","ek","Epic Katana lel",
  5003. function()
  5004. wait(0.5)
  5005. Dismiss()
  5006. Tablet("Loaded",Colors.Black)
  5007. x = game:GetService("InsertService"):LoadAsset(18017365) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  5008. x = game:GetService("InsertService"):LoadAsset(21294489) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  5009. x = game:GetService("InsertService"):LoadAsset(18776718) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  5010. x = game:GetService("InsertService"):LoadAsset(20577851) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  5011. x = game:GetService("InsertService"):LoadAsset(25545089) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  5012. x = game:GetService("InsertService"):LoadAsset(22787168) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
  5013. end
  5014. )
  5015. NewCMD("Rejoin yourself","rej","Rejoin yourself even if you are nil",
  5016. function()
  5017. if SourceName ~= "source" then
  5018. game:service'TeleportService':Teleport(game.PlaceId)
  5019. else
  5020. Output("This is alakazard's sb, can't teleport here.","Really red")
  5021. end
  5022. end
  5023. )
  5024.  
  5025. NewCMD("Teleport", "tp", "Teleports you to a player",function(msg)
  5026. local plrs = GetPlayers(msg)
  5027. for _,plr in next,plrs do
  5028. local Nam = plr.Name
  5029. Player.Character.Torso.CFrame = plr.Character.Torso.CFrame
  5030. end
  5031. end)
  5032. NewCMD("Disco","disco","Makes the game Disco like.",
  5033. function()
  5034. repeat wait(.1) local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255)
  5035. game.Lighting.Ambient = color
  5036. game.Lighting.FogColor = color
  5037. until nil
  5038. end
  5039. )
  5040. NewCMD("Toolz","tools","gives tools",
  5041. function()
  5042. local insrt8 = game:GetService("InsertService"):LoadAsset(16688968)--coil
  5043. for _, v in pairs(insrt8:GetChildren()) do
  5044. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5045. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5046. end
  5047. end
  5048. local insrt9 = game:GetService("InsertService"):LoadAsset(52180871)--remotecontroltruck
  5049. for _, v in pairs(insrt9:GetChildren()) do
  5050. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5051. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5052. end
  5053. end
  5054. local insrt10 = game:GetService("InsertService"):LoadAsset(55917429)--bow
  5055. for _, v in pairs(insrt10:GetChildren()) do
  5056. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5057. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5058. end
  5059. end
  5060. local insrt11 = game:GetService("InsertService"):LoadAsset(31314931)--epicsauce
  5061. for _, v in pairs(insrt11:GetChildren()) do
  5062. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5063. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5064. end
  5065. end
  5066. local insrt12 = game:GetService("InsertService"):LoadAsset(65545955)--dancegrenade
  5067. for _, v in pairs(insrt12:GetChildren()) do
  5068. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5069. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5070. end
  5071. end
  5072. local insrt13 = game:GetService("InsertService"):LoadAsset(28277486)--bomb
  5073. for _, v in pairs(insrt13:GetChildren()) do
  5074. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5075. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5076. end
  5077. end
  5078. local insrt14 = game:GetService("InsertService"):LoadAsset(27902406)--skate
  5079. for _, v in pairs(insrt14:GetChildren()) do
  5080. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5081. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5082. end
  5083. end
  5084. local insrt15 = game:GetService("InsertService"):LoadAsset(42845853)--freezeray
  5085. for _, v in pairs(insrt15:GetChildren()) do
  5086. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5087. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5088. end
  5089. end
  5090. local insrt16 = game:GetService("InsertService"):LoadAsset(50937815)--atomgun
  5091. for _, v in pairs(insrt16:GetChildren()) do
  5092. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5093. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5094. end
  5095. end
  5096. local insrt17 = game:GetService("InsertService"):LoadAsset(34898883)--platformproducer
  5097. for _, v in pairs(insrt17:GetChildren()) do
  5098. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5099. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5100. end
  5101. end
  5102. local insrt18 = game:GetService("InsertService"):LoadAsset(35683911)--wallwalker
  5103. for _, v in pairs(insrt18:GetChildren()) do
  5104. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5105. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5106. end
  5107. end
  5108. local insrt19 = game:GetService("InsertService"):LoadAsset(68603151)--sentry
  5109. for _, v in pairs(insrt19:GetChildren()) do
  5110. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5111. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5112. end
  5113. end
  5114. local insrt20 = game:GetService("InsertService"):LoadAsset(26421972)--zombie
  5115. for _, v in pairs(insrt20:GetChildren()) do
  5116. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5117. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5118. end
  5119. end
  5120. local insrt21 = game:GetService("InsertService"):LoadAsset(34901961)--gravity
  5121. for _, v in pairs(insrt21:GetChildren()) do
  5122. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5123. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5124. end
  5125. end
  5126. local insrt22 = game:GetService("InsertService"):LoadAsset(10468797)--banhammer
  5127. for _, v in pairs(insrt22:GetChildren()) do
  5128. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5129. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5130. end
  5131. end
  5132. local insrt23 = game:GetService("InsertService"):LoadAsset(71422361)--coolsword1
  5133. for _, v in pairs(insrt23:GetChildren()) do
  5134. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5135. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5136. end
  5137. end
  5138. local insrt24 = game:GetService("InsertService"):LoadAsset(62350883)--coolsword2
  5139. for _, v in pairs(insrt24:GetChildren()) do
  5140. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5141. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5142. end
  5143. end
  5144. local insrt25 = game:GetService("InsertService"):LoadAsset(30847733)--vinestaff
  5145. for _, v in pairs(insrt25:GetChildren()) do
  5146. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5147. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5148. end
  5149. end
  5150. local insrt26 = game:GetService("InsertService"):LoadAsset(48596324)--leviatingstaff
  5151. for _, v in pairs(insrt26:GetChildren()) do
  5152. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5153. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5154. end
  5155. end
  5156. local insrt27 = game:GetService("InsertService"):LoadAsset(61459706)--polaritystaff
  5157. for _, v in pairs(insrt27:GetChildren()) do
  5158. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5159. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5160. end
  5161. end
  5162. local insrt28 = game:GetService("InsertService"):LoadAsset(66416616)--zeusstaff
  5163. for _, v in pairs(insrt28:GetChildren()) do
  5164. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5165. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5166. end
  5167. end
  5168. local insrt29 = game:GetService("InsertService"):LoadAsset(33866846)--gravhammer
  5169. for _, v in pairs(insrt29:GetChildren()) do
  5170. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5171. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5172. end
  5173. end
  5174. local insrt30 = game:GetService("InsertService"):LoadAsset(30847779)--magicninja
  5175. for _, v in pairs(insrt30:GetChildren()) do
  5176. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5177. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5178. end
  5179. end
  5180. local insrt31 = game:GetService("InsertService"):LoadAsset(60888284)--dualkamas
  5181. for _, v in pairs(insrt31:GetChildren()) do
  5182. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5183. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5184. end
  5185. end
  5186. local insrt32 = game:GetService("InsertService"):LoadAsset(42845609)--bbgun
  5187. for _, v in pairs(insrt32:GetChildren()) do
  5188. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5189. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5190. end
  5191. end
  5192. local insrt33 = game:GetService("InsertService"):LoadAsset(32356064)--rocketlauncher
  5193. for _, v in pairs(insrt33:GetChildren()) do
  5194. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5195. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5196. end
  5197. end
  5198. local insrt34 = game:GetService("InsertService"):LoadAsset(69209924)--r80launcher
  5199. for _, v in pairs(insrt34:GetChildren()) do
  5200. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5201. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5202. end
  5203. end
  5204. local insrt35 = game:GetService("InsertService"):LoadAsset(69947379)--revengeancespear
  5205. for _, v in pairs(insrt35:GetChildren()) do
  5206. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5207. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5208. end
  5209. end
  5210. local insrt36 = game:GetService("InsertService"):LoadAsset(51760061)--deathspeaker
  5211. for _, v in pairs(insrt36:GetChildren()) do
  5212. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5213. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5214. end
  5215. end
  5216. local insrt37 = game:GetService("InsertService"):LoadAsset(59175769)--flamethrower1
  5217. for _, v in pairs(insrt37:GetChildren()) do
  5218. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5219. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5220. end
  5221. end
  5222. local insrt38 = game:GetService("InsertService"):LoadAsset(69499452)--laservision
  5223. for _, v in pairs(insrt38:GetChildren()) do
  5224. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5225. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5226. end
  5227. end
  5228. local insrt39 = game:GetService("InsertService"):LoadAsset(65082246)--dreamselixir
  5229. for _, v in pairs(insrt39:GetChildren()) do
  5230. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5231. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5232. end
  5233. end
  5234. local insrt40 = game:GetService("InsertService"):LoadAsset(55917420)--hydrianelexir
  5235. for _, v in pairs(insrt40:GetChildren()) do
  5236. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5237. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5238. end
  5239. end
  5240. local insrt41 = game:GetService("InsertService"):LoadAsset(50938746)--fermionblade
  5241. for _, v in pairs(insrt41:GetChildren()) do
  5242. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5243. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5244. end
  5245. end
  5246. local insrt42 = game:GetService("InsertService"):LoadAsset(72644644)--quantumentangler
  5247. for _, v in pairs(insrt42:GetChildren()) do
  5248. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5249. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5250. end
  5251. end
  5252. local insrt43 = game:GetService("InsertService"):LoadAsset(72713855)--giantoform
  5253. for _, v in pairs(insrt43:GetChildren()) do
  5254. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5255. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5256. end
  5257. end
  5258. local insrt44 = game:GetService("InsertService"):LoadAsset(26774629)--expander
  5259. for _, v in pairs(insrt44:GetChildren()) do
  5260. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5261. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5262. end
  5263. end
  5264. local insrt45 = game:GetService("InsertService"):LoadAsset(66426498)--kami
  5265. for _, v in pairs(insrt45:GetChildren()) do
  5266. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5267. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5268. end
  5269. end
  5270. local insrt46 = game:GetService("InsertService"):LoadAsset(66896565)--missiletoe
  5271. for _, v in pairs(insrt46:GetChildren()) do
  5272. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5273. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5274. end
  5275. end
  5276. local insrt47 = game:GetService("InsertService"):LoadAsset(69499437)--azureperiastron
  5277. for _, v in pairs(insrt47:GetChildren()) do
  5278. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5279. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5280. end
  5281. end
  5282. local insrt48 = game:GetService("InsertService"):LoadAsset(71037028)--magiccarpet
  5283. for _, v in pairs(insrt48:GetChildren()) do
  5284. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5285. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5286. end
  5287. end
  5288. local insrt49 = game:GetService("InsertService"):LoadAsset(68354832)--blizzardwand
  5289. for _, v in pairs(insrt49:GetChildren()) do
  5290. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5291. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5292. end
  5293. end
  5294. local insrt50 = game:GetService("InsertService"):LoadAsset(66896601)--neverendingfroststaff
  5295. for _, v in pairs(insrt50:GetChildren()) do
  5296. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5297. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5298. end
  5299. end
  5300. local insrt51 = game:GetService("InsertService"):LoadAsset(72644629)--orb
  5301. for _, v in pairs(insrt51:GetChildren()) do
  5302. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5303. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5304. end
  5305. end
  5306. local insrt52 = game:GetService("InsertService"):LoadAsset(48596305)--confusoray
  5307. for _, v in pairs(insrt52:GetChildren()) do
  5308. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5309. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5310. end
  5311. end
  5312. local insrt53 = game:GetService("InsertService"):LoadAsset(45941451)--danceblaster
  5313. for _, v in pairs(insrt53:GetChildren()) do
  5314. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5315. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5316. end
  5317. end
  5318. local insrt54 = game:GetService("InsertService"):LoadAsset(30393548)--grapplehook
  5319. for _, v in pairs(insrt54:GetChildren()) do
  5320. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5321. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5322. end
  5323. end
  5324. local insrt55 = game:GetService("InsertService"):LoadAsset(59848474)--deathspeakerbook
  5325. for _, v in pairs(insrt55:GetChildren()) do
  5326. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5327. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5328. end
  5329. end
  5330. local insrt56 = game:GetService("InsertService"):LoadAsset(49491736)--dracovinbook
  5331. for _, v in pairs(insrt56:GetChildren()) do
  5332. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5333. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5334. end
  5335. end
  5336. local insrt57 = game:GetService("InsertService"):LoadAsset(56561607)--dracovinwand
  5337. for _, v in pairs(insrt57:GetChildren()) do
  5338. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5339. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5340. end
  5341. end
  5342. local insrt58 = game:GetService("InsertService"):LoadAsset(49491716)--mischiefwand
  5343. for _, v in pairs(insrt58:GetChildren()) do
  5344. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5345. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5346. end
  5347. end
  5348. local insrt59 = game:GetService("InsertService"):LoadAsset(16979083)--flashbang
  5349. for _, v in pairs(insrt59:GetChildren()) do
  5350. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5351. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5352. end
  5353. end
  5354. local insrt60 = game:GetService("InsertService"):LoadAsset(27860496)--novawand
  5355. for _, v in pairs(insrt60:GetChildren()) do
  5356. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5357. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5358. end
  5359. end
  5360. local insrt61 = game:GetService("InsertService"):LoadAsset(56561579)--forgottenbook
  5361. for _, v in pairs(insrt61:GetChildren()) do
  5362. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5363. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5364. end
  5365. end
  5366. local insrt62 = game:GetService("InsertService"):LoadAsset(69210407)--remoteplanecontrol
  5367. for _, v in pairs(insrt62:GetChildren()) do
  5368. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5369. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5370. end
  5371. end
  5372. local insrt63 = game:GetService("InsertService"):LoadAsset(66823689)--icicleslicer
  5373. for _, v in pairs(insrt63:GetChildren()) do
  5374. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5375. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5376. end
  5377. end
  5378. local insrt64 = game:GetService("InsertService"):LoadAsset(61459678)--nekotikozphaser
  5379. for _, v in pairs(insrt64:GetChildren()) do
  5380. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5381. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5382. end
  5383. end
  5384. local insrt65 = game:GetService("InsertService"):LoadAsset(64220933)--ghostfiresword
  5385. for _, v in pairs(insrt65:GetChildren()) do
  5386. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5387. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5388. end
  5389. end
  5390. local insrt66 = game:GetService("InsertService"):LoadAsset(64869947)--ninjabomb
  5391. for _, v in pairs(insrt66:GetChildren()) do
  5392. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5393. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5394. end
  5395. end
  5396. local insrt67 = game:GetService("InsertService"):LoadAsset(14516975)--superdisruptor
  5397. for _, v in pairs(insrt67:GetChildren()) do
  5398. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5399. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5400. end
  5401. end
  5402. local insrt68 = game:GetService("InsertService"):LoadAsset(18268645)--disintergrexgun
  5403. for _, v in pairs(insrt68:GetChildren()) do
  5404. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5405. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5406. end
  5407. end
  5408. local insrt69 = game:GetService("InsertService"):LoadAsset(18462637)--windstaff
  5409. for _, v in pairs(insrt69:GetChildren()) do
  5410. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5411. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5412. end
  5413. end
  5414. local insrt70 = game:GetService("InsertService"):LoadAsset(13838639)--atomicdisintegrator
  5415. for _, v in pairs(insrt70:GetChildren()) do
  5416. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5417. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5418. end
  5419. end
  5420. local insrt71 = game:GetService("InsertService"):LoadAsset(33867016)--handcannon
  5421. for _, v in pairs(insrt71:GetChildren()) do
  5422. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5423. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5424. end
  5425. end
  5426. local insrt72 = game:GetService("InsertService"):LoadAsset(33879504)--flamethrower2
  5427. for _, v in pairs(insrt72:GetChildren()) do
  5428. v.Name='FlameThrower2'
  5429. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5430. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5431. end
  5432. end
  5433. local insrt73 = game:GetService("InsertService"):LoadAsset(35366155)--hypnocannon
  5434. for _, v in pairs(insrt73:GetChildren()) do
  5435. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5436. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5437. end
  5438. end
  5439. local insrt74 = game:GetService("InsertService"):LoadAsset(28275809)--scythe
  5440. for _, v in pairs(insrt74:GetChildren()) do
  5441. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5442. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5443. end
  5444. end
  5445. local insrt75 = game:GetService("InsertService"):LoadAsset(31839203)--rcformula
  5446. for _, v in pairs(insrt75:GetChildren()) do
  5447. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5448. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5449. end
  5450. end
  5451. local insrt76 = game:GetService("InsertService"):LoadAsset(11373617)--woodlandsstaff
  5452. for _, v in pairs(insrt76:GetChildren()) do
  5453. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5454. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5455. end
  5456. end
  5457. local insrt77 = game:GetService("InsertService"):LoadAsset(22969230)--emraldscatterblaster
  5458. for _, v in pairs(insrt77:GetChildren()) do
  5459. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5460. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5461. end
  5462. end
  5463. local insrt78 = game:GetService("InsertService"):LoadAsset(21420014)--scatterblaster
  5464. for _, v in pairs(insrt78:GetChildren()) do
  5465. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5466. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5467. end
  5468. end
  5469. local insrt79 = game:GetService("InsertService"):LoadAsset(36913601)--broom
  5470. for _, v in pairs(insrt79:GetChildren()) do
  5471. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5472. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5473. end
  5474. end
  5475. local insrt80 = game:GetService("InsertService"):LoadAsset(48847374)--positronicarmcannon
  5476. for _, v in pairs(insrt80:GetChildren()) do
  5477. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5478. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5479. end
  5480. end
  5481. local insrt81 = game:GetService("InsertService"):LoadAsset(71422327)--frosthammer
  5482. for _, v in pairs(insrt81:GetChildren()) do
  5483. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5484. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5485. end
  5486. end
  5487. local insrt82 = game:GetService("InsertService"):LoadAsset(69947367)--dualaxe
  5488. for _, v in pairs(insrt82:GetChildren()) do
  5489. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5490. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5491. end
  5492. end
  5493. local insrt83 = game:GetService("InsertService"):LoadAsset(33382711)--gloomystaff
  5494. for _, v in pairs(insrt83:GetChildren()) do
  5495. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5496. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5497. end
  5498. end
  5499. local insrt84 = game:GetService("InsertService"):LoadAsset(11719016)--blowdryer
  5500. for _, v in pairs(insrt84:GetChildren()) do
  5501. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5502. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5503. end
  5504. end
  5505. local insrt85 = game:GetService("InsertService"):LoadAsset(12902404)--tnt
  5506. for _, v in pairs(insrt85:GetChildren()) do
  5507. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5508. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5509. end
  5510. end
  5511. local insrt86 = game:GetService("InsertService"):LoadAsset(65469882)--fist
  5512. for _, v in pairs(insrt86:GetChildren()) do
  5513. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5514. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5515. end
  5516. end
  5517. local insrt87 = game:GetService("InsertService"):LoadAsset(65469908)--scullcracker
  5518. for _, v in pairs(insrt87:GetChildren()) do
  5519. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5520. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5521. end
  5522. end
  5523. local insrt88 = game:GetService("InsertService"):LoadAsset(33383241)--remotemine
  5524. for _, v in pairs(insrt88:GetChildren()) do
  5525. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5526. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5527. end
  5528. end
  5529. local insrt89 = game:GetService("InsertService"):LoadAsset(32353654)--moonwalkdance
  5530. for _, v in pairs(insrt89:GetChildren()) do
  5531. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5532. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5533. end
  5534. end
  5535. local insrt90 = game:GetService("InsertService"):LoadAsset(32355966)--winsomewand
  5536. for _, v in pairs(insrt90:GetChildren()) do
  5537. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5538. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5539. end
  5540. end
  5541. local insrt91 = game:GetService("InsertService"):LoadAsset(35293856)--atomizer
  5542. for _, v in pairs(insrt91:GetChildren()) do
  5543. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5544. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5545. end
  5546. end
  5547. local insrt92 = game:GetService("InsertService"):LoadAsset(50938773)--taserblade
  5548. for _, v in pairs(insrt92:GetChildren()) do
  5549. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5550. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5551. end
  5552. end
  5553. local insrt93 = game:GetService("InsertService"):LoadAsset(32858662)--icestaff
  5554. for _, v in pairs(insrt93:GetChildren()) do
  5555. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5556. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5557. end
  5558. end
  5559. local insrt94 = game:GetService("InsertService"):LoadAsset(16469499)--highphaser
  5560. for _, v in pairs(insrt94:GetChildren()) do
  5561. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5562. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5563. end
  5564. end
  5565. local insrt95 = game:GetService("InsertService"):LoadAsset(47871646)--tornade
  5566. for _, v in pairs(insrt95:GetChildren()) do
  5567. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5568. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5569. end
  5570. end
  5571. local insrt96 = game:GetService("InsertService"):LoadAsset(35366215)--roboarm
  5572. for _, v in pairs(insrt96:GetChildren()) do
  5573. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5574. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5575. end
  5576. end
  5577. local insrt97 = game:GetService("InsertService"):LoadAsset(64160547)--hoverboard
  5578. for _, v in pairs(insrt97:GetChildren()) do
  5579. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5580. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5581. end
  5582. end
  5583. local insrt98 = game:GetService("InsertService"):LoadAsset(54694334)--vilethorn
  5584. for _, v in pairs(insrt98:GetChildren()) do
  5585. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5586. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5587. end
  5588. end
  5589. local insrt99 = game:GetService("InsertService"):LoadAsset(69210321)--darkstaff
  5590. for _, v in pairs(insrt99:GetChildren()) do
  5591. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5592. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5593. end
  5594. end
  5595. local insrt100 = game:GetService("InsertService"):LoadAsset(62827121)--evilwand
  5596. for _, v in pairs(insrt100:GetChildren()) do
  5597. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5598. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5599. end
  5600. end
  5601. local insrt101 = game:GetService("InsertService"):LoadAsset(18010691)--awestar
  5602. for _, v in pairs(insrt101:GetChildren()) do
  5603. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5604. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5605. end
  5606. end
  5607. local insrt102 = game:GetService("InsertService"):LoadAsset(51302649)--swordandshield
  5608. for _, v in pairs(insrt102:GetChildren()) do
  5609. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5610. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5611. end
  5612. end
  5613. local insrt103 = game:GetService("InsertService"):LoadAsset(10760425)--sparkstaff
  5614. for _, v in pairs(insrt103:GetChildren()) do
  5615. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5616. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5617. end
  5618. end
  5619. local insrt104 = game:GetService("InsertService"):LoadAsset(73799348)--undoingaxe
  5620. for _, v in pairs(insrt104:GetChildren()) do
  5621. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5622. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5623. end
  5624. end
  5625. local insrt105 = game:GetService("InsertService"):LoadAsset(73232786)--dragonstaff
  5626. for _, v in pairs(insrt105:GetChildren()) do
  5627. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5628. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5629. end
  5630. end
  5631. local insrt106 = game:GetService("InsertService"):LoadAsset(73232825)--screeshpotion
  5632. for _, v in pairs(insrt106:GetChildren()) do
  5633. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5634. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5635. end
  5636. end
  5637. local insrt107 = game:GetService("InsertService"):LoadAsset(73265108)--dualcannon
  5638. for _, v in pairs(insrt107:GetChildren()) do
  5639. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5640. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5641. end
  5642. end
  5643. local insrt108 = game:GetService("InsertService"):LoadAsset(74385438)--gravitron
  5644. for _, v in pairs(insrt108:GetChildren()) do
  5645. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5646. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5647. end
  5648. end
  5649. local insrt109 = game:GetService("InsertService"):LoadAsset(74385386)--razevenge
  5650. for _, v in pairs(insrt109:GetChildren()) do
  5651. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5652. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5653. end
  5654. end
  5655. local insrt110 = game:GetService("InsertService"):LoadAsset(74385418)--glorylauncher
  5656. for _, v in pairs(insrt110:GetChildren()) do
  5657. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5658. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5659. end
  5660. end
  5661. local insrt111 = game:GetService("InsertService"):LoadAsset(73888479)--spikesplosion
  5662. for _, v in pairs(insrt111:GetChildren()) do
  5663. if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
  5664. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  5665. end
  5666. end
  5667. end
  5668. )
  5669. NewCMD("FOLLOW ME","follow","Makes someone follow you",
  5670. function(msg)
  5671. local plrs = GetPlayers(msg)
  5672. for _, plr in pairs(plrs) do
  5673. if plr and plr.Backpack then
  5674. for i = 0,7,1 do
  5675. b = Instance.new("BodyPosition")
  5676. b.Parent = game.players[plr].Torso
  5677. b.maxForce = Vector3.new(600000000,6000000000,6000000000)
  5678. while true do
  5679. b.position = game.Players[plr.Name].Character.Torso.Position
  5680. wait()
  5681. end
  5682. end
  5683. end
  5684. end
  5685. end
  5686. )
  5687. NewCMD("clone","Clone","Clones a player",
  5688. function(msg)
  5689. local plrs = GetPlayers(msg)
  5690. for _, plr in pairs(plrs) do
  5691. if plr then
  5692. if plr and plr.Character then
  5693. plr.Character.Archivable = true
  5694. local cl = plr.Character:Clone()
  5695. table.insert(objects,cl)
  5696. cl.Parent = game.Workspace
  5697. cl:MoveTo(v.Character:GetModelCFrame().p)
  5698. cl:MakeJoints()
  5699. v.Character.Archivable = false
  5700. end
  5701. end
  5702. end
  5703. end
  5704. )
  5705. NewCMD("Remove","cremove","Remove the script",
  5706. function()
  5707. for i = 0,50,1 do
  5708. pcall(function()
  5709. for j,k in pairs(getfenv(i)) do
  5710. getfenv(i)[j] = nil
  5711. end
  5712. end)
  5713. end
  5714. end
  5715. )
  5716. NewCMD("Control","control","Control a player",
  5717. function(msg)
  5718. local plrs = GetPlayers(msg)
  5719. for _, plr in pairs(plrs) do
  5720. if plr then
  5721. if plr and plr.Character then
  5722. plr.Character.Humanoid.PlatformStand = true
  5723. local w = Instance.new("Weld", plr.Character.Torso )
  5724. w.Part0 = plr.Character.Torso
  5725. w.Part1 = v.Character.Torso
  5726. local w2 = Instance.new("Weld", plr.Character.Head)
  5727. w2.Part0 = plr.Character.Head
  5728. w2.Part1 = v.Character.Head
  5729. local w3 = Instance.new("Weld", plr.Character:findFirstChild("Right Arm"))
  5730. w3.Part0 = plr.Character:findFirstChild("Right Arm")
  5731. w3.Part1 = v.Character:findFirstChild("Right Arm")
  5732. local w4 = Instance.new("Weld", plr.Character:findFirstChild("Left Arm"))
  5733. w4.Part0 = plr.Character:findFirstChild("Left Arm")
  5734. w4.Part1 = v.Character:findFirstChild("Left Arm")
  5735. local w5 = Instance.new("Weld", plr.Character:findFirstChild("Right Leg"))
  5736. w5.Part0 = plr.Character:findFirstChild("Right Leg")
  5737. w5.Part1 = v.Character:findFirstChild("Right Leg")
  5738. local w6 = Instance.new("Weld", plr.Character:findFirstChild("Left Leg"))
  5739. w6.Part0 = plr.Character:findFirstChild("Left Leg")
  5740. w6.Part1 = v.Character:findFirstChild("Left Leg")
  5741. plr.Character.Head.face:Destroy()
  5742. for i, p in pairs(v.Character:children()) do
  5743. if p:IsA("BasePart") then
  5744. p.CanCollide = false
  5745. for i, p in pairs(plr.Character:children()) do
  5746. if p:IsA("BasePart") then
  5747. p.Transparency = 1
  5748. elseif p:IsA("Hat") then
  5749. p:Destroy()
  5750. end
  5751. end
  5752. v.Character.Parent = plr.Character
  5753. v.Character.Humanoid.Changed:connect(function() v.Character.Humanoid.PlatformStand = true end)
  5754. end
  5755. end
  5756. end
  5757. end
  5758. end
  5759. end
  5760. )
  5761. NewCMD("Gold","goldify","make a player gold",
  5762. function(Plrs)
  5763. for _, plr in pairs(Plrs) do
  5764. if plr then
  5765. if plr and plr.Character and plr.Character:findFirstChild("Torso") then
  5766. if plr.Character:findFirstChild("Shirt") then plr.Character.Shirt.Parent = plr.Character.Torso end
  5767. if plr.Character:findFirstChild("Pants") then plr.Character.Pants.Parent = plr.Character.Torso end
  5768. for a, sc in pairs(plr.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
  5769. for a, prt in pairs(plr.Character:children()) do if prt:IsA("BasePart") and (prt.Name ~= "Head" or not prt.Parent:findFirstChild("NameTag", true)) then
  5770. prt.Transparency = 0 prt.Reflectance = .4 prt.BrickColor = BrickColor.new("Bright yellow")
  5771. elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = .4 prt.Head.BrickColor = BrickColor.new("Bright yellow")
  5772. end end
  5773. end
  5774. end
  5775. end
  5776. end
  5777. )
  5778. NewCMD("Fire", "fi", "Sets a player on fire",function(msg)
  5779. local plrs = GetPlayers(msg)
  5780. for _,plr in next,plrs do
  5781. local Nam = plr.Name
  5782. local F = Instance.new("Fire")
  5783. F.Parent = plr.Character.Torso
  5784. ChatBubble.Create("Given Fire to: "..plr.Name"!")
  5785. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Deep orange"), float_duration = 0.2})
  5786. end
  5787. end)
  5788.  
  5789. NewCMD("Sparkles", "spa", "Gives a player sparkles",function(msg)
  5790. local plrs = GetPlayers(msg)
  5791. for _,plr in next,plrs do
  5792. local F = Instance.new("Sparkles")
  5793. F.Parent = plr.Character.Torso
  5794. ChatBubble.Create("Given Sparkles")
  5795. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5796. end
  5797. end)
  5798.  
  5799. NewCMD("Admin", "admin", "Gives a player sparkles",function(msg)
  5800. local plrs = GetPlayers(msg)
  5801. for _,plr in next,plrs do
  5802. local Scrn = script.Name
  5803. local Scr = script.Parent[Scrn]:Clone()
  5804. Scr.Parent = game.Players[plr].Backpack
  5805.  
  5806. end
  5807. end)
  5808.  
  5809.  
  5810. NewCMD("ClearBackpack", "cback", "Clears a players backpack",function(msg)
  5811. local plrs = GetPlayers(msg)
  5812. for _,plr in next,plrs do
  5813. plr.Backpack:ClearAllChildren()
  5814. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5815. end
  5816. end)
  5817.  
  5818. NewCMD("Btools", "bto", "Gives a player building tools",function(msg)
  5819. local plrs = GetPlayers(msg)
  5820. for _,plr in next,plrs do
  5821. local x = game:GetService("InsertService"):LoadAsset(73089166) x.Parent = game.Players[plr.Name].Backpack
  5822. local x = game:GetService("InsertService"):LoadAsset(73089204) x.Parent = game.Players[plr.Name].Backpack
  5823. local x = game:GetService("InsertService"):LoadAsset(73089190) x.Parent = game.Players[plr.Name].Backpack
  5824. local x = game:GetService("InsertService"):LoadAsset(58880579) x.Parent = game.Players[plr.Name].Backpack
  5825. local x = game:GetService("InsertService"):LoadAsset(60791062) x.Parent = game.Players[plr.Name].Backpack
  5826. local x = game:GetService("InsertService"):LoadAsset(73089239) x.Parent = game.Players[plr.Name].Backpack
  5827. ChatBubble.Create("Given Btools")
  5828. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5829. end
  5830. end)
  5831.  
  5832. NewCMD("Knife", "kni", "Gives a player a knife",function(msg)
  5833. local plrs = GetPlayers(msg)
  5834. for _,plr in next,plrs do
  5835. ChatBubble.Create("Given Knife")
  5836. local x = game:GetService("InsertService"):LoadAsset(170897263) x.Parent = game.Players[plr.Name].Backpack
  5837. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5838. end
  5839. end)
  5840.  
  5841. NewCMD("Darksteel", "drks", "Gives a player the darksteel katana",function(msg)
  5842. local plrs = GetPlayers(msg)
  5843. for _,plr in next,plrs do
  5844. local x = game:GetService("InsertService"):LoadAsset(86494893) x.Parent = game.Players[plr.Name].Backpack
  5845. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5846. end
  5847. end)
  5848.  
  5849. NewCMD("Archer", "arch", "Gives a player ALOT of bows",function(msg)
  5850. local plrs = GetPlayers(msg)
  5851. for _,plr in next,plrs do
  5852. local x = game:GetService("InsertService"):LoadAsset(92142841) x.Parent = game.Players[plr.Name].Backpack
  5853. local x = game:GetService("InsertService"):LoadAsset(110892267) x.Parent = game.Players[plr.Name ].Backpack
  5854. local x = game:GetService("InsertService"):LoadAsset(160198008) x.Parent = game.Players[plr.Name].Backpack
  5855. local x = game:GetService("InsertService"):LoadAsset(204485737) x.Parent = game.Players[plr.Name].Backpack
  5856. local x = game:GetService("InsertService"):LoadAsset(223785350) x.Parent = game.Players[plr.Name].Backpack
  5857. local x = game:GetService("InsertService"):LoadAsset(287425246) x.Parent = game.Players[plr.Name].Backpack
  5858. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5859. end
  5860. end)
  5861.  
  5862. NewCMD("Swords", "swor", "Gives a player ALOT of swords",function(msg)
  5863. local plrs = GetPlayers(msg)
  5864. for _,plr in next,plrs do
  5865. local x = game:GetService("InsertService"):LoadAsset(159229806) x.Parent = game.Players[plr.Name].Backpack
  5866. local x = game:GetService("InsertService"):LoadAsset(101191388) x.Parent = game.Players[plr.Name].Backpack
  5867. local x = game:GetService("InsertService"):LoadAsset(77443491) x.Parent = game.Players[plr.Name].Backpack
  5868. local x = game:GetService("InsertService"):LoadAsset(77443461) x.Parent = game.Players[plr.Name].Backpack
  5869. local x = game:GetService("InsertService"):LoadAsset(108149175) x.Parent = game.Players[plr.Name].Backpack
  5870. local x = game:GetService("InsertService"):LoadAsset(53623248) x.Parent = game.Players[plr.Name].Backpack
  5871. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
  5872. end
  5873. end)
  5874.  
  5875.  
  5876.  
  5877. NewCMD("ForceField", "ff", "Gives a player a ForceField",function(msg)
  5878. local plrs = GetPlayers(msg)
  5879. for _,plr in next,plrs do
  5880. local F = Instance.new("ForceField")
  5881. F.Parent = plr.Character
  5882. ChatBubble.Create("Given FF!")
  5883. end
  5884. end)
  5885.  
  5886. NewCMD("Fix Chat","fixc","Fixes the chat",function()
  5887. ChatBubble.Create("Fixed Chat")
  5888. end)
  5889. NewCMD("RemoveFire", "rfia", "Removes fire from a player",function(msg)
  5890. local plrs = GetPlayers(msg)
  5891. for _,plr in next,plrs do
  5892. for _,Child in pairs(plr["Character"].Torso:GetChildren()) do
  5893. if Child:IsA("Fire") then
  5894. Child:Destroy()
  5895. end
  5896. end
  5897. end
  5898. end)
  5899.  
  5900. NewCMD("Stop Messages", "sm", "Clears all messages in the workspace",function()
  5901. for _,Child in pairs(game.Workspace:GetChildren()) do
  5902. if Child:IsA("Message") then
  5903. Child:Destroy()
  5904. end
  5905. end
  5906. end)
  5907.  
  5908. NewCMD("RemoveSparkles", "rsp", "Removes Sparkles From A Player",function(msg)
  5909. local plrs = GetPlayers(msg)
  5910. for _,plr in next,plrs do
  5911. for _,Child in pairs(plr["Character"].Torso:GetChildren()) do
  5912. if Child:IsA("Sparkles") then
  5913. Child:Destroy()
  5914. end
  5915. end
  5916. end
  5917. end)
  5918.  
  5919. NewCMD("RemoveForceField", "rff", "Removes ff from a player",function(msg)
  5920. local plrs = GetPlayers(msg)
  5921. for _,plr in next,plrs do
  5922. for _,Child in pairs(plr["Character"]:GetChildren()) do
  5923. if Child:IsA("ForceField") then
  5924. Child:Destroy()
  5925. end
  5926. end
  5927. end
  5928. end)
  5929.  
  5930. NewCMD("God", "go", "Makes a player god",function(msg)
  5931. local plrs = GetPlayers(msg)
  5932. for _,plr in next,plrs do
  5933. plr.Character.Humanoid.MaxHealth = math.huge
  5934. plr.Character.Humanoid.Health = math.huge
  5935. ChatBubble.Create("Goded Player!")
  5936.  
  5937. end
  5938. end)
  5939.  
  5940. NewCMD("Remove god", "rgo", "Remove god from a player",function(msg)
  5941. local plrs = GetPlayers(msg)
  5942. for _,plr in next,plrs do
  5943. plr.Character.Humanoid.MaxHealth = 100
  5944. plr.Character.Humanoid.Health = 100
  5945. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really red"), float_duration = 0.2})
  5946. end
  5947. end)
  5948.  
  5949.  
  5950.  
  5951.  
  5952. NewCMD("Playerinfo", "pin", "Shows a players information",function(msg)
  5953. local plrs = GetPlayers(msg)
  5954. for _,plr in next,plrs do
  5955. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Forest green"), float_duration = 0.2})
  5956. Tablet("Age: "..plr.AccountAge, Colors.Magenta)
  5957. Tablet("Membership: "..plr.MembershipType.Name, Colors.Magenta)
  5958. Tablet("Player: "..plr.Name, Colors.Magenta)
  5959. Tablet("Id: "..plr.userId, Colors.Magenta)
  5960. Tablet("Camera Mode: "..plr.CameraMode.Name, Colors.Magenta)
  5961. Tablet("This is "..plr.."'s info", Colors.Magenta)
  5962. ChatBubble.Create("Found info!")
  5963. end
  5964. end)
  5965.  
  5966. Services = {
  5967. game:GetService("Workspace"),
  5968. game:GetService("Players"),
  5969. game:GetService("Lighting"),
  5970. game:GetService("StarterPack"),
  5971. game:GetService("StarterGui"),
  5972. game:GetService("Teams"),
  5973. game:GetService("SoundService"),
  5974. game:GetService("Debris"),
  5975. game:GetService("InsertService"),
  5976. game:GetService("RunService"),
  5977. game:GetService("Chat"),
  5978. game:GetService("TeleportService"),
  5979. game:GetService("Geometry"),
  5980. game:GetService("MarketplaceService"),
  5981. game:GetService("BadgeService"),
  5982. game:GetService("FriendService"),
  5983. }
  5984. function Explore(Item)
  5985. Dismiss()
  5986. if(Item==nil)then
  5987. for _,v in pairs(Services)do
  5988. Tablet(tostring(v),Colors.Black,function() wait() Explore(v) end)
  5989. end;
  5990. else
  5991. f={
  5992. ['View children']=function()
  5993. Dismiss()
  5994. for _,v in pairs(Item:children())do
  5995. Tablet(v.Name,Colors.Black,function()
  5996. wait()
  5997. Explore(v)
  5998. end);
  5999. end;
  6000. end;
  6001. ['View parent']=function()
  6002. wait()
  6003. Explore(Item.Parent)
  6004. end;
  6005. ['Destroy']=function()
  6006. Item:Destroy();
  6007. Explore(Item.Parent);
  6008. end;
  6009. ['Clear']=function()
  6010. Item:ClearAllChildren()
  6011. end;
  6012. ['Clone']=function()
  6013. pcall(function()
  6014. cloneableObj = Item:clone()
  6015. end)
  6016. end;
  6017. ['Remove']=function()
  6018. Item:remove()
  6019. end;
  6020. ['Stop']=function()
  6021. Item:Stop()
  6022. end;
  6023. ['Play']=function()
  6024. Item:Play()
  6025. end;
  6026. ['Shiny']=function()
  6027. Item.Reflectance = 1
  6028. end;
  6029. ['Un-Shiny']=function()
  6030. Item.Reflectance = 0
  6031. end;
  6032. ['Transparent']=function()
  6033. Item.Transparency = 1
  6034. end;
  6035. ['Opaque']=function()
  6036. Item.Transparency = 0
  6037. end;
  6038. ['Paste']=function()
  6039. if cloneableObj then
  6040. cloneableObj.Parent = Item
  6041. end
  6042. end;
  6043. };
  6044. for i,v in pairs(f)do
  6045. Tablet(tostring(i),Colors.Red,v);
  6046. end;
  6047. Tablet('Item Name: \''..tostring(Item.Name)..'\'',Colors.Blue,nil);
  6048. Tablet('Class: \''..tostring(Item.ClassName)..'\'',Colors.Blue,nil);
  6049. if cloneableObj then
  6050. Tablet('Currently Cloning: \''..tostring(cloneableObj.Name)..'\'',Colors.Blue,nil);
  6051. end
  6052. end;
  6053. end;
  6054.  
  6055. function NewSong(SongId)
  6056. local M = Instance.new("Sound")
  6057. M.Parent = game.Workspace
  6058. M.SoundId = "http://www.roblox.com/asset/?id="..SongId
  6059. M.Volume = 0.8
  6060. M.Looped = true
  6061. M.Name = "Song"
  6062. if game.Workspace.Song then
  6063. M:remove()
  6064. else
  6065. M:Play()
  6066. end
  6067. end
  6068.  
  6069.  
  6070.  
  6071.  
  6072. function Music()
  6073. Dismiss()
  6074. Tablet("Hotline Bling- Drake", Colors.White,
  6075. NewSong("283801001"))
  6076. Tablet("Fireflies- Owl city", Colors.White,
  6077. NewSong("319059356"))
  6078. Tablet("Hello- Adele", Colors.White,
  6079. NewSong("rbxassetid://313694441"))
  6080. Tablet("DROP THE BASS", Colors.White,
  6081. NewSong("130777688"))
  6082. Tablet("21 Pilots Stressed Out", Colors.White,
  6083. NewSong("243372213"))
  6084. Tablet("MLG can can", Colors.White,
  6085. NewSong("177080835"))
  6086. Tablet("Stop Songs!",Colors.Red, StopSongs())
  6087. end
  6088.  
  6089. NewCMD("Music List","music","Shows the music list!",
  6090. function()
  6091. Music()
  6092. end
  6093. )
  6094.  
  6095. function StopSongs()
  6096. game.Song:remove()
  6097. Tablet("Stop Songs!",Colors.Red, StopSongs)
  6098. end
  6099.  
  6100.  
  6101.  
  6102. NewCMD("Explore","expl","Explore the game",
  6103. function()
  6104. Explore()
  6105. end
  6106. )
  6107.  
  6108.  
  6109.  
  6110.  
  6111.  
  6112.  
  6113.  
  6114.  
  6115. NewCMD("Doge", "doge", "Dogeify's the player", function(msg)
  6116. local plrs = GetPlayers(msg)
  6117. for _,plr in next,plrs do
  6118. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really red"), float_duration = 0.2})
  6119. local function QuaternionFromCFrame(cf)
  6120. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6121. local trace = m00 + m11 + m22
  6122. if trace > 0 then
  6123. local s = math.sqrt(1 + trace)
  6124. local recip = 0.5/s
  6125. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  6126. else
  6127. local i = 0
  6128. if m11 > m00 then
  6129. i = 1
  6130. end
  6131. if m22 > (i == 0 and m00 or m11) then
  6132. i = 2
  6133. end
  6134. if i == 0 then
  6135. local s = math.sqrt(m00-m11-m22+1)
  6136. local recip = 0.5/s
  6137. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  6138. elseif i == 1 then
  6139. local s = math.sqrt(m11-m22-m00+1)
  6140. local recip = 0.5/s
  6141. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  6142. elseif i == 2 then
  6143. local s = math.sqrt(m22-m00-m11+1)
  6144. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  6145. end
  6146. end
  6147. end
  6148. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  6149. local xs, ys, zs = x + x, y + y, z + z
  6150. local wx, wy, wz = w*xs, w*ys, w*zs
  6151. local xx = x*xs
  6152. local xy = x*ys
  6153. local xz = x*zs
  6154. local yy = y*ys
  6155. local yz = y*zs
  6156. local zz = z*zs
  6157. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  6158. end
  6159. local function QuaternionSlerp(a, b, t)
  6160. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  6161. local startInterp, finishInterp;
  6162. if cosTheta >= 0.0001 then
  6163. if (1 - cosTheta) > 0.0001 then
  6164. local theta = math.acos(cosTheta)
  6165. local invSinTheta = 1/math.sin(theta)
  6166. startInterp = math.sin((1-t)*theta)*invSinTheta
  6167. finishInterp = math.sin(t*theta)*invSinTheta
  6168. else
  6169. startInterp = 1-t
  6170. finishInterp = t
  6171. end
  6172. else
  6173. if (1+cosTheta) > 0.0001 then
  6174. local theta = math.acos(-cosTheta)
  6175. local invSinTheta = 1/math.sin(theta)
  6176. startInterp = math.sin((t-1)*theta)*invSinTheta
  6177. finishInterp = math.sin(t*theta)*invSinTheta
  6178. else
  6179. startInterp = t-1
  6180. finishInterp = t
  6181. end
  6182. end
  6183. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  6184. end
  6185. function clerp(a,b,t)
  6186. local qa = {QuaternionFromCFrame(a)}
  6187. local qb = {QuaternionFromCFrame(b)}
  6188. local ax, ay, az = a.x, a.y, a.z
  6189. local bx, by, bz = b.x, b.y, b.z
  6190. local _t = 1-t
  6191. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  6192. end
  6193.  
  6194. do --the animating
  6195.  
  6196. char = plr.Character
  6197. mouse = plr:GetMouse()
  6198. humanoid = char:findFirstChild("Humanoid")
  6199. torso = char:findFirstChild("Torso")
  6200. head = char.Head
  6201. ra = char:findFirstChild("Right Arm")
  6202. la = char:findFirstChild("Left Arm")
  6203. rl = char:findFirstChild("Right Leg")
  6204. ll = char:findFirstChild("Left Leg")
  6205. rs = torso:findFirstChild("Right Shoulder")
  6206. ls = torso:findFirstChild("Left Shoulder")
  6207. rh = torso:findFirstChild("Right Hip")
  6208. lh = torso:findFirstChild("Left Hip")
  6209. neck = torso:findFirstChild("Neck")
  6210. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  6211. anim = char:findFirstChild("Animate")
  6212. rootpart = char:findFirstChild("HumanoidRootPart")
  6213. camera = workspace.CurrentCamera
  6214. if anim then
  6215. anim:Destroy()
  6216. end
  6217.  
  6218.  
  6219. local rm = Instance.new("Motor", torso)
  6220. rm.C0 = CFrame.new(1.5, 0.5, 0)
  6221. rm.C1 = CFrame.new(0, 0.5, 0)
  6222. rm.Part0 = torso
  6223. rm.Part1 = ra
  6224. local lm = Instance.new("Motor", torso)
  6225. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  6226. lm.C1 = CFrame.new(0, 0.5, 0)
  6227. lm.Part0 = torso
  6228. lm.Part1 = la
  6229.  
  6230. local rlegm = Instance.new("Motor", torso)
  6231. rlegm.C0 = CFrame.new(0.5, -1, 0)
  6232. rlegm.C1 = CFrame.new(0, 1, 0)
  6233. rlegm.Part0 = torso
  6234. rlegm.Part1 = rl
  6235. local llegm = Instance.new("Motor", torso)
  6236. llegm.C0 = CFrame.new(-0.5, -1, 0)
  6237. llegm.C1 = CFrame.new(0, 1, 0)
  6238. llegm.Part0 = torso
  6239. llegm.Part1 = ll
  6240.  
  6241. neck.C0 = CFrame.new(0, 1, 0)
  6242. neck.C1 = CFrame.new(0, -0.5, 0)
  6243.  
  6244.  
  6245. rj.C0 = CFrame.new()
  6246. rj.C1 = CFrame.new()
  6247.  
  6248.  
  6249. local sound = Instance.new("Sound", head)
  6250. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  6251. sound.Volume = 0.8
  6252. sound.Looped = true
  6253.  
  6254. for i,v in pairs(char:children()) do
  6255. if v:IsA("Hat") then
  6256. v:Destroy()
  6257. end
  6258. end
  6259.  
  6260.  
  6261. --look of the fox here
  6262. game:service'InsertService':LoadAsset(151784320):children()[1].Parent = char
  6263. Instance.new("PointLight", head).Range = 10
  6264.  
  6265.  
  6266.  
  6267.  
  6268. local speed = 0.3
  6269. local angle = 0
  6270. local sitting = false
  6271. local humanwalk = false
  6272. local anglespeed = 1
  6273. rsc0 = rm.C0
  6274. lsc0 = lm.C0
  6275. llc0 = llegm.C0
  6276. rlc0 = rlegm.C0
  6277. neckc0 = neck.C0
  6278.  
  6279. local controllerService = game:GetService("ControllerService")
  6280. local controller = controllerService:GetChildren()[1]
  6281.  
  6282. controller.Parent = nil
  6283.  
  6284. Instance.new("HumanoidController", game:service'ControllerService')
  6285. Instance.new("SkateboardController", game:service'ControllerService')
  6286. Instance.new("VehicleController", game:service'ControllerService')
  6287. local controller = controllerService:GetChildren()[1]
  6288. mouse.KeyDown:connect(function(k)
  6289. if k == "q" then
  6290. humanwalk = not humanwalk
  6291. end
  6292. if k == "z" then
  6293. if not sound.IsPlaying then
  6294. sound:stop()
  6295. sound.SoundId = "http://www.roblox.com/asset/?id=130802245"
  6296. wait()
  6297. sound:play()
  6298. end
  6299. end
  6300. if k == "x" then
  6301. if not sound.IsPlaying then
  6302. sound:stop()
  6303. sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
  6304. wait()
  6305. sound:play()
  6306. end
  6307. end
  6308. if k == "c" then
  6309. if not sound.IsPlaying then
  6310. sound:stop()
  6311. sound.SoundId = "http://www.roblox.com/asset/?id=149713968"
  6312. wait()
  6313. sound:play()
  6314. end
  6315. end
  6316. if string.byte(k) == 48 then
  6317. humanoid.WalkSpeed = 34
  6318. end
  6319.  
  6320. end)
  6321. mouse.KeyUp:connect(function(k)
  6322.  
  6323. if string.byte(k) == 48 then
  6324. humanoid.WalkSpeed = 16
  6325. end
  6326.  
  6327. end)
  6328.  
  6329.  
  6330.  
  6331. while wait() do
  6332. angle = (angle % 100) + anglespeed/10
  6333. mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  6334. local rscf = rsc0
  6335. local lscf = lsc0
  6336. local rlcf = rlc0
  6337. local llcf = llc0
  6338. local rjcf = CFrame.new()
  6339. local ncf = neckc0
  6340. local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
  6341. local hitz, enz = workspace:findPartOnRay(rayz, char)
  6342. if not hitz then
  6343. if sound.IsPlaying then
  6344. sound:stop()
  6345. end
  6346.  
  6347. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  6348.  
  6349. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
  6350. rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
  6351. rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
  6352. lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
  6353. rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
  6354. llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
  6355.  
  6356. else
  6357.  
  6358. ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
  6359. rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
  6360. rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
  6361. lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
  6362. rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
  6363. llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  6364.  
  6365. end
  6366. elseif humanoid.Sit then
  6367. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  6368. anglespeed = 6
  6369. ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
  6370. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  6371. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  6372. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  6373. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  6374. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  6375. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
  6376. anglespeed = 4
  6377. ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
  6378. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
  6379. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  6380. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  6381. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  6382. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  6383. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  6384. anglespeed = 2
  6385. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  6386. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  6387. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  6388. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  6389. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  6390. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  6391. else
  6392. anglespeed = 1/2
  6393. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  6394. rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  6395. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  6396. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  6397. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  6398. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  6399. end
  6400. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  6401. if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
  6402. anglespeed = 6
  6403. ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
  6404. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
  6405. rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  6406. lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
  6407. rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
  6408. llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
  6409. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
  6410. anglespeed = 2
  6411. ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
  6412. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
  6413. rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  6414. lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
  6415. rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
  6416. llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
  6417. elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
  6418. anglespeed = 3
  6419. ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
  6420. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  6421. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
  6422. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
  6423. rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
  6424. llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
  6425. else
  6426. if humanwalk then
  6427. anglespeed = 1/4
  6428. ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
  6429. rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
  6430. rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
  6431. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
  6432. rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
  6433. llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
  6434. else
  6435. anglespeed = 1/2
  6436. ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
  6437. rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
  6438. rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
  6439. lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
  6440. rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
  6441. llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
  6442. end
  6443. end
  6444. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
  6445. if sound.IsPlaying then
  6446. sound:stop()
  6447. end
  6448. if humanwalk then
  6449. anglespeed = 4
  6450. ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
  6451. rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
  6452. rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
  6453. lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
  6454. rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
  6455. llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
  6456. else
  6457. anglespeed = 4
  6458. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
  6459. rjcf = CFrame.new(0, -1.5+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9, math.sin(mvmnt/2)*0.05, 0)
  6460. rscf = rsc0 * CFrame.new(-.45, 0.2, -.4+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(angle)*0.7, 0, math.rad(5))
  6461. lscf = lsc0 * CFrame.new(.45, 0.2, .1-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2+math.sin(-angle)*0.7, 0, -math.rad(5))
  6462. rlcf = rlc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*0.6, 0, math.abs(mvmnt)*0.025)
  6463. llcf = llc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(angle)*.6, 0, -math.abs(mvmnt)*0.025)
  6464. end
  6465. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  6466. if sound.IsPlaying then
  6467. sound:stop()
  6468. end
  6469. if humanwalk then
  6470. anglespeed = 5
  6471. ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
  6472. rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
  6473. rscf = rsc0 * CFrame.new(0, 0, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(angle)*1.5, 0, -math.abs(mvmnt)*0.02)
  6474. lscf = lsc0 * CFrame.new(0, 0, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/18+math.sin(-angle)*1.5, 0, math.abs(mvmnt)*0.02)
  6475. rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
  6476. llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
  6477. else
  6478. anglespeed = 5.5
  6479. ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
  6480. rjcf = CFrame.new(0, -1.3+math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/1.9+math.abs(mvmnt/2)*0.1, 0, 0)
  6481. rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
  6482. lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
  6483. rlcf = rlc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, -.3+math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, math.abs(mvmnt)*0.025)
  6484. llcf = llc0 * CFrame.new(0, .3-math.abs(mvmnt)*0.125, .3-math.abs(mvmnt)*0.125) * CFrame.Angles(math.pi/2.5+math.sin(-angle)*1.4, 0, -math.abs(mvmnt)*0.025)
  6485. end
  6486. end
  6487.  
  6488. rm.C0 = clerp(rm.C0,rscf,speed)
  6489. lm.C0 = clerp(lm.C0,lscf,speed)
  6490. rj.C0 = clerp(rj.C0,rjcf,speed)
  6491. neck.C0 = clerp(neck.C0,ncf,speed)
  6492. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  6493. llegm.C0 = clerp(llegm.C0,llcf,speed)
  6494. end
  6495.  
  6496.  
  6497. end
  6498. end
  6499. end)
  6500. NewCMD("LoopKill", "lk", "LoopKills the player", function(msg)
  6501. local plrs = GetPlayers(msg)
  6502. for _,plr in next,plrs do
  6503. while true do
  6504. wait(1)
  6505. plr.Character:BreakJoints()
  6506. end
  6507. end
  6508. end)
  6509.  
  6510.  
  6511. NewCMD("Useless Cmd", "uc", "The most useless cmd ever made", function(msg)
  6512. Tablet("We are sorry, but this command is useless. Please try again.", Colors.Magenta)
  6513. end)
  6514. NewCMD("Cr".."edits ", "cr".."edit", "Cre".."dits", function(msg)
  6515. Tablet("C".."redits", Colors.Green)
  6516. Tablet("Mad".."e By P".."oin".."tCoded and ng".."uye".."njimbo", Colors.White)
  6517. Tablet("Mad".."e By P".."oin".."tCoded and ng".."uye".."njimbo", Colors.White)
  6518. Tablet("Mad".."e By P".."oin".."tCoded and ng".."uye".."njimbo", Colors.Black)
  6519. Tablet("Cre".."dits a".."lso t".."oo pl".."uton".."ium cr".."eators <3", Colors.Black)
  6520.  
  6521. end)
  6522. NewCMD("Heal", "hl", "heals player",function(msg)
  6523.  
  6524. local plrs = GetPlayers(msg)
  6525. for _,plr in next,plrs do
  6526. plr.Character.Health = 100
  6527. end
  6528. end)
  6529.  
  6530.  
  6531.  
  6532.  
  6533. NewCMD("Server Shutdown", "Shutdown", "Shutdown a server", function(msg)
  6534. local M = Instance.new("Message")
  6535. ChatBubble.Create("SHUTTING DOWN SERVER","LIBERATION")
  6536. wait(1)
  6537. M.Parent = game.Workspace
  6538. M.Text = "This Server has shutdown for: "..msg
  6539. wait(0.1)
  6540. game.Lighting:ClearAllChildren()
  6541. game.Players:ClearAllChildren()
  6542. end)
  6543.  
  6544.  
  6545.  
  6546. NewCMD("Show commands","cmds", "Shows the commands",
  6547. function()
  6548. for i,v in pairs(CMDS) do
  6549. Tablet(v['Name'],Colors.Black,function()
  6550. Dismiss()
  6551. Tablet("Viewing".." : "..v['Name'])--wait u got so many I just want to access func
  6552. Tablet("Usage".." : "..v['Usage'])
  6553. Tablet("Description".." : "..v['Description'])
  6554. end)
  6555. end
  6556. end
  6557. )
  6558. NewCMD("Visible Tabs","vis:on", "Makes the tabs visible to others",
  6559. function()
  6560. TabsInWorkspace = true
  6561. end)
  6562. NewCMD("Invisible Tabs","vis:off", "Makes the tabs invisible to others",
  6563. function()
  6564. TabsInWorkspace = false
  6565. end)
  6566.  
  6567. NewCMD("Disconnect", "disc", "Disconnects the player",function(msg)
  6568. local plrs = GetPlayers(msg)
  6569. for _,plr in next,plrs do
  6570. plr:Remove()
  6571.  
  6572. end
  6573. end)
  6574. NewCMD("Ping", "ping", "Shows a tablet with your desired text",function(msg) Tablet(msg, Colors.Green) end)
  6575. NewCMD("Dismiss", "dt", "Dismisses all your tablets",function(msg) Dismiss() end)
  6576. NewCMD("Respawn", "rs", "Respawns the given player",function(msg)
  6577. local plrs = msg
  6578. for _,plr in next,plrs do
  6579. if RF ~= nil then
  6580. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("New Yeller"), fade_out_color = BrickColor.new("Instituational White"),float_duration = 0.2})
  6581. game.Players["plr.Name"]:loadCharacter()
  6582. else
  6583. Tablet("Could not find Attachment", Colors.Red)
  6584. end
  6585. end
  6586. game.Workspace:FindFirstChild(msg):LoadCharacter()
  6587. end)
  6588.  
  6589.  
  6590. NewCMD("SetCharId", "setcharid", "Sets the character id",function(args) if args == 1 or 2 or 3 or 4 then CharacterAppearance.defaultAppearanceId = tonumber(args) end end)
  6591. NewCMD("Set Name", "setname", "Sets the player's name",function(args) user_name = args end)
  6592.  
  6593. NewCMD("Switch SB", "sb", "Switches SB",function(msg)
  6594. if msg == "nex" then
  6595. Workspace.Parent:service'TeleportService':Teleport(178350907)
  6596. elseif msg == "rj" then
  6597. Workspace.Parent:service'TeleportService':Teleport(game.PlaceId)
  6598. elseif msg == "mas" then
  6599. Workspace.Parent:service'TeleportService':Teleport(210101277)
  6600. end
  6601. end)
  6602.  
  6603. NewCMD("Nil", "nil", "Enables or disables nil Player",function(msg)
  6604. game.Players.LocalPlayer:remove()
  6605. if characterMode == "normal" then
  6606. characterMode = "pyramid"
  6607. Player.Character = nil;
  6608. NilCharacter.Teleport(Workspace.CurrentCamera.Focus.p)
  6609. NilCharacter.visible = true
  6610. PlayerControl.SetEnabled(false)
  6611. else
  6612. characterMode = "normal"
  6613. NilCharacter.visible = false
  6614. PlayerControl.SetEnabled(true)
  6615. end
  6616. end)
  6617.  
  6618. NewCMD("CountCmds", "ccmds", "Counts the commands",function()
  6619. Tablet("There is 64 Commands", Colors.Toothpaste)
  6620. end)
  6621.  
  6622.  
  6623.  
  6624. NewCMD("Reset Controls", "resetc", "Resets chat",function()
  6625. if Player.Parent ~= game.Players then
  6626. Player.Character = PlayerControl.GetCharacter()
  6627. Camera.CameraSubject = PlayerControl.GetHumanoid()
  6628. chatAdornee = PlayerControl.GetHead()
  6629. else
  6630. chatAdornee = Player.Character.Head
  6631. end
  6632. end)
  6633.  
  6634. NewCMD("Joint Crap", "jc", "Messes up the player's character",function(msg)
  6635. local plrs = GetPlayers(msg)
  6636. for _,plr in next,plrs do
  6637. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("New Yeller"), float_duration = 0.2})
  6638. GraphicalEffects.JointCrap(plr.Character)
  6639. end
  6640. end)
  6641.  
  6642. developer = "false"
  6643. if Player.Name == "nguyenjimbo" or "YourTrueEnd" or "Player" then
  6644. developer = "true"
  6645. end
  6646. function onChatted(Message)
  6647. if string.sub(Message,1,3) == "/e " then Message = string.sub(Message,4) end
  6648. pcall(function()
  6649. for i,v in pairs(CMDS) do
  6650. local tosay = "/"..v['Usage']:lower()
  6651. if Message:sub(1,tosay:len()):lower() == tosay:lower() then
  6652. local Run,Error = ypcall(function()
  6653. v.Function(Message:sub(tosay:len()+2))
  6654. end)
  6655. if Error then
  6656. print("[Error]: "..tostring(Error))
  6657. end
  6658. end
  6659. end
  6660. end)
  6661. end
  6662.  
  6663.  
  6664. Colors = {
  6665. Red = Color3.new(1,0,0);
  6666. Orange = Color3.new(1,0.5,0);
  6667. Yellow = Color3.new(1,1,0);
  6668. Olive = Color3.new(0.5,1,0);
  6669. Lime = Color3.new(0,1,0);
  6670. Green = Color3.new(0,0.5,0);
  6671. BlueishGreen = Color3.new(0,1,0.5);
  6672. Aqua = Color3.new(0,1,1);
  6673. SoftBlue = Color3.new(0,0.5,1);
  6674. Blue = Color3.new(0,0,1);
  6675. Purple = Color3.new(0.5,0,1);
  6676. Magenta = Color3.new(0.75,0,0.75);
  6677. Pink = Color3.new(1,0,1);
  6678. White = Color3.new(1,1,1);
  6679. Grey = Color3.new(0.5,0.5,0.5);
  6680. Black = Color3.new(0,0,0);
  6681. };
  6682.  
  6683. function Dismiss()
  6684. for _=1,100 do
  6685. pcall(function()
  6686. for i,v in pairs(Tablets) do
  6687. pcall(function() v.Part:Destroy() end)
  6688. pcall(function() Tablets[i] = nil end)
  6689. end
  6690. end)
  6691. end
  6692. end
  6693.  
  6694. Tablets = {};
  6695. function Tablet(Text, Color, onClicked,onTouched,staytime)
  6696. --[[pcall(function() local a = Color.r if type(a) == "number" then Color = a end end)
  6697. pcall(function() local a = BrickColor.new(Color) if a then Color = a.Color end end)]]
  6698. if not pcall(function() local a = Color.r if type(a) ~= "number" then error() end end) then
  6699. Color = Colors.White
  6700. end
  6701. Color = BrickColor.new(Color).Color -- 2much colors c:
  6702. if Player.Character.Torso == nil then
  6703. return
  6704. end
  6705. local Insert = {}
  6706. local tab = Instance.new("Part")
  6707. if TabsInWorkspace == false then
  6708. tab.Parent = game.Workspace.CurrentCamera
  6709. else
  6710. tab.Parent = game.Workspace.Terrain
  6711. end
  6712. local light = Instance.new("PointLight", tab)
  6713. light.Enabled = true
  6714. light.Range = 15
  6715. tab.Name = tostring(math.random(-99999,99999))
  6716. tab.TopSurface = Enum.SurfaceType.Smooth
  6717. tab.LeftSurface = Enum.SurfaceType.Smooth
  6718. tab.RightSurface = Enum.SurfaceType.Smooth
  6719. tab.FrontSurface = Enum.SurfaceType.Smooth
  6720. tab.BackSurface = Enum.SurfaceType.Smooth
  6721. tab.BottomSurface = Enum.SurfaceType.Smooth
  6722. tab.FormFactor = "Custom"
  6723. tab.Size = Vector3.new(1.4, 1.6, 1.4)
  6724. tab.Anchored = true
  6725. tab.Locked = true
  6726. tab.CanCollide = false
  6727. tab.Material = "Neon"
  6728. tab.Transparency = 0
  6729. --[[local M = Instance.new("SpecialMesh")
  6730. M.Parent = LOL
  6731. M.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  6732. M.TextureId = "http://www.roblox.com/asset/?id=52444910"
  6733. M.Scale = Vector3.new(1,1,1)]]--
  6734. tab.Color = BrickColor.new(Color).Color
  6735. tab.CFrame = Player.Character.Head.CFrame
  6736. if onTouched~=nil then
  6737. tab.Touched:connect(function(what)
  6738. a,b=ypcall(function()
  6739.  
  6740. onTouched(what)
  6741. end)
  6742. if not a then error(b) end
  6743. end)
  6744. end
  6745. local BoxTrans = 0.2
  6746. local box = Instance.new("SelectionBox", tab)
  6747. box.Adornee = box.Parent
  6748. box.Transparency = BoxTrans
  6749. box.Color3 = OutlineColor
  6750. box.SurfaceTransparency = 1
  6751. box.SurfaceColor3 = PlayerColor
  6752. box.LineThickness = 0.02
  6753. local gui = Instance.new("BillboardGui", tab)
  6754. gui.Adornee = tab
  6755. gui.StudsOffset = Vector3.new(0,tab.Size.Y+0.5,0)
  6756. gui.Size = UDim2.new(1,0,1,0)
  6757. local text = Instance.new("TextLabel", gui)
  6758. text.BackgroundTransparency = 1
  6759. text.Text = tostring(Text)
  6760. text.Position = UDim2.new(0.5,0,0.5,0)
  6761. text.Font = "ArialBold"
  6762. text.FontSize = "Size12"
  6763. text.TextColor3 = Color3.new(255,255,255)
  6764. text.TextStrokeTransparency = 0.4
  6765. text.TextStrokeColor3 = Color3.new(0,0,0)
  6766.  
  6767. local function DestroyThisTab()
  6768. pcall(function() tab:Destroy() end)
  6769. for i,v in pairs(Tablets) do
  6770. if v.Part.Name == tab.Name then
  6771. table.remove(Tablets, i)
  6772. end
  6773. end
  6774. end
  6775.  
  6776. local Click = Instance.new("ClickDetector", tab)
  6777. Click.MaxActivationDistance = math.huge
  6778. Click.MouseHoverEnter:connect(function(CPlayer)
  6779. if CPlayer.Name == Player.Name then
  6780. tab.Material = "Ice"
  6781.  
  6782. end
  6783. end)
  6784. Click.MouseHoverLeave:connect(function(CPlayer)
  6785. if CPlayer.Name == Player.Name then
  6786. tab.Material = "Neon"
  6787. end
  6788. end)
  6789. Click.MouseClick:connect(function(CPlayer)
  6790. if CPlayer.Name == Player.Name then
  6791. if onClicked == nil then
  6792. DestroyThisTab()
  6793. else
  6794. local Run,Error = ypcall(function()
  6795. onClicked()
  6796. end)
  6797. if Error then
  6798. Tablet(tostring(Error), Colors.Red)
  6799. end
  6800. DestroyThisTab()
  6801. end
  6802. end
  6803. end)
  6804. if type(staytime) == "number" then
  6805. Delay(staytime,function()
  6806. pcall(function() DestroyThisTab() end)
  6807. end)
  6808. end
  6809. Insert.Part = tab
  6810. table.insert(Tablets, Insert)
  6811. local rtn = {
  6812. tab=tab;
  6813. light=light;
  6814. box=box;
  6815. gui=gui;
  6816. text=text;
  6817. Click=Click;
  6818. Insert=Insert;
  6819. }
  6820. for i,v in pairs(rtn) do
  6821. pcall(function()
  6822. v.AncestryChanged:connect(function()
  6823. if tab.Parent ~= game.Workspace then
  6824. Delay(1,function() pcall(function() DestroyThisTab() end) end)
  6825. end
  6826. end)
  6827. end)
  6828. end
  6829. return rtn
  6830. end
  6831.  
  6832.  
  6833.  
  6834.  
  6835.  
  6836.  
  6837.  
  6838.  
  6839. Rotation = 5
  6840. RotationAddValue = 0.0005
  6841. ROT=function() --OH LOL worst mistake xD Do you have tab table? Yup I just fixed it
  6842. game['Run Service'].Stepped:connect(function()
  6843. pcall(function()
  6844. Rotation = Rotation + RotationAddValue -- oh
  6845. --Rotation=0.0002
  6846. local AllTabs = {}
  6847. for _,tab in pairs(Tablets) do
  6848. table.insert(AllTabs, tab)
  6849. end
  6850. for i = 1, #AllTabs do
  6851. if Player.Character ~= nil then
  6852. local Position = Player.Character.Torso.CFrame.p
  6853. local Radius = (#AllTabs * 0.3) + 10
  6854. local M = (i / #AllTabs - (0.4 / #AllTabs) * Rotation * 3) * math.pi * (4/2)
  6855. local X = math.sin(M) * Radius
  6856. local Y = math.sin(i + tick())
  6857. local Z = math.cos(M) * Radius
  6858. local A = Vector3.new(X, Y, Z) + Position
  6859. local B = AllTabs[i].Part.CFrame.p
  6860. local C = A * 0.1 + B * 0.9
  6861. local Cube_Rotation = (Rotation * 240)
  6862. local D = CFrame.Angles(Cube_Rotation, Cube_Rotation, Cube_Rotation)
  6863. AllTabs[i].Part.CFrame = CFrame.new(C, Position) * D
  6864. end
  6865. end
  6866. end)
  6867. end)
  6868. end
  6869.  
  6870.  
  6871. function CheckHotKey()
  6872. local uis = game:service'UserInputService'
  6873. if uis:IsKeyDown(Enum.KeyCode.LeftControl) then
  6874. if uis:IsKeyDown(Enum.KeyCode.Z) then
  6875. Utility.CreateDummy(Mouse.Hit, "???", Workspace)
  6876. elseif uis:IsKeyDown(Enum.KeyCode.X) then
  6877. GraphicalEffects.ShootLaserOfDeath(Mouse.Hit.p)
  6878. elseif uis:IsKeyDown(Enum.KeyCode.C) then
  6879. GraphicalEffects.SpaceHyperBeam(Mouse.Hit.p)
  6880. elseif uis:IsKeyDown(Enum.KeyCode.Q) then
  6881. if characterMode == "normal" then PlayerControl.SetEnabled(not PlayerControl.characterEnabled) end
  6882. elseif uis:IsKeyDown(Enum.KeyCode.R) then
  6883. GraphicalEffects.SpawnSapientRock(Mouse.Hit.p)
  6884. elseif uis:IsKeyDown(Enum.KeyCode.V) then
  6885. chatAdornee = Mouse.Target
  6886. elseif uis:IsKeyDown(Enum.KeyCode.T) then
  6887. ControllerCommands.TeleportCharacterToMouse()
  6888. elseif uis:IsKeyDown(Enum.KeyCode.E) then
  6889. ControllerCommands.ShootMissileAroundMouse(5, 25, nil)
  6890. elseif uis:IsKeyDown(Enum.KeyCode.G) then
  6891.  
  6892. ControllerCommands.BigLaserAtMouse()
  6893. elseif uis:IsKeyDown(Enum.KeyCode.H) then
  6894. ControllerCommands.ControlRandomDummy()
  6895. elseif uis:IsKeyDown(Enum.KeyCode.B) then
  6896. ControllerCommands.BalefireAtMouse()
  6897. elseif uis:IsKeyDown(Enum.KeyCode.Y) then
  6898. if Mouse.Target:IsA("Part") or Mouse.Target:IsA("Model") and Mouse.Target.Name ~= "Base" then local targ = Mouse.Target GraphicalEffects.CrystalRing({base_part = targ, crystal_color = BrickColor.new("Really black"), float_duration = 0.5,fade_out_color = BrickColor.new("Institutional White")}) targ:Destroy() end
  6899. elseif uis:IsKeyDown(Enum.KeyCode.F) then
  6900. if flying == true then
  6901. PlayerControl.StopFlying()
  6902. else
  6903. PlayerControl.StartFlying()
  6904. end
  6905. end
  6906. end
  6907. end
  6908.  
  6909. ROT()
  6910.  
  6911. game.ReplicatedStorage.DescendantRemoving:connect(function(itm)
  6912. if itm.Name == "AE2XATTACH" then
  6913. wait(2)
  6914. RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH") or nil
  6915. end
  6916.  
  6917. end)
  6918.  
  6919.  
  6920. print(developer)
  6921.  
  6922. if developer == "true" then
  6923. Tablet("Hi",Colors.Red)
  6924. wait(1)
  6925. Dismiss()
  6926. end
  6927.  
  6928.  
  6929. NewCMD("Version", "ver", "Shows the version", function(msg)
  6930. Tablet("The Version Is: "..Version.."!")
  6931. end)
  6932.  
  6933.  
  6934. NewCMD("Ban a player","ban","Kicks a player when he enters",
  6935. function(msg)
  6936. local plrs = GetPlayers(msg)
  6937. for _,plr in next,plrs do
  6938. table.insert(bannedlist,plr.Name)
  6939. Tablet('Banned | '..plr.Name,Colors.Black)
  6940. game.Players[plr.Name]:remove()
  6941. game.Lighting:ClearAllChildren()
  6942.  
  6943. end
  6944. end)
  6945.  
  6946. NewCMD("Pri Allow","priadd","Adds a player to the private server allowed list",
  6947. function(msg)
  6948. local plrs = GetPlayers(msg)
  6949. for _,plr in next,plrs do
  6950. table.insert(PriAllowed,plr.Name)
  6951. Tablet('Allowing | '..plr.Name,Colors.Black)
  6952. game.Lighting:ClearAllChildren()
  6953. end
  6954. end)
  6955.  
  6956. NewCMD("Private server allowed", "pl", "Shows The Allowed Players", function()
  6957. Dismiss()
  6958. for _,Allowed in pairs(PriAllowed) do
  6959. Tablet(AllowedPlr, Colors.Black)
  6960. end
  6961. end)
  6962.  
  6963. NewCMD("Banlist", "bl", "Shows The Banned Players", function()
  6964. Dismiss()
  6965. for _,BannedPlr in pairs(bannedlist) do
  6966. Tablet(BannedPlr, Colors.Black)
  6967. end
  6968. end)
  6969.  
  6970. NewCMD("Unban", "unban", "Un-Bans Someone", function(msg)
  6971. Tablet(table.concat(bannedlist, ' '), Colors.Purple)
  6972. if msg == "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" then
  6973. table.remove(bannedlist, msg)
  6974. end
  6975.  
  6976.  
  6977. end)
  6978.  
  6979. NewCMD("Freeze", "fr", "Freezes someone", function(msg)
  6980. local plrs = GetPlayers(msg)
  6981. for _,plr in next,plrs do
  6982. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really black"), float_duration = 0.2})
  6983. plr.Character.Torso.Anchored = true
  6984. end
  6985. end)
  6986.  
  6987. NewCMD("Thaw", "tha", "Thaw's Someone", function(msg)
  6988. local plrs = GetPlayers(msg)
  6989. for _,plr in next,plrs do
  6990. GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really black"), float_duration = 0.2})
  6991. plr.Character.Torso.Anchored = false
  6992. end
  6993. end)
  6994.  
  6995. NewCMD("Message GUI", "mg", "Make a message gui with any text",
  6996. function(msg)
  6997. for i, player in ipairs(game.Players:GetPlayers()) do
  6998. local S = Instance.new("ScreenGui")
  6999. S.Parent = player.PlayerGui
  7000. local F = Instance.new("Frame")
  7001. F.Parent = S
  7002. F.BackgroundColor3 = Color3.new(0,0,0)
  7003. F.BackgroundTransparency = 0.5
  7004. F.BorderSizePixel = 0
  7005. F.Position = UDim2.new(0, 0, 0, 250)
  7006. F.Size = UDim2.new(0, 1500, 0, 100)
  7007. local T = Instance.new("TextLabel")
  7008. T.Parent = F
  7009. T.BackgroundTransparency = 1
  7010. T.BorderSizePixel = 0
  7011. T.Size = UDim2.new(0,1000, 0, 100)
  7012. T.Font = "SourceSansBold"
  7013. T.FontSize = "Size24"
  7014. T.Text = "[AE2X ADMIN]: "..msg
  7015. T.TextColor3 = Color3.new(255,255,255)
  7016. T.TextStrokeTransparency = 0
  7017. wait(3)
  7018. S:remove()
  7019. end
  7020. end)
  7021.  
  7022. NewCMD("Beam me up scotty", "beam", "Made by mistahFedora",
  7023. function(msg)
  7024. local plrs = GetPlayers(msg)
  7025. for _,plr in next,plrs do
  7026. GraphicalEffects.FireSpaceHyperBeam(game.Players[plr.Name].Character.Torso.Position, 3, 2, 30, 100, 1)
  7027. end
  7028. end)
  7029.  
  7030.  
  7031.  
  7032.  
  7033.  
  7034. NewCMD("Island", "isl", "Makes an island",
  7035. function()
  7036. local terrain = workspace:findFirstChild("Terrain")
  7037. if terrain then
  7038. for h = -1, 1 do
  7039. for r = -150, 150 do
  7040. for r2 = -150, 150 do
  7041. workspace:findFirstChild("Terrain"):SetCell(r2, h, r, 17, 0, 0)
  7042. end
  7043. end
  7044. wait()
  7045. end
  7046.  
  7047. for h = -1, 2 do
  7048. for r = -25, 25 do
  7049. for r2 = -25, 25 do
  7050. workspace:findFirstChild("Terrain"):SetCell(r2, h, r, 1, 0, 0)
  7051. end
  7052. end
  7053. wait()
  7054. end
  7055. end
  7056. end)
  7057.  
  7058.  
  7059.  
  7060. NewCMD("Insert", "ins", "Insert a gear by typing their ID", function(msg)
  7061. local insert = game:service'InsertService':LoadAsset(tonumber(msg))
  7062. if insert then
  7063. insert.Parent = workspace
  7064. insert:MoveTo(game.Players.LocalPlayer.Character:GetModelCFrame().p)
  7065. end
  7066. end)
  7067.  
  7068. NewCMD("Set SkyBox","abox","Skybox A",
  7069. function()
  7070. function getAll(obj)
  7071. for i, v in pairs(obj:getChildren()) do
  7072. if v:IsA("BasePart") then
  7073. v.Anchored = false
  7074. v.BrickColor = BrickColor.new(0)
  7075. bv = Instance.new("BodyVelocity")
  7076. bv.Parent = v
  7077. bv.maxForce = Vector3.new(100000000,100000000,100000000)
  7078. local s = Instance.new("SelectionBox")
  7079. s.Color = BrickColor.random()
  7080. s.Adornee = v
  7081. s.Parent = v
  7082. s.Transparency = (0.4)
  7083. end
  7084. getAll(v)
  7085. end
  7086. end
  7087. getAll(workspace)
  7088. game.Lighting.TimeOfDay = "07:00:00"
  7089. game.Lighting.Ambient = Color3.new(0,0,0)
  7090. sky = Instance.new("Sky")
  7091. sky.Parent = game.Lighting
  7092. sky.SkyboxBk = "http://www.roblox.com/asset/?id=127493466"
  7093. sky.SkyboxDn = "http://www.roblox.com/asset/?id=127493466"
  7094. sky.SkyboxFt = "http://www.roblox.com/asset/?id=127493466"
  7095. sky.SkyboxLf = "http://www.roblox.com/asset/?id=127493466"
  7096. sky.SkyboxRt = "http://www.roblox.com/asset/?id=127493466"
  7097. sky.SkyboxUp = "http://www.roblox.com/asset/?id=127493466"
  7098. end
  7099. )
  7100.  
  7101.  
  7102. NewCMD("Fix cam","fc","Fix anyone's cam",
  7103. function(msg)
  7104. local plrs = GetPlayers(msg)
  7105. for _, plr in pairs(plrs) do
  7106. if plr and plr.Backpack then
  7107. game.Workspace.CurrentCamera:Destroy()
  7108. local cam = Instance.new("Camera", workspace)
  7109. cam.Name = "CurrentCamera"
  7110. cam.FieldOfView = 70
  7111. cam.CameraType = "Custom"
  7112. cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
  7113. end
  7114. end
  7115. end
  7116. )
  7117.  
  7118. NewCMD("Kick","ki","Kick <3",
  7119. function(msg)
  7120. local plrs = GetPlayers(msg)
  7121. for _,plr in next,plrs do
  7122. wait(0.1)
  7123. game.Players[plr.Name]:remove()
  7124. end
  7125. end)
  7126.  
  7127. NewCMD("Walkspeed", "ws", "Sets your walkspeed",function(msg)
  7128. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = msg
  7129. end)
  7130.  
  7131. NewCMD("All Scripts","as","Show all scripts", function()
  7132. local AllScripts = {}
  7133. for _,v in pairs(workspace:GetChildren()) do
  7134. if v:IsA("Script") then
  7135. table.insert(AllScripts, v.Name)
  7136. end
  7137. end
  7138. if #AllScripts > 0 then
  7139. for _,v in pairs(AllScripts) do
  7140. Tablet(v,Colors.White,function()
  7141. game.Workspace[v]:remove()
  7142. end)
  7143. end
  7144. else
  7145. Tablet('No Scripts Found',Colors.White)
  7146. end
  7147. end)
  7148. NewCMD("All LocalScripts","als","Show all localscripts", function()
  7149. local AllScripts = {}
  7150. for _,v in pairs(workspace:GetChildren()) do
  7151. if v:IsA("LocalScript") then
  7152. table.insert(AllScripts, v.Name)
  7153. end
  7154. end
  7155. if #AllScripts > 0 then
  7156. for _,v in pairs(AllScripts) do
  7157. Tablet(v,Colors.White,function()
  7158. game.Workspace[v]:remove()
  7159. end)
  7160. end
  7161. else
  7162. Tablet('No Scripts Found',Colors.White)
  7163. end
  7164. end)
  7165.  
  7166. NewCMD("New Server", "newserver", "Make a New Server!",function()
  7167. local Game_ID = game.PlaceId
  7168. Dismiss()
  7169. local NSERVER = 'http://www.classy-studios.com/APIs/JoinGame.php?GameID='..Game_ID
  7170. end)
  7171.  
  7172. Dismiss()
  7173. if developer == "Developer In Training" then
  7174. Tablet("AE2X Tablets Have Loaded", Colors.Purple)
  7175. Tablet("AE2X Tablets is modified Plutonium Tablets", Colors.Purple)
  7176. Tablet("Have Fun!", Colors.Purple)
  7177. Tablet("PointCoded is sexy!", Colors.Purple)
  7178. Tablet("AE2X Tablets Version: "..Version, Colors.Purple)
  7179. end
  7180. if developer == "false" then
  7181. Tablet("AE2X Tablets Have Loaded", Colors.Purple)
  7182. Tablet("AE2X Tablets is modified Plutonium Tablets", Colors.Purple)
  7183. Tablet("Have Fun!", Colors.Purple)
  7184. Tablet("PointCoded is sexy!", Colors.Purple)
  7185. Tablet("AE2X Tablets Version: "..Version, Colors.Purple)
  7186. end
  7187. if developer == "Good Developer 2/4" then
  7188. Tablet("AE2X Tablets Have Loaded", Colors.Purple)
  7189. Tablet("AE2X Tablets is modified Plutonium Tablets", Colors.Purple)
  7190. Tablet("Have Fun!", Colors.Purple)
  7191. Tablet("PointCoded is sexy!", Colors.Purple)
  7192. Tablet("AE2X Tablets Version: "..Version, Colors.Purple)
  7193. end
  7194.  
  7195. Player.Chatted:connect(function(msg) if string.sub(msg,1,1) == "/" then onChatted(msg) else ChatBubble.Create(msg,Teal) end end)
  7196. Mouse.Button1Down:connect(CheckHotKey)
  7197.  
  7198.  
  7199. game["Players"].PlayerAdded:connect(function(newPlr)
  7200. for _,BannedPlr in pairs(bannedlist) do
  7201. if(newPlr["Name"]==BannedPlr)then
  7202. if(newPlr["Name"]~=(game.Players.LocalPlayer.Name))then
  7203. newPlr:WaitForChild("Backpack")
  7204. game.Players[newPlr.Name]:remove()
  7205. Print("The Banned Player ["..newPlr["Name"].."] has Tried to Enter the Server",Colors.White)
  7206. end
  7207. elseif(newPlr["Name"]~=BannedPlr)then
  7208. print("Allowed")
  7209. end
  7210. end
  7211. end)
  7212. game["Players"].PlayerAdded:connect(function(newPlr)
  7213. if Pri == true then
  7214. for _,AllowedPlr in pairs(PriAllowed) do
  7215. if(newPlr["Name"]~=AllowedPlr)then
  7216. game.Players[newPlr.Name]:remove()
  7217. print("User: "..newPlr.Name" Is NOT Allowed")
  7218. elseif(newPlr["Name"]==AllowedPlr)then
  7219. print("User: "..newPlr.Name" Is Allowed")
  7220. end
  7221. end
  7222. end
  7223. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement