Advertisement
unquick

First try

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