Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[AE2X Tabs, by PointCoded and nguyenjimbo and The Plutonium Creators]]--
- local Player = game.Players.LocalPlayer
- local LocalPlayer = Player
- local RunService = game:service'RunService'
- local Camera = Workspace.CurrentCamera or nil
- local Lighting = game.Lighting
- local Version = "AE2X Crystonium"
- local Mouse = Player:GetMouse() or nil
- local Players = game.Players
- local UserInterface = game:service'UserInputService'
- local RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH") or nil
- 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"}
- local changecamonpossess = false
- local PriAllowed = {"PointCoded","nguyenjimbo","Nilzers","unquick","DaneWantsWang","Hieroku","DarkInternal"}
- local Pri = false
- local Debris = game:service'Debris'
- local chatAdornee = Player.Character.Head
- local RbxUtility = LoadLibrary("RbxUtility")
- local CMDS = {};
- local InsertService = game:service'InsertService'
- local ChatService = game:GetService("Chat")
- local math = {
- abs = math.abs,
- acos = math.acos,
- asin = math.asin,
- atan = math.atan,
- atan2 = math.atan2,
- ceil = math.ceil,
- cos = math.cos,
- cosh = math.cosh,
- deg = math.deg,
- exp = math.exp,
- floor = math.floor,
- fmod = math.fmod,
- frexp = math.frexp,
- huge = math.huge,
- ldexp = math.ldexp,
- log = math.log,
- log10 = math.log10,
- max = math.max,
- min = math.min,
- modf = math.modf,
- phi = 1.618033988749895,
- pi = math.pi,
- pow = math.pow,
- rad = math.rad,
- random = math.random,
- randomseed = math.randomseed,
- sin = math.sin,
- sinh = math.sinh,
- sqrt = math.sqrt,
- tan = math.tan,
- tanh = math.tanh,
- tau = 2 * math.pi
- }
- function CreateLocalScript(Source,Parent)
- if Source == nil then Source = "" end
- if Parent == nil then Parent = Instance.new("Model") Parent.Name = "AE2X Scripts" end
- if newLocalScript ~= nil then
- return newLocalScript(Source,Parent)
- elseif NewLocalScript ~= nil then
- return NewLocalScript(Source,Parent)
- elseif LocalScript ~= nil then
- local NS = LocalScript:Clone()
- pcall(function() NS:ClearAllChildren() end)
- NS.Name = "LocalScript"
- for i,v in pairs(Sources) do
- local NSSource = Instance.new("StringValue",NS)
- NSSource.Name = i
- NSSource.Value = Source
- end
- --NS.Disabled = true
- NS.Parent = Parent
- --wait()
- NS.Disabled = false
- return NS
- else
- return false
- end
- end
- 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
- if script ~= true then
- print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
- else
- print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
- end
- TaskScheduler = {};
- local currentTime = 0
- local pairs = pairs
- local rbx_coroutine_create = coroutine.create
- local rbx_coroutine_resume = coroutine.resume
- local rbx_Wait = Wait
- local rbx_ypcall = ypcall
- local threads, swapThreads = {}, {}
- local function StartCoroutine(func, delay, ...)
- if delay > 0 then
- rbx_Wait(delay)
- end
- local success, message = rbx_ypcall(func, ...)
- if not success then
- print("Error in a TaskScheduler coroutine: "..message)
- end
- end
- function TaskScheduler.GetCurrentTime()
- return currentTime
- end
- function TaskScheduler.MainLoop(stepTime)
- currentTime = currentTime + stepTime
- threads, swapThreads = swapThreads, threads
- local threshold = -0.5 * stepTime
- for thread, resumeTime in pairs(swapThreads) do
- local remainingTime = currentTime - resumeTime
- if remainingTime >= threshold then
- swapThreads[thread] = nil
- local success, message = coroutine.resume(thread, remainingTime, currentTime)
- if not success then
- print("Error in a TaskScheduler custom thread: "..message)
- end
- end
- end
- threads, swapThreads = swapThreads, threads
- for thread, resumeTime in pairs(swapThreads) do
- threads[thread], swapThreads[thread] = resumeTime, nil
- end
- end
- -- TODO: add stack trace info to scheduling functions?
- function TaskScheduler.Schedule(t, f, ...)
- coroutine.resume(coroutine.create(StartCoroutine), f, t, ...)
- end
- function TaskScheduler.Start(f, ...)
- coroutine.resume(coroutine.create(StartCoroutine), f, 0, ...)
- end
- function TaskScheduler.ScheduleCustomThread(t, f)
- threads[coroutine.create(f)] = currentTime + t
- end
- function TaskScheduler.Wait(duration)
- duration = tonumber(duration) or 0
- threads[coroutine.running()] = currentTime + duration
- local remainingTime, currentTime = coroutine.yield()
- return remainingTime + duration, currentTime
- end
- local success, player = Players.LocalPlayer
- if success and player then
- RunService.RenderStepped:connect(function()
- TaskScheduler.MainLoop(1 / 60)
- end)
- else
- RunService.Stepped:connect(function()
- TaskScheduler.MainLoop(1 / 30)
- end)
- end
- ChatBubble = {};
- local FONT_CUSTOM_A_SRC, FONT_CUSTOM_A, TextAlignment, LoadFixedFont, LoadFont, DrawTextNetwork, DrawMultilineTextNetwork, ConfigureChatBubble,
- CreateChatBubble, WrapText, chat_bubbles
- FONT_CUSTOM_A_SRC = "03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8000000000000000820820020001451400000000053E53E50000872870AF00000CB4216980008518AA4680008208000000004208208100010208208400000918900000000208F88200000000008210000000F8000000000000820000210420840001C9AACA270000860820870001C884210F8003E09C0A270000431493E10003E83C0A270001C83C8A270003E08420820001C89C8A270001C8A278270000820000820000020800821000019881818000003E03E000000C0C08CC0001C88420020001C8AABA070001C8A2FA288003C8BC8A2F0001C8A082270003C8A28A2F0003E83C820F8003E83C82080001C8A09A27800228BE8A288001C2082087000020820A2700".."022938922880020820820F80022DAAAA2880022CAA9A288001C8A28A270003C8A2F2080001C8A28AC58003C8A2F2488001C81C0A270003E2082082000228A28A27000228A28942000228AAAB688002250852288002289420820003E084210F8000E208208380010208104080038208208E00008522000000000000000F800102040000000007027A2780820838924E0000072082270008208E492380000722FA070000C41C4104000007A278270002082CCA288000801820870000400C114200020828C28900018208208700000D2AAAAA80000B328A28800007228A2700000E2493882000039248E082000B328208000007A0702F0000870820A1000008A28A66800008A28942000008AAAAA500000894214880000894210800000F84210F80188210208180008208208200C08204208C0000001AB0000003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80".."03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80".."03E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F8003E8A28A2F80"
- FONT_CUSTOM_A = {}
- ChatBubble.THEME = {}
- ChatBubble.THEME.LIBERATION = {
- Name = "Liberation",
- Background = Color3.new(255,255,255),
- Foreground = Color3.new(1, 1, 1)
- }
- ChatBubble.THEME.PASSION = {
- Name = "Passion",
- Background = Color3.new(0,0,0),
- Foreground = Color3.new(1, 1, 1)
- }
- ChatBubble.THEME.PURPLE = {
- Name = "Purple",
- Background = Color3.new(0,0,0),
- Foreground = Color3.new(1, 1, 1)
- }
- ChatBubble.THEME.Black = {
- Name = "Black",
- Background = Color3.new(0, 0, 0),
- Foreground = Color3.new(1, 1, 1)
- }
- ChatBubble.THEME.TEAL = {
- Name = "Teal",
- Background = Color3.new(0,0,0),
- Foreground = Color3.new(1, 1, 1)
- }
- function ChatBubble.GetTheme()
- return ChatBubble.theme_info
- end
- function ChatBubble.SetTheme(theme_info)
- if type(theme_info) == "string" then
- theme_info = string.lower(theme_info)
- for key, info in pairs(ChatBubble.THEME) do
- if info.Name:lower() == theme_info:lower() then
- ChatBubble.SetTheme(info)
- break
- end
- end
- return
- end
- ChatBubble.theme_info = theme_info
- ChatBubble.background_color = theme_info.Background
- ChatBubble.font = LoadFont(ChatBubble.FONT_DEFAULT, theme_info.Foreground)
- print("Theme has been set to "..theme_info.Name.." in ChatBubble")
- end
- do
- local floor = math.floor
- local max = math.max
- local asc = string.byte
- local chr = string.char
- local find = string.find
- local gmatch = string.gmatch
- local sub = string.sub
- local insert = table.insert
- local type = type
- local unpack = unpack
- local PopIntegerBit
- TextAlignment = setmetatable({
- [0] = 0,
- [1] = 1,
- [2] = 2,
- Left = 0,
- Center = 1,
- Right = 2
- }, {
- __call = function(self, ...)
- local argc = #{...}
- if argc == 0 then
- return 0
- else
- local arg = (...)
- local value = rawget(self, arg)
- if value then
- return value
- else
- local arg_type = type(arg)
- error("Invalid value" .. ((arg_type == "number") and (" " .. arg) or ((arg_type == "string") and (" \"" .. arg .. "\"") or
- "")) .. " for enum TextAlignment")
- end
- end
- end
- })
- function PopIntegerBit(value, bit)
- if value >= bit then
- return 1, value - bit
- else
- return 0, value
- end
- end
- function LoadFixedFont(dest, src, height, width)
- local n = #src / 64 - 1
- local bit_index = 0
- local symbol_bits = width * height
- for i = 0, 255 do
- local char_data = {}
- for j = 1, height do
- char_data[j] = {}
- end
- dest[i] = char_data
- end
- for i = 1, #src do
- local buffer = tonumber(sub(src, i, i), 16)
- for j = 1, 4 do
- local code = floor(bit_index / symbol_bits)
- local row = floor(bit_index / width) % height + 1
- local column = bit_index % width + 1
- dest[code][row][column], buffer = PopIntegerBit(buffer, 8)
- buffer = buffer * 2
- bit_index = bit_index + 1
- end
- end
- end
- function LoadFont(font_data, color)
- local font_obj = {}
- for character, char_data in pairs(font_data) do
- local code = character
- if type(code) ~= "number" then
- code = asc(character)
- end
- local height = #char_data
- local width = #char_data[1]
- local pixel_h = 1 / height
- local pixel_w = 1 / width
- local pixel_size = UDim2.new(pixel_w, 0, pixel_h, 0)
- local frame = Instance.new("Frame")
- frame.BackgroundTransparency = 1
- frame.Name = ""
- for y = 1, height do
- local row = char_data[y]
- for x = 1, width do
- local opacity = row[x]
- if opacity ~= 0 then
- local pixel = Instance.new("Frame", frame)
- pixel.BackgroundColor3 = color
- pixel.BorderSizePixel = 0
- pixel.Name = ""
- pixel.BackgroundTransparency = 1
- pixel.Position = UDim2.new(x * pixel_w, 0, y * pixel_h, 0) - pixel_size
- pixel.Size = pixel_size -- + UDim2.new(0, 0, 0, 1) -- correction
- -- ^ never mind that correction, fixed by changing font size to 12x16 instead of 13x17
- if opacity then
- pixel.BackgroundTransparency = 1 - opacity
- end
- end
- end
- end
- font_obj[code] = {frame, height, width}
- end
- return font_obj
- end
- function DrawTextNetwork(text, font, size, delay_offset)
- if #text == 0 then
- text = " "
- end
- local frame = Instance.new("Frame")
- frame.BackgroundTransparency = 1
- frame.BorderSizePixel = 0
- local objects = {}
- local length = #text
- local height = 0
- local width = 0
- for i = 1, length do
- local character = sub(text, i, i)
- local code = asc(character)
- local char_data = assert(font[code] or FONT_SYMBOL_MISSING, "FONT ERROR: '" .. character .. "' (" .. code .. ") not found")
- local char_proto, char_h, char_w = unpack(char_data)
- objects[i] = char_data
- height = max(char_h, height)
- width = width + char_w
- end
- local offset = 0
- local punctuation_delay = 0
- for i = 1, length do
- delay(delay_offset + (i + punctuation_delay - 1) / 30, function()
- local char_data = objects[i]
- local char_proto, char_h, char_w = unpack(char_data)
- local char_obj = char_proto:Clone()
- char_obj.Position = UDim2.new(offset / width, 0, 0, 0)
- char_obj.Size = UDim2.new(char_w / width, 0, 1, 0)
- char_obj.Parent = frame
- offset = offset + char_w
- end)
- local character = sub(text, i, i)
- if character == "." then
- punctionation_delay = punctuation_delay + 3
- elseif character == "?" or character == "!" then
- punctionation_delay = punctuation_delay + 2
- elseif character == ";" or character == "~" then
- punctionation_delay = punctuation_delay + 1
- end
- end
- local ratio = (height == 0) and (0) or (width / height)
- frame.Size = UDim2.new(size.X.Scale * ratio, size.X.Offset * ratio, size.Y.Scale, size.Y.Offset)
- return frame, height, width, (length + punctuation_delay) / 30
- end
- function DrawMultilineTextNetwork(text, font, size, delay_offset, ...)
- local align = TextAlignment(...)
- local frame = Instance.new("Frame")
- frame.BackgroundTransparency = 1
- frame.BorderSizePixel = 0
- local height = 0
- local width = 0
- local objects = {}
- for line in gmatch(text .. "\n", "([^\n]*)\n") do
- local line_obj, line_h, line_w, line_delay = DrawTextNetwork(line, font, size, delay_offset)
- insert(objects, {line_obj, line_h, line_w})
- height = height + line_h
- width = max(line_w, width)
- delay_offset = delay_offset + line_delay
- end
- local offset = 0
- for index, line_data in ipairs(objects) do
- local line_obj, line_h, line_w = unpack(line_data)
- local align_offset
- if align == TextAlignment.Left then
- align_offset = 0
- elseif align == TextAlignment.Center then
- align_offset = 0.5 - line_w / width / 2
- elseif align == TextAlignment.Right then
- align_offset = 1 - line_w / width
- end
- line_obj.Position = UDim2.new(align_offset, 0, offset / height, 0)
- line_obj.Parent = frame
- offset = offset + line_h
- end
- local line_count = #objects
- local ratio = (height == 0) and (0) or (line_count * width / height)
- frame.Size = UDim2.new(size.X.Scale * ratio, size.X.Offset * ratio, size.Y.Scale * line_count, size.Y.Offset * line_count)
- return frame, height, width
- end
- end
- LoadFixedFont(FONT_CUSTOM_A, FONT_CUSTOM_A_SRC, 8, 6)
- ChatBubble.FONT_DEFAULT = FONT_CUSTOM_A
- ChatBubble.SetTheme("Cool")
- chat_bubbles = {}
- function CreateChatBubble(bubble_info)
- local creation_time, text, backup = bubble_info[1], bubble_info[2], bubble_info[8]
- local billboard, frame, label
- if backup and false then
- billboard = backup:Clone()
- frame = billboard.Frame
- label = frame.Label
- bubble_info[5] = billboard
- bubble_info[6] = frame
- bubble_info[7] = label
- billboard.Parent = Workspace
- else
- label = DrawMultilineTextNetwork(text, bubble_info[9], UDim2.new(0, 12, 0, 16), creation_time - time(), "Center")
- label.Name = "Label"
- label.Position = UDim2.new(0, 16, 0, 16)
- billboard = Instance.new("BillboardGui", Workspace)
- billboard.Adornee = chatAdornee
- billboard.AlwaysOnTop = true
- billboard.Size = UDim2.new(label.Size.X.Scale, label.Size.X.Offset + 32, label.Size.Y.Scale, label.Size.Y.Offset + 32)
- billboard.SizeOffset = Vector2.new(0, 0)
- billboard.StudsOffset = Vector3.new(0, 1, 0)
- frame = Instance.new("Frame", billboard)
- bubble_info[5] = billboard
- bubble_info[6] = frame
- bubble_info[7] = label
- frame.BackgroundTransparency = 1
- frame.BorderSizePixel = 0
- frame.ClipsDescendants = true
- frame.Name = "Frame"
- frame.Size = UDim2.new(1, 0, 0, 0)
- label.Parent = frame
- -- bubble_info[8] = billboard:Clone()
- end
- end
- local tween_time = 0.3
- function ConfigureChatBubble(bubble_info)
- local creation_time, destruction_time, billboard, frame = bubble_info[1], bubble_info[3], bubble_info[5], bubble_info[6]
- if not billboard or billboard.Parent ~= workspace then
- CreateChatBubble(bubble_info)
- billboard, frame = bubble_info[5], bubble_info[6]
- end
- if billboard.Adornee ~= chatAdornee then
- billboard.Adornee = chatAdornee
- end
- local current_time = time()
- local elapsed_time = current_time - creation_time
- local remaining_time = destruction_time - current_time
- if remaining_time < 0 then
- bubble_info[4] = false
- billboard:Destroy()
- return false
- elseif remaining_time < tween_time then
- local tween_progress = math.sin(remaining_time * math.pi / (tween_time * 2))
- frame.Size = UDim2.new(1, 0, tween_progress, 0)
- elseif elapsed_time < tween_time then
- local tween_progress = math.sin(elapsed_time * math.pi / (tween_time * 2))
- frame.Size = UDim2.new(1, 0, tween_progress, 0)
- elseif frame.Size ~= UDim2.new(1, 0, 1, 0) then
- frame.Size = UDim2.new(1, 0, 1, 0)
- end
- return true
- end
- function ChatBubble.MainLoop()
- local offset = 0
- local removing = {}
- for index, bubble_info in ipairs(chat_bubbles) do
- if not ConfigureChatBubble(bubble_info) then
- removing[#removing + 1] = index - #removing
- else
- local billboard, frame = bubble_info[5], bubble_info[6]
- local billboard_h = billboard.Size.Y.Offset
- local bubble_h = frame.Size.Y.Scale * billboard_h
- offset = 8 + offset + bubble_h
- billboard.SizeOffset = Vector2.new(0, offset / billboard_h - 0.5)
- end
- end
- for index, bubble_index in ipairs(removing) do
- table.remove(chat_bubbles, bubble_index)
- end
- RunService.Stepped:wait()
- end
- function WrapText(text, character_limit, line_length_limit)
- if #text > character_limit then
- text = string.sub(text, 1, character_limit - 3) .. "..."
- end
- local text_length = #text
- local line_length = 0
- local i = 0
- while i <= text_length do
- i = i + 1
- local character = string.sub(text, i, i)
- if character == "\t" then
- local tabulation_size = 4 - line_length % 4
- line_length = line_length + tabulation_size
- if line_length >= line_length_limit then
- tabulation_size = line_length - line_length_limit
- line_length = 0
- text_length = text_length + tabulation_size
- text = string.sub(text, 1, i - 1) .. string.rep(" ", tabulation_size) .. "\n" .. string.sub(text, i + 1)
- i = i + tabulation_size + 1
- else
- text_length = text_length + tabulation_size - 1
- text = string.sub(text, 1, i - 1) .. string.rep(" ", tabulation_size) .. string.sub(text, i + 1)
- i = i + tabulation_size - 1
- end
- elseif character == "\n" then
- line_length = 0
- else
- line_length = line_length + 1
- if line_length >= line_length_limit then
- local k = i - line_length + 1
- local success = false
- for j = i, k, -1 do
- if string.match(string.sub(text, j, j), "[ \t]") then
- text = string.sub(text, 1, j - 1) .. "\n" .. string.sub(text, j + 1)
- text_length = text_length + 1
- success = true
- break
- end
- end
- if not success then
- text = string.sub(text, 1, i) .. "\n" .. string.sub(text, i + 1)
- text_length = text_length + 1
- end
- i = i + 1
- line_length = 0
- end
- end
- end
- if #text > character_limit then
- text = string.sub(text, 1, character_limit - 3) .. "..."
- end
- return text
- end
- function ChatBubble.Create(text, theme)
- local text = WrapText(text, 200, 30)
- local creation_time = time()
- local bubble_info = {creation_time, text, creation_time + 6 + #text / 15, true}
- local previousTheme
- if theme then
- previousTheme = ChatBubble.GetTheme()
- ChatBubble.SetTheme(theme)
- end
- bubble_info[9] = ChatBubble.font
- bubble_info[10] = ChatBubble.background_color
- if previousTheme then
- ChatBubble.SetTheme(previousTheme)
- end
- table.insert(chat_bubbles, 1, bubble_info)
- end
- TaskScheduler.Start(function()
- while true do
- ChatBubble.MainLoop()
- end
- end)
- NilCharacter = {};
- local stock_triangle = Instance.new("WedgePart")
- stock_triangle.Anchored = true
- stock_triangle.BottomSurface = "Smooth"
- stock_triangle.FormFactor = "Custom"
- stock_triangle.Locked = true
- stock_triangle.TopSurface = "Smooth"
- local stock_triangle_mesh = Instance.new("SpecialMesh", stock_triangle)
- stock_triangle_mesh.MeshType = "Wedge"
- local triangles = {}
- function NilCharacter.CreateTriangle(v1, v2, v3, properties, parent, index)
- local triangleInfo = triangles[index]
- local side1 = (v1 - v2).magnitude
- local side2 = (v2 - v3).magnitude
- local side3 = (v3 - v1).magnitude
- local sqrside1 = side1 * side1
- local sqrside2 = side2 * side2
- local sqrside3 = side3 * side3
- if sqrside3 + sqrside1 == sqrside2 then
- v1, v2, v3 = v1, v2, v3
- elseif sqrside1 + sqrside2 == sqrside3 then
- v1, v2, v3 = v2, v3, v1
- elseif sqrside2 + sqrside3 == sqrside1 then
- v1, v2, v3 = v3, v1, v2
- elseif sqrside1 >= sqrside2 and sqrside1 >= sqrside3 then
- v1, v2, v3 = v1, v2, v3
- elseif sqrside2 >= sqrside3 and sqrside2 >= sqrside1 then
- v1, v2, v3 = v2, v3, v1
- else
- v1, v2, v3 = v3, v1, v2
- end
- local model, part1, part2, mesh1, mesh2
- if triangleInfo then
- model, part1, part2, mesh1, mesh2 = unpack(triangleInfo)
- if not (model.Parent == parent and part1.Parent == model and part2.Parent == model and mesh1.Parent == part1 and mesh2.Parent == part2) then
- if model.Parent then
- model:Destroy()
- end
- model = nil
- end
- else
- triangleInfo = {}
- triangles[index] = triangleInfo
- end
- if not model then
- model = Instance.new("Model")
- part1 = stock_triangle:Clone()
- part2 = stock_triangle:Clone()
- mesh1 = part1.Mesh
- mesh2 = part2.Mesh
- part1.Parent = model
- part2.Parent = model
- triangleInfo[1] = model
- triangleInfo[2] = part1
- triangleInfo[3] = part2
- triangleInfo[4] = mesh1
- triangleInfo[5] = mesh2
- end
- for key, value in pairs(properties) do
- part1[key] = value
- part2[key] = value
- end
- local cframe = CFrame.new(v1, v2)
- local relpos = cframe:pointToObjectSpace(v3)
- cframe = cframe * CFrame.fromEulerAnglesXYZ(0, 0, -math.atan2(relpos.x, relpos.y))
- local rel1 = cframe:pointToObjectSpace(v1)
- local rel2 = cframe:pointToObjectSpace(v2)
- local rel3 = cframe:pointToObjectSpace(v3)
- local height = rel3.y
- local width1 = rel3.z
- local width2 = rel2.z - rel3.z
- local relcenter1 = Vector3.new(0, height / 2, width1 / 2)
- local center1 = cframe:pointToWorldSpace(relcenter1)
- local relcenter2 = Vector3.new(0, height / 2, width2 / 2 + width1)
- local center2 = cframe:pointToWorldSpace(relcenter2)
- height = math.abs(height)
- width1 = math.abs(width1)
- width2 = math.abs(width2)
- if not part1.Anchored then
- part1.Anchored = true
- end
- part1.Size = Vector3.new(0.2, height, width1)
- part1.CFrame = cframe * CFrame.fromEulerAnglesXYZ(0, math.pi, 0) - cframe.p + center1
- mesh1.Scale = Vector3.new(0, height / part1.Size.y, width1 / part1.Size.z)
- if not part2.Anchored then
- part2.Anchored = true
- end
- part2.Size = Vector3.new(0.2, height, width1)
- part1.Transparency = 1
- part2.Transparency = 1
- part2.CFrame = cframe - cframe.p + center2
- mesh2.Scale = Vector3.new(0, height / part1.Size.y, width2 / part2.Size.z)
- model.Parent = parent
- return model
- end
- NilCharacter.head_properties = {BrickColor = BrickColor.new(Color3.new(1, 1, 1)), Transparency = 0.5}
- NilCharacter.head_radius = math.pi
- NilCharacter.center = CFrame.new(0, 10, 0)
- NilCharacter.point1 = Vector3.new()
- NilCharacter.point2 = Vector3.new()
- NilCharacter.point3 = Vector3.new()
- NilCharacter.point4 = Vector3.new()
- NilCharacter.core_mesh_scale = Vector3.new(0.833, 0.833, 0.833)
- NilCharacter.visible = false
- function NilCharacter.Teleport(location)
- NilCharacter.point1 = location
- NilCharacter.point2 = location
- NilCharacter.point3 = location
- NilCharacter.point4 = location
- end
- local stock_core = Instance.new("Part")
- stock_core.Anchored = true
- stock_core.BottomSurface = "Smooth"
- stock_core.Color = Color3.new(255,255,255)
- stock_core.FormFactor = "Custom"
- stock_core.Locked = true
- stock_core.Name = "CubePyramid"
- stock_core.Size = Vector3.new(0.5, 0.5, 0.5)
- stock_core.TopSurface = "Smooth"
- stock_core.Material = "Neon"
- local S = Instance.new("SelectionBox")
- S.Adornee = stock_core
- S.Color3 = Color3.new(0,0,0)
- S.LineThickness = 0.08
- S.Transparency = 0.5
- S.Parent = stock_core
- NilCharacter.stock_core = stock_core
- NilCharacter.core = stock_core:Clone()
- NilCharacter.Archivable = false
- NilCharacter.core_mesh = Instance.new("BlockMesh", core)
- NilCharacter.core_lights = {}
- NilCharacter.coreLightCount = 1
- for index = 1, NilCharacter.coreLightCount do
- NilCharacter.core_lights[index] = Instance.new("PointLight", core)
- end
- NilCharacter.camera_distance = (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude
- NilCharacter.camera_position = Vector3.new()
- Camera.Changed:connect(function(property)
- if NilCharacter.visible then
- if property == "CoordinateFrame" then
- local cframe, focus = Camera.CoordinateFrame, Camera.Focus
- local eventTime = time()
- local connection
- connection = Camera.Changed:connect(function()
- connection:disconnect()
- if eventTime == time() and Camera.Focus ~= focus then
- local camera_distance = NilCharacter.camera_distance
- Camera.Focus = Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)
- NilCharacter.camera_position = (Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)).p
- end
- end)
- coroutine.yield()
- if Camera.Focus == focus then
- NilCharacter.camera_distance = (focus.p - cframe.p).magnitude
- else
- local camera_distance = NilCharacter.camera_distance
- Camera.Focus = Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)
- NilCharacter.camera_position = (Camera.CoordinateFrame * CFrame.new(0, 0, -camera_distance)).p
- end
- if connection.connected then
- connection:disconnect()
- end
- end
- end
- end)
- function NilCharacter.Animate()
- local total_time = time()
- local core = NilCharacter.core
- local frame = NilCharacter.frame
- if NilCharacter.visible then
- local core_mesh = NilCharacter.core_mesh
- local core_lights = NilCharacter.core_lights
- if not frame or frame.Parent ~= core then
- frame = Instance.new("Model")
- frame.Archivable = false
- frame.Parent = core
- NilCharacter.frame = frame
- end
- if core.Parent ~= Workspace then
- core = NilCharacter.stock_core:Clone()
- NilCharacter.core = core
- core.Archivable = false
- core.Parent = Workspace
- chatAdornee = core
- end
- if core_mesh.Parent ~= core then
- core_mesh = Instance.new("BlockMesh", core)
- NilCharacter.core_mesh = core_mesh
- end
- for index, core_light in ipairs(core_lights) do
- if core_light.Parent ~= core then
- core_light = Instance.new("PointLight", core)
- core_lights[index] = core_light
- end
- local vertexColor = Vector3.new(Utility.GetRainbowRGB(total_time)) * 0.25 + Vector3.new(1, 1, 1) * 0.75
- core_light.Color = Color3.new(vertexColor.X, vertexColor.Y, vertexColor.Z)
- core_light.Brightness = 0.85 + 0.15 * math.random()
- if core_light.Range ~= 30 then
- core_light.Range = 30
- end
- if not core_light.Shadows then
- core_light.Shadows = true
- end
- end
- if core_mesh.Offset ~= Vector3.new(0, 0, 0) then
- core_mesh.Offset = Vector3.new(0, 0, 0)
- end
- if not core.Anchored then
- core.Anchored = true
- end
- if core.Transparency ~= 0 then
- core.Transparency = 0
- end
- local core_mesh_scale = NilCharacter.core_mesh_scale
- local transition_speed = (math.sin(total_time * math.tau) + 1) / 16
- 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()
- * 0.5 + 0.5) * transition_speed
- core_mesh.Scale = core_mesh_scale * 2
- local center = CFrame.new(NilCharacter.camera_position) * CFrame.Angles(0, total_time * math.tau, 0)
- local cframe1 = CFrame.new(NilCharacter.head_radius, 0, 0)
- local cframe2 = CFrame.Angles(math.tau / -2, 0, 0)
- local cframe3 = CFrame.Angles(0, math.tau / 4, 0)
- local cframe4 = center * cframe3
- local desired1 = center * CFrame.new(0, NilCharacter.head_radius, 0)
- local desired2 = center * cframe2 * cframe1
- local desired3 = cframe4 * cframe2 * cframe1
- local desired4 = cframe4 * cframe3 * cframe2 * cframe1
- local point1 = (NilCharacter.point1 * 3 + desired1.p) / 4
- local point2 = (NilCharacter.point2 * 3 + desired2.p) / 4
- local point3 = (NilCharacter.point3 * 3 + desired3.p) / 4
- local point4 = (NilCharacter.point4 * 3 + desired4.p) / 4
- NilCharacter.point1 = point1
- NilCharacter.point2 = point2
- NilCharacter.point3 = point3
- NilCharacter.point4 = point4
- local head_properties = NilCharacter.head_properties
- NilCharacter.CreateTriangle(point1, point2, point3, head_properties, frame, 1).Archivable = false
- NilCharacter.CreateTriangle(point2, point3, point4, head_properties, frame, 2).Archivable = false
- NilCharacter.CreateTriangle(point3, point4, point1, head_properties, frame, 3).Archivable = false
- NilCharacter.CreateTriangle(point4, point1, point2, head_properties, frame, 4).Archivable = false
- core.CFrame = CFrame.new((point1 + point2 + point3 + point4) / 4) * CFrame.Angles(total_time * math.tau, total_time * math.tau / 2,
- total_time * math.tau / 3)
- NilCharacter.center = center
- else
- if core.Parent then
- core:Destroy()
- end
- if frame and frame.Parent then
- frame:Destroy()
- end
- NilCharacter.frame = nil
- end
- end
- function NilCharacter.MainLoop()
- NilCharacter.Animate()
- RunService.Stepped:wait()
- end
- TaskScheduler.Start(function()
- while true do
- NilCharacter.MainLoop()
- end
- end)
- RBXInstance = {};
- RBXInstance.init_metatable = {}
- function RBXInstance.init_metatable:__call(data)
- local instance = Instance.new(self[1])
- for key, value in pairs(data) do
- if type(key) == "number" then
- value.Parent = instance
- else
- instance[key] = value
- end
- end
- return instance
- end
- function RBXInstance.new(className)
- return setmetatable({className}, RBXInstance.init_metatable)
- end
- Utility = {};
- function Utility.CleanLighting()
- Lighting.Ambient = Color3.new(0, 0, 0)
- Lighting.Brightness = 1
- Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
- Lighting.ColorShift_Top = Color3.new(0, 0, 0)
- Lighting.FogColor = Color3.new(0.75294125080109, 0.75294125080109, 0.75294125080109)
- Lighting.FogEnd = 100000
- Lighting.FogStart = 0
- Lighting.GeographicLatitude = 41.733299255371095
- Lighting.GlobalShadows = true
- Lighting.OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
- Lighting.Outlines = false
- Lighting.ShadowColor = Color3.new(0.70196080207825, 0.70196080207825, 0.72156864404678)
- Lighting.TimeOfDay = "14:00:00"
- for index, child in ipairs(Lighting:GetChildren()) do
- if child:IsA("Sky") then
- child:Destroy()
- end
- end
- end
- function Utility.GetProperty(object, field)
- return object[field]
- end
- function Utility.CaseInsensitivePattern(pattern)
- return string.gsub(pattern, "(%%?)(.)", Utility.CaseInsensitivePatternReplaceFunc)
- end
- function Utility.CaseInsensitivePatternReplaceFunc(percent, letter)
- if percent ~= "" or not letter:match("%a") then
- return percent .. letter
- else
- return "[" .. string.lower(letter) .. string.upper(letter) .. "]"
- end
- end
- function Utility.FindHumanoidClosestToRay(ray, exlusionList)
- local view = CFrame.new(ray.Origin, ray.Origin + ray.Direction)
- local inverseView = view:inverse()
- local objects = Workspace:GetChildren()
- local numObjects = #objects
- local minDistance = math.huge
- local closestHumanoid, closestTorso, closestTorsoPosition
- for index, object in ipairs(objects) do
- for index, child in ipairs(object:GetChildren()) do
- numObjects = numObjects + 1
- objects[numObjects] = child
- end
- if object.ClassName == "Humanoid" and object.Health > 0 then
- local torso = object.Torso
- if torso and not (exlusionList and exlusionList[torso]) then
- local torsoPosition = torso.Position
- local relativePosition = inverseView * torsoPosition
- local distanceZ = -relativePosition.Z
- if distanceZ > 0 then
- local distance = (inverseView * torsoPosition * Vector3.new(1, 1, 0)).magnitude / distanceZ
- if distance < 0.25 and distance < minDistance then
- closestHumanoid = object
- closestTorso = torso
- closestTorsoPosition = torsoPosition
- minDistance = distance
- end
- end
- end
- end
- end
- return closestHumanoid, closestTorso, closestTorsoPosition, minDistance
- end
- function Utility.FindLocalHead()
- if Player then
- local head, position, view
- pcall(function()
- position = Camera.Focus.p
- view = Camera.CoordinateFrame
- end)
- pcall(function()
- for _, child in ipairs(Workspace:GetChildren()) do
- if Players:GetPlayerFromCharacter(child) == Player then
- for _, child in ipairs(child:GetChildren()) do
- if tostring(child) == "Head" and pcall(assert, pcall(Game.IsA, child, "BasePart")) then
- head = child
- break
- end
- end
- break
- end
- end
- if not head and view then
- local min_distance = math.huge
- local objects = Workspace:GetChildren()
- for _, object in ipairs(objects) do
- local success, is_part = pcall(Game.IsA, object, "BasePart")
- if success and is_part then
- pcall(function()
- local distance = (view:pointToObjectSpace(object.Position) * Vector3.new(1, 1, 0)).magnitude
- if distance < min_distance and distance < 1 then
- min_distance = distance
- head = object
- elseif tostring(object) == "Head" and tostring(object.Parent):lower():match("^" .. tostring(Player):lower()) then
- min_distance = 0
- head = object
- end
- end)
- if min_distance < 5e-4 then
- break
- end
- end
- pcall(function()
- if not object:IsA("Camera") then
- for _, child in ipairs(object:GetChildren()) do
- objects[#objects + 1] = child
- end
- end
- end)
- end
- end
- end)
- return head, position, view
- end
- end
- function Utility.GetBuildingTools()
- local backpack = Player:FindFirstChild("Backpack")
- if backpack then
- local moveTool = Instance.new("HopperBin")
- local cloneTool = Instance.new("HopperBin")
- local deleteTool = Instance.new("HopperBin")
- moveTool.BinType = Enum.BinType.GameTool
- cloneTool.BinType = Enum.BinType.Clone
- deleteTool.BinType = Enum.BinType.Hammer
- moveTool.Parent = backpack
- cloneTool.Parent = backpack
- deleteTool.Parent = backpack
- end
- end
- function Utility.Rejoin()
- Workspace.Parent:service'TeleportService':Teleport(Game.PlaceId)
- end
- function Utility.BlockRobloxFilter(text)
- return string.gsub(text, ".", "%1\143")
- end
- function Utility.GetTimestamp()
- local unix_time = tick()
- local time_secs = math.floor(unix_time % 60)
- local time_mins = math.floor(unix_time / 60 % 60)
- local time_hours = math.floor(unix_time / 3600 % 24)
- return string.format("%02i:%02i:%02i", time_hours, time_mins, time_secs)
- end
- function Utility.GetRainbowRGB(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
- elseif section < 2 then
- return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
- else
- return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
- end
- end
- function Utility.SetProperty(object, field, value)
- object[field] = value
- end
- local PlayerColor = Color3.new(255,255,255)
- if game.Players.LocalPlayer.Name == "P".."oi".."nt".."Co".."d".."ed" then
- PlayerColor = Color3.new(0,170,255)
- elseif game.Players.LocalPlayer.Name == "ng".."uye".."nj".."i".."mbo" then
- PlayerColor = Color3.new(175,0,0)
- elseif game.Players.LocalPlayer.Name == "Wo".."lfO".."fT".."NT" then
- PlayerColor = Color3.new(255,170,0)
- elseif game.Players.LocalPlayer.Name == "Evi".."IDar".."kSw".."ord123" then
- PlayerColor = Color3.new(255,170,0)
- elseif game.Players.LocalPlayer.Name == "EviID".."arkSwo".."rdI23" then
- PlayerColor = Color3.new(255,170,0)
- elseif game.Players.LocalPlayer.Name == "Age".."ntPlayer".."Service" then
- PlayerColor = Color3.new(255,170,0)
- elseif game.Players.LocalPlayer.Name == "Lo".."rdA".."ERX" then
- PlayerColor = Color3.new(0,170,255)
- elseif game.Players.LocalPlayer.Name == "Son".."AER".."X" then
- PlayerColor = Color3.new(0,75,0)
- else
- PlayerColor = Color3.new("Y".."OU AR".."E NOT WH".."ITELIS".."TED!")
- local M = Instance.new("Me".."ssa".."ge")
- M.Text = "YOU F".."UC".."KI".."NG SK".."RUB, YOUR NOT WHITELISTED!"
- M.Parent = game.Players.LocalPlayer.PlayerGui or nil
- wait(1)
- game.Players.LocalPlayer:Kick()
- end
- local OutlineColor = PlayerColor
- function Utility.CleanWorkspace()
- for index, child in ipairs(Workspace:GetChildren()) do
- if not (Players:GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child:IsA("Script") or child.ClassName == "Terrain") then
- pcall(child.Destroy, child)
- end
- end
- Workspace.Terrain:Clear()
- local base = Instance.new("Part")
- base.Anchored = true
- base.BrickColor = BrickColor.new("Earth green")
- base.Locked = true
- base.Name = "Base"
- base.Size = Vector3.new(512, 1.2, 512)
- base.Parent = Workspace
- end
- function Utility.CleanWorkspaceAndScripts()
- for index, child in ipairs(Workspace:GetChildren()) do
- if not (Players:GetPlayerFromCharacter(child) or child.ClassName == "Camera" or child.ClassName == "Terrain") then
- pcall(child.Destroy, child)
- end
- end
- Workspace.Terrain:Clear()
- local base = Instance.new("Part")
- base.Anchored = true
- base.BrickColor = BrickColor.new("Earth green")
- base.Locked = true
- base.Name = "Base"
- base.Size = Vector3.new(512, 1.2, 512)
- base.Parent = Workspace
- end
- function Utility.CreateDummy(cframe, name, parent)
- local model = Instance.new("Model")
- model.Archivable = false
- model.Name = name
- local humanoid = Instance.new("Humanoid", model)
- local head = Instance.new("Part", model)
- local face = Instance.new("Decal", head)
- local head_mesh = Instance.new("SpecialMesh", head)
- local torso = Instance.new("Part", model)
- local right_arm = Instance.new("Part", model)
- local left_arm = Instance.new("Part", model)
- local right_leg = Instance.new("Part", model)
- local left_leg = Instance.new("Part", model)
- local neck = Instance.new("Motor", torso)
- local right_shoulder = Instance.new("Motor", torso)
- local left_shoulder = Instance.new("Motor", torso)
- local right_hip = Instance.new("Motor", torso)
- local left_hip = Instance.new("Motor", torso)
- head.BrickColor = BrickColor.Yellow()
- head.CFrame = cframe * CFrame.new(0, 1.5, 0)
- head.FormFactor = "Symmetric"
- head.Locked = true
- head.Name = "Head"
- head.Size = Vector3.new(2, 1, 1)
- head.TopSurface = "Smooth"
- face.Texture = "rbxasset://textures/face.png"
- head_mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- torso.BrickColor = BrickColor.Blue()
- torso.CFrame = cframe
- torso.FormFactor = "Symmetric"
- torso.LeftSurface = "Weld"
- torso.Locked = true
- torso.RightSurface = "Weld"
- torso.Name = "Torso"
- torso.Size = Vector3.new(2, 2, 1)
- right_arm.BrickColor = BrickColor.Yellow()
- right_arm.CanCollide = false
- right_arm.CFrame = cframe * CFrame.new(1.5, 0, 0)
- right_arm.FormFactor = "Symmetric"
- right_arm.Locked = true
- right_arm.Name = "Right Arm"
- right_arm.Size = Vector3.new(1, 2, 1)
- left_arm.BrickColor = BrickColor.Yellow()
- left_arm.CanCollide = false
- left_arm.CFrame = cframe * CFrame.new(-1.5, 0, 0)
- left_arm.FormFactor = "Symmetric"
- left_arm.Locked = true
- left_arm.Name = "Left Arm"
- left_arm.Size = Vector3.new(1, 2, 1)
- right_leg.BrickColor = BrickColor.new("Br. yellowish green")
- right_leg.BottomSurface = "Smooth"
- right_leg.CanCollide = false
- right_leg.CFrame = cframe * CFrame.new(0.5, -2, 0)
- right_leg.FormFactor = "Symmetric"
- right_leg.Locked = true
- right_leg.Name = "Right Leg"
- right_leg.Size = Vector3.new(1, 2, 1)
- right_leg.TopSurface = "Smooth"
- left_leg.BrickColor = BrickColor.new("Br. yellowish green")
- left_leg.BottomSurface = "Smooth"
- left_leg.CanCollide = false
- left_leg.CFrame = cframe * CFrame.new(-0.5, -2, 0)
- left_leg.FormFactor = "Symmetric"
- left_leg.Locked = true
- left_leg.Name = "Left Leg"
- left_leg.Size = Vector3.new(1, 2, 1)
- left_leg.TopSurface = "Smooth"
- neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- neck.Name = "Neck"
- neck.Part0 = torso
- neck.Part1 = head
- right_shoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- right_shoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- right_shoulder.MaxVelocity = 0.15
- right_shoulder.Name = "Right Shoulder"
- right_shoulder.Part0 = torso
- right_shoulder.Part1 = right_arm
- left_shoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- left_shoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- left_shoulder.MaxVelocity = 0.15
- left_shoulder.Name = "Left Shoulder"
- left_shoulder.Part0 = torso
- left_shoulder.Part1 = left_arm
- right_hip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- right_hip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- right_hip.MaxVelocity = 0.1
- right_hip.Name = "Right Hip"
- right_hip.Part0 = torso
- right_hip.Part1 = right_leg
- left_hip.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- left_hip.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- left_hip.MaxVelocity = 0.1
- left_hip.Name = "Left Hip"
- left_hip.Part0 = torso
- left_hip.Part1 = left_leg
- humanoid.Died:connect(function()
- wait(5)
- model:Destroy()
- end)
- model.Parent = parent
- return model
- end
- CharacterAppearance = {};
- CharacterAppearance.defaultAppearanceId = 2
- CharacterAppearance.stock = {}
- function CharacterAppearance.Create(properties)
- local id = properties.Id
- local bodyColors = Instance.new("BodyColors")
- bodyColors.HeadColor = properties.HeadColor
- bodyColors.TorsoColor = properties.TorsoColor
- bodyColors.RightArmColor = properties.RightArmColor
- bodyColors.LeftArmColor = properties.LeftArmColor
- bodyColors.RightLegColor = properties.RightLegColor
- bodyColors.LeftLegColor = properties.LeftLegColor
- local characterObjects = {bodyColors}
- local headObjects = {}
- local data = {
- characterObjects = characterObjects,
- headObjects = headObjects,
- tshirt = properties.TShirt
- }
- for _, assetId in ipairs(properties.CharacterAssets) do
- TaskScheduler.Start(CharacterAppearance.LoadAsset, characterObjects, assetId)
- end
- for _, assetId in ipairs(properties.HeadAssets) do
- TaskScheduler.Start(CharacterAppearance.LoadAsset, headObjects, assetId)
- end
- CharacterAppearance.stock[id] = data
- end
- function CharacterAppearance.GetDefaultAppearance()
- return CharacterAppearance.stock[CharacterAppearance.defaultAppearanceId]
- end
- function CharacterAppearance.LoadAsset(objects, assetId)
- local asset = InsertService:LoadAsset(assetId)
- for _, child in ipairs(asset:GetChildren()) do
- child.Archivable = true
- table.insert(objects, child:Clone())
- end
- end
- CharacterAppearance.Create {
- Id = 1,
- HeadColor = BrickColor.new("Institutional white"),
- TorsoColor = BrickColor.new("Really black"),
- RightArmColor = BrickColor.new("Institutional white"),
- LeftArmColor = BrickColor.new("Institutional white"),
- RightLegColor = BrickColor.new("Institutional white"),
- LeftLegColor = BrickColor.new("Institutional white"),
- CharacterAssets = {
- },
- HeadAssets = {
- }
- }
- CharacterAppearance.Create {
- Id = 2,
- HeadColor = BrickColor.new("Institutional white"),
- TorsoColor = BrickColor.new("Really black"),
- RightArmColor = BrickColor.new("Institutional white"),
- LeftArmColor = BrickColor.new("Institutional white"),
- RightLegColor = BrickColor.new("Institutional white"),
- LeftLegColor = BrickColor.new("Institutional white"),
- CharacterAssets = {
- },
- HeadAssets = {
- }
- }
- CharacterAppearance.Create {
- Id = 3,
- HeadColor = BrickColor.new("Pastel brown"),
- TorsoColor = BrickColor.new("Pastel brown"),
- RightArmColor = BrickColor.new("Pastel brown"),
- LeftArmColor = BrickColor.new("Pastel brown"),
- RightLegColor = BrickColor.new("White"),
- LeftLegColor = BrickColor.new("White"),
- CharacterAssets = {
- 0, 0,
- 0, 0,
- 0
- },
- HeadAssets = {},
- TShirt = "0"
- }
- CharacterAppearance.Create {
- Id = 4,
- HeadColor = BrickColor.new("Pastel brown"),
- TorsoColor = BrickColor.new("Pastel brown"),
- RightArmColor = BrickColor.new("Pastel brown"),
- LeftArmColor = BrickColor.new("Pastel brown"),
- RightLegColor = BrickColor.new("White"),
- LeftLegColor = BrickColor.new("White"),
- CharacterAssets = {
- },
- HeadAssets = {},
- TShirt = "rbxassetid://160146697"
- }
- GraphicalEffects = {};
- local MESH_IDS = {"rbxassetid://15310891"}
- local SOUND_IDS = {"rbxassetid://2248511", "rbxassetid://1369158"}
- local TEXTURE_IDS = {"rbxassetid://36527089", "rbxassetid://122610943", "rbxassetid://126561317", "rbxassetid://127033719"}
- local preloadConnections = {}
- local reloadingPreloads = false
- function GraphicalEffects.InitPreloads()
- local preload_part = Instance.new("Part")
- GraphicalEffects.preload_part = preload_part
- preload_part.Anchored = true
- preload_part.Archivable = false
- preload_part.BottomSurface = "Smooth"
- preload_part.CanCollide = false
- preload_part.CFrame = CFrame.new(math.huge, math.huge, math.huge)
- preload_part.FormFactor = "Custom"
- preload_part.Locked = true
- preload_part.Name = "Asset Preloader"
- preload_part.Size = Vector3.new(0.2, 0.2, 0.2)
- preload_part.TopSurface = "Smooth"
- preload_part.Transparency = 1
- preloadConnections[preload_part] = preload_part.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
- for _, mesh_id in ipairs(MESH_IDS) do
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = mesh_id
- preloadConnections[mesh] = mesh.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
- mesh.Parent = preload_part
- end
- for _, sound_id in ipairs(SOUND_IDS) do
- local sound = Instance.new("Sound")
- sound.SoundId = sound_id
- sound.Volume = 0
- preloadConnections[sound] = sound.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
- sound.Parent = preload_part
- end
- for _, texture_id in ipairs(TEXTURE_IDS) do
- local decal = Instance.new("Decal")
- decal.Texture = texture_id
- preloadConnections[decal] = decal.AncestryChanged:connect(GraphicalEffects.PreloadsAncestryChanged)
- decal.Parent = preload_part
- end
- preload_part.Parent = Workspace
- end
- function GraphicalEffects.PreloadsAncestryChanged(child, parent)
- if not reloadingPreloads and parent ~= GraphicalEffects.preload_part and parent ~= Workspace then
- reloadingPreloads = true
- for _, connection in pairs(preloadConnections) do
- connection:disconnect()
- preloadConnections[_] = nil
- end
- wait(1)
- reloadingPreloads = false
- GraphicalEffects.InitPreloads()
- end
- end
- GraphicalEffects.InitPreloads()
- -- Hyper beam
- function GraphicalEffects.FireSpaceHyperBeam(target, power, duration, radius, height, deviation)
- local stepTime, gameTime = 1 / 30, TaskScheduler.GetCurrentTime()
- local frames = duration * 30
- local beamColorOffset = 0.75 * tick() -- math.random()
- local blastPressure = power * 62500 + 250000
- local beamPart = Instance.new("Part")
- local beamMesh = Instance.new("SpecialMesh", beamPart)
- local explosion = Instance.new("Explosion")
- local sound = Instance.new("Sound", beamPart)
- beamPart.Anchored = true
- beamPart.CanCollide = false
- beamPart.CFrame = CFrame.new(target, target + Vector3.new(deviation * (math.random() - 0.5), deviation * (math.random() - 0.5), height))
- beamPart.FormFactor = "Custom"
- beamPart.Locked = true
- beamPart.Size = Vector3.new(0.2, 0.2, 0.2)
- beamMesh.MeshId = "rbxassetid://15310891"
- beamMesh.MeshType = "FileMesh"
- beamMesh.TextureId = "rbxassetid://36527089"
- local beamGlowPart1 = beamPart:Clone()
- local beamGlowMesh1 = beamMesh:Clone()
- local beamGlowPart2 = beamPart:Clone()
- local beamGlowMesh2 = beamMesh:Clone()
- local beamLight = Instance.new("PointLight", beamPart)
- beamLight.Range = power * 2
- beamLight.Shadows = true
- explosion.BlastPressure = blastPressure
- explosion.BlastRadius = power
- explosion.Position = target
- sound.SoundId = "rbxassetid://2248511"
- sound.Volume = 1
- local explosionHitConnection = explosion.Hit:connect(function(part, distance)
- if not part.Anchored and part:GetMass() < power * power then
- pcall(part.BreakJoints, part)
- part.Color = Color3.new(math.random,math.random,math.random)
- end
- end)
- beamPart.Transparency = 0.5
- beamPart.Archivable = false
- beamGlowPart1.Transparency = 0.75
- beamGlowPart2.Transparency = 0.75
- beamGlowMesh1.Parent = beamGlowPart1
- beamGlowPart1.Parent = beamPart
- beamGlowMesh2.Parent = beamGlowPart2
- beamGlowPart2.Parent = beamPart
- beamPart.Parent = workspace
- explosion.Parent = workspace
- for frame = 1, frames do
- local progress = frame / frames
- local alpha = 1 - math.sin(0.5 * math.pi * progress)
- local scale = 0.4 * alpha
- local glowScale1 = alpha * (0.5 + 0.5 * math.sin(math.tau * (8 * gameTime + beamColorOffset)))
- local glowScale2 = alpha * (0.5 + 0.5 * math.cos(math.tau * (8 * gameTime + beamColorOffset)))
- local vertexColor = Vector3.new(Utility.GetRainbowRGB(1.5 * gameTime + beamColorOffset))
- beamLight.Brightness = 1 - progress
- beamLight.Color = Color3.new(vertexColor.x, vertexColor.y, vertexColor.z)
- beamMesh.Scale = Vector3.new(radius * scale, 9000, radius * scale)
- beamMesh.VertexColor = vertexColor
- beamGlowMesh1.Scale = Vector3.new(1.2 * radius * glowScale1, 9000, 1.2 * radius * glowScale1)
- beamGlowMesh1.VertexColor = vertexColor
- beamGlowMesh2.Scale = Vector3.new(1.2 * radius * glowScale2, 9000, 1.2 * radius * glowScale2)
- beamGlowMesh2.VertexColor = vertexColor
- RunService.Stepped:wait()
- gameTime = TaskScheduler.GetCurrentTime()
- if frame <= 2 then
- local explosion = Instance.new("Explosion")
- explosion.BlastPressure = (1 - progress) * blastPressure
- explosion.BlastRadius = (1 - progress) * power
- explosion.Position = target
- explosion.Parent = Workspace
- if frame == 2 then
- sound:Play()
- end
- end
- end
- pcall(beamPart.Destroy, beamPart)
- explosionHitConnection:disconnect()
- end
- function GraphicalEffects.SpaceHyperBeam(target, power, duration, radius, height, deviation)
- TaskScheduler.Start(GraphicalEffects.FireSpaceHyperBeam, target, power or 12, duration or 1.5, radius or 6, height or 600, deviation or 20)
- end
- function GraphicalEffects.CrystalRing(data)
- data = data or {}
- local crystal_count = data.crystal_count or 30
- local crystal_color = data.crystal_color or BrickColor.new("Bright red")
- local crystal_scale = data.crystal_scale or Vector3.new(2 / 3, 2, 2 / 3)
- local fade_out_color = data.fade_out_color or BrickColor.new("Really black")
- local radius = radius or 1.25 * crystal_count / math.pi
- local spawn_duration = data.spawn_duration or 0.065
- local full_spawn_duration = spawn_duration * crystal_count
- local float_duration = data.float_duration or 5
- local wave_amplitude = data.wave_amplitude or 0.5
- local wave_period = data.wave_period or 3
- local appear_duration = data.appear_duration or 0.1
- local disappear_duration = data.disappear_duration or 2
- local base_part = data.base_part
- local offset_cframe
- if data.position then
- offset_cframe = CFrame.new(data.position)
- if base_part then
- offset_cframe = base_part.CFrame:toObjectSpace(offset_cframe)
- end
- else
- offset_cframe = CFrame.new()
- end
- local crystal_template = Instance.new("Part")
- crystal_template.Anchored = true
- crystal_template.Locked = true
- crystal_template.CanCollide = false
- crystal_template.BottomSurface = "Smooth"
- crystal_template.TopSurface = "Smooth"
- crystal_template.BrickColor = crystal_color
- crystal_template.FormFactor = "Symmetric"
- crystal_template.Size = Vector3.new(1, 1, 1)
- local crystal_light = Instance.new("PointLight", crystal_template)
- crystal_light.Brightness = 0.1 / crystal_count
- crystal_light.Color = crystal_color.Color
- crystal_light.Name = "Light"
- crystal_light.Range = radius
- crystal_light.Shadows = true
- local crystal_mesh = Instance.new("SpecialMesh", crystal_template)
- crystal_mesh.MeshId = "rbxassetid://9756362"
- crystal_mesh.MeshType = "FileMesh"
- crystal_mesh.Name = "Mesh"
- crystal_mesh.Scale = crystal_scale
- local crystal_model = Instance.new("Model")
- crystal_model.Archivable = false
- crystal_model.Name = "Crystal Model"
- crystal_model.Parent = Workspace
- local Se = Instance.new("SelectionBox")
- Se.Color3 = Color3.new(255,255,255)
- Se.LineThickness = 0.05
- Se.SurfaceTransparency = 0.8
- Se.Adornee = crystal_template
- local crystals = {}
- local lights = {}
- local meshes = {}
- for index = 1, crystal_count do
- local crystal = crystal_template:Clone()
- crystal.Parent = crystal_model
- crystals[index] = crystal
- lights[index] = crystal.Light
- meshes[index] = crystal.Mesh
- end
- local start_time = tick()
- repeat
- local base_cframe = offset_cframe
- if base_part then
- base_cframe = base_part.CFrame * base_cframe
- end
- local elapsed_time = tick() - start_time
- for index, crystal in ipairs(crystals) do
- local crystal_time = elapsed_time - index * spawn_duration
- local disappear_time = crystal_time - float_duration
- local offset
- if crystal_time < 0 then
- offset = 0
- elseif crystal_time < appear_duration then
- offset = radius * crystal_time / appear_duration
- else
- offset = radius
- end
- local wave_offset
- if disappear_time >= 0 then
- local disappear_progress = disappear_time / disappear_duration
- if disappear_progress > 1 then
- if crystal.Parent then
- crystal:Destroy()
- end
- else
- local inverse_progress = 1 - disappear_progress
- local light = lights[index]
- local mesh = meshes[index]
- crystal.BrickColor = fade_out_color
- light.Brightness = 2 * inverse_progress
- light.Range = 2 * radius
- mesh.Scale = crystal_scale * inverse_progress
- end
- wave_offset = 0
- else
- wave_offset = wave_amplitude * math.sin(math.tau * (elapsed_time - index / crystal_count * 3) / wave_period)
- end
- local rotation_angle = (tick() * 0.5 + (index - 1) / crystal_count) % 1 * math.tau
- crystal.CFrame = base_cframe * CFrame.Angles(0, rotation_angle, 0) * CFrame.new(0, wave_offset, -offset)
- end
- RunService.Stepped:wait()
- until elapsed_time >= float_duration + full_spawn_duration + disappear_duration
- if crystal_model.Parent then
- crystal_model:Destroy()
- end
- end
- function GraphicalEffects.KillerCrystalRing(data)
- data = data or {}
- local crystal_count = data.crystal_count or 30
- local crystal_color = data.crystal_color or BrickColor.new("Bright red")
- local crystal_scale = data.crystal_scale or Vector3.new(2 / 3, 2, 2 / 3)
- local fade_out_color = data.fade_out_color or BrickColor.new("Really black")
- local radius = radius or 1.25 * crystal_count / math.pi
- local spawn_duration = data.spawn_duration or 0.065
- local full_spawn_duration = spawn_duration * crystal_count
- local float_duration = data.float_duration or 5
- local wave_amplitude = data.wave_amplitude or 0.5
- local wave_period = data.wave_period or 3
- local appear_duration = data.appear_duration or 0.1
- local disappear_duration = data.disappear_duration or 2
- local base_part = data.base_part
- local offset_cframe
- if data.position then
- offset_cframe = CFrame.new(data.position)
- if base_part then
- offset_cframe = base_part.CFrame:toObjectSpace(offset_cframe)
- end
- else
- offset_cframe = CFrame.new()
- end
- local crystal_template = Instance.new("Part")
- crystal_template.Anchored = true
- crystal_template.Locked = true
- crystal_template.CanCollide = false
- crystal_template.BottomSurface = "Smooth"
- crystal_template.TopSurface = "Smooth"
- crystal_template.BrickColor = crystal_color
- crystal_template.FormFactor = "Symmetric"
- crystal_template.Size = Vector3.new(1, 1, 1)
- function onTouch(part)
- local humanoid = part.Parent:FindFirstChild("Humanoid")
- if (humanoid ~= nil) then -- if a humanoid exists, then
- humanoid.Health = 0 -- damage the humanoid
- humanoid.Parent:BreakJoints()
- end
- end
- crystal_template.Touched:connect(onTouch)
- local crystal_light = Instance.new("PointLight", crystal_template)
- crystal_light.Brightness = 0.1 / crystal_count
- crystal_light.Color = crystal_color.Color
- crystal_light.Name = "Light"
- crystal_light.Range = radius
- crystal_light.Shadows = true
- local crystal_mesh = Instance.new("SpecialMesh", crystal_template)
- crystal_mesh.MeshId = "rbxassetid://9756362"
- crystal_mesh.MeshType = "FileMesh"
- crystal_mesh.Name = "Mesh"
- crystal_mesh.Scale = crystal_scale
- local crystal_model = Instance.new("Model")
- crystal_model.Archivable = false
- crystal_model.Name = "Crystal Model"
- crystal_model.Parent = Workspace
- local Se = Instance.new("SelectionBox")
- Se.Color3 = Color3.new(255,255,255)
- Se.LineThickness = 0.05
- Se.SurfaceTransparency = 0.8
- Se.Adornee = crystal_template
- local crystals = {}
- local lights = {}
- local meshes = {}
- for index = 1, crystal_count do
- local crystal = crystal_template:Clone()
- crystal.Parent = crystal_model
- crystals[index] = crystal
- lights[index] = crystal.Light
- meshes[index] = crystal.Mesh
- end
- local start_time = tick()
- repeat
- local base_cframe = offset_cframe
- if base_part then
- base_cframe = base_part.CFrame * base_cframe
- end
- local elapsed_time = tick() - start_time
- for index, crystal in ipairs(crystals) do
- local crystal_time = elapsed_time - index * spawn_duration
- local disappear_time = crystal_time - float_duration
- local offset
- if crystal_time < 0 then
- offset = 0
- elseif crystal_time < appear_duration then
- offset = radius * crystal_time / appear_duration
- else
- offset = radius
- end
- local wave_offset
- if disappear_time >= 0 then
- local disappear_progress = disappear_time / disappear_duration
- if disappear_progress > 1 then
- if crystal.Parent then
- crystal:Destroy()
- end
- else
- local inverse_progress = 1 - disappear_progress
- local light = lights[index]
- local mesh = meshes[index]
- crystal.BrickColor = fade_out_color
- light.Brightness = 2 * inverse_progress
- light.Range = 2 * radius
- mesh.Scale = crystal_scale * inverse_progress
- end
- wave_offset = 0
- else
- wave_offset = wave_amplitude * math.sin(math.tau * (elapsed_time - index / crystal_count * 3) / wave_period)
- end
- local rotation_angle = (tick() * 0.5 + (index - 1) / crystal_count) % 1 * math.tau
- crystal.CFrame = base_cframe * CFrame.Angles(0, rotation_angle, 0) * CFrame.new(0, wave_offset, -offset)
- end
- RunService.Stepped:wait()
- until elapsed_time >= float_duration + full_spawn_duration + disappear_duration
- if crystal_model.Parent then
- crystal_model:Destroy()
- end
- end
- GraphicalEffects.magicCircleData = {}
- GraphicalEffects.MAGIC_CIRCLE_DEFAULT_OFFSET = 6.25
- function GraphicalEffects.AnimateMagicCircle(data)
- local frame, direction, magic_circle_model, magic_circle_part, magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, duration,
- stay, magic_circle_adornee_func, magic_circle_offset = unpack(data)
- frame = frame + 1
- data[1] = frame
- local transparency = (frame / duration) ^ stay
- local opacity = 1 - transparency
- if frame == duration then
- pcall(Game.Destroy, magic_circle_model)
- GraphicalEffects.magicCircleData[data] = nil
- else
- if magic_circle_model.Parent ~= Workspace then
- pcall(Utility.SetProperty, magic_circle_model, "Parent", Workspace)
- end
- local magic_circle_adornee = magic_circle_adornee_func()
- magic_circle_position = magic_circle_adornee.Position + direction * magic_circle_offset
- local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0, math.tau * frame /
- 25)
- magic_circle_part.CFrame = magic_circle_cframe
- magic_circle_light.Brightness = opacity
- magic_circle_decal_back.Transparency = transparency
- magic_circle_decal_front.Transparency = transparency
- end
- end
- function GraphicalEffects.CreateMagicCircle(target, magic_circle_scale, magic_circle_image, light_color, duration, stay, magic_circle_adornee_func,
- magic_circle_offset)
- local magic_circle_adornee = magic_circle_adornee_func()
- if magic_circle_adornee then
- local origin = magic_circle_adornee.Position
- local direction = (target - origin).unit
- local magic_circle_position = origin + direction * magic_circle_offset
- local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction)
- local magic_circle_model = Instance.new("Model")
- local magic_circle_part = Instance.new("Part", magic_circle_model)
- local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part)
- local magic_circle_light = Instance.new("PointLight", magic_circle_part)
- local magic_circle_decal_back = Instance.new("Decal", magic_circle_part)
- local magic_circle_decal_front = Instance.new("Decal", magic_circle_part)
- magic_circle_model.Archivable = false
- magic_circle_part.Anchored = true
- magic_circle_part.BottomSurface = "Smooth"
- magic_circle_part.CanCollide = false
- magic_circle_part.CFrame = magic_circle_cframe
- magic_circle_part.FormFactor = "Custom"
- magic_circle_part.Locked = true
- magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2)
- magic_circle_part.TopSurface = "Smooth"
- magic_circle_part.Transparency = 1
- magic_circle_mesh.Scale = Vector3.new(60, 60, 0) * magic_circle_scale
- magic_circle_light.Color = light_color
- magic_circle_light.Range = 16 * magic_circle_scale
- magic_circle_light.Shadows = true
- magic_circle_decal_back.Face = "Back"
- magic_circle_decal_back.Texture = magic_circle_image
- magic_circle_decal_front.Face = "Front"
- magic_circle_decal_front.Texture = magic_circle_image
- magic_circle_model.Parent = Workspace
- local data = {0, direction, magic_circle_model, magic_circle_part, magic_circle_light, magic_circle_decal_back, magic_circle_decal_front,
- duration, stay, magic_circle_adornee_func, magic_circle_offset}
- GraphicalEffects.magicCircleData[data] = true
- return data
- end
- end
- GraphicalEffects.missileData = {}
- GraphicalEffects.missileParts = {}
- function GraphicalEffects.AnimateMissile(data)
- local frame, missilePart, targetPart, timeCreated, direction, touchedConnection, explodeRequested, bodyGyro, swooshSound, magicCircleData, lifeTime,
- pointOnPart, flipped = unpack(data)
- frame = frame + 1
- data[1] = frame
- if flipped then
- direction = -direction
- end
- if frame <= 10 then
- if frame == 2 then
- swooshSound:Play()
- end
- missilePart.Anchored = true
- local progress = frame / 10
- missilePart.Size = Vector3.new(1, 1, progress * 4)
- local magicCirclePart = magicCircleData[4]
- local magicCirclePosition = magicCirclePart.Position
- local missileOffset = 2 * progress * direction
- local missilePosition = magicCirclePosition + missileOffset
- missilePart.CFrame = CFrame.new(missilePosition, missilePosition + direction)
- --missilePart.Transparency = 0.5 * (1 - progress)
- if frame == 10 then
- touchedConnection = missilePart.Touched:connect(function(hit)
- if hit.CanCollide and hit.Parent and not GraphicalEffects.missileParts[hit] then
- touchedConnection:disconnect()
- data[7] = true
- end
- end)
- data[6] = touchedConnection
- end
- else
- missilePart.Anchored = false
- local missilePosition = missilePart.Position
- local targetPosition = targetPart.CFrame * pointOnPart
- local distanceVector = targetPosition - missilePosition
- local elapsedTime = time() - timeCreated
- local targetParent = targetPart.Parent
- if explodeRequested or (targetParent and distanceVector.magnitude < 10) or elapsedTime > lifeTime then
- GraphicalEffects.missileData[data] = nil
- GraphicalEffects.missileParts[missilePart] = nil
- touchedConnection:disconnect()
- if missilePart.Parent then
- missilePart:Destroy()
- local explosion = Instance.new("Explosion")
- explosion.BlastRadius = 12.5
- explosion.Position = missilePosition
- local explosionHitConnection = explosion.Hit:connect(function(hit, distance)
- local missileData = GraphicalEffects.missileParts[hit]
- if missileData and distance < 3 then
- missileData[7] = true
- else
- pcall(hit.BreakJoints, hit)
- end
- end)
- explosion.Parent = Workspace
- TaskScheduler.Schedule(1, explosionHitConnection.disconnect, explosionHitConnection)
- end
- else
- local targetInWorkspace = targetPart:IsDescendantOf(Workspace)
- if targetInWorkspace then
- direction = distanceVector.unit
- data[5] = direction
- end
- local speed = 14 + elapsedTime * 10
- local gyroD
- if elapsedTime < 42.5 and targetInWorkspace then
- gyroD = 1000 - elapsedTime * 15
- else
- gyroD = 100
- bodyGyro.maxTorque = Vector3.new(0, 0, 0)
- if elapsedTime + 7.5 < lifeTime then
- data[11] = elapsedTime + 7.5
- end
- end
- bodyGyro.D = gyroD
- bodyGyro.cframe = CFrame.new(Vector3.new(), direction)
- missilePart.Velocity = missilePart.CFrame.lookVector * speed
- end
- end
- end
- function GraphicalEffects.ShootMissile(targetPart, pointOnPart, direction, magic_circle_adornee_func, magic_circle_offset, flipped)
- if not magic_circle_offset then
- magic_circle_offset = GraphicalEffects.MAGIC_CIRCLE_DEFAULT_OFFSET
- end
- local targetPosition = targetPart.Position
- local headPosition = chatAdornee.Position
- local origin = CFrame.new(headPosition, headPosition + direction) + direction * magic_circle_offset
- local missilePart = Instance.new("Part")
- local antiGravityForce = Instance.new("BodyForce", missilePart)
- local bodyGyro = Instance.new("BodyGyro", missilePart)
- local explosionSound = Instance.new("Sound", missilePart)
- local swooshSound = Instance.new("Sound", missilePart)
- antiGravityForce.force = Vector3.new(0, 196.2 * 4, 0)
- bodyGyro.D = 1000
- bodyGyro.maxTorque = Vector3.new(1, 1, 1)
- explosionSound.PlayOnRemove = true
- explosionSound.SoundId = "rbxasset://sounds/collide.wav"
- explosionSound.Volume = 1
- missilePart.Anchored = true
- missilePart.BackSurface = "Studs"
- missilePart.BottomSurface = "Studs"
- missilePart.BrickColor = BrickColor.Red()
- missilePart.CFrame = origin
- missilePart.FormFactor = "Custom"
- missilePart.FrontSurface = "Studs"
- missilePart.LeftSurface = "Studs"
- missilePart.Locked = true
- missilePart.RightSurface = "Studs"
- missilePart.Size = Vector3.new(1, 1, 0.2)
- missilePart.TopSurface = "Studs"
- --missilePart.Transparency = 0.5
- swooshSound.Looped = true
- swooshSound.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- swooshSound.Volume = 0.7
- local magicCircleData = GraphicalEffects.CreateMagicCircle(headPosition + direction * 1000, 0.875, "rbxassetid://127033719", Color3.new(1, 1, 1),
- 40, 4, magic_circle_adornee_func or function() return chatAdornee end, magic_circle_offset)
- local data = {0, missilePart, targetPart, time(), direction, false, false, bodyGyro, swooshSound, magicCircleData, 50, pointOnPart, flipped}
- missilePart.Parent = Workspace
- GraphicalEffects.missileData[data] = true
- GraphicalEffects.missileParts[missilePart] = data
- end
- function GraphicalEffects.CubicInterpolate(y0, y1, y2, y3, mu)
- local a0, a1, a2, a3, mu2
- mu2 = mu * mu
- a0 = y3 - y2 - y0 + y1
- a1 = y0 - y1 - a0
- a2 = y2 - y0
- a3 = y1
- return a0 * mu * mu2 + a1 * mu2 + a2 * mu + a3
- end
- function GraphicalEffects.JointCrap(model, cycletime)
- if model then
- local cycletime = cycletime or (0.75 * (1 + math.random() * 4))
- local offsetradius = 0.75
- local rotationoffset = math.pi
- local joints = {}
- local stack = model:GetChildren()
- while #stack ~= 0 do
- local object = stack[#stack]
- table.remove(stack)
- for index, child in ipairs(object:GetChildren()) do
- table.insert(stack, child)
- end
- if object:IsA("JointInstance") then
- table.insert(joints, object)
- end
- end
- local rot0 = {}
- local rot1 = {}
- local rot2 = {}
- local rot3 = {}
- local rot4 = {}
- for index, joint in ipairs(joints) do
- local pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
- local rot = Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
- rot0[index] = {joint.C0, joint.C1}
- rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
- rot2[index] = {pos, rot}
- pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
- rot = rot + Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
- rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
- rot3[index] = {pos, rot}
- pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
- rot = rot + Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
- rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
- rot4[index] = {pos, rot}
- end
- while model.Parent do
- for i, j in ipairs(joints) do
- local pos = Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5).unit * offsetradius
- local rot = rot4[i][2] + Vector3.new(math.random(), math.random(), math.random()) * rotationoffset
- rot = Vector3.new(rot.x % (math.tau), rot.y % (math.tau), rot.z % (math.tau))
- rot1[i], rot2[i], rot3[i], rot4[i] = rot2[i], rot3[i], rot4[i], {pos, rot}
- end
- local start = tick()
- while true do
- local ctime = tick()
- local elapsed = ctime - start
- if elapsed > cycletime then
- break
- end
- local progress = elapsed / cycletime
- for index, joint in ipairs(joints) do
- local v0, v1, v2, v3, v4 = rot0[index], rot1[index], rot2[index], rot3[index], rot4[index]
- 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]
- local px = GraphicalEffects.CubicInterpolate(p1.x, p2.x, p3.x, p4.x, progress)
- local py = GraphicalEffects.CubicInterpolate(p1.y, p2.y, p3.y, p4.y, progress)
- local pz = GraphicalEffects.CubicInterpolate(p1.z, p2.z, p3.z, p4.z, progress)
- local rx = GraphicalEffects.CubicInterpolate(r1.x, r2.x, r3.x, r4.x, progress)
- local ry = GraphicalEffects.CubicInterpolate(r1.y, r2.y, r3.y, r4.y, progress)
- local rz = GraphicalEffects.CubicInterpolate(r1.z, r2.z, r3.z, r4.z, progress)
- local cframe = CFrame.new(px, py, pz) * CFrame.Angles(rx, ry, rz)
- joint.C0 = v0[1] * cframe
- joint.C1 = v0[2] * cframe:inverse()
- end
- RunService.Stepped:wait()
- end
- end
- end
- end
- GraphicalEffects.LASER_WIDTH = 0.15
- GraphicalEffects.LASER_MAGIC_CIRCLE_DISTANCE = 6.25
- GraphicalEffects.laser_data = {}
- --GraphicalEffects.fragmentation = {}
- function GraphicalEffects.AnimateLaserOfDeath(data)
- local frame, directionOrientation, direction, magic_circle_model, laser_part, laser_mesh, magic_circle_part, magic_circle_light,
- magic_circle_decal_back, magic_circle_decal_front, sound, laser_scale, fragmentation_size, duration, laser_lights, laser_effects, stay, light_effects =
- unpack(data)
- local laser_color = laser_part.Color
- frame = frame + 1
- data[1] = frame
- local transparency = (frame / duration) ^ stay
- local opacity = 1 - transparency
- if frame == 2 then
- sound:Play()
- end
- if frame == duration then
- pcall(Game.Destroy, magic_circle_model)
- GraphicalEffects.laser_data[data] = nil
- else
- if magic_circle_model.Parent ~= Workspace then
- pcall(Utility.SetProperty, magic_circle_model, "Parent", Workspace)
- end
- local laser_distance = 0
- local origin = chatAdornee.CFrame
- if not light_effects then
- direction = (origin * directionOrientation - origin.p).unit
- end
- local magic_circle_position = origin.p + direction * GraphicalEffects.LASER_MAGIC_CIRCLE_DISTANCE
- local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0, math.tau * frame /
- 25)
- local loop_scale = (laser_scale - 1) / 10
- for x_offset = -loop_scale, loop_scale, 2 do
- for y_offset = -loop_scale, loop_scale, 2 do
- local origin_position = magic_circle_cframe * Vector3.new(x_offset, y_offset, 0)
- for index = 1, 8 do
- local part, position
- for ray_index = 1, 10 do
- local ray = Ray.new(origin_position + direction * (999 * (ray_index - 1)), direction * 999)
- part, position = Workspace:FindPartOnRay(ray, magic_circle_model)
- if part then
- break
- end
- end
- if part then
- laser_distance = (position - origin_position).magnitude
- if frame % 8 == 1 and index == 1 then
- Instance.new("Explosion", Workspace).Position = position
- end
- if not part:IsA("Terrain") then
- pcall(part.BreakJoints, part)
- local is_block = part:IsA("Part") and part.Shape == Enum.PartType.Block
- local mass = part:GetMass()
- local size = part.Size
- if (is_block and ((size.X < fragmentation_size and size.Y < fragmentation_size and size.Z <
- fragmentation_size) or (not part.Anchored and mass < 750))) or (not is_block and mass < 250000) then
- local part_transparency = math.max(part.Transparency + 0.007 * fragmentation_size, 0.5)
- if part_transparency >= 0.5 then -- temporarily to minimize debris
- pcall(Game.Destroy, part)
- else
- local cframe = part.CFrame
- part.Anchored = false
- part.BrickColor = BrickColor.new("Medium stone grey")
- part.CanCollide = true
- if part:IsA("FormFactorPart") then
- part.FormFactor = "Custom"
- end
- part.Size = size - Vector3.new(0.135, 0.135, 0.135) * fragmentation_size
- part.Transparency = part_transparency
- part.CFrame = cframe + direction * 5
- part.Velocity = part.Velocity + direction * 40
- end
- elseif is_block then
- local parts = {part}
- local model = Instance.new("Model", part.Parent)
- model.Name = "Fragments"
- if size.X >= fragmentation_size then
- size = Vector3.new(0.5, 1, 1) * size
- local archivable = part.Archivable
- local cframe = part.CFrame
- part.FormFactor = "Custom"
- part.Size = size
- part.Archivable = true
- local part_clone = part:Clone()
- part.Archivable = archivable
- part_clone.Archivable = archivable
- part.CFrame = cframe * CFrame.new(-0.5 * size.X, 0, 0)
- part_clone.CFrame = cframe * CFrame.new(0.5 * size.X, 0, 0)
- part_clone.Parent = model
- parts[2] = part_clone
- end
- if size.Y >= fragmentation_size then
- size = Vector3.new(1, 0.5, 1) * size
- for part_index = 1, #parts do
- local part = parts[part_index]
- local archivable = part.Archivable
- local cframe = part.CFrame
- part.FormFactor = "Custom"
- part.Size = size
- part.Archivable = true
- local part_clone = part:Clone()
- part.Archivable = archivable
- part_clone.Archivable = archivable
- part.CFrame = cframe * CFrame.new(0, -0.5 * size.Y, 0)
- part_clone.CFrame = cframe * CFrame.new(0, 0.5 * size.Y, 0)
- part_clone.Parent = model
- table.insert(parts, part_clone)
- end
- end
- if size.Z >= fragmentation_size then
- size = Vector3.new(1, 1, 0.5) * size
- for part_index = 1, #parts do
- local part = parts[part_index]
- local archivable = part.Archivable
- local cframe = part.CFrame
- part.FormFactor = "Custom"
- part.Size = size
- part.Archivable = true
- local part_clone = part:Clone()
- part.Archivable = archivable
- part_clone.Archivable = archivable
- part.CFrame = cframe * CFrame.new(0, 0, -0.5 * size.Z)
- part_clone.CFrame = cframe * CFrame.new(0, 0, 0.5 * size.Z)
- part_clone.Parent = model
- table.insert(parts, part_clone)
- end
- end
- for _, part in ipairs(parts) do
- part:MakeJoints()
- end
- else
- break
- end
- end
- else
- laser_distance = 9990
- break
- end
- end
- end
- end
- local laser_cframe = magic_circle_cframe * CFrame.Angles(-0.5 * math.pi, 0, 0)
- local laser_width = GraphicalEffects.LASER_WIDTH * opacity * laser_scale
- local laser_mesh_offset = Vector3.new(0, 0.5 * laser_distance, 0)
- laser_part.CFrame = laser_cframe
- if laser_effects then
- local laser_effect_data_1, laser_effect_data_2 = laser_effects[1], laser_effects[2]
- local laser_effect_1, laser_effect_mesh_1 = laser_effect_data_1[1], laser_effect_data_1[2]
- local laser_effect_2, laser_effect_mesh_2 = laser_effect_data_2[1], laser_effect_data_2[2]
- laser_effect_1.CFrame = laser_cframe
- laser_effect_2.CFrame = laser_cframe
- laser_effect_mesh_1.Offset = laser_mesh_offset
- laser_effect_mesh_2.Offset = laser_mesh_offset
- local game_time = time()
- local effect_scale_1 = 0.5 + 0.5 * math.sin(16 * math.pi * game_time)
- local effect_scale_2 = 0.5 + 0.5 * math.cos(16 * math.pi * game_time)
- laser_effect_mesh_1.Scale = 5 * Vector3.new(laser_width * effect_scale_1, laser_distance, laser_width * effect_scale_1)
- laser_effect_mesh_2.Scale = 5 * Vector3.new(laser_width * effect_scale_2, laser_distance, laser_width * effect_scale_2)
- laser_width = laser_width * 0.25
- end
- laser_mesh.Offset = laser_mesh_offset
- laser_mesh.Scale = 5 * Vector3.new(laser_width, laser_distance, laser_width)
- magic_circle_part.CFrame = magic_circle_cframe
- magic_circle_light.Brightness = opacity
- magic_circle_decal_back.Transparency = transparency
- magic_circle_decal_front.Transparency = transparency
- if light_effects then
- for index, data in ipairs(laser_lights) do
- local laser_spotlight_part, laser_spotlight = data[1], data[2]
- local laser_spotlight_offset = 30 * (index - 1)
- if laser_spotlight_offset <= laser_distance then
- laser_spotlight_part.CFrame = magic_circle_cframe * CFrame.new(0, 0, -laser_spotlight_offset)
- laser_spotlight.Brightness = opacity
- laser_spotlight.Enabled = true
- else
- laser_spotlight.Enabled = false
- end
- end
- end
- end
- end
- function GraphicalEffects.ShootLaserOfDeath(target, data)
- if chatAdornee then
- data = data or {}
- local brickcolor = data.brickcolor or BrickColor.new("Really black")
- local duration = data.duration or 40
- local fragmentation_size = data.fragmentation_size or 3
- local laser_scale = data.laser_scale or 1
- local light_color = data.light_color or Color3.new(1, 0.5, 1)
- local magic_circle_image = data.magic_circle_image or "rbxassetid://122610943"
- local magic_circle_scale = data.magic_circle_scale or 1
- local sound_volume = data.sound_volume or 1 / 3
- local special_effects = data.special_effects
- local stay = data.stay or 4
- local origin = chatAdornee.CFrame
- local directionOrientation = origin:pointToObjectSpace(target)
- local direction = (target - origin.p).unit
- local magic_circle_position = origin.p + direction * GraphicalEffects.LASER_MAGIC_CIRCLE_DISTANCE
- local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction)
- local magic_circle_model = Instance.new("Model")
- local laser_part = Instance.new("Part", magic_circle_model)
- local laser_mesh = Instance.new("CylinderMesh", laser_part)
- local magic_circle_part = Instance.new("Part", magic_circle_model)
- local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part)
- local magic_circle_light = Instance.new("PointLight", magic_circle_part)
- local magic_circle_decal_back = Instance.new("Decal", magic_circle_part)
- local magic_circle_decal_front = Instance.new("Decal", magic_circle_part)
- local sound = Instance.new("Sound", magic_circle_part)
- sound.Pitch = 1.25
- sound.SoundId = "rbxassetid://2248511"
- sound.Volume = sound_volume
- magic_circle_model.Archivable = false
- laser_part.Anchored = true
- laser_part.BottomSurface = "Smooth"
- laser_part.BrickColor = brickcolor
- laser_part.CanCollide = false
- laser_part.CFrame = magic_circle_cframe * CFrame.Angles(-0.5 * math.pi, 0, 0)
- laser_part.FormFactor = "Custom"
- laser_part.Locked = true
- laser_part.Size = Vector3.new(0.2, 0.2, 0.2)
- laser_part.TopSurface = "Smooth"
- laser_mesh.Offset = Vector3.new(0, 0, 0)
- laser_mesh.Name = "Mesh"
- laser_mesh.Scale = 5 * laser_scale * Vector3.new(GraphicalEffects.LASER_WIDTH, 0, GraphicalEffects.LASER_WIDTH)
- magic_circle_part.Anchored = true
- magic_circle_part.BottomSurface = "Smooth"
- magic_circle_part.CanCollide = false
- magic_circle_part.CFrame = magic_circle_cframe
- magic_circle_part.FormFactor = "Custom"
- magic_circle_part.Locked = true
- magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2)
- magic_circle_part.TopSurface = "Smooth"
- magic_circle_part.Transparency = 1
- magic_circle_mesh.Scale = Vector3.new(60, 60, 0) * magic_circle_scale
- magic_circle_light.Color = light_color
- magic_circle_light.Range = 16 * magic_circle_scale
- magic_circle_light.Shadows = true
- magic_circle_decal_back.Face = "Back"
- magic_circle_decal_back.Texture = magic_circle_image
- magic_circle_decal_front.Face = "Front"
- magic_circle_decal_front.Texture = magic_circle_image
- magic_circle_model.Parent = Workspace
- local laser_color = brickcolor.Color
- local laser_lights = {}
- local light_effects = laser_color.r + laser_color.g + laser_color.b > 0.25
- if light_effects then
- local laser_spotlight_part_template = Instance.new("Part")
- local laser_spotlight_light_template = Instance.new("SpotLight", laser_spotlight_part_template)
- laser_spotlight_part_template.Anchored = true
- laser_spotlight_part_template.Anchored = true
- laser_spotlight_part_template.BottomSurface = "Smooth"
- laser_spotlight_part_template.CanCollide = false
- laser_spotlight_part_template.FormFactor = "Custom"
- laser_spotlight_part_template.Locked = true
- laser_spotlight_part_template.Size = Vector3.new(0.2, 0.2, 0.2)
- laser_spotlight_part_template.TopSurface = "Smooth"
- laser_spotlight_part_template.Transparency = 1
- laser_spotlight_light_template.Angle = 45
- laser_spotlight_light_template.Color = laser_color
- laser_spotlight_light_template.Enabled = true
- laser_spotlight_light_template.Name = "Light"
- laser_spotlight_light_template.Range = 60
- for index = 1, 40 do
- local laser_spotlight_part = laser_spotlight_part_template:Clone()
- laser_spotlight_part.CFrame = magic_circle_cframe * CFrame.new(0, 0, -30 * (index - 1))
- laser_spotlight_part.Parent = magic_circle_model
- laser_lights[index] = {laser_spotlight_part, laser_spotlight_part.Light}
- end
- end
- local laser_effects
- if special_effects then
- laser_effects = {}
- local laser_effect_1 = laser_part:Clone()
- laser_effect_1.BrickColor = special_effects
- laser_effect_1.Transparency = 0.5
- local laser_effect_2 = laser_effect_1:Clone()
- laser_effects[1], laser_effects[2] = {laser_effect_1, laser_effect_1.Mesh}, {laser_effect_2, laser_effect_2.Mesh}
- laser_effect_1.Parent = magic_circle_model
- laser_effect_2.Parent = magic_circle_model
- end
- GraphicalEffects.laser_data[{0, directionOrientation, direction, magic_circle_model, laser_part, laser_mesh, magic_circle_part,
- magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, sound, laser_scale, fragmentation_size, duration, laser_lights, laser_effects, stay,
- light_effects}] = true
- end
- end
- function GraphicalEffects.SpawnSapientRock(position)
- local part = Instance.new("Part", Workspace)
- local size = 8 + math.random(0, 5)
- part.BottomSurface = "Smooth"
- part.TopSurface = "Smooth"
- part.Material = "Slate"
- part.Locked = true
- part.Shape = "Ball"
- part.FormFactor = "Custom"
- part.Size = Vector3.new(size, size, size)
- part.Position = position
- local bodypos = Instance.new("BodyPosition", part)
- bodypos.maxForce = Vector3.new(0, 0, 0)
- local angry = false
- local damage_ready = true
- local torso_following
- local torso_changed = -1000
- local touched_conn = part.Touched:connect(function(hit)
- local character = hit.Parent
- if character then
- local humanoid
- for _, child in ipairs(character:GetChildren()) do
- if child:IsA("Humanoid") then
- humanoid = child
- break
- end
- end
- if humanoid then
- if angry then
- if damage_ready then
- damage_ready = false
- humanoid:TakeDamage(100)
- wait(1)
- damage_ready = true
- angry = false
- part.BrickColor = BrickColor.new("Medium stone grey")
- end
- else
- local torso = humanoid.Torso
- if torso then
- torso_following = torso
- torso_changed = tick()
- end
- end
- end
- end
- end)
- TaskScheduler.Start(function()
- while part.Parent == Workspace do
- if torso_following then
- bodypos.position = torso_following.Position
- if tick() - torso_changed > 60 or not torso_following.Parent then
- torso_following = nil
- bodypos.maxForce = Vector3.new(0, 0, 0)
- angry = false
- part.BrickColor = BrickColor.new("Medium stone grey")
- else
- local speed = angry and Vector3.new(16, 16, 16) or Vector3.new(6, 0, 6)
- bodypos.maxForce = part:GetMass() * speed
- if part.Position.Y < -250 then
- part.Velocity = Vector3.new()
- part.Position = torso_following.Position + Vector3.new(0, 80, 0)
- part.BrickColor = BrickColor.new("Bright red")
- angry = true
- torso_changed = tick()
- end
- end
- end
- RunService.Stepped:wait()
- end
- touched_conn:disconnect()
- end)
- TaskScheduler.Start(function()
- while part.Parent == Workspace do
- wait(25 + math.random() * 10)
- local next_size = 8 + math.random() * 5
- if math.random(100) == 1 then
- next_size = next_size * (2 + 6 * math.random())
- end
- next_size = math.floor(next_size + 0.5)
- local start_time = tick()
- local mesh = Instance.new("SpecialMesh", part)
- mesh.MeshType = "Sphere"
- repeat
- local elapsed_time = tick() - start_time
- local alpha = math.cos(elapsed_time * math.pi * 0.5)
- local interpolated_size = size * alpha + next_size * (1 - alpha)
- local size_vector = Vector3.new(interpolated_size, interpolated_size, interpolated_size)
- local cframe = part.CFrame
- part.Size = size_vector
- part.CFrame = cframe
- mesh.Scale = size_vector / part.Size
- RunService.Stepped:wait()
- until tick() - start_time >= 1
- mesh:Destroy()
- local cframe = part.CFrame
- part.Size = Vector3.new(next_size, next_size, next_size)
- part.CFrame = cframe
- size = next_size
- end
- end)
- end
- function GraphicalEffects.MainLoop()
- RunService.Stepped:wait()
- for data in pairs(GraphicalEffects.magicCircleData) do
- GraphicalEffects.AnimateMagicCircle(data)
- end
- for data in pairs(GraphicalEffects.laser_data) do
- GraphicalEffects.AnimateLaserOfDeath(data)
- end
- for data in pairs(GraphicalEffects.missileData) do
- GraphicalEffects.AnimateMissile(data)
- end
- end
- TaskScheduler.Start(function()
- while true do
- GraphicalEffects.MainLoop()
- end
- end)
- PlayerControl = {};
- PlayerControl.fly_acceleration = 10
- PlayerControl.fly_basespeed = 250
- PlayerControl.fly_speed = PlayerControl.fly_basespeed
- PlayerControl.featherfallEnabled = true
- PlayerControl.pushable = false
- PlayerControl.rolling = false
- PlayerControl.rollingAngle = 0
- PlayerControl.rollingOffset = 0
- PlayerControl.rollingMaxOffset = 3
- PlayerControl.rollingSpeed = 1 / 50
- PlayerControl.characterEnabled = false
- PlayerControl.characterMode = "normal"
- local character = nil
- local flying, flyingMomentum, flyingTilt = false, Vector3.new(), 0
- local pose, regeneratingHealth, jumpDebounce = "Standing", false, false
- -- TODO: make local variables public
- local model, bodyColors, leftArmMesh, leftLegMesh, rightArmMesh, rightLegMesh, torsoMesh, wildcardHat, wildcardHandle, wildcardMesh, pants, shirt, humanoid,
- head, leftArm, leftLeg, rightArm, rightLeg, torso, rootPart, rootJoint, face, soundFreeFalling, soundGettingUp, soundRunning, leftHip, leftShoulder,
- rightHip, rightShoulder, neck, wildcardWeld, feetPart, feetWeld, feetTouchInterest, bodyGyro, bodyVelocity, headMesh, torsoLight
- local AnimateCharacter
- local UserInterface = game:service'UserInputService'
- local chatBubbles = {}
- local chatCharacterLimit = 240
- function PlayerControl.CreateCharacter()
- local characterMode = PlayerControl.characterMode
- if characterMode == "normal" then
- if not PlayerControl.characterEnabled then
- return
- end
- local appearance = CharacterAppearance.GetDefaultAppearance()
- local active = true
- local torsoCFrame = (torso and torso.CFrame) or PlayerControl.torso_cframe or CFrame.new(0, 10, 0)
- if torsoCFrame.p.Y < -450 then
- torsoCFrame = CFrame.new(0, 10, 0)
- end
- local rootPartCFrame = (rootPart and rootPart.CFrame) or PlayerControl.torso_cframe or CFrame.new(0, 10, 0)
- if rootPartCFrame.p.Y < -450 then
- rootPartCFrame = CFrame.new(0, 10, 0)
- end
- local cameraCFrame = Camera.CoordinateFrame
- local connections = {}
- local feetTouching = {}
- local previousWalkSpeed = 0
- local prevLeftHip, prevLeftShoulder, prevRightHip, prevRightShoulder = leftHip, leftShoulder, rightHip, rightShoulder
- model = Instance.new("Model")
- humanoid = Instance.new("Humanoid", model)
- head = Instance.new("Part", model)
- leftArm = Instance.new("Part", model)
- leftLeg = Instance.new("Part", model)
- rightArm = Instance.new("Part", model)
- rightLeg = Instance.new("Part", model)
- torso = Instance.new("Part", model)
- rootPart = Instance.new("Part", model)
- soundFallingDown = Instance.new("Sound", head)
- soundFreeFalling = Instance.new("Sound", head)
- soundGettingUp = Instance.new("Sound", head)
- soundJumping = Instance.new("Sound", head)
- soundRunning = Instance.new("Sound", head)
- leftHip = Instance.new("Motor", torso)
- leftShoulder = Instance.new("Motor", torso)
- rightHip = Instance.new("Motor", torso)
- rightShoulder = Instance.new("Motor", torso)
- neck = Instance.new("Motor", torso)
- rootJoint = Instance.new("Motor", rootPart)
- feetPart = Instance.new("Part", model)
- feetWeld = Instance.new("Weld", torso)
- bodyGyro = Instance.new("BodyGyro", rootPart)
- bodyVelocity = Instance.new("BodyVelocity", rootPart)
- model.Archivable = false
- model.Name = user_name or Player.Name
- model.PrimaryPart = head
- humanoid.LeftLeg = leftLeg
- humanoid.RightLeg = rightLeg
- humanoid.Torso = rootPart
- head.CFrame = torsoCFrame * CFrame.new(0, 1.5, 0)
- head.FormFactor = "Symmetric"
- head.Locked = true
- head.Name = "Head"
- head.Size = Vector3.new(2, 1, 1)
- head.TopSurface = "Smooth"
- leftArm.CanCollide = false
- leftArm.CFrame = torsoCFrame * CFrame.new(-1.5, 0, 0)
- leftArm.FormFactor = "Symmetric"
- leftArm.Locked = true
- leftArm.Name = "Left Arm"
- leftArm.Size = Vector3.new(1, 2, 1)
- leftLeg.BottomSurface = "Smooth"
- leftLeg.CanCollide = false
- leftLeg.CFrame = torsoCFrame * CFrame.new(-0.5, -2, 0)
- leftLeg.FormFactor = "Symmetric"
- leftLeg.Locked = true
- leftLeg.Name = "Left Leg"
- leftLeg.Size = Vector3.new(1, 2, 1)
- leftLeg.TopSurface = "Smooth"
- rightArm.CanCollide = false
- rightArm.CFrame = torsoCFrame * CFrame.new(1.5, 0, 0)
- rightArm.FormFactor = "Symmetric"
- rightArm.Locked = true
- rightArm.Name = "Right Arm"
- rightArm.Size = Vector3.new(1, 2, 1)
- rightLeg.BottomSurface = "Smooth"
- rightLeg.CanCollide = false
- rightLeg.CFrame = torsoCFrame * CFrame.new(0.5, -2, 0)
- rightLeg.FormFactor = "Symmetric"
- rightLeg.Locked = true
- rightLeg.Name = "Right Leg"
- rightLeg.Size = Vector3.new(1, 2, 1)
- rightLeg.TopSurface = "Smooth"
- torso.CFrame = torsoCFrame
- torso.FormFactor = "Symmetric"
- torso.LeftSurface = "Weld"
- torso.Locked = true
- torso.RightSurface = "Weld"
- torso.Name = "Torso"
- torso.Size = Vector3.new(2, 2, 1)
- rootPart.BottomSurface = "Smooth"
- rootPart.BrickColor = BrickColor.Blue()
- rootPart.CFrame = rootPartCFrame
- rootPart.FormFactor = "Symmetric"
- rootPart.LeftSurface = "Weld"
- rootPart.Locked = true
- rootPart.RightSurface = "Weld"
- rootPart.Name = "HumanoidRootPart"
- rootPart.Size = Vector3.new(2, 2, 1)
- rootPart.TopSurface = "Smooth"
- rootPart.Transparency = 1
- soundFreeFalling.Archivable = false
- soundFreeFalling.SoundId = "rbxasset://sounds/swoosh.wav"
- soundGettingUp.Archivable = false
- soundGettingUp.SoundId = "rbxasset://sounds/hit.wav"
- soundRunning.Archivable = false
- soundRunning.SoundId = "rbxasset://sounds/bfsl-minifigfoots1.mp3"
- soundRunning.Looped = true
- leftHip.C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- leftHip.C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- leftHip.MaxVelocity = 0.1
- leftHip.Name = "Left Hip"
- leftHip.Part0 = torso
- leftHip.Part1 = leftLeg
- leftShoulder.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- leftShoulder.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- leftShoulder.MaxVelocity = 0.15
- leftShoulder.Name = "Left Shoulder"
- leftShoulder.Part0 = torso
- leftShoulder.Part1 = leftArm
- rightHip.C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rightHip.C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rightHip.MaxVelocity = 0.1
- rightHip.Name = "Right Hip"
- rightHip.Part0 = torso
- rightHip.Part1 = rightLeg
- rightShoulder.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rightShoulder.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rightShoulder.MaxVelocity = 0.15
- rightShoulder.Name = "Right Shoulder"
- rightShoulder.Part0 = torso
- rightShoulder.Part1 = rightArm
- if prevLeftHip then
- leftHip.CurrentAngle = prevLeftHip.CurrentAngle
- leftHip.DesiredAngle = prevLeftHip.DesiredAngle
- end
- if prevLeftShoulder then
- leftShoulder.CurrentAngle = prevLeftShoulder.CurrentAngle
- leftShoulder.DesiredAngle = prevLeftShoulder.DesiredAngle
- end
- if prevRightHip then
- rightHip.CurrentAngle = prevRightHip.CurrentAngle
- rightHip.DesiredAngle = prevRightHip.DesiredAngle
- end
- if prevRightShoulder then
- rightShoulder.CurrentAngle = prevRightShoulder.CurrentAngle
- rightShoulder.DesiredAngle = prevRightShoulder.DesiredAngle
- end
- neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- neck.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- neck.Name = "Neck"
- neck.Part0 = torso
- neck.Part1 = head
- rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- rootJoint.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- rootJoint.Name = "RootJoint"
- rootJoint.Part0 = rootPart
- rootJoint.Part1 = torso
- feetPart.BottomSurface = "Smooth"
- feetPart.CanCollide = false
- feetPart.CFrame = torsoCFrame * CFrame.new(0, -3.1, 0)
- feetPart.FormFactor = "Custom"
- feetPart.Locked = true
- feetPart.Name = "Platform"
- feetPart.Size = Vector3.new(1.8, 0.2, 0.8)
- feetPart.TopSurface = "Smooth"
- feetPart.Transparency = 1
- feetWeld.C0 = CFrame.new(0, -3, 0)
- feetWeld.C1 = CFrame.new(0, 0.1, 0)
- feetWeld.Name = "PlatformWeld"
- feetWeld.Part0 = torso
- feetWeld.Part1 = feetPart
- table.insert(connections, feetPart.Touched:connect(function(hit)
- feetTouching[hit] = true
- end))
- table.insert(connections, feetPart.TouchEnded:connect(function(hit)
- feetTouching[hit] = nil
- end))
- feetTouchInterest = feetPart:FindFirstChild("TouchInterest")
- bodyGyro.D = 3250
- bodyGyro.P = 400000
- bodyGyro.maxTorque = Vector3.new(1000000000, 0, 1000000000)
- bodyVelocity.P = 5000
- bodyVelocity.maxForce = Vector3.new(0, 0, 0)
- bodyVelocity.velocity = Vector3.new(0, 0, 0)
- torsoLight = Instance.new("PointLight", torso)
- torsoLight.Brightness = 0.4
- torsoLight.Color = Color3.new(1, 1, 1)
- torsoLight.Range = 16
- torsoLight.Shadows = true
- 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)
- local forcefields = {[ff1] = head, [ff2] = leftArm, [ff3] = leftLeg, [ff4] = rightArm, [ff5] = rightLeg, [ff6] = torso, [ff7] = wildcardHandle, [ff8] = feetPart, [ff9] = rootPart}
- 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}
- local tshirtUrl = appearance.tshirt
- if tshirtUrl then
- local tshirt = Instance.new("Decal", torso)
- tshirt.Name = "roblox"
- tshirt.Texture = tshirtUrl
- objects[tshirt] = true
- end
- for _, template in ipairs(appearance.characterObjects) do
- local object = template:Clone()
- local newObjects = {object}
- for _, object in ipairs(newObjects) do
- objects[object] = true
- for _, child in ipairs(object:GetChildren()) do
- table.insert(newObjects, child)
- end
- end
- if object:IsA("BodyColors") then
- head.BrickColor = object.HeadColor
- leftArm.BrickColor = object.LeftArmColor
- leftLeg.BrickColor = object.LeftLegColor
- rightArm.BrickColor = object.RightArmColor
- rightLeg.BrickColor = object.RightLegColor
- torso.BrickColor = object.TorsoColor
- elseif object:IsA("Hat") then
- local handle = object:FindFirstChild("Handle")
- if handle and handle:IsA("BasePart") then
- local weld = Instance.new("Weld", head)
- weld.C0 = CFrame.new(0, 0.5, 0)
- local attachmentPos = object.AttachmentPos
- local attachmentRight = object.AttachmentRight
- local attachmentUp = object.AttachmentUp
- local attachmentForward = object.AttachmentForward
- weld.C1 = CFrame.new(attachmentPos.X, attachmentPos.Y, attachmentPos.Z,
- attachmentRight.X, attachmentUp.X, -attachmentForward.X,
- attachmentRight.Y, attachmentUp.Y, -attachmentForward.Y,
- attachmentRight.Z, attachmentUp.Z, -attachmentForward.Z)
- weld.Name = "HeadWeld"
- weld.Part0 = head
- weld.Part1 = handle
- handle.Parent = model
- local antiGravity = Instance.new("BodyForce", handle)
- antiGravity.force = Vector3.new(0, handle:GetMass() * 196.2, 0)
- objects[object] = false
- object.Parent = nil
- objects[weld] = true
- end
- end
- object.Parent = model
- end
- local facePresent = false
- local headMeshPresent = false
- for _, template in ipairs(appearance.headObjects) do
- local object = template:Clone()
- local newObjects = {object}
- for _, object in ipairs(newObjects) do
- objects[object] = true
- for _, child in ipairs(object:GetChildren()) do
- table.insert(newObjects, child)
- end
- end
- if object:IsA("DataModelMesh") then
- headMeshPresent = true
- elseif object:IsA("Decal") then
- facePresent = true
- end
- object.Parent = head
- end
- if not facePresent then
- local face = Instance.new("Decal", head)
- face.Texture = "rbxasset://textures/face.png"
- objects[face] = true
- end
- if not headMeshPresent then
- local headMesh = Instance.new("SpecialMesh", head)
- headMesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- objects[headMesh] = true
- end
- table.insert(connections, model.DescendantAdded:connect(function(object)
- local success, is_localscript = pcall(Game.IsA, object, "LocalScript")
- if success and is_localscript then
- pcall(Utility.SetProperty, object, "Disabled", true)
- local changed_connection = pcall(object.Changed.connect, object.Changed, function(property)
- if property == "Disabled" and not object.Disabled then
- pcall(Utility.SetProperty, object, "Disabled", true)
- object:Destroy()
- end
- end)
- end
- if not objects[object] then
- object:Destroy()
- end
- end))
- model.Parent = Workspace
- Player.Character = model
- Camera.CameraSubject = humanoid
- Camera.CameraType = "Track"
- Camera.CoordinateFrame = cameraCFrame
- local IsStanding
- local RegenerateHealth
- local ResetCharacter
- function IsStanding()
- return not not next(feetTouching)
- end
- function RegenerateHealth()
- if humanoid.Health < 1 then
- humanoid.Health = 100
- elseif not regeneratingHealth then
- regeneratingHealth = true
- local elapsedTime = wait(1)
- regeneratingHealth = false
- if humanoid.Health < 100 then
- humanoid.Health = math.min(humanoid.Health + elapsedTime, 100)
- end
- end
- end
- function ResetCharacter()
- for index, connection in ipairs(connections) do
- connection:disconnect()
- end
- active = false
- end
- table.insert(connections, model.AncestryChanged:connect(ResetCharacter))
- table.insert(connections, model.DescendantRemoving:connect(function(object)
- local parent = forcefields[object]
- if parent then
- forcefields[object] = nil
- local new_forcefield = Instance.new("ForceField")
- forcefields[new_forcefield] = parent
- objects[new_forcefield] = true
- new_forcefield.Parent = parent
- elseif objects[object] then
- ResetCharacter()
- end
- end))
- table.insert(connections, humanoid.HealthChanged:connect(RegenerateHealth))
- table.insert(connections, humanoid.Climbing:connect(function() pose = "Climbing" end))
- table.insert(connections, humanoid.FallingDown:connect(function(state) pose = "FallingDown" end))
- table.insert(connections, humanoid.FreeFalling:connect(function(state) pose = "FreeFall" if state then soundFreeFalling:Play() else
- soundFreeFalling:Pause() end end))
- table.insert(connections, humanoid.GettingUp:connect(function(state) pose = "GettingUp" if state then soundGettingUp:Play() else
- soundGettingUp:Pause() end end))
- table.insert(connections, humanoid.PlatformStanding:connect(function() pose = "PlatformStanding" end))
- table.insert(connections, humanoid.Seated:connect(function() pose = "Seated" end))
- table.insert(connections, humanoid.Swimming:connect(function(speed) if speed > 0 then pose = "Swimming" else pose = "Standing" end end))
- local previousRootPartCFrame = rootPart.CFrame
- TaskScheduler.Start(function()
- while active do
- local totalTime = TaskScheduler.GetCurrentTime()
- local stepTime = 1 / 60
- if not PlayerControl.characterEnabled then
- ResetCharacter()
- break
- end
- torsoLight.Brightness = 0.5 + 0.15 * math.sin(totalTime * 0.75 * math.pi)
- local featherfallEnabled = PlayerControl.IsFeatherfallEnabled()
- local rootPartCFrame = rootPart.CFrame
- if not jumpDebounce and UserInterface:IsKeyDown(Enum.KeyCode.Space) then
- if humanoid.Sit then
- humanoid.Sit = false
- end
- if IsStanding() then
- jumpDebounce = true
- pose = "Jumping"
- rootPart.Velocity = Vector3.new(rootPart.Velocity.X, 50, rootPart.Velocity.Z)
- torso.Velocity = Vector3.new(torso.Velocity.X, 50, torso.Velocity.Z)
- TaskScheduler.Schedule(1, function()
- if pose == "Jumping" then
- pose = "FreeFall"
- end
- jumpDebounce = false
- humanoid.Jump = false
- end)
- end
- end
- local cameraCFrame = Camera.CoordinateFrame
- local cameraDirection = cameraCFrame.lookVector
- if flying then
- if PlayerControl.rolling then
- local rootPartCFrame = rootPart.CFrame
- local speed = (rootPartCFrame - rootPartCFrame.p):pointToObjectSpace(rootPart.Velocity).Y
- local decay = 0.5 ^ stepTime
- if math.abs(speed) <= 50 then
- PlayerControl.rollingAngle = (((PlayerControl.rollingAngle + 0.5) % 1 - 0.5) * decay) % 1
- PlayerControl.rollingOffset = PlayerControl.rollingOffset * decay
- else
- PlayerControl.rollingAngle = (PlayerControl.rollingAngle + stepTime * speed * PlayerControl.rollingSpeed) % 1
- PlayerControl.rollingOffset = (PlayerControl.rollingOffset + PlayerControl.rollingMaxOffset * (1 / decay - 1)) * decay
- end
- 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)
- else
- rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- PlayerControl.rollingAngle = 0
- PlayerControl.rollingOffset = 0
- end
- rightShoulder.MaxVelocity = 0.5
- leftShoulder.MaxVelocity = 0.5
- rightShoulder.DesiredAngle = 0
- leftShoulder.DesiredAngle = 0
- rightHip.DesiredAngle = 0
- leftHip.DesiredAngle = 0
- bodyGyro.D = 500
- bodyGyro.P = 1e6
- bodyGyro.maxTorque = Vector3.new(1e6, 1e6, 1e6)
- bodyVelocity.P = 1250
- bodyVelocity.maxForce = Vector3.new(1e6, 1e6, 1e6)
- local movementRight = 0
- local movementForward = 0
- local movementUp = 0
- if UserInterface:IsKeyDown(Enum.KeyCode.A) and not UserInterface:IsKeyDown(Enum.KeyCode.D) then
- movementRight = -1
- elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
- movementRight = 1
- end
- if UserInterface:IsKeyDown(Enum.KeyCode.W) then
- movementUp = 0.2
- if not UserInterface:IsKeyDown(Enum.KeyCode.S) then
- movementForward = -1
- end
- elseif UserInterface:IsKeyDown(Enum.KeyCode.S) then
- movementForward = 1
- end
- local movement = PlayerControl.fly_acceleration * cameraCFrame:vectorToWorldSpace(Vector3.new(movementRight, movementUp, movementForward))
- local previousMomentum = flyingMomentum
- local previousTilt = flyingTilt
- flyingMomentum = movement + flyingMomentum * (1 - PlayerControl.fly_acceleration / PlayerControl.fly_speed)
- flyingTilt = ((flyingMomentum * Vector3.new(1, 0, 1)).unit:Cross((previousMomentum * Vector3.new(1, 0, 1)).unit)).Y
- if flyingTilt ~= flyingTilt or flyingTilt == math.huge then
- flyingTilt = 0
- end
- local absoluteTilt = math.abs(flyingTilt)
- if absoluteTilt > 0.06 or absoluteTilt < 0.0001 then
- if math.abs(previousTilt) > 0.0001 then
- flyingTilt = previousTilt * 0.9
- else
- flyingTilt = 0
- end
- else
- flyingTilt = previousTilt * 0.77 + flyingTilt * 0.25
- end
- previousTilt = flyingTilt
- if flyingMomentum.magnitude < 0.1 then
- flyingMomentum = Vector3.new(0, 0, 0)
- -- bodyGyro.cframe = cameraCFrame
- else
- local momentumOrientation = CFrame.new(Vector3.new(0, 0, 0), flyingMomentum)
- local tiltOrientation = CFrame.Angles(0, 0, -20 * flyingTilt)
- bodyGyro.cframe = momentumOrientation * tiltOrientation * CFrame.Angles(-0.5 * math.pi * math.min(flyingMomentum.magnitude / PlayerControl.fly_speed, 1), 0, 0)
- end
- bodyVelocity.velocity = flyingMomentum + Vector3.new(0, 0.15695775618683547, 0)
- rootPart.Velocity = flyingMomentum
- previousMomentum = flyingMomentum
- else
- rootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- PlayerControl.rollingAngle = 0
- PlayerControl.rollingOffset = 0
- bodyGyro.D = 3250
- bodyGyro.P = 400000
- bodyVelocity.P = 5000
- local cameraDirection = cameraCFrame.lookVector
- local walkDirection = Vector3.new(0, 0, 0)
- local walkSpeed = 16
- if UserInterface:IsKeyDown(Enum.KeyCode.W) then
- if UserInterface:IsKeyDown(Enum.KeyCode.A) then
- walkDirection = Vector3.new(cameraDirection.X + cameraDirection.Z, 0, cameraDirection.Z - cameraDirection.X).unit
- elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
- walkDirection = Vector3.new(cameraDirection.X - cameraDirection.Z, 0, cameraDirection.Z + cameraDirection.X).unit
- else
- walkDirection = Vector3.new(cameraDirection.X, 0, cameraDirection.Z).unit
- end
- elseif UserInterface:IsKeyDown(Enum.KeyCode.S) then
- if UserInterface:IsKeyDown(Enum.KeyCode.A) then
- walkDirection = Vector3.new(-cameraDirection.X + cameraDirection.Z, 0, -cameraDirection.Z - cameraDirection.X).unit
- elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
- walkDirection = Vector3.new(-cameraDirection.X - cameraDirection.Z, 0, -cameraDirection.Z + cameraDirection.X).unit
- else
- walkDirection = Vector3.new(-cameraDirection.X, 0, -cameraDirection.Z).unit
- end
- elseif UserInterface:IsKeyDown(Enum.KeyCode.A) then
- walkDirection = Vector3.new(cameraDirection.Z, 0, -cameraDirection.X).unit
- elseif UserInterface:IsKeyDown(Enum.KeyCode.D) then
- walkDirection = Vector3.new(-cameraDirection.Z, 0, cameraDirection.X).unit
- else
- walkSpeed = 0
- end
- if walkSpeed ~= previousWalkSpeed then
- if walkSpeed > 0 then
- soundRunning:Play()
- else
- soundRunning:Pause()
- end
- end
- if walkSpeed > 0 then
- if pose ~= "Jumping" then
- if IsStanding() then
- pose = "Running"
- else
- pose = "FreeFall"
- end
- end
- bodyGyro.cframe = CFrame.new(Vector3.new(), walkDirection)
- bodyGyro.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000)
- bodyVelocity.maxForce = Vector3.new(1000000, maxForceY, 1000000)
- else
- if pose ~= "Jumping" then
- if IsStanding() then
- pose = "Standing"
- else
- pose = "FreeFall"
- end
- end
- -- TODO: find and fix bug that causes torso to rotate back to some angle
- bodyGyro.maxTorque = Vector3.new(1000000000, 1000000000, 1000000000) -- Vector3.new(1000000000, 0, 1000000000)
- if PlayerControl.pushable then
- bodyVelocity.maxForce = Vector3.new(0, 0, 0)
- else
- bodyVelocity.maxForce = Vector3.new(1000000, 0, 1000000)
- end
- end
- if featherfallEnabled then
- local velocity = rootPart.Velocity
- if velocity.Y > 50 then
- rootPart.Velocity = Vector3.new(velocity.X, 50, velocity.Z)
- elseif velocity.Y < -50 then
- rootPart.Velocity = Vector3.new(velocity.X, -50, velocity.Z)
- end
- local distanceVector = rootPartCFrame.p - previousRootPartCFrame.p
- local offsetX, offsetY, offsetZ = distanceVector.X, distanceVector.Y, distanceVector.Z
- local MAX_MOVEMENT = 50 * 0.03333333507180214
- if offsetX > MAX_MOVEMENT then
- offsetX = MAX_MOVEMENT
- elseif offsetX < -MAX_MOVEMENT then
- offsetX = -MAX_MOVEMENT
- end
- if offsetY > MAX_MOVEMENT then
- offsetY = MAX_MOVEMENT
- elseif offsetY < -MAX_MOVEMENT then
- offsetY = -MAX_MOVEMENT
- end
- if offsetZ > MAX_MOVEMENT then
- offsetZ = MAX_MOVEMENT
- elseif offsetZ < -MAX_MOVEMENT then
- offsetZ = -MAX_MOVEMENT
- end
- local offset = Vector3.new(offsetX, offsetY, offsetZ)
- if offset ~= distanceVector then
- rootPartCFrame = previousRootPartCFrame + offset
- --rootPart.CFrame = rootPartCFrame
- end
- end
- local walkingVelocity = walkDirection * walkSpeed
- bodyVelocity.velocity = walkingVelocity
- if not jumpDebounce and math.abs(rootPart.Velocity.Y) <= 0.1 then
- rootPart.Velocity = Vector3.new(walkingVelocity.X, rootPart.Velocity.Y, walkingVelocity.Z)
- end
- previousWalkSpeed = walkSpeed
- if pose == "Jumping" or jumpDebounce then
- rightShoulder.MaxVelocity = 0.5
- leftShoulder.MaxVelocity = 0.5
- rightShoulder.DesiredAngle = 3.14
- leftShoulder.DesiredAngle = -3.14
- rightHip.DesiredAngle = 0
- leftHip.DesiredAngle = 0
- elseif pose == "FreeFall" then
- rightShoulder.MaxVelocity = 0.5
- leftShoulder.MaxVelocity = 0.5
- rightShoulder.DesiredAngle = 3.14
- leftShoulder.DesiredAngle = -3.14
- rightHip.DesiredAngle = 0
- leftHip.DesiredAngle = 0
- elseif pose == "Seated" then
- rightShoulder.MaxVelocity = 0.15
- leftShoulder.MaxVelocity = 0.15
- rightShoulder.DesiredAngle = 3.14 / 2
- leftShoulder.DesiredAngle = -3.14 / 2
- rightHip.DesiredAngle = 3.14 / 2
- leftHip.DesiredAngle = -3.14 / 2
- else
- local climbFudge = 0
- local amplitude
- local frequency
- if pose == "Running" then
- rightShoulder.MaxVelocity = 0.15
- leftShoulder.MaxVelocity = 0.15
- amplitude = 1
- frequency = 9
- elseif (pose == "Climbing") then
- rightShoulder.MaxVelocity = 0.5
- leftShoulder.MaxVelocity = 0.5
- amplitude = 1
- frequency = 9
- climbFudge = 3.14
- else
- amplitude = 0.1
- frequency = 1
- end
- local desiredAngle = amplitude * math.sin(totalTime * frequency)
- rightShoulder.DesiredAngle = desiredAngle + climbFudge
- leftShoulder.DesiredAngle = desiredAngle - climbFudge
- rightHip.DesiredAngle = -desiredAngle
- leftHip.DesiredAngle = -desiredAngle
- end
- end
- previousRootPartCFrame = rootPartCFrame
- RunService.RenderStepped:wait()
- end
- if model.Parent ~= nil then
- model.Parent = nil
- end
- PlayerControl.CreateCharacter()
- end)
- humanoid.Health = 100
- character = model
- chatAdornee = head
- elseif characterMode == "pyramid" then
- if PlayerControl.characterEnabled then
- Camera.CameraType = "Fixed"
- NilCharacter.camera_distance = (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude
- NilCharacter.camera_position = Camera.Focus.p
- NilCharacter.Teleport(Camera.Focus.p)
- NilCharacter.visible = true
- Player.Character = nil
- else
- NilCharacter.visible = false
- end
- end
- end
- function PlayerControl.GetCharacter()
- return character
- end
- function PlayerControl.GetHead()
- local characterMode = PlayerControl.characterMode
- if characterMode == "normal" then
- return head
- elseif characterMode == "pyramid" then
- return NilCharacter.core
- end
- end
- function PlayerControl.GetHumanoid()
- return humanoid
- end
- function PlayerControl.GetRootPart()
- return rootPart
- end
- function PlayerControl.GetTorso()
- return torso
- end
- function PlayerControl.IsEnabled()
- return PlayerControl.characterEnabled
- end
- function PlayerControl.IsFeatherfallEnabled()
- return PlayerControl.featherfallEnabled
- end
- function PlayerControl.IsPushable()
- return PlayerControl.pushable
- end
- function PlayerControl.IsRolling()
- return PlayerControl.rolling
- end
- function PlayerControl.ResetCharacter()
- if character and character.Parent then
- character.Parent = nil
- end
- NilCharacter.visible = false
- end
- function PlayerControl.SetEnabled(state, no_animation)
- state = not not state
- if state ~= PlayerControl.characterEnabled then
- PlayerControl.characterEnabled = state
- local characterMode = PlayerControl.characterMode
- if characterMode == "normal" then
- local torso = PlayerControl.GetRootPart()
- local rootPart = PlayerControl.GetRootPart()
- if rootPart then
- if PlayerControl.characterEnabled then
- local torso_cframe = Camera.Focus:toWorldSpace(PlayerControl.hide_torso_object_cframe)
- PlayerControl.torso_cframe = torso_cframe
- torso.CFrame = torso_cframe
- rootPart.CFrame = torso_cframe
- else
- PlayerControl.hide_torso_object_cframe = Camera.Focus:toObjectSpace(rootPart.CFrame)
- end
- else
- PlayerControl.torso_cframe = Camera.Focus
- end
- if PlayerControl.characterEnabled then
- PlayerControl.CreateCharacter()
- RunService.Stepped:wait()
- coroutine.yield()
- if not no_animation then
- GraphicalEffects.CrystalRing({base_part = PlayerControl.GetTorso(), crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
- end
- else
- Player.Character = nil
- Camera.CameraType = "Fixed"
- if not no_animation then
- GraphicalEffects.CrystalRing({position = PlayerControl.GetTorso().Position, crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
- end
- end
- else
- if state then
- PlayerControl.CreateCharacter()
- RunService.Stepped:wait()
- coroutine.yield()
- if not no_animation then
- GraphicalEffects.CrystalRing({base_part = NilCharacter.core, crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
- end
- else
- NilCharacter.visible = false
- if not no_animation then
- GraphicalEffects.CrystalRing({position = NilCharacter.core.Position, crystal_color = BrickColor.new("Institutional white"), float_duration = 2})
- end
- end
- end
- end
- end
- function PlayerControl.SetFeatherfallEnabled(state)
- state = not not state
- if state ~= PlayerControl.featherfallEnabled then
- PlayerControl.featherfallEnabled = state
- if state then
- Logger.print("Info", "Featherfall enabled in PlayerControl")
- else
- Logger.print("Info", "Featherfall disabled in PlayerControl")
- end
- end
- end
- function PlayerControl.SetPushable(state)
- state = not not state
- if state ~= PlayerControl.pushable then
- PlayerControl.pushable = state
- if state then
- Logger.print("Info", "Pushing enabled in PlayerControl")
- else
- Logger.print("Info", "Pushing disabled in PlayerControl")
- end
- end
- end
- function PlayerControl.SetRolling(state)
- state = not not state
- if state ~= PlayerControl.rolling then
- PlayerControl.rolling = state
- if state then
- Logger.print("Info", "Rolling fly mode enabled in PlayerControl")
- else
- Logger.print("Info", "Rolling fly mode disabled in PlayerControl")
- end
- end
- end
- function PlayerControl.StartFlying()
- PlayerControl.fly_speed = PlayerControl.fly_basespeed
- if torso then
- flyingMomentum = torso.Velocity + torso.CFrame.lookVector * 3 + Vector3.new(0, 10, 0)
- else
- flyingMomentum = Vector3.new()
- end
- flyingTilt = 0
- flying = true
- end
- function PlayerControl.StopFlying()
- if bodyGyro.cframe then
- local lookVector = bodyGyro.cframe.lookVector
- if lookVector.X ~= 0 or lookVector.Z ~= 0 then
- bodyGyro.cframe = CFrame.new(Vector3.new(), Vector3.new(lookVector.X, 0, lookVector.Z))
- end
- end
- flying = false
- end
- local previousTime = 0
- ControllerCommands = {};
- ControllerCommands = {};
- ControllerCommands.BALEFIRE_SPEED = 40
- function ControllerCommands.BalefireAtMouse()
- local head = chatAdornee
- if head then
- local target = Mouse.Hit.p
- local origin = head.Position
- local direction = (target - origin).unit
- local explosionCount = 0
- local animation_frame = 0
- local magic_circle_position = origin + direction * 4
- local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction)
- local magic_circle_part = Instance.new("Part")
- local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part)
- local magic_circle_light = Instance.new("PointLight", magic_circle_part)
- local magic_circle_decal_back = Instance.new("Decal", magic_circle_part)
- local magic_circle_decal_front = Instance.new("Decal", magic_circle_part)
- magic_circle_part.Anchored = true
- magic_circle_part.Archivable = false
- magic_circle_part.BottomSurface = "Smooth"
- magic_circle_part.CanCollide = false
- magic_circle_part.CFrame = magic_circle_cframe
- magic_circle_part.FormFactor = "Custom"
- magic_circle_part.Locked = true
- magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2)
- magic_circle_part.TopSurface = "Smooth"
- magic_circle_part.Transparency = 1
- magic_circle_mesh.Scale = Vector3.new(60, 60, 0)
- magic_circle_light.Color = Color3.new(1, 0.5, 1)
- magic_circle_light.Range = 16
- magic_circle_light.Shadows = true
- magic_circle_decal_back.Face = "Back"
- magic_circle_decal_back.Texture = "rbxassetid://122610943"
- magic_circle_decal_front.Face = "Front"
- magic_circle_decal_front.Texture = "rbxassetid://122610943"
- local function NextExplosion()
- explosionCount = explosionCount + 1
- Instance.new("Explosion", Workspace).Position = origin + direction * (explosionCount * 8 + 4)
- end
- local function AnimateMagicCircle()
- animation_frame = animation_frame + 1
- local transparency = (animation_frame / 40) ^ 3
- if animation_frame == 40 then
- pcall(Game.Destroy, magic_circle_part)
- else
- if magic_circle_part.Parent ~= Workspace then
- pcall(Utility.SetProperty, magic_circle_part, "Parent", Workspace)
- end
- head = PlayerControl.GetHead()
- if head then
- magic_circle_position = head.Position + direction * 4
- end
- magic_circle_part.CFrame = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0,
- math.tau * animation_frame / 40 * 1.5)
- magic_circle_light.Brightness = 1 - transparency
- magic_circle_decal_back.Transparency = transparency
- magic_circle_decal_front.Transparency = transparency
- end
- end
- magic_circle_part.Parent = Workspace
- for i = 1, 40 do
- Delay((i - 1) / ControllerCommands.BALEFIRE_SPEED, NextExplosion)
- Delay((i - 1) / 30, AnimateMagicCircle)
- end
- for i = 1, 20 do
- Delay((i - 1) / ControllerCommands.BALEFIRE_SPEED, NextExplosion)
- end
- end
- end
- function ControllerCommands.ControlRandomDummy()
- local dummies = {}
- local numDummies = 0
- for _, character in ipairs(Workspace:GetChildren()) do
- local name = tostring(character)
- if name == "???" or name == "Dummy" then
- local head, humanoid
- for _, child in ipairs(character:GetChildren()) do
- local className = child.ClassName
- if className == "Part" and tostring(child) == "Head" then
- head = child
- if humanoid then
- break
- end
- elseif className == "Humanoid" then
- if child.Health > 0 then
- humanoid = child
- if head then
- break
- end
- else
- break
- end
- end
- end
- if head and humanoid then
- numDummies = numDummies + 1
- dummies[numDummies] = {character, head, humanoid}
- end
- end
- end
- if numDummies > 0 then
- local dummy = dummies[math.random(numDummies)]
- Player.Character = dummy[1]
- chatAdornee = dummy[2]
- Camera.CameraSubject = dummy[3]
- Camera.CameraType = "Track"
- end
- end
- function ControllerCommands.Decalify(textures, exclusion)
- local objects = Workspace:GetChildren()
- for _, object in ipairs(objects) do
- if not exclusion[object] then
- for _, child in ipairs(object:GetChildren()) do
- objects[#objects + 1] = child
- end
- if object:IsA("BasePart") then
- local texture = textures[math.random(#textures)]
- local face_left = Instance.new("Decal", object)
- face_left.Face = Enum.NormalId.Left
- face_left.Texture = texture
- local face_right = Instance.new("Decal", object)
- face_right.Face = Enum.NormalId.Right
- face_right.Texture = texture
- local face_bottom = Instance.new("Decal", object)
- face_bottom.Face = Enum.NormalId.Bottom
- face_bottom.Texture = texture
- local face_top = Instance.new("Decal", object)
- face_top.Face = Enum.NormalId.Top
- face_top.Texture = texture
- local face_front = Instance.new("Decal", object)
- face_front.Face = Enum.NormalId.Front
- face_front.Texture = texture
- local face_back = Instance.new("Decal", object)
- face_back.Face = Enum.NormalId.Back
- face_back.Texture = texture
- end
- end
- end
- end
- function ControllerCommands.ExplodeAtMouse()
- local explosion = Instance.new("Explosion")
- explosion.Position = Mouse.Hit.p
- explosion.Parent = Workspace
- end
- function ControllerCommands.LaserAtMouse()
- GraphicalEffects.ShootLaserOfDeath(Mouse.Hit.p)
- end
- function ControllerCommands.BigLaser(target)
- 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})
- end
- function ControllerCommands.BigLaserAtMouse()
- ControllerCommands.BigLaser(Mouse.Hit.p)
- end
- function ControllerCommands.ShootMissile(targetPart, pointOnPart, direction)
- GraphicalEffects.ShootMissile(targetPart, pointOnPart, direction)
- end
- function ControllerCommands.ShootMissileAtMouse(amount, spread, delayTime)
- local exclusionList = {}
- local playerHead = PlayerControl.GetHead()
- local playerTorso = PlayerControl.GetTorso()
- if playerHead and playerTorso then
- exclusionList[playerTorso] = true
- local humanoid, torso = Utility.FindHumanoidClosestToRay(Mouse.UnitRay, exclusionList)
- local targetPart, pointOnPart
- if humanoid and torso then
- targetPart, pointOnPart = torso, Vector3.new()
- else
- local target = Mouse.Target
- if target then
- targetPart, pointOnPart = target, target.CFrame:pointToObjectSpace(Mouse.Hit.p)
- else
- return
- end
- end
- if targetPart then
- local direction = (Mouse.Hit.p - playerHead.Position).unit
- delayTime = delayTime or 0
- for index = 1, amount do
- local angles = math.tau * (index - 0.5) * spread / amount * Vector3.new(math.random() - 0.5, math.random() - 0.5,math.random() - 0.5).unit
- TaskScheduler.Schedule(delayTime * (index - 1), ControllerCommands.ShootMissile, targetPart, pointOnPart, CFrame.Angles(angles.X, angles.Y, angles.Z) * direction)
- end
- end
- end
- end
- function ControllerCommands.ShootMissileAroundMouse(amount, offset, delayTime)
- local exclusionList = {}
- local playerHead = PlayerControl.GetHead()
- local playerTorso = PlayerControl.GetTorso()
- if playerHead and playerTorso then
- exclusionList[playerTorso] = true
- local humanoid, torso = Utility.FindHumanoidClosestToRay(Mouse.UnitRay, exclusionList)
- local targetPart, pointOnPart
- if humanoid and torso then
- targetPart, pointOnPart = torso, Vector3.new()
- else
- local target = Mouse.Target
- if target then
- targetPart, pointOnPart = target, target.CFrame:pointToObjectSpace(Mouse.Hit.p)
- else
- return
- end
- end
- if targetPart then
- delayTime = delayTime or 0
- local index = 1
- local targetPoint = targetPart.CFrame * pointOnPart
- local rotation_offset_angles = math.tau * Vector3.new(math.random() - 0.5, math.random() - 0.5, 0).unit
- local rotation_offset = CFrame.Angles(rotation_offset_angles.x, rotation_offset_angles.y, 0)
- local angle_x = 0
- local angle_x_step = math.tau / math.phi
- for i = 1, 8 * amount do
- angle_x = angle_x + angle_x_step
- local direction = rotation_offset * (CFrame.Angles(0, math.tau * index / amount, 0) * CFrame.Angles(angle_x, 0,0).lookVector)
- local blocked = Workspace:FindPartOnRay(Ray.new(targetPoint, direction * offset), targetPart.Parent)
- if not blocked then
- local p0, p1, p2, p3 = targetPart, pointOnPart, direction, offset; GraphicalEffects.ShootMissile(p0, p1, p2, function() return p0 end, p3, true)
- index = index + 1
- if index > amount then
- break
- end
- end
- end
- end
- end
- end
- function ControllerCommands.HugeExplosionOfDoom(position)
- local connections = {}
- local parts = {}
- local cframe = CFrame.new(position)
- local function ExplosionHit(part)
- if part:GetMass() < 10000 and part.Parent ~= Camera then
- parts[part] = true
- part.Anchored = true
- part:BreakJoints()
- part.BrickColor = BrickColor.new("Instituational white")
- end
- end
- for i = 1, 4 do
- local quantity = 0.5 * i * (1 + i)
- local fraction = math.tau / quantity
- for x = 1, quantity do
- for y = 1, quantity do
- local explosion = Instance.new("Explosion")
- connections[#connections + 1] = explosion.Hit:connect(ExplosionHit)
- explosion.BlastRadius = 5
- explosion.Position = cframe * (CFrame.Angles(fraction * x, fraction * y, 0) * Vector3.new((i - 1) * 6, 0, 0))
- explosion.Parent = Workspace
- end
- end
- wait(0.075)
- end
- for part in pairs(parts) do
- for _, child in ipairs(part:GetChildren()) do
- if child:IsA("BodyMover") then
- child:Destroy()
- end
- end
- local mass = part:GetMass()
- local velocity = CFrame.Angles(math.tau * math.random(), math.tau * math.random(), 0) * Vector3.new(25, 0, 0)
- local bodythrust = Instance.new("BodyThrust")
- bodythrust.force = mass * -velocity
- bodythrust.Parent = part
- local bodyforce = Instance.new("BodyForce")
- bodyforce.force = mass * Vector3.new(0, 196.2, 0)
- bodyforce.Parent = part
- part.Anchored = false
- part.Reflectance = 1
- part.RotVelocity = math.tau * Vector3.new(math.random() - 0.5, math.random() - 0.5, math.random() - 0.5)
- part.Transparency = 0.5
- part.Velocity = (part.CFrame - part.Position) * velocity
- end
- for _, connection in ipairs(connections) do
- connection:disconnect()
- end
- for i = 0, 99 do
- Delay(i / 10, function()
- for part in pairs(parts) do
- local new_transparency = 0.5 * (1 + i / 50)
- part.Reflectance = 0.98 * part.Reflectance
- if new_transparency > part.Transparency then
- part.Transparency = new_transparency
- end
- end
- end)
- end
- Delay(10, function()
- for part in pairs(parts) do
- pcall(part.Destroy, part)
- end
- end)
- end
- function ControllerCommands.HugeExplosionOfDoomAtMouse()
- ControllerCommands.HugeExplosionOfDoom(Mouse.Hit.p)
- end
- function ControllerCommands.SpaceHyperBeam(asd)
- GraphicalEffects.SpaceHyperBeam(asd)
- end
- function ControllerCommands.SpaceHyperBeamAtMouse()
- ControllerCommands.SpaceHyperBeam(Mouse.Hit.p)
- end
- function ControllerCommands.ConcentratedSpaceHyperBeamAtMouse()
- local p = Mouse.Hit.p; for i = 1, 50 do GraphicalEffects.SpaceHyperBeam(p) end
- end
- function ControllerCommands.TeleportCharacterToMouse()
- if PlayerControl.IsEnabled() then
- local torso = PlayerControl.GetTorso()
- if torso then
- local pos = Mouse.Hit.p + Vector3.new(0, 5, 0)
- torso.CFrame = CFrame.new(pos, pos + torso.CFrame.lookVector)
- end
- else
- local new_focus_position = Mouse.Hit.p
- local direction_vector = Camera.CoordinateFrame.lookVector
- local new_focus = CFrame.new(new_focus_position, new_focus_position + direction_vector)
- Camera.CoordinateFrame = new_focus * CFrame.new(0, 0, 25)
- Camera.Focus = new_focus
- end
- end
- AdvancedGUI = {};
- function GetPlayers(str)
- local found = {};
- if str == "all" then
- for i,v in pairs(game.Players:children()) do
- if v:IsA("Player") then table.insert(found,v) end
- end
- else
- for i,v in pairs(game.Players:children()) do
- if string.match(v.Name:lower(), str:lower()) and v:IsA("Player") then
- table.insert(found,v)
- end
- end
- end
- return found
- end
- function NewCMD(nme, usg, desc,func)
- table.insert(CMDS, {['Name']=nme, ['Usage']=usg, ['Description']=desc, ['Function']=func})
- end
- NewCMD("Clean", "clr", "Clears the game", function() Utility.CleanWorkspaceAndScripts() end)
- NewCMD("Private Server", "Pri:on", "Turn Private Server on", function()
- Pri = true
- Tablet("Private server is On!",Colors.White)
- end)
- NewCMD("Turn off Private Server", "Pri:off", "Turn Private Server on", function()
- Pri = false
- Tablet("Private server is Off!",Colors.Black)
- end)
- NewCMD("Fix Lighting", "fixl", "Fixes the lighting",function() Utility.CleanLighting() end)
- NewCMD("Kill", "kill", "Kills the player", function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- plr.Character:BreakJoints()
- end
- end)
- NewCMD("Remove hidden sb", "rhs", "Removes a player's hidden sb", function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really red"), float_duration = 0.2})
- plr.PlayerGui:ClearAllChildren()
- end
- end)
- NewCMD("nclip","nclip","noclip",
- function()
- 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
- end
- )
- NewCMD("Console","lc","Load Console",
- function()
- --[[AE2X Console]]--
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local UserInterface = game:service'UserInputService'
- local RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH")
- local WL = true
- game.ReplicatedStorage.DescendantRemoving:connect(function(itm)
- if itm.Name == "AE2XATTACH" then
- wait(2)
- RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH") or nil
- end
- end)
- local Char = LocalPlayer.Character
- local Terrain = game.Workspace.Terrain
- local Player = LocalPlayer.Name
- local LoadedAlready = false
- local BC = game.Workspace.Base:Clone() or nil
- script.Parent = game.Players.LocalPlayer
- local bannedlist = {"Kazhar","MrDCL","Trollmon123","ScriptLuaBlox","DevDeadly3652","suit946","mistahFedora","EpicFaceGuy050","roblox123457y7","thesuperfireguy9000","n00bahkiin2","iLeFancy","ThrownException","justinmarkme","Control22","SarahSuperstar76","ZtripleZ"}
- print("")
- print("Local Script")
- print("")
- print("Current banned list is:")
- print("")
- for _,BannedPlr in pairs(bannedlist) do
- print(BannedPlr.." Is Banned")
- end
- local Torso = Char.Torso or nil
- local Head = Char.Head or nil
- local Pre = ";"
- local Bet = "/"
- local M = "218211859"
- local CC = "Camo"
- 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
- if script ~= true then
- print("Unremoveable Test Completed! Works! This script is immune to g/nol/all or g/nos/all!")
- else
- print("Unremoveable Test Failed! This script is removable by g/nol/all or g/nos/all!")
- end
- local Credits = {"PointCoded","Nilzers","nguyenjimbo","5ZR","Breathable","GuyWithACleverName"}
- for _,Creator in pairs(Credits) do
- print("|"..Creator.."| : Made This")
- end
- function RhumPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "Rhum"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = Player
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character or nil
- local Hum = Char.Humanoid or nil
- Hum:remove()
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function ExpPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "Explode"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = Player
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character or nil
- local Tor = Char.Torso or nil
- local Ex = Instance.new("Explosion")
- Ex.Parent = Tor
- Ex.Position = Tor.Position
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function BanPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "Ban"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = "INSERT NAME HERE"
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- table.insert(bannedlist,TB.Text)
- game.Players[TB.Text]:remove()
- print(TB.Text.." Is Banned")
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function FirePlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "Fire"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = Player
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local N = Instance.new("TextButton", G)
- N.BackgroundColor3 = Color3.new(0,0,0)
- N.BackgroundTransparency = 0.5
- N.BorderSizePixel = 0
- N.Name = "EnterS1"
- N.Text = "UnFire"
- N.Font = "ArialBold"
- N.FontSize = "Size24"
- N.TextStrokeTransparency = 0
- N.Size = UDim2.new(0,180,0,75)
- N.Position = UDim2.new(0,185,0,275)
- N.MouseButton1Click:connect(function()
- game.Players[TB.Text].Character.Torso.Fire:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character or nil
- local Tor = Char.Torso or nil
- Instance.new("Fire",Tor)
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function SitPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "Sit"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = Player
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- local Human = Char.Humanoid or nil
- Human.Sit = true
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function CBackPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "CBack"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = Player
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character or nil
- local Back = game.Players[Player].Backpack or nil
- Back:ClearAllChildren()
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function BaseEdit ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Base"
- T.FontSize = "Size24"
- T.Text = "BaseColour"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = CC
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local Q5 = Instance.new("TextButton", G)
- Q5.BackgroundColor3 = Color3.new(0,0,0)
- Q5.BackgroundTransparency = 0.5
- Q5.BorderSizePixel = 0
- Q5.Name = "Close"
- Q5.Text = "Base"
- Q5.Font = "ArialBold"
- Q5.FontSize = "Size24"
- Q5.TextStrokeTransparency = 0
- Q5.Size = UDim2.new(0,180,0,75)
- Q5.Position = UDim2.new(0,0,0,275)
- Q5.MouseButton1Click:connect(function()
- BC.Parent = game.Workspace
- end)
- local Q6 = Instance.new("TextButton", G)
- Q6.BackgroundColor3 = Color3.new(0,0,0)
- Q6.BackgroundTransparency = 0.5
- Q6.BorderSizePixel = 0
- Q6.Name = "Close"
- Q6.Text = "Del-Base"
- Q6.Font = "ArialBold"
- Q6.FontSize = "Size24"
- Q6.TextStrokeTransparency = 0
- Q6.Size = UDim2.new(0,180,0,75)
- Q6.Position = UDim2.new(0,185,0,275)
- Q6.MouseButton1Click:connect(function()
- game.Workspace.Base:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- CC = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- local Base = game.Workspace.Base or nil
- Base.BrickColor = BrickColor.new(CC)
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function GodPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "God"
- T.FontSize = "Size24"
- T.Text = "God"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = LocalPlayer.Name
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- Char.Head.Transparency = 0.6
- local KT = Instance.new("Part")
- KT.Name = "Killer Torso"
- KT.BrickColor = Char.Torso.BrickColor
- KT.Transparency = Char.Torso.Transparency
- KT.Reflectance = Char.Torso.Reflectance
- KT.Anchored = false
- KT.CanCollide = true
- KT.Locked = true
- KT.Size = Vector3.new(2,2,1)
- local W = Instance.new("Weld")
- W.Parent = KT
- W.Part0 = Char.Torso
- W.Part1 = KT
- W.C1 = W.C1 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- W.Name = "KT Weld"
- while true do
- Instance.new("ForceField", Char)
- Char.Humanoid.MaxHealth = 10000000
- Char.Humanoid.Health = 10000000
- wait(0.8)
- Char.ForceField:remove()
- wait(0.001)
- end
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function MusicShow ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Music"
- T.FontSize = "Size24"
- T.Text = "Music:"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = M
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q = Instance.new("TextButton", G)
- Q.BackgroundColor3 = Color3.new(0,0,0)
- Q.BackgroundTransparency = 0.5
- Q.BorderSizePixel = 0
- Q.Name = "EnterS1"
- Q.Text = "Hotline Bling"
- Q.Font = "ArialBold"
- Q.FontSize = "Size24"
- Q.TextStrokeTransparency = 0
- Q.Size = UDim2.new(0,180,0,75)
- Q.Position = UDim2.new(0,0,0,275)
- Q.MouseButton1Click:connect(function()
- TB.Text = "283801001"
- end)
- local N = Instance.new("TextButton", G)
- N.BackgroundColor3 = Color3.new(0,0,0)
- N.BackgroundTransparency = 0.5
- N.BorderSizePixel = 0
- N.Name = "EnterS1"
- N.Text = "Fireflies"
- N.Font = "ArialBold"
- N.FontSize = "Size24"
- N.TextStrokeTransparency = 0
- N.Size = UDim2.new(0,180,0,75)
- N.Position = UDim2.new(0,185,0,275)
- N.MouseButton1Click:connect(function()
- TB.Text = "218211859"
- end)
- local NB = Instance.new("TextButton", G)
- NB.BackgroundColor3 = Color3.new(0,0,0)
- NB.BackgroundTransparency = 0.5
- NB.BorderSizePixel = 0
- NB.Name = "EnterS1"
- NB.Text = "Pilots"
- NB.Font = "ArialBold"
- NB.FontSize = "Size24"
- NB.TextStrokeTransparency = 0
- NB.Size = UDim2.new(0,180,0,75)
- NB.Position = UDim2.new(0,0,0,195)
- NB.MouseButton1Click:connect(function()
- TB.Text = "243372213"
- end)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "CLOSE"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local Qy = Instance.new("TextButton", G)
- Qy.BackgroundColor3 = Color3.new(0,0,0)
- Qy.BackgroundTransparency = 0.5
- Qy.BorderSizePixel = 0
- Qy.Name = "Close"
- Qy.Text = "Stop"
- Qy.Font = "ArialBold"
- Qy.FontSize = "Size24"
- Qy.TextStrokeTransparency = 0
- Qy.Size = UDim2.new(0,180,0,75)
- Qy.Position = UDim2.new(0,370,0,200)
- Qy.MouseButton1Click:connect(function()
- game.Workspace.S:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterM"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size36"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- M = TB.Text
- G:remove()
- local S = Instance.new("Sound")
- S.SoundId = "http://www.roblox.com/asset/?id="..M
- S.Volume = 1
- S.Parent = game.Workspace
- S.MaxDistance = 1000
- S.MinDistance = 100
- S.Name = "S"
- S.Looped = true
- S:Play()
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function CommandGuiFF ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "FF"
- T.FontSize = "Size24"
- T.Text = "ForceField"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = LocalPlayer.Name
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local N = Instance.new("TextButton", G)
- N.BackgroundColor3 = Color3.new(0,0,0)
- N.BackgroundTransparency = 0.5
- N.BorderSizePixel = 0
- N.Name = "EnterS1"
- N.Text = "UnFF"
- N.Font = "ArialBold"
- N.FontSize = "Size24"
- N.TextStrokeTransparency = 0
- N.Size = UDim2.new(0,180,0,75)
- N.Position = UDim2.new(0,185,0,275)
- N.MouseButton1Click:connect(function()
- game.Players[TB.Text].Character.ForceField:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- Instance.new("ForceField", Char)
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function KillPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "FF"
- T.FontSize = "Size24"
- T.Text = "Kill"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = LocalPlayer.Name
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- wait(0.1)
- Char.Humanoid.Health = 0
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function KickPlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "Kick"
- T.FontSize = "Size24"
- T.Text = "Kick"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = LocalPlayer.Name
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- Char:remove()
- game.Players[Player]:remove()
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function FirePlr ()
- local G = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
- G.Name = "GUI"
- local T = Instance.new("TextLabel", G)
- T.BackgroundColor3 = Color3.new(0,0,0)
- T.BackgroundTransparency = 0.5
- T.Position = UDim2.new(0,0,0,350)
- T.BorderSizePixel = 0
- T.Name = "God"
- T.FontSize = "Size24"
- T.Text = "Fire"
- T.TextColor3 = Color3.new(255,255,255)
- T.Font = "SourceSansBold"
- T.TextStrokeTransparency = 0
- T.Size = UDim2.new(0,180,0,75)
- local TB = Instance.new("TextBox", G)
- TB.BackgroundColor3 = Color3.new(0,0,0)
- TB.BackgroundTransparency = 0.5
- TB.BorderSizePixel = 0
- TB.Name = "TextboxFF"
- TB.Text = LocalPlayer.Name
- TB.TextColor3 = Color3.new(255,255,255)
- TB.Font = "SourceSans"
- TB.FontSize = "Size24"
- TB.TextStrokeTransparency = 0
- TB.Size = UDim2.new(0,180,0,75)
- TB.Position = UDim2.new(0,185,0,350)
- local Q2 = Instance.new("TextButton", G)
- Q2.BackgroundColor3 = Color3.new(0,0,0)
- Q2.BackgroundTransparency = 0.5
- Q2.BorderSizePixel = 0
- Q2.Name = "Close"
- Q2.Text = "Close"
- Q2.Font = "ArialBold"
- Q2.FontSize = "Size24"
- Q2.TextStrokeTransparency = 0
- Q2.Size = UDim2.new(0,180,0,75)
- Q2.Position = UDim2.new(0,370,0,275)
- Q2.MouseButton1Click:connect(function()
- G:remove()
- end)
- local FFE = Instance.new("TextButton", G)
- FFE.BackgroundColor3 = Color3.new(0,0,0)
- FFE.BackgroundTransparency = 0.5
- FFE.BorderSizePixel = 0
- FFE.Name = "EnterF"
- FFE.Text = "EXE"
- FFE.Font = "ArialBold"
- FFE.FontSize = "Size24"
- FFE.TextStrokeTransparency = 0
- FFE.Size = UDim2.new(0,180,0,75)
- FFE.Position = UDim2.new(0,370,0,350)
- FFE.MouseButton1Click:connect(function()
- Player = TB.Text
- G:remove()
- local Char = game.Players[Player].Character
- Instance.new("Fire",Char.Torso)
- if Char.Console then
- print("Console is working")
- else
- print("Console is missing!")
- end
- end)
- end
- function Console ()
- local Part1 = Instance.new("Part", Char)
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(16, 10, 0)
- Part1.Position = Vector3.new(7, 7.2, 14.5)
- Part1.Material = "Neon" --[[Sexy Like]]--
- Part1.Locked = true
- Part1.Anchored = true
- Part1.TopSurface = 'Smooth'
- Part1.Name = "Console"
- Part1.CanCollide = false
- Part1.BottomSurface = 'Smooth'
- game:GetService("RunService").RenderStepped:connect(function()
- Part1.CFrame = LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.new(0,3,-5)
- end)
- local sg = Instance.new("SurfaceGui",Part1)
- sg.Name = "G"
- sg.Adornee = Part1
- sg.Face = "Back"
- local tl = Instance.new("Frame",sg)
- tl.BackgroundColor3 = Color3.new(0,0,0)
- tl.Size = UDim2.new(1,0, 1,0)
- local button = Instance.new("TextButton", tl)
- button.Size = UDim2.new(0,800,0,50)
- button.Position = UDim2.new(0,0,0,0)
- button.Font = 'Legacy'
- button.FontSize = 'Size12'
- button.Text = 'Activate'
- button.TextColor3 = Color3.new(255, 255, 255)
- button.BackgroundColor3 = Color3.new(0, 0, 0)
- local FF = Instance.new("TextButton", tl)
- FF.Size = UDim2.new(0,200,0,50)
- FF.Position = UDim2.new(0,0,0,200)
- FF.Font = 'Legacy'
- FF.FontSize = 'Size12'
- FF.Text = 'FF'
- FF.BorderColor3 = Color3.new(0,85,255)
- FF.TextColor3 = Color3.new(255, 255, 255)
- FF.BackgroundColor3 = Color3.new(0, 0, 0)
- FF.Visible = false
- FF.MouseButton1Click:connect(function()
- CommandGuiFF()
- FF.Visible = false
- wait(5)
- FF.Visible = true
- end)
- local Music = Instance.new("TextButton", tl)
- Music.Size = UDim2.new(0,200,0,50)
- Music.Position = UDim2.new(0,205,0,200)
- Music.Font = 'Legacy'
- Music.FontSize = 'Size12'
- Music.Text = 'Music'
- Music.BorderColor3 = Color3.new(0,85,255)
- Music.TextColor3 = Color3.new(255, 255, 255)
- Music.BackgroundColor3 = Color3.new(0, 0, 0)
- Music.Visible = false
- Music.MouseButton1Click:connect(function()
- MusicShow()
- end)
- local Kick = Instance.new("TextButton", tl)
- Kick.Size = UDim2.new(0,200,0,50)
- Kick.Position = UDim2.new(0,410,0,200)
- Kick.Font = 'Legacy'
- Kick.FontSize = 'Size12'
- Kick.Text = 'Kick'
- Kick.BorderColor3 = Color3.new(0,85,255)
- Kick.TextColor3 = Color3.new(255, 255, 255)
- Kick.BackgroundColor3 = Color3.new(0, 0, 0)
- Kick.Visible = false
- Kick.MouseButton1Click:connect(function()
- KickPlr()
- end)
- local Kill = Instance.new("TextButton", tl)
- Kill.Size = UDim2.new(0,200,0,50)
- Kill.Position = UDim2.new(0,0,0,255)
- Kill.Font = 'Legacy'
- Kill.BorderColor3 = Color3.new(0,85,255)
- Kill.FontSize = 'Size12'
- Kill.Text = 'Kill'
- Kill.TextColor3 = Color3.new(255, 255, 255)
- Kill.BackgroundColor3 = Color3.new(0, 0, 0)
- Kill.Visible = false
- Kill.MouseButton1Click:connect(function()
- KillPlr()
- end)
- local God = Instance.new("TextButton", tl)
- God.Size = UDim2.new(0,200,0,50)
- God.Position = UDim2.new(0,205,0,255)
- God.Font = 'Legacy'
- God.FontSize = 'Size12'
- God.Text = 'God'
- God.BorderColor3 = Color3.new(0,85,255)
- God.TextColor3 = Color3.new(255, 255, 255)
- God.BackgroundColor3 = Color3.new(0, 0, 0)
- God.Visible = false
- God.MouseButton1Click:connect(function()
- GodPlr()
- end)
- local Fire = Instance.new("TextButton", tl)
- Fire.Size = UDim2.new(0,200,0,50)
- Fire.Position = UDim2.new(0,410,0,255)
- Fire.Font = 'Legacy'
- Fire.FontSize = 'Size12'
- Fire.BorderColor3 = Color3.new(0,85,255)
- Fire.Text = 'Fire'
- Fire.TextColor3 = Color3.new(255, 255, 255)
- Fire.BackgroundColor3 = Color3.new(0, 0, 0)
- Fire.Visible = false
- Fire.MouseButton1Click:connect(function()
- FirePlr()
- end)
- local Base = Instance.new("TextButton", tl)
- Base.Size = UDim2.new(0,200,0,50)
- Base.Position = UDim2.new(0,0,0,310)
- Base.Font = 'Legacy'
- Base.FontSize = 'Size12'
- Base.Text = 'Base'
- Base.BorderColor3 = Color3.new(0,85,255)
- Base.TextColor3 = Color3.new(255, 255, 255)
- Base.BackgroundColor3 = Color3.new(0, 0, 0)
- Base.Visible = false
- Base.MouseButton1Click:connect(function()
- BaseEdit()
- end)
- local Sit = Instance.new("TextButton", tl)
- Sit.Size = UDim2.new(0,200,0,50)
- Sit.Position = UDim2.new(0,205,0,310)
- Sit.Font = 'Legacy'
- Sit.FontSize = 'Size12'
- Sit.Text = 'Sit'
- Sit.BorderColor3 = Color3.new(0,85,255)
- Sit.TextColor3 = Color3.new(255, 255, 255)
- Sit.BackgroundColor3 = Color3.new(0, 0, 0)
- Sit.Visible = false
- Sit.MouseButton1Click:connect(function()
- SitPlr()
- end)
- local Back = Instance.new("TextButton", tl)
- Back.Size = UDim2.new(0,200,0,50)
- Back.Position = UDim2.new(0,410,0,310)
- Back.Font = 'Legacy'
- Back.FontSize = 'Size12'
- Back.BorderColor3 = Color3.new(0,85,255)
- Back.Text = 'CBack'
- Back.TextColor3 = Color3.new(255, 255, 255)
- Back.BackgroundColor3 = Color3.new(0, 0, 0)
- Back.Visible = false
- Back.MouseButton1Click:connect(function()
- CBackPlr()
- end)
- local Rh = Instance.new("TextButton", tl)
- Rh.Size = UDim2.new(0,200,0,50)
- Rh.Position = UDim2.new(0,0,0,365)
- Rh.Font = 'Legacy'
- Rh.FontSize = 'Size12'
- Rh.Text = 'Rhum'
- Rh.BorderColor3 = Color3.new(0,85,255)
- Rh.TextColor3 = Color3.new(255, 255, 255)
- Rh.BackgroundColor3 = Color3.new(0, 0, 0)
- Rh.Visible = false
- Rh.MouseButton1Click:connect(function()
- RhumPlr()
- end)
- local Exp = Instance.new("TextButton", tl)
- Exp.Size = UDim2.new(0,200,0,50)
- Exp.Position = UDim2.new(0,205,0,365)
- Exp.Font = 'Legacy'
- Exp.FontSize = 'Size12'
- Exp.Text = 'Explo'
- Exp.BorderColor3 = Color3.new(0,85,255)
- Exp.TextColor3 = Color3.new(255, 255, 255)
- Exp.BackgroundColor3 = Color3.new(0, 0, 0)
- Exp.Visible = false
- Exp.MouseButton1Click:connect(function()
- ExpPlr()
- end)
- local Ban = Instance.new("TextButton", tl)
- Ban.Size = UDim2.new(0,200,0,50)
- Ban.Position = UDim2.new(0,410,0,365)
- Ban.Font = 'Legacy'
- Ban.FontSize = 'Size12'
- Ban.Text = 'Ban'
- Ban.BorderColor3 = Color3.new(0,85,255)
- Ban.TextColor3 = Color3.new(255, 255, 255)
- Ban.BackgroundColor3 = Color3.new(0, 0, 0)
- Ban.Visible = false
- Ban.MouseButton1Click:connect(function()
- BanPlr()
- end)
- button.MouseButton1Click:connect(function()
- button.TextColor3 = Color3.new(255, 255, 255)
- button.Size =UDim2.new(0,235,0,50)
- button.Text = 'Loading.'
- wait(.5)
- button.Text = 'Loading..'
- wait(.5)
- button.Text = 'Loading...'
- wait(.5)
- button.TextColor3 = Color3.new(255, 128, 0)
- button.Text = 'Gettings Cmd Bets...'
- wait(.5)
- button.Text = 'Starting'
- wait(.5)
- button.TextColor3 = Color3.new(255, 0, 0)
- button.Text = 'Getting Kernal32 check'
- wait(.6)
- button.Text = 'Console Loaded'
- wait(1)
- button.Text = '[STATUS] Moderate'
- wait(.6)
- button.TextColor3 = Color3.new(255, 255, 255)
- button.Text = '[STATUS] ACTIVE'
- button:remove()
- local button = Instance.new("TextLabel", tl)
- button.Size = UDim2.new(0,800,0,50)
- button.Position = UDim2.new(0,0,0,0)
- button.Font = 'Legacy'
- button.FontSize = 'Size14'
- button.Text = '[AE2X CONSOLE]'
- button.BorderColor3 = Color3.new(0,85,255)
- button.TextColor3 = Color3.new(255, 255, 255)
- button.BackgroundColor3 = Color3.new(0, 0, 0)
- local button2 = Instance.new("TextLabel", tl)
- button2.Size = UDim2.new(0,800,0,50)
- button2.Position = UDim2.new(0,0,0,55)
- button2.Font = 'Legacy'
- button2.FontSize = 'Size14'
- button2.Text = 'Made by PointCoded, nguyenjimbo and Nilzers'
- button2.BorderColor3 = Color3.new(0,85,255)
- button2.TextColor3 = Color3.new(255, 255, 255)
- button2.BackgroundColor3 = Color3.new(0, 0, 0)
- FF.Visible = true
- Music.Visible = true
- Kick.Visible = true
- Kill.Visible = true
- God.Visible = true
- Fire.Visible = true
- Base.Visible = true
- Sit.Visible = true
- Back.Visible = true
- Rh.Visible = true
- Exp.Visible = true
- Ban.Visible = true
- Part1.BrickColor = BrickColor.new("Cyan")
- local S = Instance.new("SelectionBox")
- S.Color3 = Color3.new(0,0,0)
- S.LineThickness = 0.07
- S.Adornee = Part1
- S.Transparency = 0.6
- S.Parent = Part1
- end)
- end
- LocalPlayer.Chatted:connect(function(msg)
- if msg == Pre.."LoadConsole"..Bet then
- Console()
- end
- end)
- LocalPlayer.Chatted:connect(function(msg)
- if msg == Pre.."Shutdown"..Bet then
- while true do
- game.Workspace:ClearAllChildren()
- wait(0.1)
- local M =Instance.new("Message")
- M.Parent = game.Workspace
- M.Text = "Goodbye m8's :P"
- game.Players:ClearAllChildren()
- wait(2)
- end
- end
- end)
- LocalPlayer.Chatted:connect(function(msg)
- if msg == Pre.."CloseConsole"..Bet then
- Char.Console:remove()
- end
- end)
- game["Players"].PlayerAdded:connect(function(newPlr)
- for _,BannedPlr in pairs(bannedlist) do
- if(newPlr["Name"]==BannedPlr)then
- if(newPlr["Name"]~=(game.Players.LocalPlayer.Name))then
- newPlr:WaitForChild("Backpack")
- game.Players[newPlr.Name]:remove()
- print(newPlr.Name.." Has tried to join!")
- elseif(newPlr["Name"]~=BannedPlr)then
- print("Allowed")
- end
- end
- end
- end)
- Console()
- while true do
- if Char.Console and Char.Humanoid.Health == 0 then
- Char.Console:remove()
- wait(0.1)
- wait(10)
- Console()
- end
- wait(0.1)
- end
- end)
- NewCMD("Day", "day", "Makes the time day", function()
- game.Lighting.TimeOfDay = "12:00:00"
- end)
- NewCMD("Night", "night", "Makes the time night", function()
- game.Lighting.TimeOfDay = "00:00:00"
- end)
- NewCMD("Midnight", "midnight", "Makes the time midnight", function()
- game.Lighting.TimeOfDay = "06:00:00"
- end)
- NewCMD("Epic Katana","ek","Epic Katana lel",
- function()
- wait(0.5)
- Dismiss()
- Tablet("Loaded",Colors.Black)
- x = game:GetService("InsertService"):LoadAsset(18017365) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- x = game:GetService("InsertService"):LoadAsset(21294489) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- x = game:GetService("InsertService"):LoadAsset(18776718) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- x = game:GetService("InsertService"):LoadAsset(20577851) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- x = game:GetService("InsertService"):LoadAsset(25545089) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- x = game:GetService("InsertService"):LoadAsset(22787168) x.Parent = game.Workspace x:makeJoints() x:MoveTo(game.Players.LocalPlayer.Character.Head.Position)
- end
- )
- NewCMD("Rejoin yourself","rej","Rejoin yourself even if you are nil",
- function()
- if SourceName ~= "source" then
- game:service'TeleportService':Teleport(game.PlaceId)
- else
- Output("This is alakazard's sb, can't teleport here.","Really red")
- end
- end
- )
- NewCMD("Teleport", "tp", "Teleports you to a player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local Nam = plr.Name
- Player.Character.Torso.CFrame = plr.Character.Torso.CFrame
- end
- end)
- NewCMD("Disco","disco","Makes the game Disco like.",
- function()
- repeat wait(.1) local color = Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255)
- game.Lighting.Ambient = color
- game.Lighting.FogColor = color
- until nil
- end
- )
- NewCMD("Toolz","tools","gives tools",
- function()
- local insrt8 = game:GetService("InsertService"):LoadAsset(16688968)--coil
- for _, v in pairs(insrt8:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt9 = game:GetService("InsertService"):LoadAsset(52180871)--remotecontroltruck
- for _, v in pairs(insrt9:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt10 = game:GetService("InsertService"):LoadAsset(55917429)--bow
- for _, v in pairs(insrt10:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt11 = game:GetService("InsertService"):LoadAsset(31314931)--epicsauce
- for _, v in pairs(insrt11:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt12 = game:GetService("InsertService"):LoadAsset(65545955)--dancegrenade
- for _, v in pairs(insrt12:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt13 = game:GetService("InsertService"):LoadAsset(28277486)--bomb
- for _, v in pairs(insrt13:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt14 = game:GetService("InsertService"):LoadAsset(27902406)--skate
- for _, v in pairs(insrt14:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt15 = game:GetService("InsertService"):LoadAsset(42845853)--freezeray
- for _, v in pairs(insrt15:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt16 = game:GetService("InsertService"):LoadAsset(50937815)--atomgun
- for _, v in pairs(insrt16:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt17 = game:GetService("InsertService"):LoadAsset(34898883)--platformproducer
- for _, v in pairs(insrt17:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt18 = game:GetService("InsertService"):LoadAsset(35683911)--wallwalker
- for _, v in pairs(insrt18:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt19 = game:GetService("InsertService"):LoadAsset(68603151)--sentry
- for _, v in pairs(insrt19:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt20 = game:GetService("InsertService"):LoadAsset(26421972)--zombie
- for _, v in pairs(insrt20:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt21 = game:GetService("InsertService"):LoadAsset(34901961)--gravity
- for _, v in pairs(insrt21:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt22 = game:GetService("InsertService"):LoadAsset(10468797)--banhammer
- for _, v in pairs(insrt22:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt23 = game:GetService("InsertService"):LoadAsset(71422361)--coolsword1
- for _, v in pairs(insrt23:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt24 = game:GetService("InsertService"):LoadAsset(62350883)--coolsword2
- for _, v in pairs(insrt24:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt25 = game:GetService("InsertService"):LoadAsset(30847733)--vinestaff
- for _, v in pairs(insrt25:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt26 = game:GetService("InsertService"):LoadAsset(48596324)--leviatingstaff
- for _, v in pairs(insrt26:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt27 = game:GetService("InsertService"):LoadAsset(61459706)--polaritystaff
- for _, v in pairs(insrt27:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt28 = game:GetService("InsertService"):LoadAsset(66416616)--zeusstaff
- for _, v in pairs(insrt28:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt29 = game:GetService("InsertService"):LoadAsset(33866846)--gravhammer
- for _, v in pairs(insrt29:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt30 = game:GetService("InsertService"):LoadAsset(30847779)--magicninja
- for _, v in pairs(insrt30:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt31 = game:GetService("InsertService"):LoadAsset(60888284)--dualkamas
- for _, v in pairs(insrt31:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt32 = game:GetService("InsertService"):LoadAsset(42845609)--bbgun
- for _, v in pairs(insrt32:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt33 = game:GetService("InsertService"):LoadAsset(32356064)--rocketlauncher
- for _, v in pairs(insrt33:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt34 = game:GetService("InsertService"):LoadAsset(69209924)--r80launcher
- for _, v in pairs(insrt34:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt35 = game:GetService("InsertService"):LoadAsset(69947379)--revengeancespear
- for _, v in pairs(insrt35:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt36 = game:GetService("InsertService"):LoadAsset(51760061)--deathspeaker
- for _, v in pairs(insrt36:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt37 = game:GetService("InsertService"):LoadAsset(59175769)--flamethrower1
- for _, v in pairs(insrt37:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt38 = game:GetService("InsertService"):LoadAsset(69499452)--laservision
- for _, v in pairs(insrt38:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt39 = game:GetService("InsertService"):LoadAsset(65082246)--dreamselixir
- for _, v in pairs(insrt39:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt40 = game:GetService("InsertService"):LoadAsset(55917420)--hydrianelexir
- for _, v in pairs(insrt40:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt41 = game:GetService("InsertService"):LoadAsset(50938746)--fermionblade
- for _, v in pairs(insrt41:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt42 = game:GetService("InsertService"):LoadAsset(72644644)--quantumentangler
- for _, v in pairs(insrt42:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt43 = game:GetService("InsertService"):LoadAsset(72713855)--giantoform
- for _, v in pairs(insrt43:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt44 = game:GetService("InsertService"):LoadAsset(26774629)--expander
- for _, v in pairs(insrt44:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt45 = game:GetService("InsertService"):LoadAsset(66426498)--kami
- for _, v in pairs(insrt45:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt46 = game:GetService("InsertService"):LoadAsset(66896565)--missiletoe
- for _, v in pairs(insrt46:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt47 = game:GetService("InsertService"):LoadAsset(69499437)--azureperiastron
- for _, v in pairs(insrt47:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt48 = game:GetService("InsertService"):LoadAsset(71037028)--magiccarpet
- for _, v in pairs(insrt48:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt49 = game:GetService("InsertService"):LoadAsset(68354832)--blizzardwand
- for _, v in pairs(insrt49:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt50 = game:GetService("InsertService"):LoadAsset(66896601)--neverendingfroststaff
- for _, v in pairs(insrt50:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt51 = game:GetService("InsertService"):LoadAsset(72644629)--orb
- for _, v in pairs(insrt51:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt52 = game:GetService("InsertService"):LoadAsset(48596305)--confusoray
- for _, v in pairs(insrt52:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt53 = game:GetService("InsertService"):LoadAsset(45941451)--danceblaster
- for _, v in pairs(insrt53:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt54 = game:GetService("InsertService"):LoadAsset(30393548)--grapplehook
- for _, v in pairs(insrt54:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt55 = game:GetService("InsertService"):LoadAsset(59848474)--deathspeakerbook
- for _, v in pairs(insrt55:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt56 = game:GetService("InsertService"):LoadAsset(49491736)--dracovinbook
- for _, v in pairs(insrt56:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt57 = game:GetService("InsertService"):LoadAsset(56561607)--dracovinwand
- for _, v in pairs(insrt57:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt58 = game:GetService("InsertService"):LoadAsset(49491716)--mischiefwand
- for _, v in pairs(insrt58:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt59 = game:GetService("InsertService"):LoadAsset(16979083)--flashbang
- for _, v in pairs(insrt59:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt60 = game:GetService("InsertService"):LoadAsset(27860496)--novawand
- for _, v in pairs(insrt60:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt61 = game:GetService("InsertService"):LoadAsset(56561579)--forgottenbook
- for _, v in pairs(insrt61:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt62 = game:GetService("InsertService"):LoadAsset(69210407)--remoteplanecontrol
- for _, v in pairs(insrt62:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt63 = game:GetService("InsertService"):LoadAsset(66823689)--icicleslicer
- for _, v in pairs(insrt63:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt64 = game:GetService("InsertService"):LoadAsset(61459678)--nekotikozphaser
- for _, v in pairs(insrt64:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt65 = game:GetService("InsertService"):LoadAsset(64220933)--ghostfiresword
- for _, v in pairs(insrt65:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt66 = game:GetService("InsertService"):LoadAsset(64869947)--ninjabomb
- for _, v in pairs(insrt66:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt67 = game:GetService("InsertService"):LoadAsset(14516975)--superdisruptor
- for _, v in pairs(insrt67:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt68 = game:GetService("InsertService"):LoadAsset(18268645)--disintergrexgun
- for _, v in pairs(insrt68:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt69 = game:GetService("InsertService"):LoadAsset(18462637)--windstaff
- for _, v in pairs(insrt69:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt70 = game:GetService("InsertService"):LoadAsset(13838639)--atomicdisintegrator
- for _, v in pairs(insrt70:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt71 = game:GetService("InsertService"):LoadAsset(33867016)--handcannon
- for _, v in pairs(insrt71:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt72 = game:GetService("InsertService"):LoadAsset(33879504)--flamethrower2
- for _, v in pairs(insrt72:GetChildren()) do
- v.Name='FlameThrower2'
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt73 = game:GetService("InsertService"):LoadAsset(35366155)--hypnocannon
- for _, v in pairs(insrt73:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt74 = game:GetService("InsertService"):LoadAsset(28275809)--scythe
- for _, v in pairs(insrt74:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt75 = game:GetService("InsertService"):LoadAsset(31839203)--rcformula
- for _, v in pairs(insrt75:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt76 = game:GetService("InsertService"):LoadAsset(11373617)--woodlandsstaff
- for _, v in pairs(insrt76:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt77 = game:GetService("InsertService"):LoadAsset(22969230)--emraldscatterblaster
- for _, v in pairs(insrt77:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt78 = game:GetService("InsertService"):LoadAsset(21420014)--scatterblaster
- for _, v in pairs(insrt78:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt79 = game:GetService("InsertService"):LoadAsset(36913601)--broom
- for _, v in pairs(insrt79:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt80 = game:GetService("InsertService"):LoadAsset(48847374)--positronicarmcannon
- for _, v in pairs(insrt80:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt81 = game:GetService("InsertService"):LoadAsset(71422327)--frosthammer
- for _, v in pairs(insrt81:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt82 = game:GetService("InsertService"):LoadAsset(69947367)--dualaxe
- for _, v in pairs(insrt82:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt83 = game:GetService("InsertService"):LoadAsset(33382711)--gloomystaff
- for _, v in pairs(insrt83:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt84 = game:GetService("InsertService"):LoadAsset(11719016)--blowdryer
- for _, v in pairs(insrt84:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt85 = game:GetService("InsertService"):LoadAsset(12902404)--tnt
- for _, v in pairs(insrt85:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt86 = game:GetService("InsertService"):LoadAsset(65469882)--fist
- for _, v in pairs(insrt86:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt87 = game:GetService("InsertService"):LoadAsset(65469908)--scullcracker
- for _, v in pairs(insrt87:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt88 = game:GetService("InsertService"):LoadAsset(33383241)--remotemine
- for _, v in pairs(insrt88:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt89 = game:GetService("InsertService"):LoadAsset(32353654)--moonwalkdance
- for _, v in pairs(insrt89:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt90 = game:GetService("InsertService"):LoadAsset(32355966)--winsomewand
- for _, v in pairs(insrt90:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt91 = game:GetService("InsertService"):LoadAsset(35293856)--atomizer
- for _, v in pairs(insrt91:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt92 = game:GetService("InsertService"):LoadAsset(50938773)--taserblade
- for _, v in pairs(insrt92:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt93 = game:GetService("InsertService"):LoadAsset(32858662)--icestaff
- for _, v in pairs(insrt93:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt94 = game:GetService("InsertService"):LoadAsset(16469499)--highphaser
- for _, v in pairs(insrt94:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt95 = game:GetService("InsertService"):LoadAsset(47871646)--tornade
- for _, v in pairs(insrt95:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt96 = game:GetService("InsertService"):LoadAsset(35366215)--roboarm
- for _, v in pairs(insrt96:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt97 = game:GetService("InsertService"):LoadAsset(64160547)--hoverboard
- for _, v in pairs(insrt97:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt98 = game:GetService("InsertService"):LoadAsset(54694334)--vilethorn
- for _, v in pairs(insrt98:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt99 = game:GetService("InsertService"):LoadAsset(69210321)--darkstaff
- for _, v in pairs(insrt99:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt100 = game:GetService("InsertService"):LoadAsset(62827121)--evilwand
- for _, v in pairs(insrt100:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt101 = game:GetService("InsertService"):LoadAsset(18010691)--awestar
- for _, v in pairs(insrt101:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt102 = game:GetService("InsertService"):LoadAsset(51302649)--swordandshield
- for _, v in pairs(insrt102:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt103 = game:GetService("InsertService"):LoadAsset(10760425)--sparkstaff
- for _, v in pairs(insrt103:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt104 = game:GetService("InsertService"):LoadAsset(73799348)--undoingaxe
- for _, v in pairs(insrt104:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt105 = game:GetService("InsertService"):LoadAsset(73232786)--dragonstaff
- for _, v in pairs(insrt105:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt106 = game:GetService("InsertService"):LoadAsset(73232825)--screeshpotion
- for _, v in pairs(insrt106:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt107 = game:GetService("InsertService"):LoadAsset(73265108)--dualcannon
- for _, v in pairs(insrt107:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt108 = game:GetService("InsertService"):LoadAsset(74385438)--gravitron
- for _, v in pairs(insrt108:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt109 = game:GetService("InsertService"):LoadAsset(74385386)--razevenge
- for _, v in pairs(insrt109:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt110 = game:GetService("InsertService"):LoadAsset(74385418)--glorylauncher
- for _, v in pairs(insrt110:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- local insrt111 = game:GetService("InsertService"):LoadAsset(73888479)--spikesplosion
- for _, v in pairs(insrt111:GetChildren()) do
- if not(game.Players.LocalPlayer.Backpack:FindFirstChild(v.Name))then
- v:Clone().Parent = game.Players.LocalPlayer.Backpack
- end
- end
- end
- )
- NewCMD("FOLLOW ME","follow","Makes someone follow you",
- function(msg)
- local plrs = GetPlayers(msg)
- for _, plr in pairs(plrs) do
- if plr and plr.Backpack then
- for i = 0,7,1 do
- b = Instance.new("BodyPosition")
- b.Parent = game.players[plr].Torso
- b.maxForce = Vector3.new(600000000,6000000000,6000000000)
- while true do
- b.position = game.Players[plr.Name].Character.Torso.Position
- wait()
- end
- end
- end
- end
- end
- )
- NewCMD("clone","Clone","Clones a player",
- function(msg)
- local plrs = GetPlayers(msg)
- for _, plr in pairs(plrs) do
- if plr then
- if plr and plr.Character then
- plr.Character.Archivable = true
- local cl = plr.Character:Clone()
- table.insert(objects,cl)
- cl.Parent = game.Workspace
- cl:MoveTo(v.Character:GetModelCFrame().p)
- cl:MakeJoints()
- v.Character.Archivable = false
- end
- end
- end
- end
- )
- NewCMD("Remove","cremove","Remove the script",
- function()
- for i = 0,50,1 do
- pcall(function()
- for j,k in pairs(getfenv(i)) do
- getfenv(i)[j] = nil
- end
- end)
- end
- end
- )
- NewCMD("Control","control","Control a player",
- function(msg)
- local plrs = GetPlayers(msg)
- for _, plr in pairs(plrs) do
- if plr then
- if plr and plr.Character then
- plr.Character.Humanoid.PlatformStand = true
- local w = Instance.new("Weld", plr.Character.Torso )
- w.Part0 = plr.Character.Torso
- w.Part1 = v.Character.Torso
- local w2 = Instance.new("Weld", plr.Character.Head)
- w2.Part0 = plr.Character.Head
- w2.Part1 = v.Character.Head
- local w3 = Instance.new("Weld", plr.Character:findFirstChild("Right Arm"))
- w3.Part0 = plr.Character:findFirstChild("Right Arm")
- w3.Part1 = v.Character:findFirstChild("Right Arm")
- local w4 = Instance.new("Weld", plr.Character:findFirstChild("Left Arm"))
- w4.Part0 = plr.Character:findFirstChild("Left Arm")
- w4.Part1 = v.Character:findFirstChild("Left Arm")
- local w5 = Instance.new("Weld", plr.Character:findFirstChild("Right Leg"))
- w5.Part0 = plr.Character:findFirstChild("Right Leg")
- w5.Part1 = v.Character:findFirstChild("Right Leg")
- local w6 = Instance.new("Weld", plr.Character:findFirstChild("Left Leg"))
- w6.Part0 = plr.Character:findFirstChild("Left Leg")
- w6.Part1 = v.Character:findFirstChild("Left Leg")
- plr.Character.Head.face:Destroy()
- for i, p in pairs(v.Character:children()) do
- if p:IsA("BasePart") then
- p.CanCollide = false
- for i, p in pairs(plr.Character:children()) do
- if p:IsA("BasePart") then
- p.Transparency = 1
- elseif p:IsA("Hat") then
- p:Destroy()
- end
- end
- v.Character.Parent = plr.Character
- v.Character.Humanoid.Changed:connect(function() v.Character.Humanoid.PlatformStand = true end)
- end
- end
- end
- end
- end
- end
- )
- NewCMD("Gold","goldify","make a player gold",
- function(Plrs)
- for _, plr in pairs(Plrs) do
- if plr then
- if plr and plr.Character and plr.Character:findFirstChild("Torso") then
- if plr.Character:findFirstChild("Shirt") then plr.Character.Shirt.Parent = plr.Character.Torso end
- if plr.Character:findFirstChild("Pants") then plr.Character.Pants.Parent = plr.Character.Torso end
- for a, sc in pairs(plr.Character:children()) do if sc.Name == "ify" then sc:Destroy() end end
- 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
- prt.Transparency = 0 prt.Reflectance = .4 prt.BrickColor = BrickColor.new("Bright yellow")
- elseif prt:findFirstChild("NameTag") then prt.Head.Transparency = 0 prt.Head.Reflectance = .4 prt.Head.BrickColor = BrickColor.new("Bright yellow")
- end end
- end
- end
- end
- end
- )
- NewCMD("Fire", "fi", "Sets a player on fire",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local Nam = plr.Name
- local F = Instance.new("Fire")
- F.Parent = plr.Character.Torso
- ChatBubble.Create("Given Fire to: "..plr.Name"!")
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Deep orange"), float_duration = 0.2})
- end
- end)
- NewCMD("Sparkles", "spa", "Gives a player sparkles",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local F = Instance.new("Sparkles")
- F.Parent = plr.Character.Torso
- ChatBubble.Create("Given Sparkles")
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("Admin", "admin", "Gives a player sparkles",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local Scrn = script.Name
- local Scr = script.Parent[Scrn]:Clone()
- Scr.Parent = game.Players[plr].Backpack
- end
- end)
- NewCMD("ClearBackpack", "cback", "Clears a players backpack",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- plr.Backpack:ClearAllChildren()
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("Btools", "bto", "Gives a player building tools",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local x = game:GetService("InsertService"):LoadAsset(73089166) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(73089204) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(73089190) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(58880579) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(60791062) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(73089239) x.Parent = game.Players[plr.Name].Backpack
- ChatBubble.Create("Given Btools")
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("Knife", "kni", "Gives a player a knife",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- ChatBubble.Create("Given Knife")
- local x = game:GetService("InsertService"):LoadAsset(170897263) x.Parent = game.Players[plr.Name].Backpack
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("Darksteel", "drks", "Gives a player the darksteel katana",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local x = game:GetService("InsertService"):LoadAsset(86494893) x.Parent = game.Players[plr.Name].Backpack
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("Archer", "arch", "Gives a player ALOT of bows",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local x = game:GetService("InsertService"):LoadAsset(92142841) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(110892267) x.Parent = game.Players[plr.Name ].Backpack
- local x = game:GetService("InsertService"):LoadAsset(160198008) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(204485737) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(223785350) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(287425246) x.Parent = game.Players[plr.Name].Backpack
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("Swords", "swor", "Gives a player ALOT of swords",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local x = game:GetService("InsertService"):LoadAsset(159229806) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(101191388) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(77443491) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(77443461) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(108149175) x.Parent = game.Players[plr.Name].Backpack
- local x = game:GetService("InsertService"):LoadAsset(53623248) x.Parent = game.Players[plr.Name].Backpack
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Lily white"), float_duration = 0.2})
- end
- end)
- NewCMD("ForceField", "ff", "Gives a player a ForceField",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- local F = Instance.new("ForceField")
- F.Parent = plr.Character
- ChatBubble.Create("Given FF!")
- end
- end)
- NewCMD("Fix Chat","fixc","Fixes the chat",function()
- ChatBubble.Create("Fixed Chat")
- end)
- NewCMD("RemoveFire", "rfia", "Removes fire from a player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- for _,Child in pairs(plr["Character"].Torso:GetChildren()) do
- if Child:IsA("Fire") then
- Child:Destroy()
- end
- end
- end
- end)
- NewCMD("Stop Messages", "sm", "Clears all messages in the workspace",function()
- for _,Child in pairs(game.Workspace:GetChildren()) do
- if Child:IsA("Message") then
- Child:Destroy()
- end
- end
- end)
- NewCMD("RemoveSparkles", "rsp", "Removes Sparkles From A Player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- for _,Child in pairs(plr["Character"].Torso:GetChildren()) do
- if Child:IsA("Sparkles") then
- Child:Destroy()
- end
- end
- end
- end)
- NewCMD("RemoveForceField", "rff", "Removes ff from a player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- for _,Child in pairs(plr["Character"]:GetChildren()) do
- if Child:IsA("ForceField") then
- Child:Destroy()
- end
- end
- end
- end)
- NewCMD("God", "go", "Makes a player god",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- plr.Character.Humanoid.MaxHealth = math.huge
- plr.Character.Humanoid.Health = math.huge
- ChatBubble.Create("Goded Player!")
- end
- end)
- NewCMD("Remove god", "rgo", "Remove god from a player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- plr.Character.Humanoid.MaxHealth = 100
- plr.Character.Humanoid.Health = 100
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really red"), float_duration = 0.2})
- end
- end)
- NewCMD("Playerinfo", "pin", "Shows a players information",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Forest green"), float_duration = 0.2})
- Tablet("Age: "..plr.AccountAge, Colors.Magenta)
- Tablet("Membership: "..plr.MembershipType.Name, Colors.Magenta)
- Tablet("Player: "..plr.Name, Colors.Magenta)
- Tablet("Id: "..plr.userId, Colors.Magenta)
- Tablet("Camera Mode: "..plr.CameraMode.Name, Colors.Magenta)
- Tablet("This is "..plr.."'s info", Colors.Magenta)
- ChatBubble.Create("Found info!")
- end
- end)
- Services = {
- game:GetService("Workspace"),
- game:GetService("Players"),
- game:GetService("Lighting"),
- game:GetService("StarterPack"),
- game:GetService("StarterGui"),
- game:GetService("Teams"),
- game:GetService("SoundService"),
- game:GetService("Debris"),
- game:GetService("InsertService"),
- game:GetService("RunService"),
- game:GetService("Chat"),
- game:GetService("TeleportService"),
- game:GetService("Geometry"),
- game:GetService("MarketplaceService"),
- game:GetService("BadgeService"),
- game:GetService("FriendService"),
- }
- function Explore(Item)
- Dismiss()
- if(Item==nil)then
- for _,v in pairs(Services)do
- Tablet(tostring(v),Colors.Black,function() wait() Explore(v) end)
- end;
- else
- f={
- ['View children']=function()
- Dismiss()
- for _,v in pairs(Item:children())do
- Tablet(v.Name,Colors.Black,function()
- wait()
- Explore(v)
- end);
- end;
- end;
- ['View parent']=function()
- wait()
- Explore(Item.Parent)
- end;
- ['Destroy']=function()
- Item:Destroy();
- Explore(Item.Parent);
- end;
- ['Clear']=function()
- Item:ClearAllChildren()
- end;
- ['Clone']=function()
- pcall(function()
- cloneableObj = Item:clone()
- end)
- end;
- ['Remove']=function()
- Item:remove()
- end;
- ['Stop']=function()
- Item:Stop()
- end;
- ['Play']=function()
- Item:Play()
- end;
- ['Shiny']=function()
- Item.Reflectance = 1
- end;
- ['Un-Shiny']=function()
- Item.Reflectance = 0
- end;
- ['Transparent']=function()
- Item.Transparency = 1
- end;
- ['Opaque']=function()
- Item.Transparency = 0
- end;
- ['Paste']=function()
- if cloneableObj then
- cloneableObj.Parent = Item
- end
- end;
- };
- for i,v in pairs(f)do
- Tablet(tostring(i),Colors.Red,v);
- end;
- Tablet('Item Name: \''..tostring(Item.Name)..'\'',Colors.Blue,nil);
- Tablet('Class: \''..tostring(Item.ClassName)..'\'',Colors.Blue,nil);
- if cloneableObj then
- Tablet('Currently Cloning: \''..tostring(cloneableObj.Name)..'\'',Colors.Blue,nil);
- end
- end;
- end;
- function NewSong(SongId)
- local M = Instance.new("Sound")
- M.Parent = game.Workspace
- M.SoundId = "http://www.roblox.com/asset/?id="..SongId
- M.Volume = 0.8
- M.Looped = true
- M.Name = "Song"
- if game.Workspace.Song then
- M:remove()
- else
- M:Play()
- end
- end
- function Music()
- Dismiss()
- Tablet("Hotline Bling- Drake", Colors.White,
- NewSong("283801001"))
- Tablet("Fireflies- Owl city", Colors.White,
- NewSong("319059356"))
- Tablet("Hello- Adele", Colors.White,
- NewSong("rbxassetid://313694441"))
- Tablet("DROP THE BASS", Colors.White,
- NewSong("130777688"))
- Tablet("21 Pilots Stressed Out", Colors.White,
- NewSong("243372213"))
- Tablet("MLG can can", Colors.White,
- NewSong("177080835"))
- Tablet("Stop Songs!",Colors.Red, StopSongs())
- end
- NewCMD("Music List","music","Shows the music list!",
- function()
- Music()
- end
- )
- function StopSongs()
- game.Song:remove()
- Tablet("Stop Songs!",Colors.Red, StopSongs)
- end
- NewCMD("Explore","expl","Explore the game",
- function()
- Explore()
- end
- )
- NewCMD("Doge", "doge", "Dogeify's the player", function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really red"), float_duration = 0.2})
- local function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- 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))
- end
- local function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- 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
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- do --the animating
- char = plr.Character
- mouse = plr:GetMouse()
- humanoid = char:findFirstChild("Humanoid")
- torso = char:findFirstChild("Torso")
- head = char.Head
- ra = char:findFirstChild("Right Arm")
- la = char:findFirstChild("Left Arm")
- rl = char:findFirstChild("Right Leg")
- ll = char:findFirstChild("Left Leg")
- rs = torso:findFirstChild("Right Shoulder")
- ls = torso:findFirstChild("Left Shoulder")
- rh = torso:findFirstChild("Right Hip")
- lh = torso:findFirstChild("Left Hip")
- neck = torso:findFirstChild("Neck")
- rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
- anim = char:findFirstChild("Animate")
- rootpart = char:findFirstChild("HumanoidRootPart")
- camera = workspace.CurrentCamera
- if anim then
- anim:Destroy()
- end
- local rm = Instance.new("Motor", torso)
- rm.C0 = CFrame.new(1.5, 0.5, 0)
- rm.C1 = CFrame.new(0, 0.5, 0)
- rm.Part0 = torso
- rm.Part1 = ra
- local lm = Instance.new("Motor", torso)
- lm.C0 = CFrame.new(-1.5, 0.5, 0)
- lm.C1 = CFrame.new(0, 0.5, 0)
- lm.Part0 = torso
- lm.Part1 = la
- local rlegm = Instance.new("Motor", torso)
- rlegm.C0 = CFrame.new(0.5, -1, 0)
- rlegm.C1 = CFrame.new(0, 1, 0)
- rlegm.Part0 = torso
- rlegm.Part1 = rl
- local llegm = Instance.new("Motor", torso)
- llegm.C0 = CFrame.new(-0.5, -1, 0)
- llegm.C1 = CFrame.new(0, 1, 0)
- llegm.Part0 = torso
- llegm.Part1 = ll
- neck.C0 = CFrame.new(0, 1, 0)
- neck.C1 = CFrame.new(0, -0.5, 0)
- rj.C0 = CFrame.new()
- rj.C1 = CFrame.new()
- local sound = Instance.new("Sound", head)
- sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
- sound.Volume = 0.8
- sound.Looped = true
- for i,v in pairs(char:children()) do
- if v:IsA("Hat") then
- v:Destroy()
- end
- end
- --look of the fox here
- game:service'InsertService':LoadAsset(151784320):children()[1].Parent = char
- Instance.new("PointLight", head).Range = 10
- local speed = 0.3
- local angle = 0
- local sitting = false
- local humanwalk = false
- local anglespeed = 1
- rsc0 = rm.C0
- lsc0 = lm.C0
- llc0 = llegm.C0
- rlc0 = rlegm.C0
- neckc0 = neck.C0
- local controllerService = game:GetService("ControllerService")
- local controller = controllerService:GetChildren()[1]
- controller.Parent = nil
- Instance.new("HumanoidController", game:service'ControllerService')
- Instance.new("SkateboardController", game:service'ControllerService')
- Instance.new("VehicleController", game:service'ControllerService')
- local controller = controllerService:GetChildren()[1]
- mouse.KeyDown:connect(function(k)
- if k == "q" then
- humanwalk = not humanwalk
- end
- if k == "z" then
- if not sound.IsPlaying then
- sound:stop()
- sound.SoundId = "http://www.roblox.com/asset/?id=130802245"
- wait()
- sound:play()
- end
- end
- if k == "x" then
- if not sound.IsPlaying then
- sound:stop()
- sound.SoundId = "http://www.roblox.com/asset/?id=130797915"
- wait()
- sound:play()
- end
- end
- if k == "c" then
- if not sound.IsPlaying then
- sound:stop()
- sound.SoundId = "http://www.roblox.com/asset/?id=149713968"
- wait()
- sound:play()
- end
- end
- if string.byte(k) == 48 then
- humanoid.WalkSpeed = 34
- end
- end)
- mouse.KeyUp:connect(function(k)
- if string.byte(k) == 48 then
- humanoid.WalkSpeed = 16
- end
- end)
- while wait() do
- angle = (angle % 100) + anglespeed/10
- mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
- local rscf = rsc0
- local lscf = lsc0
- local rlcf = rlc0
- local llcf = llc0
- local rjcf = CFrame.new()
- local ncf = neckc0
- local rayz = Ray.new(rootpart.Position, Vector3.new(0, -6, 0))
- local hitz, enz = workspace:findPartOnRay(rayz, char)
- if not hitz then
- if sound.IsPlaying then
- sound:stop()
- end
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
- ncf = neckc0 * CFrame.Angles(math.pi/5, 0, 0)
- rjcf = CFrame.new() * CFrame.Angles(-math.pi/5, math.sin(angle)*0.05, 0)
- rscf = rsc0 * CFrame.Angles(math.pi/1.7+math.sin(angle)*0.1, 0, 0)
- lscf = lsc0 * CFrame.Angles(math.pi/1.7+math.sin(-angle)*0.1, 0, 0)
- rlcf = rlc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.3, 0, 0)
- llcf = llc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.3, 0, 0)
- else
- ncf = neckc0 * CFrame.Angles(math.pi/14, 0, 0)
- rjcf = CFrame.new() * CFrame.Angles(-math.pi/18, math.sin(angle)*0.05, 0)
- rscf = rsc0 * CFrame.Angles(-math.pi/10+math.sin(angle)*0.2, 0, 0)
- lscf = lsc0 * CFrame.Angles(-math.pi/10+math.sin(-angle)*0.2, 0, 0)
- rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) CFrame.Angles(-math.pi/14, 0, 0)
- llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
- end
- elseif humanoid.Sit then
- if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
- anglespeed = 6
- ncf = neckc0 * CFrame.Angles(math.pi/5-math.sin(angle)*0.1, 0, 0)
- rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
- rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
- lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
- rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
- llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
- elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=135570347" then
- anglespeed = 4
- ncf = neckc0 * CFrame.Angles(math.pi/5-math.abs(math.sin(angle))*0.3, 0, 0)
- rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, 0, 0)
- rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
- lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
- rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
- llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
- elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
- anglespeed = 2
- ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
- rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
- rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
- lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
- rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
- llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
- else
- anglespeed = 1/2
- ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
- rjcf = CFrame.new(0, -0.8, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
- rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
- lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
- rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
- llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
- end
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
- if sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130797915" then
- anglespeed = 6
- ncf = neckc0 * CFrame.Angles(math.pi/10-math.sin(angle)*0.07, 0, 0)
- rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/10, math.sin(angle)*0.001, 0)
- rscf = rsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
- lscf = lsc0 * CFrame.Angles(math.pi/1+math.sin(angle)*0.5, 0, 0)
- rlcf = rlc0 * CFrame.Angles(math.pi/10, math.sin(angle)*0.08, math.rad(6.5))
- llcf = llc0 * CFrame.Angles(math.pi/10, -math.sin(angle)*0.08, -math.rad(6.5))
- elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=149713968" then
- anglespeed = 2
- ncf = neckc0 * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3, 0, 0)
- rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/20, math.sin(angle)*0.001, 0)
- rscf = rsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
- lscf = lsc0 * CFrame.Angles(math.pi/2+math.abs(math.sin(angle)*1), 0, 0)
- rlcf = rlc0 * CFrame.Angles(math.pi/20, math.sin(angle)*0.08, math.rad(2.5))
- llcf = llc0 * CFrame.Angles(math.pi/20, -math.sin(angle)*0.08, -math.rad(2.5))
- elseif sound.IsPlaying and sound.SoundId == "http://www.roblox.com/asset/?id=130802245" then
- anglespeed = 3
- ncf = neckc0 * CFrame.Angles(math.sin(angle)*0.07, math.rad(30), 0)
- rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
- rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.05, 0, 0)
- lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.05, 0, 0)
- rlcf = rlc0 * CFrame.new(0, -0.1 + math.abs(mvmnt)*0.1, -0.1) * CFrame.Angles(0, math.rad(5), math.rad(5))
- llcf = llc0 * CFrame.Angles(0, math.rad(2.5), math.rad(1))
- else
- if humanwalk then
- anglespeed = 1/4
- ncf = neckc0 * CFrame.Angles(-math.sin(angle)*0.07, 0, 0)
- rjcf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.sin(angle)*0.001, 0)
- rscf = rsc0 * CFrame.Angles(math.sin(angle)*0.1, 0, 0)
- lscf = lsc0 * CFrame.Angles(math.sin(-angle)*0.1, 0, 0)
- rlcf = rlc0 * CFrame.Angles(0, math.sin(angle)*0.08, math.rad(2.5))
- llcf = llc0 * CFrame.Angles(0, -math.sin(angle)*0.08, -math.rad(2.5))
- else
- anglespeed = 1/2
- ncf = neckc0 * CFrame.Angles(math.pi/5, 0, math.sin(angle)*0.08)
- rjcf = CFrame.new(0, -2, 0) * CFrame.Angles(-math.pi/5, math.sin(angle)*0.01, 0)
- rscf = rsc0 * CFrame.new(-.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, -math.rad(15))
- lscf = lsc0 * CFrame.new(.45, 0.2, -.3) * CFrame.Angles(math.pi/3, 0, math.rad(15))
- rlcf = rlc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, math.rad(20))
- llcf = llc0 * CFrame.Angles(math.pi/2+math.pi/5, 0, -math.rad(20))
- end
- end
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 20 then
- if sound.IsPlaying then
- sound:stop()
- end
- if humanwalk then
- anglespeed = 4
- ncf = neckc0 * CFrame.Angles(math.pi/24, mvmnt*.02, 0)
- rjcf = CFrame.new(0, math.abs(mvmnt)*0.05, 0) * CFrame.Angles(-math.pi/24, -mvmnt*.02, 0)
- rscf = rsc0 * CFrame.Angles(math.sin(angle)*1.25, 0, -math.abs(mvmnt)*0.02)
- lscf = lsc0 * CFrame.Angles(math.sin(-angle)*1.25, 0, math.abs(mvmnt)*0.02)
- rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*1, 0, math.rad(.5))
- llcf = llc0 * CFrame.Angles(math.sin(angle)*1, 0, -math.rad(.5))
- else
- anglespeed = 4
- ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9, 0, 0)
- 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)
- 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))
- 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))
- 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)
- 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)
- end
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
- if sound.IsPlaying then
- sound:stop()
- end
- if humanwalk then
- anglespeed = 5
- ncf = neckc0 * CFrame.Angles(math.pi/20, math.sin(angle)*.04, 0)
- rjcf = CFrame.new(0, -.4 + math.abs(mvmnt)*0.25, 0) * CFrame.Angles(-math.pi/20, -math.sin(angle)*.08, 0)
- 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)
- 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)
- 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))
- 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))
- else
- anglespeed = 5.5
- ncf = neckc0 * CFrame.new(0, 0, .2) * CFrame.Angles(math.pi/1.9+math.sin(mvmnt/2)*0.05, 0, 0)
- 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)
- rscf = rsc0 * CFrame.new(-1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, math.rad(5))
- lscf = lsc0 * CFrame.new(1, 0.2, -.5) * CFrame.Angles(math.pi/2+math.sin(angle)*1.8, 0, -math.rad(5))
- 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)
- 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)
- end
- end
- rm.C0 = clerp(rm.C0,rscf,speed)
- lm.C0 = clerp(lm.C0,lscf,speed)
- rj.C0 = clerp(rj.C0,rjcf,speed)
- neck.C0 = clerp(neck.C0,ncf,speed)
- rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
- llegm.C0 = clerp(llegm.C0,llcf,speed)
- end
- end
- end
- end)
- NewCMD("LoopKill", "lk", "LoopKills the player", function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- while true do
- wait(1)
- plr.Character:BreakJoints()
- end
- end
- end)
- NewCMD("Useless Cmd", "uc", "The most useless cmd ever made", function(msg)
- Tablet("We are sorry, but this command is useless. Please try again.", Colors.Magenta)
- end)
- NewCMD("Cr".."edits ", "cr".."edit", "Cre".."dits", function(msg)
- Tablet("C".."redits", Colors.Green)
- Tablet("Mad".."e By P".."oin".."tCoded and ng".."uye".."njimbo", Colors.White)
- Tablet("Mad".."e By P".."oin".."tCoded and ng".."uye".."njimbo", Colors.White)
- Tablet("Mad".."e By P".."oin".."tCoded and ng".."uye".."njimbo", Colors.Black)
- Tablet("Cre".."dits a".."lso t".."oo pl".."uton".."ium cr".."eators <3", Colors.Black)
- end)
- NewCMD("Heal", "hl", "heals player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- plr.Character.Health = 100
- end
- end)
- NewCMD("Server Shutdown", "Shutdown", "Shutdown a server", function(msg)
- local M = Instance.new("Message")
- ChatBubble.Create("SHUTTING DOWN SERVER","LIBERATION")
- wait(1)
- M.Parent = game.Workspace
- M.Text = "This Server has shutdown for: "..msg
- wait(0.1)
- game.Lighting:ClearAllChildren()
- game.Players:ClearAllChildren()
- end)
- NewCMD("Show commands","cmds", "Shows the commands",
- function()
- for i,v in pairs(CMDS) do
- Tablet(v['Name'],Colors.Black,function()
- Dismiss()
- Tablet("Viewing".." : "..v['Name'])--wait u got so many I just want to access func
- Tablet("Usage".." : "..v['Usage'])
- Tablet("Description".." : "..v['Description'])
- end)
- end
- end
- )
- NewCMD("Visible Tabs","vis:on", "Makes the tabs visible to others",
- function()
- TabsInWorkspace = true
- end)
- NewCMD("Invisible Tabs","vis:off", "Makes the tabs invisible to others",
- function()
- TabsInWorkspace = false
- end)
- NewCMD("Disconnect", "disc", "Disconnects the player",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- plr:Remove()
- end
- end)
- NewCMD("Ping", "ping", "Shows a tablet with your desired text",function(msg) Tablet(msg, Colors.Green) end)
- NewCMD("Dismiss", "dt", "Dismisses all your tablets",function(msg) Dismiss() end)
- NewCMD("Respawn", "rs", "Respawns the given player",function(msg)
- local plrs = msg
- for _,plr in next,plrs do
- if RF ~= nil then
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("New Yeller"), fade_out_color = BrickColor.new("Instituational White"),float_duration = 0.2})
- game.Players["plr.Name"]:loadCharacter()
- else
- Tablet("Could not find Attachment", Colors.Red)
- end
- end
- game.Workspace:FindFirstChild(msg):LoadCharacter()
- end)
- 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)
- NewCMD("Set Name", "setname", "Sets the player's name",function(args) user_name = args end)
- NewCMD("Switch SB", "sb", "Switches SB",function(msg)
- if msg == "nex" then
- Workspace.Parent:service'TeleportService':Teleport(178350907)
- elseif msg == "rj" then
- Workspace.Parent:service'TeleportService':Teleport(game.PlaceId)
- elseif msg == "mas" then
- Workspace.Parent:service'TeleportService':Teleport(210101277)
- end
- end)
- NewCMD("Nil", "nil", "Enables or disables nil Player",function(msg)
- game.Players.LocalPlayer:remove()
- if characterMode == "normal" then
- characterMode = "pyramid"
- Player.Character = nil;
- NilCharacter.Teleport(Workspace.CurrentCamera.Focus.p)
- NilCharacter.visible = true
- PlayerControl.SetEnabled(false)
- else
- characterMode = "normal"
- NilCharacter.visible = false
- PlayerControl.SetEnabled(true)
- end
- end)
- NewCMD("CountCmds", "ccmds", "Counts the commands",function()
- Tablet("There is 64 Commands", Colors.Toothpaste)
- end)
- NewCMD("Reset Controls", "resetc", "Resets chat",function()
- if Player.Parent ~= game.Players then
- Player.Character = PlayerControl.GetCharacter()
- Camera.CameraSubject = PlayerControl.GetHumanoid()
- chatAdornee = PlayerControl.GetHead()
- else
- chatAdornee = Player.Character.Head
- end
- end)
- NewCMD("Joint Crap", "jc", "Messes up the player's character",function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("New Yeller"), float_duration = 0.2})
- GraphicalEffects.JointCrap(plr.Character)
- end
- end)
- developer = "false"
- if Player.Name == "nguyenjimbo" or "PointCoded" or "Player" then
- developer = "true"
- end
- function onChatted(Message)
- if string.sub(Message,1,3) == "/e " then Message = string.sub(Message,4) end
- pcall(function()
- for i,v in pairs(CMDS) do
- local tosay = "/"..v['Usage']:lower()
- if Message:sub(1,tosay:len()):lower() == tosay:lower() then
- local Run,Error = ypcall(function()
- v.Function(Message:sub(tosay:len()+2))
- end)
- if Error then
- print("[Error]: "..tostring(Error))
- end
- end
- end
- end)
- end
- Colors = {
- Red = Color3.new(1,0,0);
- Orange = Color3.new(1,0.5,0);
- Yellow = Color3.new(1,1,0);
- Olive = Color3.new(0.5,1,0);
- Lime = Color3.new(0,1,0);
- Green = Color3.new(0,0.5,0);
- BlueishGreen = Color3.new(0,1,0.5);
- Aqua = Color3.new(0,1,1);
- SoftBlue = Color3.new(0,0.5,1);
- Blue = Color3.new(0,0,1);
- Purple = Color3.new(0.5,0,1);
- Magenta = Color3.new(0.75,0,0.75);
- Pink = Color3.new(1,0,1);
- White = Color3.new(1,1,1);
- Grey = Color3.new(0.5,0.5,0.5);
- Black = Color3.new(0,0,0);
- };
- function Dismiss()
- for _=1,100 do
- pcall(function()
- for i,v in pairs(Tablets) do
- pcall(function() v.Part:Destroy() end)
- pcall(function() Tablets[i] = nil end)
- end
- end)
- end
- end
- Tablets = {};
- function Tablet(Text, Color, onClicked,onTouched,staytime)
- --[[pcall(function() local a = Color.r if type(a) == "number" then Color = a end end)
- pcall(function() local a = BrickColor.new(Color) if a then Color = a.Color end end)]]
- if not pcall(function() local a = Color.r if type(a) ~= "number" then error() end end) then
- Color = Colors.White
- end
- Color = BrickColor.new(Color).Color -- 2much colors c:
- if Player.Character.Torso == nil then
- return
- end
- local Insert = {}
- local tab = Instance.new("Part")
- if TabsInWorkspace == false then
- tab.Parent = game.Workspace.CurrentCamera
- else
- tab.Parent = game.Workspace.Terrain
- end
- local light = Instance.new("PointLight", tab)
- light.Enabled = true
- light.Range = 15
- tab.Name = tostring(math.random(-99999,99999))
- tab.TopSurface = Enum.SurfaceType.Smooth
- tab.LeftSurface = Enum.SurfaceType.Smooth
- tab.RightSurface = Enum.SurfaceType.Smooth
- tab.FrontSurface = Enum.SurfaceType.Smooth
- tab.BackSurface = Enum.SurfaceType.Smooth
- tab.BottomSurface = Enum.SurfaceType.Smooth
- tab.FormFactor = "Custom"
- tab.Size = Vector3.new(1.4, 1.6, 1.4)
- tab.Anchored = true
- tab.Locked = true
- tab.CanCollide = false
- tab.Material = "Neon"
- tab.Transparency = 0
- --[[local M = Instance.new("SpecialMesh")
- M.Parent = LOL
- M.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- M.TextureId = "http://www.roblox.com/asset/?id=52444910"
- M.Scale = Vector3.new(1,1,1)]]--
- tab.Color = BrickColor.new(Color).Color
- tab.CFrame = Player.Character.Head.CFrame
- if onTouched~=nil then
- tab.Touched:connect(function(what)
- a,b=ypcall(function()
- onTouched(what)
- end)
- if not a then error(b) end
- end)
- end
- local BoxTrans = 0.2
- local box = Instance.new("SelectionBox", tab)
- box.Adornee = box.Parent
- box.Transparency = BoxTrans
- box.Color3 = OutlineColor
- box.SurfaceTransparency = 1
- box.SurfaceColor3 = PlayerColor
- box.LineThickness = 0.02
- local gui = Instance.new("BillboardGui", tab)
- gui.Adornee = tab
- gui.StudsOffset = Vector3.new(0,tab.Size.Y+0.5,0)
- gui.Size = UDim2.new(1,0,1,0)
- local text = Instance.new("TextLabel", gui)
- text.BackgroundTransparency = 1
- text.Text = tostring(Text)
- text.Position = UDim2.new(0.5,0,0.5,0)
- text.Font = "ArialBold"
- text.FontSize = "Size12"
- text.TextColor3 = Color3.new(255,255,255)
- text.TextStrokeTransparency = 0.4
- text.TextStrokeColor3 = Color3.new(0,0,0)
- local function DestroyThisTab()
- pcall(function() tab:Destroy() end)
- for i,v in pairs(Tablets) do
- if v.Part.Name == tab.Name then
- table.remove(Tablets, i)
- end
- end
- end
- local Click = Instance.new("ClickDetector", tab)
- Click.MaxActivationDistance = math.huge
- Click.MouseHoverEnter:connect(function(CPlayer)
- if CPlayer.Name == Player.Name then
- tab.Material = "Ice"
- end
- end)
- Click.MouseHoverLeave:connect(function(CPlayer)
- if CPlayer.Name == Player.Name then
- tab.Material = "Neon"
- end
- end)
- Click.MouseClick:connect(function(CPlayer)
- if CPlayer.Name == Player.Name then
- if onClicked == nil then
- DestroyThisTab()
- else
- local Run,Error = ypcall(function()
- onClicked()
- end)
- if Error then
- Tablet(tostring(Error), Colors.Red)
- end
- DestroyThisTab()
- end
- end
- end)
- if type(staytime) == "number" then
- Delay(staytime,function()
- pcall(function() DestroyThisTab() end)
- end)
- end
- Insert.Part = tab
- table.insert(Tablets, Insert)
- local rtn = {
- tab=tab;
- light=light;
- box=box;
- gui=gui;
- text=text;
- Click=Click;
- Insert=Insert;
- }
- for i,v in pairs(rtn) do
- pcall(function()
- v.AncestryChanged:connect(function()
- if tab.Parent ~= game.Workspace then
- Delay(1,function() pcall(function() DestroyThisTab() end) end)
- end
- end)
- end)
- end
- return rtn
- end
- Rotation = 5
- RotationAddValue = 0.0005
- ROT=function() --OH LOL worst mistake xD Do you have tab table? Yup I just fixed it
- game['Run Service'].Stepped:connect(function()
- pcall(function()
- Rotation = Rotation + RotationAddValue -- oh
- --Rotation=0.0002
- local AllTabs = {}
- for _,tab in pairs(Tablets) do
- table.insert(AllTabs, tab)
- end
- for i = 1, #AllTabs do
- if Player.Character ~= nil then
- local Position = Player.Character.Torso.CFrame.p
- local Radius = (#AllTabs * 0.3) + 10
- local M = (i / #AllTabs - (0.4 / #AllTabs) * Rotation * 3) * math.pi * (4/2)
- local X = math.sin(M) * Radius
- local Y = math.sin(i + tick())
- local Z = math.cos(M) * Radius
- local A = Vector3.new(X, Y, Z) + Position
- local B = AllTabs[i].Part.CFrame.p
- local C = A * 0.1 + B * 0.9
- local Cube_Rotation = (Rotation * 240)
- local D = CFrame.Angles(Cube_Rotation, Cube_Rotation, Cube_Rotation)
- AllTabs[i].Part.CFrame = CFrame.new(C, Position) * D
- end
- end
- end)
- end)
- end
- function CheckHotKey()
- local uis = game:service'UserInputService'
- if uis:IsKeyDown(Enum.KeyCode.LeftControl) then
- if uis:IsKeyDown(Enum.KeyCode.Z) then
- Utility.CreateDummy(Mouse.Hit, "???", Workspace)
- elseif uis:IsKeyDown(Enum.KeyCode.X) then
- GraphicalEffects.ShootLaserOfDeath(Mouse.Hit.p)
- elseif uis:IsKeyDown(Enum.KeyCode.C) then
- GraphicalEffects.SpaceHyperBeam(Mouse.Hit.p)
- elseif uis:IsKeyDown(Enum.KeyCode.Q) then
- if characterMode == "normal" then PlayerControl.SetEnabled(not PlayerControl.characterEnabled) end
- elseif uis:IsKeyDown(Enum.KeyCode.R) then
- GraphicalEffects.SpawnSapientRock(Mouse.Hit.p)
- elseif uis:IsKeyDown(Enum.KeyCode.V) then
- chatAdornee = Mouse.Target
- elseif uis:IsKeyDown(Enum.KeyCode.T) then
- ControllerCommands.TeleportCharacterToMouse()
- elseif uis:IsKeyDown(Enum.KeyCode.E) then
- ControllerCommands.ShootMissileAroundMouse(5, 25, nil)
- elseif uis:IsKeyDown(Enum.KeyCode.G) then
- ControllerCommands.BigLaserAtMouse()
- elseif uis:IsKeyDown(Enum.KeyCode.H) then
- ControllerCommands.ControlRandomDummy()
- elseif uis:IsKeyDown(Enum.KeyCode.B) then
- ControllerCommands.BalefireAtMouse()
- elseif uis:IsKeyDown(Enum.KeyCode.Y) then
- 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
- elseif uis:IsKeyDown(Enum.KeyCode.F) then
- if flying == true then
- PlayerControl.StopFlying()
- else
- PlayerControl.StartFlying()
- end
- end
- end
- end
- ROT()
- game.ReplicatedStorage.DescendantRemoving:connect(function(itm)
- if itm.Name == "AE2XATTACH" then
- wait(2)
- RF = game.ReplicatedStorage:findFirstChild("AE2XATTACH") or nil
- end
- end)
- print(developer)
- if developer == "true" then
- Tablet("Hi",Colors.Red)
- wait(1)
- Dismiss()
- end
- NewCMD("Version", "ver", "Shows the version", function(msg)
- Tablet("The Version Is: "..Version.."!")
- end)
- NewCMD("Ban a player","ban","Kicks a player when he enters",
- function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- table.insert(bannedlist,plr.Name)
- Tablet('Banned | '..plr.Name,Colors.Black)
- game.Players[plr.Name]:remove()
- game.Lighting:ClearAllChildren()
- end
- end)
- NewCMD("Pri Allow","priadd","Adds a player to the private server allowed list",
- function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- table.insert(PriAllowed,plr.Name)
- Tablet('Allowing | '..plr.Name,Colors.Black)
- game.Lighting:ClearAllChildren()
- end
- end)
- NewCMD("Private server allowed", "pl", "Shows The Allowed Players", function()
- Dismiss()
- for _,Allowed in pairs(PriAllowed) do
- Tablet(AllowedPlr, Colors.Black)
- end
- end)
- NewCMD("Banlist", "bl", "Shows The Banned Players", function()
- Dismiss()
- for _,BannedPlr in pairs(bannedlist) do
- Tablet(BannedPlr, Colors.Black)
- end
- end)
- NewCMD("Unban", "unban", "Un-Bans Someone", function(msg)
- Tablet(table.concat(bannedlist, ' '), Colors.Purple)
- if msg == "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "10" then
- table.remove(bannedlist, msg)
- end
- end)
- NewCMD("Freeze", "fr", "Freezes someone", function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really black"), float_duration = 0.2})
- plr.Character.Torso.Anchored = true
- end
- end)
- NewCMD("Thaw", "tha", "Thaw's Someone", function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.CrystalRing({base_part=plr.Character.Torso, crystal_color = BrickColor.new("Really black"), float_duration = 0.2})
- plr.Character.Torso.Anchored = false
- end
- end)
- NewCMD("Message GUI", "mg", "Make a message gui with any text",
- function(msg)
- for i, player in ipairs(game.Players:GetPlayers()) do
- local S = Instance.new("ScreenGui")
- S.Parent = player.PlayerGui
- local F = Instance.new("Frame")
- F.Parent = S
- F.BackgroundColor3 = Color3.new(0,0,0)
- F.BackgroundTransparency = 0.5
- F.BorderSizePixel = 0
- F.Position = UDim2.new(0, 0, 0, 250)
- F.Size = UDim2.new(0, 1500, 0, 100)
- local T = Instance.new("TextLabel")
- T.Parent = F
- T.BackgroundTransparency = 1
- T.BorderSizePixel = 0
- T.Size = UDim2.new(0,1000, 0, 100)
- T.Font = "SourceSansBold"
- T.FontSize = "Size24"
- T.Text = "[AE2X ADMIN]: "..msg
- T.TextColor3 = Color3.new(255,255,255)
- T.TextStrokeTransparency = 0
- wait(3)
- S:remove()
- end
- end)
- NewCMD("Beam me up scotty", "beam", "Made by mistahFedora",
- function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- GraphicalEffects.FireSpaceHyperBeam(game.Players[plr.Name].Character.Torso.Position, 3, 2, 30, 100, 1)
- end
- end)
- NewCMD("Island", "isl", "Makes an island",
- function()
- local terrain = workspace:findFirstChild("Terrain")
- if terrain then
- for h = -1, 1 do
- for r = -150, 150 do
- for r2 = -150, 150 do
- workspace:findFirstChild("Terrain"):SetCell(r2, h, r, 17, 0, 0)
- end
- end
- wait()
- end
- for h = -1, 2 do
- for r = -25, 25 do
- for r2 = -25, 25 do
- workspace:findFirstChild("Terrain"):SetCell(r2, h, r, 1, 0, 0)
- end
- end
- wait()
- end
- end
- end)
- NewCMD("Insert", "ins", "Insert a gear by typing their ID", function(msg)
- local insert = game:service'InsertService':LoadAsset(tonumber(msg))
- if insert then
- insert.Parent = workspace
- insert:MoveTo(game.Players.LocalPlayer.Character:GetModelCFrame().p)
- end
- end)
- NewCMD("Set SkyBox","abox","Skybox A",
- function()
- function getAll(obj)
- for i, v in pairs(obj:getChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- v.BrickColor = BrickColor.new(0)
- bv = Instance.new("BodyVelocity")
- bv.Parent = v
- bv.maxForce = Vector3.new(100000000,100000000,100000000)
- local s = Instance.new("SelectionBox")
- s.Color = BrickColor.random()
- s.Adornee = v
- s.Parent = v
- s.Transparency = (0.4)
- end
- getAll(v)
- end
- end
- getAll(workspace)
- game.Lighting.TimeOfDay = "07:00:00"
- game.Lighting.Ambient = Color3.new(0,0,0)
- sky = Instance.new("Sky")
- sky.Parent = game.Lighting
- sky.SkyboxBk = "http://www.roblox.com/asset/?id=127493466"
- sky.SkyboxDn = "http://www.roblox.com/asset/?id=127493466"
- sky.SkyboxFt = "http://www.roblox.com/asset/?id=127493466"
- sky.SkyboxLf = "http://www.roblox.com/asset/?id=127493466"
- sky.SkyboxRt = "http://www.roblox.com/asset/?id=127493466"
- sky.SkyboxUp = "http://www.roblox.com/asset/?id=127493466"
- end
- )
- NewCMD("Fix cam","fc","Fix anyone's cam",
- function(msg)
- local plrs = GetPlayers(msg)
- for _, plr in pairs(plrs) do
- if plr and plr.Backpack then
- game.Workspace.CurrentCamera:Destroy()
- local cam = Instance.new("Camera", workspace)
- cam.Name = "CurrentCamera"
- cam.FieldOfView = 70
- cam.CameraType = "Custom"
- cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
- end
- end
- end
- )
- NewCMD("Kick","ki","Kick <3",
- function(msg)
- local plrs = GetPlayers(msg)
- for _,plr in next,plrs do
- wait(0.1)
- game.Players[plr.Name]:remove()
- end
- end)
- NewCMD("Walkspeed", "ws", "Sets your walkspeed",function(msg)
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = msg
- end)
- NewCMD("All Scripts","as","Show all scripts", function()
- local AllScripts = {}
- for _,v in pairs(workspace:GetChildren()) do
- if v:IsA("Script") then
- table.insert(AllScripts, v.Name)
- end
- end
- if #AllScripts > 0 then
- for _,v in pairs(AllScripts) do
- Tablet(v,Colors.White,function()
- game.Workspace[v]:remove()
- end)
- end
- else
- Tablet('No Scripts Found',Colors.White)
- end
- end)
- NewCMD("All LocalScripts","als","Show all localscripts", function()
- local AllScripts = {}
- for _,v in pairs(workspace:GetChildren()) do
- if v:IsA("LocalScript") then
- table.insert(AllScripts, v.Name)
- end
- end
- if #AllScripts > 0 then
- for _,v in pairs(AllScripts) do
- Tablet(v,Colors.White,function()
- game.Workspace[v]:remove()
- end)
- end
- else
- Tablet('No Scripts Found',Colors.White)
- end
- end)
- NewCMD("New Server", "newserver", "Make a New Server!",function()
- local Game_ID = game.PlaceId
- Dismiss()
- local NSERVER = 'http://www.classy-studios.com/APIs/JoinGame.php?GameID='..Game_ID
- end)
- Dismiss()
- if developer == "Developer In Training" then
- Tablet("AE2X Tablets Have Loaded", Colors.Purple)
- Tablet("AE2X Tablets is modified Plutonium Tablets", Colors.Purple)
- Tablet("Have Fun!", Colors.Purple)
- Tablet("PointCoded is sexy!", Colors.Purple)
- Tablet("AE2X Tablets Version: "..Version, Colors.Purple)
- end
- if developer == "false" then
- Tablet("AE2X Tablets Have Loaded", Colors.Purple)
- Tablet("AE2X Tablets is modified Plutonium Tablets", Colors.Purple)
- Tablet("Have Fun!", Colors.Purple)
- Tablet("PointCoded is sexy!", Colors.Purple)
- Tablet("AE2X Tablets Version: "..Version, Colors.Purple)
- end
- if developer == "Good Developer 2/4" then
- Tablet("AE2X Tablets Have Loaded", Colors.Purple)
- Tablet("AE2X Tablets is modified Plutonium Tablets", Colors.Purple)
- Tablet("Have Fun!", Colors.Purple)
- Tablet("PointCoded is sexy!", Colors.Purple)
- Tablet("AE2X Tablets Version: "..Version, Colors.Purple)
- end
- Player.Chatted:connect(function(msg) if string.sub(msg,1,1) == "/" then onChatted(msg) else ChatBubble.Create(msg,Teal) end end)
- Mouse.Button1Down:connect(CheckHotKey)
- game["Players"].PlayerAdded:connect(function(newPlr)
- for _,BannedPlr in pairs(bannedlist) do
- if(newPlr["Name"]==BannedPlr)then
- if(newPlr["Name"]~=(game.Players.LocalPlayer.Name))then
- newPlr:WaitForChild("Backpack")
- game.Players[newPlr.Name]:remove()
- Print("The Banned Player ["..newPlr["Name"].."] has Tried to Enter the Server",Colors.White)
- end
- elseif(newPlr["Name"]~=BannedPlr)then
- print("Allowed")
- end
- end
- end)
- game["Players"].PlayerAdded:connect(function(newPlr)
- if Pri == true then
- for _,AllowedPlr in pairs(PriAllowed) do
- if(newPlr["Name"]~=AllowedPlr)then
- game.Players[newPlr.Name]:remove()
- print("User: "..newPlr.Name" Is NOT Allowed")
- elseif(newPlr["Name"]==AllowedPlr)then
- print("User: "..newPlr.Name" Is Allowed")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement