Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game:service'Players':WaitForChild'DavidGrativol'
- local FakeMouse = script.FakeMouse:Clone();
- FakeMouse.Parent = Player.Character;
- script.FakeMouse:Destroy()
- do
- local GUID = {}
- do
- GUID.IDs = {};
- function GUID:new(len)
- local id;
- if(not len)then
- id = (tostring(function() end))
- id = id:gsub("function: ","")
- else
- local function genID(len)
- local newID = ""
- for i = 1,len do
- newID = newID..string.char(math.random(48,90))
- end
- return newID
- end
- repeat id = genID(len) until not GUID.IDs[id]
- local oid = id;
- id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
- GUID.IDs[oid]=true;
- end
- return id
- end
- end
- local AHB = Instance.new("BindableEvent")
- local FPS = 30
- local TimeFrame = 0
- local LastFrame = tick()
- local Frame = 1/FPS
- game:service'RunService'.Heartbeat:connect(function(s,p)
- TimeFrame = TimeFrame + s
- if(TimeFrame >= Frame)then
- for i = 1,math.floor(TimeFrame/Frame) do
- AHB:Fire()
- end
- LastFrame=tick()
- TimeFrame=TimeFrame-Frame*math.floor(TimeFrame/Frame)
- end
- end)
- function swait(dur)
- if(dur == 0 or typeof(dur) ~= 'number')then
- AHB.Event:wait()
- else
- for i = 1, dur*FPS do
- AHB.Event:wait()
- end
- end
- end
- local oPlayer = Player
- local Player = oPlayer
- local loudnesses={}
- script.Parent = Player.Character
- local CoAS = {Actions={}}
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInputEvent"
- Event.Parent = Player.Character
- local Func = Instance.new("RemoteFunction")
- Func.Name = "GetClientProperty"
- Func.Parent = Player.Character
- local fakeEvent = function()
- local t = {_fakeEvent=true,Waited={},Connected={}}
- t.Connect = function(self,f)
- local ft={}
- ft={Disconnected=false;disconnect=function(s) if(self.Function==ft)then self.Function=nil end s.Disconnected=true end}
- ft.Disconnect=ft.disconnect
- ft.Func=function(...)
- for id,_ in next, t.Waited do
- t.Waited[id] = true
- end
- return f(...)
- end;
- table.insert(self.Connected,ft)
- return ft;
- end
- t.connect = t.Connect
- t.Wait = function()
- local guid = GUID:new(25)
- local waitingId = guid:Get()
- t.Waited[waitingId]=false
- repeat swait() until t.Waited[waitingId]==true
- t.Waited[waitingId]=nil;
- guid:Trash()
- end
- t.wait = t.Wait
- return t
- end
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UsIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local Run = {RenderStepped=fakeEvent()}
- function CoAS:BindAction(name,fun,touch,...)
- CoAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
- end
- function CoAS:UnbindAction(name)
- CoAS.Actions[name] = nil
- end
- local function te(self,ev,...)
- local t = self[ev]
- if t and t._fakeEvent and t.Connected then
- for i,v in next, t.Connected do
- if(v.Func and not v.Disconnected)then
- v.Func(...)
- else
- t.Connected[i]=nil
- end
- end
- end
- end
- m.TrigEvent = te
- UsIS.TrigEvent = te
- Run.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- --[[table.foreach(io,print)
- print'---']]
- if io.Mouse then
- m.Target = io.Target
- m.Hit = io.Hit
- elseif io.KeyEvent then
- m:TrigEvent('Key'..io.KeyEvent,io.Key)
- elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
- if io.UserInputState == Enum.UserInputState.Begin then
- m:TrigEvent("Button1Down")
- else
- m:TrigEvent("Button1Up")
- end
- end
- if(not io.KeyEvent and not io.Mouse)then
- for n,t in pairs(CoAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- if io.UserInputState == Enum.UserInputState.Begin then
- UsIS:TrigEvent("InputBegan",io,false)
- else
- UsIS:TrigEvent("InputEnded",io,false)
- end
- end
- end)
- Func.OnServerInvoke = function(plr,inst,play)
- if plr~=Player then return end
- if(inst and typeof(inst) == 'Instance' and inst:IsA'Sound')then
- loudnesses[inst]=play
- end
- end
- function GetClientProperty(inst,prop)
- if(prop == 'PlaybackLoudness' and loudnesses[inst])then
- return loudnesses[inst]
- elseif(prop == 'PlaybackLoudness')then
- return Func:InvokeClient(Player,'RegSound',inst)
- end
- return Func:InvokeClient(Player,inst,prop)
- end
- local oldGame = game;
- function GetFakePlayer()
- local oldPlayer = Player;
- local fakePlayer = newproxy(true)
- getmetatable(fakePlayer).__index = function(s,i)
- if(i == 'GetMouse')then
- return function() return m; end
- end
- return Player[i]
- end
- getmetatable(fakePlayer).__newindex = function(s,i,v)
- Player[i]=v
- end
- getmetatable(fakePlayer).__call=function(self,...)
- if(self == fakePlayer)then self = Player end
- local wh = {...}
- local name = table.remove(wh,1)
- for i,v in next, wh do
- wh[i]=v
- end
- if(name == 'GetMouse')then
- return m;
- end
- return self(name,unpack(wh))
- end
- getmetatable(fakePlayer).__namecall=function(self,...)
- if(self == fakePlayer)then self = Player end
- local tuple={...}
- local name = table.remove(tuple,#tuple)
- if(name == 'GetMouse')then
- return m;
- else
- return self[name](self,unpack(tuple))
- end
- end
- return fakePlayer
- end
- local oll = LoadLibrary;
- function LoadLibrary(libtard)
- local libtarddestroyed=oll(libtard)
- if(libtard=='RbxUtility')then
- local library={Create=function(obj)
- local inst = Instance.new(obj)
- return function(props)
- for prop,valu in next, props do
- inst[prop]=valu
- end
- return inst
- end
- end}
- setmetatable(library,{__index=libtarddestroyed,__newindex=function(s,i,v) libtarddestroyed[i]=v end})
- return library
- else
- return libtarddestroyed
- end
- end
- fakePlayer = GetFakePlayer()
- local function GetService(s,i)
- local service = s:GetService(i)
- if(i == 'Players')then
- local oldService = service;
- local fakeService = newproxy(true)
- getmetatable(fakeService).__index = function(s,i)
- if(s == fakeService)then s=oldService end
- if(i == 'LocalPlayer' or i == 'localPlayer')then
- return fakePlayer
- elseif(i == 'oPlayer')then
- return oPlayer
- else
- return s[i]
- end
- end
- getmetatable(fakeService).__newindex = function(s,i,v)
- if(s == fakeService)then s=oldService end
- s[i]=v
- end
- getmetatable(fakeService).__call=function(self,...)
- if(self == fakeService)then self = oldService end
- local wh = {...}
- local name = table.remove(wh,1)
- for i,v in next, wh do
- wh[i]=v
- end
- return self(name,unpack(wh))
- end
- getmetatable(fakeService).__namecall=function(self,...)
- if(self == fakeService)then self = oldService end
- local tuple={...}
- local name = table.remove(tuple,#tuple)
- return self[name](self,unpack(tuple))
- end
- getmetatable(fakeService).__metatable = 'gay'
- return fakeService
- elseif(i == 'RunService')then
- local oldService = service;
- local fakeService = newproxy(true)
- getmetatable(fakeService).__index = function(s,i)
- if(s == fakeService)then s=oldService end
- return Run[i] or s[i]
- end
- getmetatable(fakeService).__newindex = function(s,i,v)
- if(s == fakeService)then s=oldService end
- s[i]=v
- end
- getmetatable(fakeService).__call=function(self,...)
- if(self == fakeService)then self = oldService end
- local wh = {...}
- local name = table.remove(wh,1)
- for i,v in next, wh do
- wh[i]=v
- end
- return self(name,unpack(wh))
- end
- getmetatable(fakeService).__namecall=function(self,...)
- if(self == fakeService)then self = oldService end
- local tuple={...}
- local name = table.remove(tuple,#tuple)
- return self[name](self,unpack(tuple))
- end
- getmetatable(fakeService).__metatable = 'gay'
- return fakeService
- elseif(i == 'UserInputService')then
- return UsIS
- elseif(i == 'ContextActionService')then
- return CoAS;
- else
- return service
- end
- end
- local new = Instance.new;
- Instance = {}
- Instance.new = function(inst,obje)
- local lp = GetService(oldGame,'Players').localPlayer
- local instance = new(inst)
- if(inst=='ObjectValue')then
- local fake = newproxy(true)
- getmetatable(fake).__index=function(self,index)
- if(self==fake)then self=instance end
- return self[index]
- end
- getmetatable(fake).__newindex=function(self,index,value)
- if(self==fake)then self=instance end
- if(index=='Value' and typeof(value)~='Instance' and value==fakePlayer)then
- self[index]=oPlayer
- else
- self[index]=value
- end
- end
- getmetatable(fake).__call=function(self,...)
- if(self == fake)then self = instance end
- local wh = {...}
- local name = table.remove(wh,1)
- for i,v in next, wh do
- if(v == fake)then v = instance end
- wh[i]=v
- end
- return self(name,unpack(wh))
- end
- getmetatable(fake). __namecall=function(self,...)
- if(self == fake)then self = instance end
- local tuple={...}
- local name = table.remove(tuple,#tuple)
- return self[name](self,unpack(tuple))
- end
- return fake
- else
- instance.Parent = obje
- return instance;
- end
- end
- local serviceFunctions={
- service=true,
- GetService=true,
- }
- local fakeGame = newproxy(true)
- getmetatable(fakeGame).__index = function(s,i)
- if(s == fakeGame)then s=oldGame end
- local serv = GetService(oldGame,i)
- if serviceFunctions[i] then
- return GetService
- elseif(serv)then
- return serv
- else
- return s[i]
- end
- end
- getmetatable(fakeGame).__newindex = function(s,i,v)
- if(s == fakeGame)then s=oldGame end
- s[i]=v
- end
- getmetatable(fakeGame).__call=function(self,...)
- if(self == fakeGame)then self = oldGame end
- local wh = {...}
- local name = table.remove(wh,1)
- for i,v in next, wh do
- if(v == fakeGame)then v = oldGame end
- wh[i]=v
- end
- if serviceFunctions[name] then
- return GetService(self,unpack(wh))
- else
- return self(name,unpack(wh))
- end
- end
- getmetatable(fakeGame). __namecall=function(self,...)
- if(self == fakeGame)then self = oldGame end
- local tuple={...}
- local name = table.remove(tuple,#tuple)
- local funcToCall=self[name]
- if serviceFunctions[name] then
- return GetService(self,unpack(tuple))
- else
- return self[name](self,unpack(tuple))
- end
- end
- getmetatable(fakeGame).__metatable = 'gay'
- coroutine.wrap(function()
- while true do
- Run:TrigEvent('RenderStepped')
- swait()
- end
- end)()
- game=fakeGame
- UserInputService,ContextActionService = UsIS,CoAS
- end
- wait(0.5)
- EDIT_LOGS_AND_SHIT=[[
- DERPZ GLITCH-SWITCH DEMO
- Base by Lunnekoo, Made by DerpzDeNugget_YT
- FD to FE Converter by Nebula_Zorua OR Drahazar (Thank you so much..)
- This is the Demo Version. This can be spread around freely, Whatever.
- I don't mind. Just enjoy the script, Alright?
- - Derpz
- NOTE: LOL YOU THOT THAT YOU WANTED ME TO LEAK THIS FOR MY MOVES HELL NO
- NOTE: LOL YOU ARE NOT GETING MY BOSSCHAT OR MY COOL MOVE AND MY COOL NEBBAND
- NOTE: AND DONT TRY TO LOG ME YOU FUCKING SKIDS
- - DavidGrativol
- ]]
- warn(EDIT_LOGS_AND_SHIT)
- ------------- ORIGINAL WIELDER: DerpzDeNugget_YT
- ---- Sources and functions might be taken from others
- plr = game:GetService("Players").LocalPlayer
- Player = game:GetService("Players").LocalPlayer
- print(plr,plr:GetMouse())
- char = plr.Character
- hum = char.Humanoid
- mouse = plr:GetMouse()
- local cam = game.Workspace.CurrentCamera
- Camera = cam
- local CamInterrupt = false
- local TwoD = false
- local TargetInfo = {nil, nil}
- cam.CameraType = "Custom"
- t = char.Torso
- h = char.Head
- ra = char["Right Arm"]
- la = char["Left Arm"]
- rl = char["Right Leg"]
- ll = char["Left Leg"]
- tors = char.Torso
- lleg = char["Left Leg"]
- root = char.HumanoidRootPart
- hed = char.Head
- rleg = char["Right Leg"]
- rarm = char["Right Arm"]
- larm = char["Left Arm"]
- radian = math.rad
- random = math.random
- Vec3 = Vector3.new
- Inst = Instance.new
- cFrame = CFrame.new
- Euler = CFrame.fromEulerAnglesXYZ
- vt = Vector3.new
- bc = BrickColor.new
- br = BrickColor.random
- it = Instance.new
- cf = CFrame.new
- ModeOfGlitch = "DavidGrativol?"
- Global = false
- --Face changing functions
- function Neutral() --okthen
- Face.Texture = "rbxassetid://2755423294"
- end
- function Upset() --cri
- Face.Texture = "rbxassetid://2755479427"
- end
- function Happy() --HHHHHHHHHHHHHHHHHHHHHHHH
- Face.Texture = "rbxassetid://2755423620"
- end
- function Determined() --It'S NOt oVEr uNtIl iT'S OveR
- Face.Texture = "rbxassetid://2755480100"
- end
- function CHAOS()
- Face.Texture = "rbxassetid://2755481010"
- end
- function Sleeping() --Yes, I did make a sleeping face.
- Face.Texture = "rbxassetid://3009289215"
- end
- --Face changing functions
- --Shaking
- function shakes(power,length)
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- local var = script.Shaker:Clone()
- var.Parent = v.Character
- local pw = var.Shakeval
- local lgth = var.MultLength
- pw.Value = power
- lgth.Value = length
- var.Disabled = false
- end
- end
- function CameraEnshaking(power,length)
- for i,v in pairs(game:GetService("Players"):GetChildren()) do
- local var = script.Shaker:Clone()
- var.Parent = v.Character
- local pw = var.Shakeval
- local lgth = var.MultLength
- pw.Value = power
- lgth.Value = length
- var.Disabled = false
- end
- end
- function localshakes(power,length)
- local var = script.Shaker:Clone()
- var.Parent = plr.Character
- local pw = var.Shakeval
- local lgth = var.MultLength
- pw.Value = power
- lgth.Value = length
- var.Disabled = false
- end
- --Shaking
- local Booleans = {
- CamFollow = true,
- GyroUse = true
- }
- function lerp(object, newCFrame, alpha)
- return object:lerp(newCFrame, alpha)
- end
- local Directer = Inst("BodyGyro", root)
- Directer.MaxTorque = Vec3(0, 0, 0)
- Directer.P = 600000
- local CPart = Inst("Part")
- CPart.Anchored = true
- CPart.CanCollide = false
- CPart.Locked = true
- CPart.Transparency = 1
- local rainbowmode = false
- local chaosmode = false
- local ORGID = 511836626
- local ORVOL = 1.15
- local ORPIT = 1.1
- local kan = Instance.new("Sound",char)
- kan.Volume = 1.15
- kan.TimePosition = 0
- kan.PlaybackSpeed = 1.01
- kan.Pitch = 1.01
- kan.SoundId = "rbxassetid://2988953773"
- kan.Name = "music"
- kan.Looped = true
- kan:Play()
- local currentThemePlaying = kan.SoundId
- local currentPitch = kan.Pitch
- local currentVol = kan.Volume
- function newTheme(ID,timepos,pitch,vol)
- local kanz = kan
- --kanz:Stop()
- kanz.Volume = vol
- --kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = " "
- kanz.Looped = true
- currentThemePlaying = kanz.SoundId
- currentVol = kanz.Volume
- currentPitch = kanz.Pitch
- --kanz:Play()
- --coroutine.resume(coroutine.create(function()
- --wait(0.05)
- --end))
- end
- function newThemeCust(ID,timepos,pitch,vol)
- local kanz = kan
- kanz:Stop()
- kanz.Volume = vol
- kanz.TimePosition = timepos
- kanz.PlaybackSpeed = pitch
- kanz.Pitch = pitch
- kanz.SoundId = ID
- kanz.Name = "wrecked"
- kanz.Looped = true
- currentThemePlaying = kanz.SoundId
- currentVol = kanz.Volume
- currentPitch = kanz.Pitch
- kanz:Play()
- coroutine.resume(coroutine.create(function()
- wait(0.05)
- end))
- end
- local mutedtog = false
- local toggleTag = true
- local bilguit = Instance.new("BillboardGui", hed)
- bilguit.Adornee = nil
- bilguit.Name = "ModeName"
- bilguit.Size = UDim2.new(4, 0, 1.2, 0)
- bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
- local modet = Instance.new("TextLabel", bilguit)
- modet.Size = UDim2.new(10/2, 0, 7/2, 0)
- modet.FontSize = "Size8"
- modet.TextScaled = true
- modet.TextTransparency = 0
- modet.BackgroundTransparency = 1
- modet.TextTransparency = 0
- modet.TextStrokeTransparency = 0
- modet.Font = "Arcade"
- modet.TextStrokeColor3 = bc("Navy blue").Color
- modet.TextColor3 = bc("Maroon").Color
- modet.Text = " "
- function chatfunc(text,color,typet,font,timeex)
- local chat = coroutine.wrap(function()
- if Character:FindFirstChild("TalkingBillBoard")~= nil then
- Character:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",Character)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = font
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = color
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- local tecks3 = Instance.new("TextLabel",naeeym2)
- tecks3.BackgroundTransparency = 1
- tecks3.BorderSizePixel = 0
- tecks3.Text = ""
- tecks3.Font = font
- tecks3.TextSize = 30
- tecks3.TextStrokeTransparency = 0
- if typet == "Inverted" then
- tecks3.TextColor3 = Color3.new(0,0,0)
- tecks3.TextStrokeColor3 = color
- elseif typet == "Normal" then
- tecks3.TextColor3 = color
- tecks3.TextStrokeColor3 = Color3.new(0,0,0)
- end
- tecks3.Size = UDim2.new(1,0,0.5,0)
- coroutine.resume(coroutine.create(function()
- while true do
- swait(1)
- if chaosmode == true then
- tecks2.TextColor3 = BrickColor.random().Color
- tecks3.TextStrokeColor3 = BrickColor.random().Color
- end
- end
- end))
- for i = 0, 74*timeex do
- swait()
- tecks2.Text = text
- tecks3.Text = text
- end
- local randomrot = math.random(1,2)
- if randomrot == 1 then
- for i = 1, 50 do
- swait()
- tecks2.Text = text
- tecks3.Text = text
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- end
- elseif randomrot == 2 then
- for i = 1, 50 do
- swait()
- tecks2.Text = text
- tecks3.Text = text
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks2.TextTransparency = tecks2.TextTransparency + .04
- tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
- tecks3.TextTransparency = tecks2.TextTransparency + .04
- end
- end
- if toggleTag == false then
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- local Create = LoadLibrary("RbxUtility").Create
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["Sound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Name = "EffectSoundo",
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 10)
- end))
- end;
- };
- ["TimeSound"] = {
- Create = function(id, par, vol, pit, timepos)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Name = "EffectSoundo",
- Pitch = pit or 1,
- SoundId = id,
- TimePosition = timepos,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 10)
- end))
- end;
- };
- ["EchoSound"] = {
- Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl)
- coroutine.resume(coroutine.create(function()
- local Sas = Create("Sound"){
- Volume = vol,
- Name = "EffectSoundo",
- Pitch = pit or 1,
- SoundId = id,
- TimePosition = timepos,
- Parent = par or workspace,
- }
- local E = Create("EchoSoundEffect"){
- Delay = echodelay,
- Name = "Echo",
- Feedback = fedb,
- DryLevel = dryl,
- Parent = Sas,
- }
- wait()
- Sas:play()
- game:GetService("Debris"):AddItem(Sas, delays)
- end))
- end;
- };
- ["LongSound"] = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound"){
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace,
- }
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 60)
- end))
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local halocolor = BrickColor.new("Pastel light blue")
- local halocolor2 = BrickColor.new("Cool yellow")
- local starcolor = BrickColor.new("Bright yellow")
- local lunacolor = BrickColor.new("Navy blue")
- local lunacolor2 = BrickColor.new("Bright blue")
- local wepcolor = BrickColor.new("Really black")
- local maincolor = BrickColor.new("Really black")
- local m = Instance.new("Model",char)
- local m2 = Instance.new("Model",char)
- local m3 = Instance.new("Model",char)
- local mw1 = Instance.new("Model",char)
- local mw2 = Instance.new("Model",char)
- gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
- local gui = it(GuiType)
- gui.Parent = parent
- gui.Text = text
- gui.BackgroundTransparency = backtrans
- gui.BackgroundColor3 = backcol
- gui.SizeConstraint = "RelativeXY"
- gui.TextXAlignment = "Center"
- gui.TextYAlignment = "Center"
- gui.Position = pos
- gui.Size = size
- gui.Font = "SourceSans"
- gui.FontSize = "Size14"
- gui.TextWrapped = false
- gui.TextStrokeTransparency = 0
- gui.TextColor = BrickColor.new("White")
- return gui
- end
- --------------------------- GUI STUFF
- local basgui = it("GuiMain")
- basgui.Parent = plr.PlayerGui
- basgui.Name = "VISgui"
- local fullscreenz = it("Frame")
- fullscreenz.Parent = basgui
- fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255)
- fullscreenz.BackgroundTransparency = 1
- fullscreenz.BorderColor3 = Color3.new(17, 17, 17)
- fullscreenz.Size = UDim2.new(1, 0, 1, 0)
- fullscreenz.Position = UDim2.new(0, 0, 0, 0)
- local fullscreenz2 = it("Frame")
- fullscreenz2.Parent = fullscreenz
- fullscreenz2.BackgroundTransparency = 1
- fullscreenz2.AnchorPoint=Vector2.new(.5,.5)
- fullscreenz2.Size = UDim2.new(1, 0, 1, 0)
- fullscreenz2.Position = UDim2.new(.5, 0, .5, 0)
- fullscreenz2.ClipsDescendants=true
- local imgl2 = Instance.new("ImageLabel",fullscreenz)
- imgl2.BackgroundTransparency = 1
- imgl2.BorderSizePixel = 0
- imgl2.ImageTransparency = 0.5
- imgl2.ImageColor3 = Color3.new(0,0,0.5)
- imgl2.Position = UDim2.new(0.75,-200,0.55,-200)
- imgl2.Size = UDim2.new(0,1000,0,1000)
- imgl2.Image = "rbxassetid://2325939897"
- local techc = imgl2:Clone()
- techc.Parent = fullscreenz
- techc.ImageTransparency = 0
- techc.Size = UDim2.new(0,900,0,900)
- techc.Position = UDim2.new(0.75,-150,0.55,-150)
- techc.ImageColor3 = Color3.new(0,0,0.5)
- techc.Image = "rbxassetid://2273224484"
- local circl = imgl2:Clone()
- circl.Parent = fullscreenz
- circl.ImageTransparency = 0
- circl.Size = UDim2.new(0,550,0,550)
- circl.Position = UDim2.new(0.75,25,0.55,25)
- circl.ImageColor3 = Color3.new(0,0,0)
- circl.Image = "rbxassetid://711463989"
- local ned = Instance.new("TextLabel",fullscreenz)
- ned.ZIndex = 2
- ned.Font = "Arcade"
- ned.BackgroundTransparency = 1
- ned.BorderSizePixel = 0.65
- ned.Size = UDim2.new(0.3,0,0.2,0)
- ned.Position = UDim2.new(0.7,0,0.8,0)
- ned.TextColor3 = BrickColor.new("Really black").Color
- ned.TextStrokeColor3 = BrickColor.new("Really blue").Color
- ned.TextScaled = true
- ned.TextStrokeTransparency = 0
- ned.Text = "SWITCH"
- ned.TextSize = 24
- ned.Rotation = 1
- ned.TextXAlignment = "Right"
- ned.TextYAlignment = "Bottom"
- local vis1 = it("Frame")
- vis1.Parent = fullscreenz2
- vis1.BackgroundColor3 = Color3.new(255, 255, 255)
- vis1.BackgroundTransparency = .5
- vis1.BorderColor3 = Color3.new(17, 17, 17)
- vis1.AnchorPoint=Vector2.new(.5,1)
- vis1.Size = UDim2.new(.1, 0, 1, 0)
- vis1.Position = UDim2.new(.93, 0, 1, 0)
- vis1.BorderSizePixel=0
- vis1.ZIndex=2
- local vis2=vis1:Clone()
- vis2.Parent = fullscreenz2
- vis2.Size = UDim2.new(.07, 0, 1, 0)
- vis2.Position = UDim2.new(.81, 0, 1, 0)
- local vis3=vis1:Clone()
- vis3.Parent = fullscreenz2
- vis3.Size = UDim2.new(.045, 0, 1, 0)
- vis3.Position = UDim2.new(.74, 0, 1, 0)
- local vis4=vis1:Clone()
- vis4.Parent = fullscreenz2
- vis4.Size = UDim2.new(.03, 0, 1, 0)
- vis4.Position = UDim2.new(.69, 0, 1, 0)
- local extrawingmod1 = Instance.new("Model",char)
- local extrawingmod2 = Instance.new("Model",char)
- function CreateParta(parent,transparency,reflectance,material,brickcolor)
- local p = Instance.new("Part")
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = parent
- p.Size = Vector3.new(0.1,0.1,0.1)
- p.Transparency = transparency
- p.Reflectance = reflectance
- p.CanCollide = false
- p.Locked = true
- p.BrickColor = brickcolor
- p.Material = material
- return p
- end
- function CreateMesh(parent,meshtype,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = meshtype
- mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
- return mesh
- end
- function CreateSpecialMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.Scale = Vector3.new(x1,y1,z1)
- return mesh
- end
- function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
- local mesh = Instance.new("SpecialMesh",parent)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = meshid
- mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
- mesh.Scale = Vector3.new(x1,y1,z1)
- mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
- return mesh
- end
- function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
- local weld = Instance.new("Weld")
- weld.Parent = parent
- weld.Part0 = part0
- weld.Part1 = part1
- weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
- weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
- return weld
- end
- local cen = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
- CreateWeld(cen,root,cen,0,3,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local effar = Instance.new("ParticleEmitter",cen)
- effar.Texture = "rbxassetid://2344870656"
- effar.LightEmission = 1
- effar.Color = ColorSequence.new(Color3.new(1,0,0))
- effar.Rate = 50
- effar.Enabled = false
- effar.EmissionDirection = "Front"
- effar.Lifetime = NumberRange.new(1)
- effar.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,15,0),NumberSequenceKeypoint.new(1,40,0)})
- effar.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
- effar.Speed = NumberRange.new(80,90)
- effar.Acceleration = Vector3.new(0,10,0)
- effar.Drag = 5
- effar.Rotation = NumberRange.new(-500,500)
- effar.SpreadAngle = Vector2.new(0,900)
- effar.RotSpeed = NumberRange.new(-500,500)
- --------------
- --------------
- local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
- CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
- CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
- CreateMesh(handlex,"Brick",0,0,0)
- CreateWeld(handlex,Part451,handlex,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- local handlexweld = CreateWeld(handlex,rarm,handlex,0,0.5,-1.05,math.rad(-30),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
- ------
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material
- })
- Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- local sine = 0
- local change = 1
- function warnedpeople(text,represfont,color,color2)
- if disably ~= true then
- CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
- CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.resume(coroutine.create(function()
- if v.PlayerGui:FindFirstChild("Spinny")~= nil then
- v.PlayerGui:FindFirstChild("Spinny"):destroy()
- end
- local scrg = Instance.new("ScreenGui",v.PlayerGui)
- scrg.Name = "Spinny"
- local frm = Instance.new("Frame",scrg)
- frm.BackgroundTransparency = 0.25
- frm.BackgroundColor3 = color
- frm.BorderSizePixel = 0
- frm.Rotation = 45
- frm.Size = UDim2.new(3,0,0,100)
- frm.Position = UDim2.new(-4,0,0,0)
- local frm2 = frm:Clone()
- frm2.Parent = scrg
- frm2.BackgroundColor3 = color2
- frm2.Position = UDim2.new(-4.05,0,0,0)
- local imlb = Instance.new("ImageLabel",scrg)
- imlb.BackgroundTransparency = 1
- imlb.BackgroundColor3 = Color3.new(0,0,0)
- imlb.Image = "rbxassetid://2344851144"
- imlb.Size = UDim2.new(0,750,0,750)
- imlb.ImageColor3 = color2
- imlb.ImageTransparency = 0.25
- imlb.Position = UDim2.new(-2.5,0,-2.5,0)
- local imlb2 = imlb:Clone()
- imlb2.Image = "rbxassetid://2325939897"
- imlb2.Size = UDim2.new(1,0,1,0)
- imlb2.ImageColor3 = color
- imlb2.ImageTransparency = 0
- imlb2.Position = UDim2.new(0,0,0,0)
- local imlb3 = imlb:Clone()
- imlb3.Image = "rbxassetid://2344830904"
- imlb3.Size = UDim2.new(1,0,1,0)
- imlb3.ImageColor3 = color2
- imlb3.ImageTransparency = 0
- imlb3.Position = UDim2.new(0,0,0,0)
- local imlb4 = imlb:Clone()
- imlb4.Image = "rbxassetid://2344870656"
- imlb4.Size = UDim2.new(3,0,3,0)
- imlb4.ImageColor3 = Color3.new(1,1,1)
- imlb4.ImageTransparency = 0
- imlb4.Position = UDim2.new(-1,0,-1,0)
- local imlb5 = imlb:Clone()
- imlb5.Image = "rbxassetid://2344870656"
- imlb5.Size = UDim2.new(10,0,10,0)
- imlb5.ImageColor3 = color2
- imlb5.ImageTransparency = 0
- imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
- imlb2.Parent = imlb
- imlb3.Parent = imlb
- imlb4.Parent = imlb
- imlb5.Parent = imlb
- local txtlb2 = Instance.new("TextLabel",imlb)
- txtlb2.Text = text
- txtlb2.Font = represfont
- txtlb2.TextColor3 = color
- txtlb2.TextStrokeTransparency = 0
- txtlb2.BackgroundTransparency = 1
- txtlb2.TextStrokeColor3 = color2
- txtlb2.TextScaled = true
- txtlb2.Size = UDim2.new(1,0,1,0)
- txtlb2.Position = UDim2.new(0,0,0,0)
- local fvalen = 0.55
- local fval = -0.49
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if chaosmode == true then
- txtlb2.Rotation = math.random(-1,1)
- imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- imlb.ImageColor3 = BrickColor.random().Color
- txtlb2.TextStrokeColor3 = BrickColor.random().Color
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if scrg.Parent ~= nil then
- fvalen = fvalen - 0.0001
- elseif scrg.Parent == nil then
- break
- end
- end
- end))
- local flol = -5
- local flil = 1.6
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait()
- flol = flol + 0.125
- flil = flil - 0.1
- frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
- frm.Rotation = frm.Rotation - 0.25
- frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
- frm2.Rotation = frm.Rotation + 0.325
- imlb3.Rotation = imlb3.Rotation - 10
- imlb2.Rotation = imlb.Rotation + 7.5
- imlb.Rotation = imlb.Rotation + 5
- txtlb2.Rotation = txtlb2.Rotation - 5.125
- imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
- end
- for i = 0, 99 do
- swait()
- fval = fval + 0.05
- flol = flol + 0.005
- frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
- frm.Rotation = frm.Rotation - 0.075
- frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.125
- imlb3.Rotation = imlb3.Rotation - 2
- imlb2.Rotation = imlb.Rotation + 1.5
- imlb.Rotation = imlb.Rotation + 1
- txtlb2.Rotation = txtlb2.Rotation - 1.125
- imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
- end
- local valinc = 0
- local vinc2 = 1
- for i = 0, 99 do
- swait()
- vinc2 = vinc2 + 0.25
- valinc = valinc + 0.0001
- flol = flol + valinc
- flil = flil + valinc
- txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
- imlb3.Rotation = imlb3.Rotation - 2*vinc2
- imlb.Rotation = imlb.Rotation + 1*vinc2
- imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
- frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm.Rotation = frm.Rotation + 0.1*vinc2
- frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.225*vinc2
- frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
- frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
- imlb.ImageTransparency = imlb.ImageTransparency + 0.005
- imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
- imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
- imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
- imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
- txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
- txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
- end
- scrg:Destroy()
- end))
- end))
- end
- end
- end
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- local Stats=Instance.new("BoolValue")
- Stats.Name="Stats"
- Stats.Parent=Character
- local Atk=Instance.new("NumberValue")
- Atk.Name="Damage"
- Atk.Parent=Stats
- Atk.Value=1
- local Def=Instance.new("NumberValue")
- Def.Name="Defense"
- Def.Parent=Stats
- Def.Value=1
- local Speed=Instance.new("NumberValue")
- Speed.Name="Speed"
- Speed.Parent=Stats
- Speed.Value=1
- local Mvmt=Instance.new("NumberValue")
- Mvmt.Name="Movement"
- Mvmt.Parent=Stats
- Mvmt.Value=1
- local donum=0
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- fp.Position=Torso.Position
- NoOutline(fp)
- fp.Material="SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- if meshid~="nil" then
- mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- local Color1=Torso.BrickColor
- local bodvel=Instance.new("BodyVelocity")
- local bg=Instance.new("BodyGyro")
- --------- SazEreno's Artificial HB --------------
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- Frame_Speed = 1 / 60
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- ------------------
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- -------- RAINBOW LEAVE IT TO ME
- local r = 255
- local g = 0
- local b = 0
- coroutine.resume(coroutine.create(function()
- while wait() do
- for i = 0, 254/5 do
- swait()
- g = g + 5
- end
- for i = 0, 254/5 do
- swait()
- r = r - 5
- end
- for i = 0, 254/5 do
- swait()
- b = b + 5
- end
- for i = 0, 254/5 do
- swait()
- g = g - 5
- end
- for i = 0, 254/5 do
- swait()
- r = r + 5
- end
- for i = 0, 254/5 do
- swait()
- b = b - 5
- end
- end
- end))
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- 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
- 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
- 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
- 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
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new("Really red")
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- local l1 = Instance.new("PointLight",w1)
- l1.Color = Color3.new(170,0,0)
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new("Really red")
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- local l2 = Instance.new("PointLight",w2)
- l2.Color = Color3.new(170,0,0)
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function bleed(chr,timeforbleed)
- local Rate = (1/30)
- local clr = BrickColor.new"Really red"
- local Frames = timeforbleed / Rate
- wait(.25)
- for Frame = 1, Frames do
- coroutine.wrap(function()
- local p = Instance.new("Part",workspace)
- p.BrickColor = clr
- p.Size = Vector3.new(.25,.25,.25)
- p.Material = Enum.Material.Neon
- local prt
- if chr:IsA"Model" then
- prt = chr:FindFirstChild"Torso" or chr:FindFirstChild"UpperTorso"
- else
- prt = chr;
- end
- p.CFrame = prt.CFrame;
- p.Name = "Blood"
- p.CanCollide = false
- p.Velocity = prt.CFrame.lookVector * -math.random(25,30) + Vector3.new(math.random(-10,10),0,0)
- p.Touched:connect(function(tou)
- if tou.Name ~= "Blood" and tou.Parent and tou.Parent ~= chr and (not tou.Parent.Parent or tou.Parent.Parent ~= chr.Parent) and tou.Parent:FindFirstChildOfClass('Humanoid') == nil and tou.Parent:IsA"Tool" == false and tou.Name ~= "Handle" then
- local pos = Vector3.new(p.Position.X,(tou.Position.Y+(tou.Size.Y/2))+0.02,p.Position.Z)
- p:destroy()
- if tou.Name == "BloodPuddle" then
- local reee = tou.CFrame
- if tou.Transparency > .2 then
- tou.Transparency = tou.Transparency - .1
- end
- if tou.Size.X < 15 then
- tou.Size = tou.Size+Vector3.new(0.1,0,0.1)
- tou.CFrame = reee
- end
- else
- local bloodlol = Instance.new('Part',workspace)
- bloodlol.Size=Vector3.new(1,0.2,1)
- bloodlol.Name = "BloodPuddle"
- bloodlol.Anchored = true
- bloodlol.CanCollide = false
- bloodlol.Material = Enum.Material.Neon
- bloodlol.BrickColor = clr
- local cyl = Instance.new('CylinderMesh',bloodlol)
- cyl.Scale = Vector3.new(1,0.1,1)
- bloodlol.CFrame = CFrame.new(pos)
- end
- end
- end)
- end)()
- wait((1/30))
- end
- end
- function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
- return
- end
- local c = Create("ObjectValue")({
- Name = "creator",
- Value = game:GetService("Players").LocalPlayer,
- Parent = h
- })
- game:GetService("Debris"):AddItem(c, 0.5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil and block.className == "IntValue" and block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- if blocked == false then
- HitHealth = h.Health
- h.MaxHealth = 100
- h.Health = h.Health - Damage
- if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
- print("gained kill")
- bosschatfunc("GAINED A KILL!",ModeColor.Color,7)
- dmg(h.Parent)
- end
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- else
- h.Health = h.Health - Damage / 2
- ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
- local bodvol = Create("BodyVelocity")({
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- local rl = Create("BodyAngularVelocity")({
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodvol, 0.5)
- game:GetService("Debris"):AddItem(rl, 0.5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity")({
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
- })
- if knockback > 0 then
- vp.Parent = hit.Parent.Head
- end
- game:GetService("Debris"):AddItem(vp, 0.5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Leech" then
- local hum = hit.Parent.Humanoid
- if hum ~= nil then
- for i = 0, 2 do
- Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
- end
- Humanoid.Health = Humanoid.Health + 10
- end
- elseif Type == "UpKnock" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- if hum ~= nil then
- hitr = true
- end
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(5)
- HHumanoid.PlatformStand = false
- hitr = false
- end), hum)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
- local bodyVelocity = Create("BodyVelocity")({
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = hit
- })
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition")({
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Slashnare" then
- Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
- for i = 1, math.random(4, 5) do
- Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
- end
- local bp = Create("BodyPosition")({
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Spike" then
- local bp = Create("BodyPosition")({
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition")({
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso
- })
- local BodGy = Create("BodyGyro")({
- maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
- P = 20000,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame
- })
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue")({
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true
- })
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Instance.new("ObjectValue")
- c.Name = "creator"
- c.Value = Player
- c.Parent = h
- game:GetService("Debris"):AddItem(c, 0.5)
- end
- end
- function ragdoll(who)
- pcall(function()
- local ded = who
- local h1 = ded:FindFirstChild("Head")
- local t1 = ded:FindFirstChild("Torso") or ded:FindFirstChild("UpperTorso")
- if t1.Name == "UpperTorso" then
- r15r(ded)
- return ragdoll
- end
- local ff = ded:FindFirstChildOfClass("ForceField")
- if ff ~= nil then
- ff:Destroy()
- end
- local ra1 = ded:FindFirstChild("Right Arm")
- local la1 = ded:FindFirstChild("Left Arm")
- local rl1 = ded:FindFirstChild("Right Leg")
- local ll1 = ded:FindFirstChild("Left Leg")
- local hum1 = ded:FindFirstChildOfClass("Humanoid")
- local acc = ded:FindFirstChild("xdded")
- if acc == nil then
- local ac = Instance.new("Glue",ded) ac.Name = "xdded"
- local rut1 = ded:FindFirstChild("HumanoidRootPart")
- hum1.PlatformStand = true
- if rut1 ~= nil then
- rut1.Parent = nil
- end
- pcall(function()
- for i,v in pairs(who:GetChildren()) do
- if v:IsA("Accessory") or v:IsA("Hat") then
- local gl = Instance.new("WeldConstraint",v.Handle)
- gl.Part0 = h1 gl.Part1 = v.Handle
- end
- end
- for i,v in pairs(who:GetChildren()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- if v.Name == "Health" then
- v.Parent = nil
- end
- end
- end
- for i,v in pairs(who:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v.Handle.Anchored = false
- end
- end
- end)
- hum1.MaxHealth = 100
- hum1.Health = math.random(10,50)
- local rad = math.rad
- t1:BreakJoints()
- ra1:BreakJoints()
- la1:BreakJoints()
- rl1:BreakJoints()
- ll1:BreakJoints()
- --//Joints~//--
- --Neck--
- if h1 ~= nil then
- local neca = Instance.new("Glue",t1) neca.Part0 = t1 neca.Part1 = h1 neca.C0 = CFrame.new(0,t1.Size.y/2,0) neca.C1 = CFrame.new(0,-h1.Size.y/2,0) neca.Name = "yo"
- local ch = Instance.new("Part",t1) ch.Name = "yo" ch.Size = Vector3.new(h1.Size.x/2,h1.Size.y/2,h1.Size.z/2 + h1.Size.z/4) ch.TopSurface = "Smooth" ch.BottomSurface = "Smooth" ch.Transparency = 1
- local wh = Instance.new("Weld",ch) wh.Part0 = h1 wh.Part1 = ch
- end
- --Right Arm--
- if ra1 ~= nil then
- local rsa = Instance.new("Glue",t1) rsa.Part0 = t1 rsa.Part1 = ra1 rsa.C0 = CFrame.new(t1.Size.x/2 + t1.Size.x/4,t1.Size.y/4,0) rsa.C1 = CFrame.new(0,ra1.Size.y/4,0) rsa.Name = "yo"
- local cra = Instance.new("Part",t1) cra.Name = "yo" cra.Size = Vector3.new(ra1.Size.y/2 + ra1.Size.y/4,ra1.Size.y/2,ra1.Size.z) cra.TopSurface = "Smooth" cra.BottomSurface = "Smooth" cra.Transparency = 1
- local wra = Instance.new("Weld",cra) wra.Part0 = ra1 wra.Part1 = cra wra.C0 = CFrame.new(0,-ra1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Left Arm--
- if la1 ~= nil then
- local lsa = Instance.new("Glue",t1) lsa.Part0 = t1 lsa.Part1 = la1 lsa.C0 = CFrame.new(-t1.Size.x/2 - t1.Size.x/4,t1.Size.y/4,0) lsa.C1 = CFrame.new(0,la1.Size.y/4,0) lsa.Name = "yo"
- local cla = Instance.new("Part",t1) cla.Name = "yo" cla.Size = Vector3.new(la1.Size.y/2 + la1.Size.y/4,la1.Size.y/2,la1.Size.z) cla.TopSurface = "Smooth" cla.BottomSurface = "Smooth" cla.Transparency = 1
- local wla = Instance.new("Weld",cla) wla.Part0 = la1 wla.Part1 = cla wla.C0 = CFrame.new(0,-la1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Right Leg--
- if rl1 ~= nil then
- local rha = Instance.new("Glue",t1) rha.Part0 = t1 rha.Part1 = rl1 rha.C0 = CFrame.new(t1.Size.x/4,-t1.Size.y/2,0) rha.C1 = CFrame.new(0,rl1.Size.y/2,0) rha.Name = "yo"
- local crl = Instance.new("Part",t1) crl.Name = "yo" crl.Size = Vector3.new(rl1.Size.y/2 + rl1.Size.y/4,rl1.Size.y/2,rl1.Size.z) crl.TopSurface = "Smooth" crl.BottomSurface = "Smooth" crl.Transparency = 1
- local wrl = Instance.new("Weld",crl) wrl.Part0 = rl1 wrl.Part1 = crl wrl.C0 = CFrame.new(0,-rl1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Left Leg--
- if ll1 ~= nil then
- local lha = Instance.new("Glue",t1) lha.Part0 = t1 lha.Part1 = ll1 lha.C0 = CFrame.new(-t1.Size.x/4,-t1.Size.y/2,0) lha.C1 = CFrame.new(0,ll1.Size.y/2,0) lha.Name = "yo"
- local cll = Instance.new("Part",t1) cll.Name = "yo" cll.Size = Vector3.new(ll1.Size.y/2 + ll1.Size.y/4,ll1.Size.y/2,ll1.Size.z) cll.TopSurface = "Smooth" cll.BottomSurface = "Smooth" cll.Transparency = 1
- local wll = Instance.new("Weld",cll) wll.Part0 = ll1 wll.Part1 = cll wll.C0 = CFrame.new(0,-ll1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --//End of Joints~//--
- end
- end)
- end
- function r15r(who)
- local ded = who
- local ac = ded:FindFirstChild("xdded")
- if ac == nil then
- Instance.new("Glue",ded).Name = "xdded"
- local h2 = ded:FindFirstChild("Head")
- local t2 = ded:FindFirstChild("UpperTorso")
- local lt2 = ded:FindFirstChild("LowerTorso")
- local rua2 = ded:FindFirstChild("RightUpperArm")
- local lua2 = ded:FindFirstChild("LeftUpperArm")
- local rla2 = ded:FindFirstChild("RightLowerArm")
- local lla2 = ded:FindFirstChild("LeftLowerArm")
- local rh2 = ded:FindFirstChild("RightHand")
- local lh2 = ded:FindFirstChild("LeftHand")
- local rul2 = ded:FindFirstChild("RightUpperLeg")
- local lul2 = ded:FindFirstChild("LeftUpperLeg")
- local rll2 = ded:FindFirstChild("RightLowerLeg")
- local lll2 = ded:FindFirstChild("LeftLowerLeg")
- local rf2 = ded:FindFirstChild("RightFoot")
- local lf2 = ded:FindFirstChild("LeftFoot")
- local rut1 = ded:FindFirstChild("HumanoidRootPart")
- if rut1 ~= nil then
- rut1:Destroy()
- end
- for i,v in pairs(who:GetChildren()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- if v.Name == "Health" then
- v.Parent = nil
- end
- end
- end
- local hum1 = ded:FindFirstChildOfClass("Humanoid")
- hum1.PlatformStand = true
- hum1.MaxHealth = 100
- hum1.Health = math.random(10,50)
- local trans = 1
- if h2 ~= nil then
- h2:BreakJoints()
- local nc = Instance.new("Glue",t2) nc.Name = "yo" nc.C0 = CFrame.new(0,t2.Size.y/2,0) nc.C1 = CFrame.new(0,-h2.Size.y/2,0) nc.Part0 = t2 nc.Part1 = h2
- local ncc = Instance.new("Part",t2) ncc.Name = "yo" ncc.Transparency = trans ncc.Size = Vector3.new(h2.Size.x/2 + h2.Size.x/4,h2.Size.y/2,h2.Size.z)
- local ncw = Instance.new("Weld",t2) ncw.Name = "yo" ncw.Part0 = h2 ncw.Part1 = ncc
- end
- for i,v in pairs(who:GetChildren()) do
- if v:IsA("BasePart") then
- v.Anchored = false
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v.Handle.Anchored = false
- local aw = Instance.new("WeldConstraint",v) aw.Part0 = h2 aw.Part1 = v.Handle
- end
- end
- hum1.PlatformStand = true
- if lt2 ~= nil then
- lt2:BreakJoints()
- local tc = Instance.new("Glue",t2) tc.Name = "yo" tc.C0 = CFrame.new(0,-t2.Size.y/2,0) tc.C1 = CFrame.new(0,lt2.Size.y/2,0) tc.Part0 = t2 tc.Part1 = lt2
- local tcc = Instance.new("Part",t2) tcc.Name = "yo" tcc.Transparency = trans tcc.Size = Vector3.new(lt2.Size.x/2,lt2.Size.y/2,lt2.Size.z)
- local tcw = Instance.new("Weld",t2) tcw.Name = "yo" tcw.Part0 = lt2 tcw.Part1 = tcc
- end
- if rua2 ~= nil then
- rua2:BreakJoints()
- local ruac = Instance.new("Glue",t2) ruac.Name = "yo" ruac.C0 = CFrame.new(t2.Size.x/2 + t2.Size.y/4,t2.Size.y/4,0) ruac.C1 = CFrame.new(0,rua2.Size.y/4.6666,0) ruac.Part0 = t2 ruac.Part1 = rua2
- local ruacc = Instance.new("Part",t2) ruacc.Name = "yo" ruacc.Transparency = trans ruacc.Size = Vector3.new(rua2.Size.x/1.2,rua2.Size.y/4,rua2.Size.z/1.2)
- local ruacw = Instance.new("Weld",t2) ruacw.Name = "yo" ruacw.Part0 = rua2 ruacw.Part1 = ruacc ruacw.C0 = CFrame.new(0,rua2.Size.y/7,0)
- end
- if lua2 ~= nil then
- lua2:BreakJoints()
- local luac = Instance.new("Glue",t2) luac.Name = "yo" luac.C0 = CFrame.new(-t2.Size.x/2 + -t2.Size.y/4,t2.Size.y/4,0) luac.C1 = CFrame.new(0,lua2.Size.y/4.6666,0) luac.Part0 = t2 luac.Part1 = lua2
- local luacc = Instance.new("Part",t2) luacc.Name = "yo" luacc.Transparency = trans luacc.Size = Vector3.new(lua2.Size.x/1.2,lua2.Size.y/4,lua2.Size.z/1.2)
- local luacw = Instance.new("Weld",t2) luacw.Name = "yo" luacw.Part0 = lua2 luacw.Part1 = luacc luacw.C0 = CFrame.new(0,lua2.Size.y/7,0)
- end
- if rla2 ~= nil then
- rla2:BreakJoints()
- local rlac = Instance.new("Glue",t2) rlac.Name = "yo" rlac.C0 = CFrame.new(0,-rua2.Size.y/4.6666,0) rlac.C1 = CFrame.new(0,rla2.Size.y/8,0) rlac.Part0 = rua2 rlac.Part1 = rla2
- local rlacc = Instance.new("Part",t2) rlacc.Name = "yo" rlacc.Transparency = trans rlacc.Size = Vector3.new(rla2.Size.x/1.2,rla2.Size.y/4,rla2.Size.z/1.2)
- local rlacw = Instance.new("Weld",t2) rlacw.Name = "yo" rlacw.Part0 = rla2 rlacw.Part1 = rlacc rlacw.C0 = CFrame.new(0,-rla2.Size.y/7,0)
- end
- if lla2 ~= nil then
- lla2:BreakJoints()
- local llac = Instance.new("Glue",t2) llac.Name = "yo" llac.C0 = CFrame.new(0,-lua2.Size.y/4.6666,0) llac.C1 = CFrame.new(0,lla2.Size.y/8,0) llac.Part0 = lua2 llac.Part1 = lla2
- local llacc = Instance.new("Part",t2) llacc.Name = "yo" llacc.Transparency = trans llacc.Size = Vector3.new(lla2.Size.x/1.2,lla2.Size.y/4,lla2.Size.z/1.2)
- local llacw = Instance.new("Weld",t2) llacw.Name = "yo" llacw.Part0 = lla2 llacw.Part1 = llacc llacw.C0 = CFrame.new(0,-lla2.Size.y/7,0)
- end
- if rh2 ~= nil then
- rh2:BreakJoints()
- local rhc = Instance.new("Glue",t2) rhc.Name = "yo" rhc.C0 = CFrame.new(0,-rla2.Size.y/2,0) rhc.C1 = CFrame.new(0,rh2.Size.y/3,0) rhc.Part0 = rla2 rhc.Part1 = rh2
- local rhcc = Instance.new("Part",t2) rhcc.Name = "yo" rhcc.Transparency = trans rhcc.Size = Vector3.new(rh2.Size.x/1.2,rh2.Size.y,rh2.Size.z/1.2)
- local rhcw = Instance.new("Weld",t2) rhcw.Name = "yo" rhcw.Part0 = rh2 rhcw.Part1 = rhcc rhcw.C0 = CFrame.new(0,0,0)
- end
- if lh2 ~= nil then
- lh2:BreakJoints()
- local lhc = Instance.new("Glue",t2) lhc.Name = "yo" lhc.C0 = CFrame.new(0,-lla2.Size.y/2,0) lhc.C1 = CFrame.new(0,lh2.Size.y/3,0) lhc.Part0 = lla2 lhc.Part1 = lh2
- local lhcc = Instance.new("Part",t2) lhcc.Name = "yo" lhcc.Transparency = trans lhcc.Size = Vector3.new(lh2.Size.x/1.2,lh2.Size.y,lh2.Size.z/1.2)
- local lhcw = Instance.new("Weld",t2) lhcw.Name = "yo" lhcw.Part0 = lh2 lhcw.Part1 = lhcc lhcw.C0 = CFrame.new(0,0,0)
- end
- if rul2 ~= nil then
- rul2:BreakJoints()
- local rulc = Instance.new("Glue",t2) rulc.Name = "yo" rulc.C0 = CFrame.new(lt2.Size.x/4,-lt2.Size.y/2,0) rulc.C1 = CFrame.new(0,rul2.Size.y/3,0) rulc.Part0 = lt2 rulc.Part1 = rul2
- local rulcc = Instance.new("Part",t2) rulcc.Name = "yo" rulcc.Transparency = trans rulcc.Size = Vector3.new(rul2.Size.x/1.2,rul2.Size.y/4,rul2.Size.z/1.2)
- local rulcw = Instance.new("Weld",t2) rulcw.Name = "yo" rulcw.Part0 = rul2 rulcw.Part1 = rulcc rulcw.C0 = CFrame.new(0,rul2.Size.y/7,0)
- end
- if lul2 ~= nil then
- lul2:BreakJoints()
- local lulc = Instance.new("Glue",t2) lulc.Name = "yo" lulc.C0 = CFrame.new(-lt2.Size.x/4,-lt2.Size.y/2,0) lulc.C1 = CFrame.new(0,lul2.Size.y/3,0) lulc.Part0 = lt2 lulc.Part1 = lul2
- local lulcc = Instance.new("Part",t2) lulcc.Name = "yo" lulcc.Transparency = trans lulcc.Size = Vector3.new(lul2.Size.x/1.2,lul2.Size.y/4,lul2.Size.z/1.2)
- local lulcw = Instance.new("Weld",t2) lulcw.Name = "yo" lulcw.Part0 = lul2 lulcw.Part1 = lulcc lulcw.C0 = CFrame.new(0,lul2.Size.y/7,0)
- end
- if rll2 ~= nil then
- rll2:BreakJoints()
- local rllc = Instance.new("Glue",t2) rllc.Name = "yo" rllc.C0 = CFrame.new(0,-rll2.Size.y/6,0) rllc.C1 = CFrame.new(0,rll2.Size.y/5,0) rllc.Part0 = rul2 rllc.Part1 = rll2
- local rllcc = Instance.new("Part",t2) rllcc.Name = "yo" rllcc.Transparency = trans rllcc.Size = Vector3.new(rll2.Size.x/1.2,rll2.Size.y/3.5,rll2.Size.z/1.2)
- local rllcw = Instance.new("Weld",t2) rllcw.Name = "yo" rllcw.Part0 = rll2 rllcw.Part1 = rllcc rllcw.C0 = CFrame.new(0,-rll2.Size.y/7,0)
- end
- if lll2 ~= nil then
- lll2:BreakJoints()
- local lllc = Instance.new("Glue",t2) lllc.Name = "yo" lllc.C0 = CFrame.new(0,-lll2.Size.y/6,0) lllc.C1 = CFrame.new(0,lll2.Size.y/5,0) lllc.Part0 = lul2 lllc.Part1 = lll2
- local lllcc = Instance.new("Part",t2) lllcc.Name = "yo" lllcc.Transparency = trans lllcc.Size = Vector3.new(lll2.Size.x/1.2,lll2.Size.y/3.5,lll2.Size.z/1.2)
- local lllcw = Instance.new("Weld",t2) lllcw.Name = "yo" lllcw.Part0 = lll2 lllcw.Part1 = lllcc lllcw.C0 = CFrame.new(0,-lll2.Size.y/7,0)
- end
- if rf2 ~= nil then
- rf2:BreakJoints()
- local rfc = Instance.new("Glue",t2) rfc.Name = "yo" rfc.C0 = CFrame.new(0,-rul2.Size.y/2.7,0) rfc.C1 = CFrame.new(0,rll2.Size.y/6,0) rfc.Part0 = rll2 rfc.Part1 = rf2
- local rfcc = Instance.new("Part",t2) rfcc.Name = "yo" rfcc.Transparency = trans rfcc.Size = Vector3.new(rf2.Size.x/1,rf2.Size.y,rf2.Size.z/1)
- local rfcw = Instance.new("Weld",t2) rfcw.Name = "yo" rfcw.Part0 = rf2 rfcw.Part1 = rfcc
- end
- if lf2 ~= nil then
- lf2:BreakJoints()
- local lfc = Instance.new("Glue",t2) lfc.Name = "yo" lfc.C0 = CFrame.new(0,-lul2.Size.y/2.7,0) lfc.C1 = CFrame.new(0,lll2.Size.y/6,0) lfc.Part0 = lll2 lfc.Part1 = lf2
- local lfcc = Instance.new("Part",t2) lfcc.Name = "yo" lfcc.Transparency = trans lfcc.Size = Vector3.new(lf2.Size.x/1,lf2.Size.y,lf2.Size.z/1)
- local lfcw = Instance.new("Weld",t2) lfcw.Name = "yo" lfcw.Part0 = lf2 lfcw.Part1 = lfcc
- end
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = 0.03333333333333333
- local Pos = Pos or Vector3.new(0, 0, 0)
- local Text = Text or ""
- local Time = Time or 2
- local Color = Color or Color3.new(1, 0, 1)
- local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui")({
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart
- })
- local TextLabel = Create("TextLabel")({
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- TextColor3 = Color,
- TextScaled = true,
- Font = Enum.Font.ArialBold,
- Parent = BillboardGui
- })
- game.Debris:AddItem(EffectPart, Time + 0.1)
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = Time / Rate
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = Frame / Frames
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagniDamage(Part, magni, mindam, maxdam, knock, Type,Sound)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
- end
- end
- local head = c:findFirstChild("UpperTorso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://" ..Sound, 3)
- end
- end
- end
- end
- end
- function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
- end
- end
- end
- end
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
- --http://www.roblox.com/asset/?id=4770560
- game:GetService("Debris"):AddItem(prt,2)
- CF=prt.CFrame
- coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
- for i=0,1,0.2 do
- wait()
- Part.CFrame=CF*cf(0,0,-0.4)
- end
- for i=0,1,delay do
- wait()
- --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
- Mesh.Scale=Mesh.Scale
- end
- for i=0,1,0.1 do
- wait()
- Part.Transparency=i
- end
- Part.Parent=nil
- end),prt,msh,CF)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
- local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
- local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- dec.Transparency=i
- dec2.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- prt.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
- end
- prt.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- prt.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- prt.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=false
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- local wld=weld(prt,prt,Parent,cframe)
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
- for i=0,1,delay do
- wait()
- Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
- --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,wld)
- end
- function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=false
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
- for i=0,1,delay do
- wait()
- Weld.C0=euler(i*20,0,0)
- --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,wld)
- end
- function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt2.Anchored=true
- prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
- game:GetService("Debris"):AddItem(prt2,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- wait()
- Part.CFrame=Part.CFrame*cf(0,0.5,0)
- end
- Part.Parent=nil
- end),prt2,msh2)
- end
- for i=0,1,delay*2 do
- wait()
- Part.CFrame=Part.CFrame
- Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function BreakEffect(brickcolor,cframe,x1,y1,z1)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
- CF=Part.CFrame
- Numbb=0
- randnumb=math.random()/10
- rand1=math.random()/10
- for i=0,1,rand1 do
- wait()
- CF=CF*cf(0,math.random()/2,0)
- --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
- Part.CFrame=CF*euler(Numbb,0,0)
- Part.Transparency=i
- Numbb=Numbb+randnumb
- end
- Part.Parent=nil
- end),prt,CF,Numbb,randnumb)
- end
- function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame*euler(0,0.7,0)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame*cf(0,y3/2,0)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe*cf(x,y,z)
- msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
- local num=math.random()
- local num2=math.random(-3,2)+math.random()
- local numm=0
- for i=0,1,delay*2 do
- swait()
- Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
- Part.Transparency=i
- numm=numm+0.01
- end
- Part.Parent=nil
- Mesh.Parent=nil
- end),prt,msh,x,y,z)
- end
- function dmgstart(dmg,what)
- hitcon = what.Touched:connect(function(hit)
- local hum = hit.Parent:FindFirstChild("Humanoid")
- if hum and not hum:IsDescendantOf(Character) then
- hum:TakeDamage(dmg)
- end
- end)
- end
- function dmgstop()
- hitcon:disconnect()
- end
- function Cloak()
- Face.Parent=nil
- cloaked=true
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.2 do
- wait()
- v.Transparency=i
- end
- v.Transparency=1
- end))
- end
- if v.className=="Hat" then
- hatp=v.Handle
- coroutine.resume(coroutine.create(function(derp)
- for i=0,1,0.2 do
- wait()
- derp.Transparency=i
- end
- derp.Transparency=1
- end),hatp)
- end
- end
- for _,v in pairs(m:children()) do
- if v.className=="Part" then
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.2 do
- wait()
- v.Transparency=i
- end
- v.Transparency=1
- end))
- end
- end
- end
- function UnCloak()
- so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
- Face.Parent=Head
- cloaked=false
- for _,v in pairs(Torso.Parent:children()) do
- if v.className=="Part" and v.Name~="HumanoidRootPart" then
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- end
- if v.className=="Hat" then
- hatp=v.Handle
- coroutine.resume(coroutine.create(function(derp)
- for i=0,1,0.1 do
- wait()
- derp.Transparency=derp.Transparency-0.1
- end
- derp.Transparency=0
- end),hatp)
- end
- end
- for _,v in pairs(m:children()) do
- if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
- coroutine.resume(coroutine.create(function()
- for i=0,1,0.1 do
- wait()
- v.Transparency=v.Transparency-0.1
- end
- v.Transparency=0
- end))
- v.Transparency=0
- end
- end
- end
- local origcolor = BrickColor.new("Pastel light blue")
- ---- This section of explosions.
- ----
- function ring(type,pos,scale,value)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = origcolor
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value
- end
- rng.Transparency = rng.Transparency + 0.01
- rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
- end
- rng:Destroy()
- end))
- end
- function wave(type,pos,scale,value)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = origcolor
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value
- end
- rng.Transparency = rng.Transparency + 0.01
- rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
- end
- rng:Destroy()
- end))
- end
- function wind(type,pos,scale,value,speed)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = origcolor
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value
- end
- rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
- rng.Transparency = rng.Transparency + 0.01
- rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
- end
- rng:Destroy()
- end))
- end
- function groundwind(type,pos,scale,value,speed)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = origcolor
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value
- end
- rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
- rng.Transparency = rng.Transparency + 0.01
- rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
- end
- rng:Destroy()
- end))
- end
- function CameraManager()
- if TwoD and not CamInterrupt then
- if Humanoid.Health > 0 then
- Camera.CameraSubject = Humanoid
- Camera.CameraType = "Scriptable"
- Humanoid.AutoRotate = false
- if Booleans.GyroUse then
- Directer.MaxTorque = Vec3(0, huge, 0)
- else
- Directer.MaxTorque = Vec3(0, 0, 0)
- end
- if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
- if Booleans.CamFollow then
- CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
- Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
- else
- CPart.Position = RootPart.Position
- end
- else
- local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
- CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
- end
- Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
- else
- Camera.CameraSubject = Humanoid
- Camera.CameraType = "Custom"
- end
- end
- end
- function ring(type,pos,scale,value)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = origcolor
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value
- end
- rng.Transparency = rng.Transparency + 0.01
- rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
- end
- rng:Destroy()
- end))
- end
- function wave(type,pos,scale,value)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = origcolor
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
- rngm.Scale = scale
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value
- end
- rng.Transparency = rng.Transparency + 0.01
- rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
- end
- rng:Destroy()
- end))
- end
- function sphere(bonuspeed,type,pos,scale,value,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.BrickColor = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- else
- break
- end
- end
- end))
- end
- local scaler2 = 1
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function TheoriesMSGfunc(text,color,C3)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.resume(coroutine.create(function()
- if v.PlayerGui:FindFirstChild("Dialog")~= nil then
- v.PlayerGui:FindFirstChild("Dialog"):destroy()
- end
- local scrg = Instance.new("ScreenGui",v.PlayerGui)
- CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1)
- scrg.Name = "Dialog"
- local txtlb = Instance.new("TextLabel",scrg)
- txtlb.Text = ""
- txtlb.Font = "Bodoni"
- txtlb.TextColor3 = Color3.new(0,0,0)
- txtlb.TextStrokeTransparency = 1
- txtlb.BackgroundTransparency = 1
- txtlb.BackgroundColor3 = color
- txtlb.TextStrokeColor3 = C3
- txtlb.TextColor3 = color
- txtlb.TextScaled = true
- txtlb.Size = UDim2.new(1,0,1,0)
- txtlb.TextXAlignment = "Left"
- txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
- local txtlb2 = Instance.new("TextLabel",scrg)
- txtlb2.Text = ""
- txtlb2.Font = "Bodoni"
- txtlb2.TextColor3 = Color3.new(0,0,0)
- txtlb2.TextStrokeTransparency = 0
- txtlb2.BackgroundTransparency = 0.96
- txtlb2.BackgroundColor3 = C3
- txtlb2.TextStrokeColor3 = color
- txtlb2.TextScaled = true
- txtlb2.Size = UDim2.new(0, 999999, 0, 999)
- txtlb2.TextXAlignment = "Center"
- txtlb2.Position = UDim2.new(0,0,0,0)
- local Iml = Instance.new("ImageLabel",scrg)
- Iml.BackgroundTransparency = 1
- Iml.BorderSizePixel = 0
- Iml.ImageTransparency = 0
- Iml.ImageColor3 = C3
- Iml.Position = UDim2.new(0,0,0.75 + 1,0)
- Iml.Size = UDim2.new(0, 638.82, 0, 591.5)
- Iml.Image = "rbxassetid://0"
- local Iml1 = Instance.new("ImageLabel",scrg)
- Iml1.BackgroundTransparency = 1
- Iml1.BorderSizePixel = 0
- Iml1.ImageTransparency = 0
- Iml1.ImageColor3 = C3
- Iml1.Position = UDim2.new(0,0,0.75 + 1,0)
- Iml1.Size = UDim2.new(0, 638.82, 0, 591.5)
- Iml1.Image = "rbxassetid://2312119891"
- local Iml2 = Instance.new("ImageLabel",scrg)
- Iml2.BackgroundTransparency = 1
- Iml2.BorderSizePixel = 0
- Iml2.ImageTransparency = 0
- Iml2.ImageColor3 = color
- Iml2.Position = UDim2.new(0,0,0.75 + 1,0)
- Iml2.Size = UDim2.new(0, 638.82, 0, 591.5)
- Iml2.Image = "rbxassetid://2312119891"
- local txtlb = Instance.new("TextLabel",Iml)
- txtlb.Text = text
- txtlb.Font = "SciFi"
- txtlb.TextColor3 = color
- txtlb.TextStrokeTransparency = 0
- txtlb.BackgroundTransparency = 1
- txtlb.TextStrokeColor3 = color
- txtlb.TextScaled = true
- txtlb.Size = UDim2.new(1,0,1,0)
- txtlb.Position = UDim2.new(0,0,6.75 + 1,0)
- local fvalen = 0.4
- local fval = -0.49
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if scrg.Parent ~= nil then
- fvalen = fvalen - 0.0001
- elseif scrg.Parent == nil then
- break
- end
- end
- end))
- local flol = -0.625
- local flil = -0.935
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- Iml1.Rotation = Iml1.Rotation + 2.5
- Iml2.Rotation = Iml2.Rotation - 2.5
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 0, 36 do
- swait()
- fval = fval + 0.0125
- flol = flol + 0.025
- flil = flil + 0.025
- txtlb.Text = text
- txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency - 0.008
- txtlb.Position = UDim2.new(flil,0,0,0)
- Iml.Position = UDim2.new(flol,0,-0.05,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml2.Position = UDim2.new(flol,0,-0.05,0)
- end
- coroutine.resume(coroutine.create(function()
- for i = 0, 99 do
- swait()
- fval = fval + 0.00001
- flol = flol + 0.0001
- flil = flil + 0.0001
- txtlb.Text = text
- txtlb.Position = UDim2.new(flil,0,0,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml2.Position = UDim2.new(flol,0,-0.05,0)
- end
- end))
- wait(1.6)
- local valinc = 0
- for i = 0, 99 do
- swait()
- valinc = valinc + 0.0001
- flol = flol + valinc
- flil = flil + valinc
- Iml1.Rotation = Iml1.Rotation - valinc*50
- Iml.Rotation = Iml1.Rotation - valinc*2
- Iml2.Rotation = Iml2.Rotation - valinc*50
- Iml.Position = UDim2.new(flol,0,0,0)
- Iml1.Position = UDim2.new(flol,0,-0.05,0)
- Iml2.Position = UDim2.new(flol,0,-0.05,0)
- txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01
- txtlb2.BackgroundTransparency = txtlb2.BackgroundTransparency + 0.006
- txtlb.TextTransparency = txtlb.TextTransparency + 0.01
- Iml.ImageTransparency = Iml1.ImageTransparency + 0.01
- Iml1.ImageTransparency = Iml1.ImageTransparency + 0.01
- Iml2.ImageTransparency = Iml2.ImageTransparency + 0.01
- txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025
- end
- scrg:Destroy()
- end))
- end))
- end
- end
- function IdolsWarn(text,represfont,color,color2)
- if disably ~= true then
- CFuncs["Sound"].Create("rbxassetid://534859368", char, 1.25,1)
- CFuncs["Sound"].Create("rbxassetid://963718869", char, 0.8,1)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.resume(coroutine.create(function()
- if v.PlayerGui:FindFirstChild("Spinny")~= nil then
- v.PlayerGui:FindFirstChild("Spinny"):destroy()
- end
- local scrg = Instance.new("ScreenGui",v.PlayerGui)
- scrg.Name = "Spinny"
- local frm = Instance.new("Frame",scrg)
- frm.BackgroundTransparency = 0.25
- frm.BackgroundColor3 = color
- frm.BorderSizePixel = 0
- frm.Rotation = 45
- frm.Size = UDim2.new(3,0,0,100)
- frm.Position = UDim2.new(-4,0,0,0)
- local frm2 = frm:Clone()
- frm2.Parent = scrg
- frm2.BackgroundColor3 = color2
- frm2.Position = UDim2.new(-4.05,0,0,0)
- local imlb = Instance.new("ImageLabel",scrg)
- imlb.BackgroundTransparency = 1
- imlb.BackgroundColor3 = color
- imlb.Image = "rbxassetid://787198541"
- imlb.Size = UDim2.new(0,750,0,750)
- imlb.ImageColor3 = color2
- imlb.ImageTransparency = 0.25
- imlb.Position = UDim2.new(-2.5,0,-2.5,0)
- local imlb2 = imlb:Clone()
- imlb2.Image = "rbxassetid://197468643"
- imlb2.Size = UDim2.new(1,0,1,0)
- imlb2.ImageTransparency = 0
- imlb2.Position = UDim2.new(0,0,0,0)
- local imlb3 = imlb:Clone()
- imlb3.Image = "rbxassetid://787191999"
- imlb3.Size = UDim2.new(1,0,1,0)
- imlb3.ImageColor3 = color2
- imlb3.ImageTransparency = 0
- imlb3.Position = UDim2.new(0,0,0,0)
- local imlb4 = imlb:Clone()
- imlb4.Image = "rbxassetid://2092248396"
- imlb4.Size = UDim2.new(3,0,3,0)
- imlb3.ImageColor3 = color
- imlb4.ImageTransparency = 0
- imlb4.Position = UDim2.new(-1,0,-1,0)
- local imlb5 = imlb:Clone()
- imlb5.Image = "rbxassetid://2344870656"
- imlb5.Size = UDim2.new(10,0,10,0)
- imlb5.ImageColor3 = color2
- imlb5.ImageTransparency = 0
- imlb5.Position = UDim2.new(-4.5,0,-4.5,0)
- imlb2.Parent = imlb
- imlb3.Parent = imlb
- imlb4.Parent = imlb
- imlb5.Parent = imlb
- local txtlb2 = Instance.new("TextLabel",imlb)
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if Error == false then
- txtlb2.Text = text
- elseif Error == true then
- txtlb2.Text = est[math.random(1,17)]
- end
- end
- end))
- txtlb2.Font = represfont
- txtlb2.TextColor3 = color
- txtlb2.TextStrokeTransparency = 0
- txtlb2.BackgroundTransparency = 1
- txtlb2.TextStrokeColor3 = color2
- txtlb2.TextScaled = true
- txtlb2.Size = UDim2.new(1,0,1,0)
- txtlb2.Position = UDim2.new(0,0,0,0)
- local fvalen = 0.55
- local fval = -0.49
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rainbowmode == true then
- imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.TextStrokeColor3 = Color3.new(r/255,g/255,b/255)
- txtlb2.TextColor3 = Color3.new(r/255,g/255,b/255)
- imlb.ImageColor3 = Color3.new(r/255,g/255,b/255)
- frm.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- frm2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- txtlb2.TextStrokeColor3 = Color3.new(1,1,1)
- txtlb2.TextColor3 = Color3.new(r/255,g/255,b/255)
- imlb.ImageColor3 = Color3.new(r/255,g/255,b/255)
- imlb3.ImageColor3 = Color3.new(r/255,g/255,b/255)
- imgl2b.ImageColor3 = Color3.new(r/255,g/255,b/255)
- frm.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- frm2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if Error == true then
- imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.TextStrokeColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- txtlb2.TextColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- imlb.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- imlb2.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- imlb3.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- imlb4.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- imlb5.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- imgl2b.ImageColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- frm.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- frm2.BackgroundColor3 = Color3.new(math.random(0,1),math.random(0,1),math.random(0,1))
- text = est[math.random(1,17)]
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if CRAZED == true then
- txtlb2.Rotation = math.random(-1,1)
- imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.TextStrokeColor3 = Color3.new(0,0,math.random(0.1,1))
- txtlb2.TextColor3 = Color3.new(0,0,math.random(0,0.2))
- imlb.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
- imlb2.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
- imlb3.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
- imlb4.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
- imlb5.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
- imgl2b.ImageColor3 = Color3.new(0,0,math.random(0.1,1))
- frm.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
- frm2.BackgroundColor3 = Color3.new(0,0,math.random(0.1,1))
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if chaosmode == true then
- txtlb2.Rotation = math.random(-1,1)
- imlb.Position = imlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5)
- imlb.ImageColor3 = BrickColor.random().Color
- txtlb2.TextStrokeColor3 = BrickColor.random().Color
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if scrg.Parent ~= nil then
- fvalen = fvalen - 0.0001
- elseif scrg.Parent == nil then
- break
- end
- end
- end))
- local flol = -5
- local flil = 1.6
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait()
- flol = flol + 0.125
- flil = flil - 0.1
- frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
- frm.Rotation = frm.Rotation - 0.25
- frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
- frm2.Rotation = frm.Rotation + 0.325
- imlb3.Rotation = imlb3.Rotation - 10
- imlb2.Rotation = imlb.Rotation + 7.5
- imlb.Rotation = imlb.Rotation + 5
- if Error == false then
- txtlb2.Rotation = txtlb2.Rotation - 5.125
- elseif Error == true then
- txtlb2.Rotation = txtlb2.Rotation - 5.125 + math.random(-6,6)
- end
- imlb.Position = imlb.Position + UDim2.new(0.05125,0,0.04775,0)
- end
- for i = 0, 99 do
- swait()
- fval = fval + 0.05
- flol = flol + 0.005
- frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
- frm.Rotation = frm.Rotation - 0.075
- frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.125
- imlb3.Rotation = imlb3.Rotation - 2
- imlb2.Rotation = imlb.Rotation + 1.5
- imlb.Rotation = imlb.Rotation + 1
- if Error == false then
- txtlb2.Rotation = txtlb2.Rotation - 1.125
- elseif Error == true then
- txtlb2.Rotation = txtlb2.Rotation - 1.125 + math.random(-6,6)
- end
- imlb.Position = imlb.Position + UDim2.new(0.0015,0,0.00075,0)
- end
- local valinc = 0
- local vinc2 = 1
- for i = 0, 99 do
- swait()
- vinc2 = vinc2 + 0.25
- valinc = valinc + 0.0001
- flol = flol + valinc
- flil = flil + valinc
- txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
- imlb3.Rotation = imlb3.Rotation - 2*vinc2
- imlb.Rotation = imlb.Rotation + 1*vinc2
- imlb.Position = imlb.Position + UDim2.new(0.0015*vinc2,0,0.0005*vinc2,0)
- frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm.Rotation = frm.Rotation + 0.1*vinc2
- frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.225*vinc2
- frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
- frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
- imlb.ImageTransparency = imlb.ImageTransparency + 0.005
- imlb2.ImageTransparency = imlb2.ImageTransparency + 0.01
- imlb3.ImageTransparency = imlb3.ImageTransparency + 0.01
- imlb4.ImageTransparency = imlb4.ImageTransparency + 0.01
- imlb5.ImageTransparency = imlb4.ImageTransparency + 0.01
- txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
- txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
- end
- scrg:Destroy()
- end))
- end))
- end
- end
- end
- local FXFolder = script:FindFirstChild'Effects'
- FXFolder.Parent = nil
- function newbosschatfunc(text,color1,color2,delay)
- for _,v in next, game:service'Players':players() do
- coroutine.wrap(function()
- if(FXFolder:FindFirstChild'BossChat' and v.Character)then
- local cha = FXFolder.BossChat:Clone()
- cha.Color1.Value=color1
- cha.Color2.Value=color2
- cha.Text.Value=text
- cha.Ghghghghgh.Value=delay
- cha.Music.Value=kan
- cha.ModeName.Value=modet.Text
- cha.Parent=v.Character
- wait()
- cha.Disabled = false
- game:service'Debris':AddItem(cha,(delay/60)*4)
- CFuncs["Sound"].Create("rbxassetid://1293433423", char, 1.5,1)
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if chaosmode == true then
- cha.Color2.Value = BrickColor.random().Color
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rainbowmode == true then
- cha.Color2.Value = Color3.new(r/255,g/255,b/255)
- end
- end
- end))
- end
- end)()
- end
- end
- function bosschatfunc(text,color,watval)
- newbosschatfunc(text,BrickColor.new'Really black'.Color,color,watval*30)
- end
- function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.BrickColor = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- local scaler2c = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- scaler2c = 1*value3
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- scaler2c = 1/value3
- end
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- else
- break
- end
- end
- end))
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- scaler2c = scaler2c - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- scaler2c = scaler2c - 0.01/value*bonuspeed
- end
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color)
- local type = type
- local rotenable = rotatingop
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- if typeoftrans == "In" then
- rng.Transparency = 1
- end
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "FileMesh"
- if typeofshape == "Normal" then
- rngm.MeshId = "rbxassetid://662586858"
- elseif typeofshape == "Round" then
- rngm.MeshId = "rbxassetid://662585058"
- end
- rngm.Scale = scale
- local scaler2 = 1/10
- if type == "Add" then
- scaler2 = 1*value/10
- elseif type == "Divide" then
- scaler2 = 1/value/10
- end
- local randomrot = math.random(1,2)
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed/10
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed/10
- end
- if rotenable == true then
- if randomrot == 1 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0)
- elseif randomrot == 2 then
- rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0)
- end
- end
- if typeoftrans == "Out" then
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- elseif typeoftrans == "In" then
- rng.Transparency = rng.Transparency - 0.01*bonuspeed
- end
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10)
- end
- rng:Destroy()
- end))
- end
- function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- local speeder = FastSpeed/10
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed/10
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- --rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 1
- local speeder = FastSpeed/10
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed/10
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- local scaler2 = 0
- local speeder = FastSpeed/10
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder + 0.01*FastSpeed*bonuspeed/10
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- --rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- rng.BrickColor = color
- rng.Color = color3
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Brick"
- rngm.Scale = scale
- local scaler2 = 1
- local scaler2b = 1
- local scaler2c = 1
- if type == "Add" then
- scaler2 = 1*value
- scaler2b = 1*value2
- scaler2c = 1*value3
- elseif type == "Divide" then
- scaler2 = 1/value
- scaler2b = 1/value2
- scaler2c = 1/value3
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- scaler2b = scaler2b - 0.01*value/bonuspeed
- scaler2c = scaler2c - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- scaler2b = scaler2b - 0.01/value*bonuspeed
- scaler2c = scaler2c - 0.01/value*bonuspeed
- end
- rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
- end
- rng:Destroy()
- end))
- end
- function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.BrickColor = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- else
- break
- end
- end
- end))
- end
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency + 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- function RecolorTextAndRename(name,col1,col2,font)
- modet.TextStrokeColor3 = col2
- modet.TextColor3 = col1
- modet.Font = font
- modet.Text = name
- techc.ImageColor3 = col1
- circl.ImageColor3 = col2
- imgl2.ImageColor3 = col2
- ned.Text = name
- ned.TextColor3 = col1
- ned.TextStrokeColor3 = col2
- end
- function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
- local type = type
- local rng = Instance.new("Part", char)
- rng.Anchored = true
- if ModeOfGlitch ~= 9 then
- rng.BrickColor = color
- elseif ModeOfGlitch == 9 then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- end
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Material = "Neon"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 1
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.CFrame = pos
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshType = "Sphere"
- rngm.Scale = vt(x1,y1,z1)
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if ModeOfGlitch == 9 then
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if rng.Parent ~= nil then
- rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000)
- else
- break
- end
- end
- end))
- end
- local scaler2 = 1
- local speeder = FastSpeed
- if type == "Add" then
- scaler2 = 1*value
- elseif type == "Divide" then
- scaler2 = 1/value
- end
- coroutine.resume(coroutine.create(function()
- for i = 0,10/bonuspeed,0.1 do
- swait()
- if rainbowmode == true then
- rng.Color = Color3.new(r/255,g/255,b/255)
- end
- if type == "Add" then
- scaler2 = scaler2 - 0.01*value/bonuspeed
- elseif type == "Divide" then
- scaler2 = scaler2 - 0.01/value*bonuspeed
- end
- if chaosmode == true then
- rng.BrickColor = BrickColor.random()
- end
- speeder = speeder - 0.01*FastSpeed*bonuspeed
- rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
- rng.Transparency = rng.Transparency - 0.01*bonuspeed
- rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
- end
- rng:Destroy()
- end))
- end
- function dmg(dude)
- if dude.Name ~= Character then
- local bgf = Instance.new("BodyGyro",dude.Head)
- bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
- --[[local val = Instance.new("BoolValue",dude)
- val.Name = "IsHit"]]--
- local ds = coroutine.wrap(function()
- dude:WaitForChild("Head"):BreakJoints()
- for i, v in pairs(dude:GetChildren()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Name = "DEMINISHED"
- CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
- CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
- for i = 0, 1 do
- sphere2(1,"Add",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,10,-0.01,ModeColor,ModeColor.Color)
- end
- end
- end
- wait(0.5)
- targetted = nil
- CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(dude:GetChildren()) do
- if v:IsA("Accessory") then
- v:Destroy()
- end
- if v:IsA("Humanoid") then
- v:Destroy()
- end
- if v:IsA("CharacterMesh") then
- v:Destroy()
- end
- if v:IsA("Model") then
- v:Destroy()
- end
- if v:IsA("Part") or v:IsA("MeshPart") then
- for x, o in pairs(v:GetChildren()) do
- if o:IsA("Decal") then
- o:Destroy()
- end
- end
- coroutine.resume(coroutine.create(function()
- v.Material = "Neon"
- v.CanCollide = false
- v.Anchored = false
- local bld = Instance.new("ParticleEmitter",v)
- bld.LightEmission = 1
- bld.Texture = "rbxassetid://363275192" ---284205403
- bld.Color = ColorSequence.new(ModeColor.Color)
- bld.Rate = 500
- bld.Lifetime = NumberRange.new(1)
- bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
- bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
- bld.Speed = NumberRange.new(2,5)
- bld.VelocitySpread = 50000
- bld.Rotation = NumberRange.new(-500,500)
- bld.RotSpeed = NumberRange.new(-500,500)
- local sbs = Instance.new("BodyPosition", v)
- sbs.P = 3000
- sbs.D = 1000
- sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
- sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
- v.Color = ModeColor.Color
- coroutine.resume(coroutine.create(function()
- swait()
- if rainbowmode == true then
- v.Color = Color3.new(r/255,g/255,b/255)
- end
- if chaosmode == true then
- v.BrickColor = BrickColor.random()
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait(1)
- v:BreakJoints()
- v.Transparency = v.Transparency + 0.02
- end
- v:BreakJoints()
- for i = 0, 4 do
- slash(math.random(10,50)/10,3,true,"Round","Add","Out",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(10,100)/2500,BrickColor.new("White"))
- end
- block(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,ModeColor,ModeColor.Color)
- CFuncs["Sound"].Create("rbxassetid://782353117", v, 0.25, 1.2)
- CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
- bld.Speed = NumberRange.new(10,25)
- bld.Drag = 5
- bld.Acceleration = vt(0,2,0)
- wait(0.5)
- bld.Enabled = false
- wait(4)
- coroutine.resume(coroutine.create(function()
- for i = 0, 99 do
- swait()
- v:Destroy()
- dude:Destroy()
- end
- end))
- end))
- end))
- end
- end
- end))
- end)
- ds()
- end
- end
- function FindNearestHead(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
- end
- local List = {}
- for i, v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") then
- if v:findFirstChild("Head") then
- if v ~= Character then
- if (v.Head.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- end
- end
- return List
- end
- function FaceMouse()
- Cam = workspace.CurrentCamera
- return {
- CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
- Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
- }
- end
- function FaceMouse2()
- Cam = workspace.CurrentCamera
- return {
- CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
- Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
- }
- end
- --Wings
- ModeColor = BrickColor.new("Really blue")
- ModeColor2 = BrickColor.new("Really red")
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- m=Instance.new('Model',Character)
- it=Instance.new
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- Handle=part(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Really black","Handle",Vector3.new(0.737122595, 0.326575577, 1.51724529))
- Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.13700104, 0.574226379, 0.555047989, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387))
- Part2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part2",Vector3.new(0.199999973, 0.999999881, 1.19999993))
- Part2weld=weld(m,Handle,Part2,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00289154053, 0.126571655, 5.5479126, 0.0988398939, 0.141292349, 0.985026062, -0.628047705, -0.758960247, 0.171884969, 0.771877706, -0.635627985, 0.0137228817))
- mesh("SpecialMesh",Part2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part3=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part3",Vector3.new(0.199999973, 0.799999833, 4.99999952))
- Part3weld=weld(m,Handle,Part3,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00289916992, 0.226577759, -2.44792938, -0.0988399088, -0.141292334, -0.985026062, -0.628047764, -0.758960366, 0.171885014, -0.771877646, 0.635628104, -0.0137228817))
- Part8=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part8",Vector3.new(0.199999988, 0.199999988, 4.99999952))
- Part8weld=weld(m,Handle,Part8,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00289916992, -0.2734375, -2.4479599, -0.0988401547, -0.141291723, -0.985021472, -0.628046155, -0.758955657, 0.171884909, -0.771873593, 0.635628045, -0.01372243))
- mesh("SpecialMesh",Part8,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part9=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part9",Vector3.new(0.200000003, 0.799999952, 4.19999981))
- Part9weld=weld(m,Handle,Part9,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00296020508, -1.61325073, -1.90857697, -0.0988346785, -0.141285136, -0.985027492, -0.484457493, -0.857815087, 0.171647519, -0.869218469, 0.494164973, 0.0163349751))
- Part10=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part10",Vector3.new(0.200000003, 0.200000003, 4.19999981))
- Part10weld=weld(m,Handle,Part10,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00296783447, -2.11328506, -1.90859222, -0.0988349468, -0.141284555, -0.985023022, -0.484456658, -0.857810557, 0.1716474, -0.869214356, 0.494165629, 0.0163354147))
- mesh("SpecialMesh",Part10,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part13=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part13",Vector3.new(0.200000003, 1, 1.20000005))
- Part13weld=weld(m,Handle,Part13,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00296020508, -1.71326065, 4.60858154, 0.0988346562, 0.141285151, 0.985027492, -0.484457433, -0.857815027, 0.171647474, 0.869218528, -0.494164854, -0.016334977))
- mesh("SpecialMesh",Part13,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part18=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part18",Vector3.new(0.199999973, 0.199999973, 4.59999943))
- Part18weld=weld(m,Handle,Part18,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.0030670166, -1.17616272, -2.13925934, -0.0988550559, -0.141272128, -0.985022783, -0.558375001, -0.81147331, 0.172419131, -0.823677719, 0.567056596, 0.00133541063))
- mesh("SpecialMesh",Part18,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part101=part(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,"Really black","Part101",Vector3.new(0.737122595, 0.326575577, 1.47424531))
- Part101weld=weld(m,Handle,Part101,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.229278564, 0.00509643555, -1.30854034, -0.995167911, 0.00477665802, 0.0980637521, -0.0976645499, -0.150390878, -0.983790755, 0.010048613, -0.988614321, 0.150130734))
- Part21=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part21",Vector3.new(0.199999973, 0.999999881, 1.19999993))
- Part21weld=weld(m,Handle,Part21,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.003074646, -0.77614212, 5.03923035, 0.0988549143, 0.141272902, 0.985027492, -0.558376133, -0.811478198, 0.172419384, 0.823682308, -0.567056, -0.0013350076))
- mesh("SpecialMesh",Part21,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part20=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,ModeColor,"Part20",Vector3.new(0.199999973, 0.799999833, 4.59999943))
- Part20weld=weld(m,Handle,Part20,CFrame.new(0, 0, 0, -0.931082726, 0.359660119, 0.0610630736, -0.118210077, -0.139092848, -0.983198643, -0.345123857, -0.922657371, 0.172022387),CFrame.new(0.0030670166, -0.676166534, -2.13925934, -0.0988565385, -0.141273394, -0.985032141, -0.558380485, -0.81147939, 0.172420278, -0.823683262, 0.56705898, 0.00133514532))
- -------------------------------------------------
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- M1=Instance.new('Model',Character)
- it=Instance.new
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- Handle2=part(Enum.FormFactor.Symmetric,M1,Enum.Material.Neon,0,0,"Really black","Handle2",Vector3.new(0.737122595, 0.326575577, 1.51724529))
- Handle2weld=weld(M1,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.07476044, 0.582122803, 0.578117371, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387))
- Part10=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part10",Vector3.new(0.200000003, 0.200000003, 4.19999981))
- Part10weld=weld(M1,Handle2,Part10,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.0029296875, -2.11326599, -1.90862274, -0.0988372117, 0.141284317, 0.985022843, 0.484451026, -0.857813537, 0.171648204, 0.869217157, 0.494160533, 0.0163385645))
- mesh("SpecialMesh",Part10,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part101=part(Enum.FormFactor.Symmetric,M1,Enum.Material.Neon,0,0,"Really black","Part101",Vector3.new(0.737122595, 0.326575577, 1.47424531))
- Part101weld=weld(M1,Handle2,Part101,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.229278564, 0.00509643555, -1.30853653, -0.995167911, -0.00477665802, -0.0980637521, 0.0976645499, -0.150390878, -0.983790755, -0.010048613, -0.988614321, 0.150130734))
- Part13=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part13",Vector3.new(0.200000003, 1, 1.20000005))
- Part13weld=weld(M1,Handle2,Part13,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00296020508, -1.71326447, 4.60858154, 0.0988346562, -0.141285151, -0.985027492, 0.484457433, -0.857815027, 0.171647474, -0.869218528, -0.494164854, -0.016334977))
- mesh("SpecialMesh",Part13,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part18=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part18",Vector3.new(0.199999973, 0.199999973, 4.59999943))
- Part18weld=weld(M1,Handle2,Part18,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.0030670166, -1.1761322, -2.13922882, -0.0988577381, 0.141272023, 0.985022545, 0.558369696, -0.811476648, 0.172420546, 0.823680997, 0.567051828, 0.00133872975))
- mesh("SpecialMesh",Part18,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part2=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part2",Vector3.new(0.199999973, 0.999999881, 1.19999993))
- Part2weld=weld(M1,Handle2,Part2,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.00288391113, 0.126571655, 5.54790497, 0.0988398939, -0.141292349, -0.985026062, 0.628047705, -0.758960247, 0.171884969, -0.771877706, -0.635627985, 0.0137228817))
- mesh("SpecialMesh",Part2,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part20=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part20",Vector3.new(0.199999973, 0.799999833, 4.59999943))
- Part20weld=weld(M1,Handle2,Part20,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00305175781, -0.676185608, -2.1392746, -0.0988565087, 0.141273409, 0.985032201, 0.558380425, -0.81147939, 0.172420278, 0.8236835, 0.567058921, 0.00133515324))
- Part21=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part21",Vector3.new(0.199999973, 0.999999881, 1.19999993))
- Part21weld=weld(M1,Handle2,Part21,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(0.003074646, -0.776145935, 5.03923798, 0.0988549143, -0.141272902, -0.985027492, 0.558376133, -0.811478198, 0.172419384, -0.823682308, -0.567056, -0.0013350076))
- mesh("SpecialMesh",Part21,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part3=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part3",Vector3.new(0.199999973, 0.799999833, 4.99999952))
- Part3weld=weld(M1,Handle2,Part3,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00289154053, 0.226577759, -2.44792175, -0.0988399088, 0.141292334, 0.985026062, 0.628047764, -0.758960366, 0.171885014, 0.771877646, 0.635628104, -0.0137228817))
- Part8=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part8",Vector3.new(0.199999988, 0.199999988, 4.99999952))
- Part8weld=weld(M1,Handle2,Part8,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00289154053, -0.2734375, -2.44793701, -0.098837696, 0.141291857, 0.985021651, 0.628049672, -0.758953035, 0.171883389, 0.771870911, 0.635631084, -0.0137251355))
- mesh("SpecialMesh",Part8,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part9=part(Enum.FormFactor.Custom,M1,Enum.Material.Neon,0,0,ModeColor2,"Part9",Vector3.new(0.200000003, 0.799999952, 4.19999981))
- Part9weld=weld(M1,Handle2,Part9,CFrame.new(0, 0, 0, -0.931082726, -0.359660119, -0.0610630736, 0.118210077, -0.139092848, -0.983198643, 0.345123857, -0.922657371, 0.172022387),CFrame.new(-0.00295257568, -1.61328125, -1.90859985, -0.0988361612, 0.141285598, 0.985031843, 0.484461337, -0.857816219, 0.171648264, 0.86921978, 0.494167566, 0.0163351614))
- --------------------------------------------------------------------------
- local ModeOfGlitch = "DavidGrativol"
- -- Functions are ready.
- local storehumanoidWS = 16
- function createBGCircle(size,parent,color)
- local bgui = Instance.new("BillboardGui",parent)
- bgui.Size = UDim2.new(size, 0, size, 0)
- local imgc = Instance.new("ImageLabel",bgui)
- imgc.BackgroundTransparency = 1
- imgc.ImageTransparency = 0
- imgc.Size = UDim2.new(1,0,1,0)
- imgc.Image = "rbxassetid://997291547" --997291547,521073910
- imgc.ImageColor3 = color
- return bgui,imgc
- end
- ----------------------------------- Abilities
- function attackone()
- attack = true
- for x = 0, 1 do
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.8)
- end
- end
- CFuncs["Sound"].Create("rbxassetid://153092213", Head, 2.5,1)
- local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
- hitb.Anchored = true
- hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
- MagniDamage(hitb, 4, 10,50, 0, "Normal",153092213)
- shakes(0.1,0.1)
- hitb:Destroy()
- for i = 0,1,0.1 do
- swait()
- sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.01,-0.01,ModeColor2,Color3.new(0,1,0))
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
- RH.C0=clerp(RH.C0,cf(1.3,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-50)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
- end
- attack = false
- end
- function attacktwo()
- attack = true
- for i = 0,5,0.5 do
- swait()
- sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.01,-0.01,ModeColor,Color3.new(0,1,0))
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(60),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(40),math.rad(0),math.rad(-100)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- end
- CFuncs["Sound"].Create("rbxassetid://153092213", Head, 2.5,1)
- local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
- hitb.Anchored = true
- hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
- MagniDamage(hitb, 4, 10,50, 0, "Normal",153092213)
- shakes(0.1,0.1)
- hitb:Destroy()
- for i = 0,1,0.1 do
- swait()
- sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.01,-0.01,ModeColor,Color3.new(0,1,0))
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-40)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(40),math.rad(40)),.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
- RH.C0=clerp(RH.C0,cf(1.3,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(-50)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-60),math.rad(0),math.rad(-10)),.4)
- end
- attack = false
- end
- function attackthree()
- attack = true
- for i = 0, 2, 0.1 do
- swait()
- slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
- RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1)
- RW.C0=clerp(RW.C0,cf(1.05,1.30,0)*angles(math.rad(190),math.rad(0),math.rad(-30)),.6)
- LW.C0=clerp(LW.C0,cf(-1.05,1.30,0)*angles(math.rad(190),math.rad(0),math.rad(30)),.6)
- end
- CFuncs["Sound"].Create("rbxassetid://1208650519", root, 1, 1)
- CameraEnshaking(0.1,1)
- local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
- hitb.Anchored = true
- hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
- MagniDamage(hitb, 20, 10,50, 0, "Normal",153092213)
- hitb:Destroy()
- sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,ModeColor)
- sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,ModeColor2)
- sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(30,0.1,30),0.01,ModeColor)
- for i = 0, 2, 0.1 do
- swait()
- slash(math.random(25,50)/10,5,true,"Round","Add","Out",tors.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
- sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,ModeColor,0)
- sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,ModeColor2,0)
- RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.4)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
- end
- attack = false
- end
- function RemindedOfIRLBully()
- attack = true
- bosschatfunc("...You really remind me of someone.",ModeColor.Color,4)
- for i = 0,20,0.1 do
- swait()
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(10 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90 + 1 * math.cos(sine / 0.252)),math.rad(0 + 1 * math.cos(sine / 0.123)),math.rad(15 + 1 * math.cos(sine / 0.6))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 1 * math.cos(sine / 0.568)),math.rad(0 + 1 * math.cos(sine / 0.664)),math.rad(0 + 1 * math.cos(sine / 0.23))),.1)
- sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.005,-0.005,ModeColor,Color3.new(0,1,0))
- end
- bosschatfunc("...Named Ronan Bray... The devilish person himself.",ModeColor.Color,4)
- for i = 0,20,0.1 do
- swait()
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(10 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(30 + 1 * math.cos(sine / 0.252)),math.rad(0 + 1 * math.cos(sine / 0.123)),math.rad(15 + 1 * math.cos(sine / 0.6))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 1 * math.cos(sine / 0.568)),math.rad(0 + 1 * math.cos(sine / 0.664)),math.rad(-15 + 1 * math.cos(sine / 0.23))),.1)
- sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.005,-0.005,ModeColor,Color3.new(0,1,0))
- end
- attack = false
- end
- function Hmph() --Hmph. Your bad lOOopOoOKLOlaAOlaoALondijkwaiufnhbase bvfjkabgfi;qkBGIK|FB
- attack = true
- ok = Instance.new("Sound",tors)
- ok.Volume = 4
- ok.SoundId = "rbxassetid://2854929194"
- ok:Play()
- for i = 0,5,0.1 do
- swait()
- local Alpha = .3
- RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
- LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(2),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
- RH.C0 = RH.C0:lerp(cf(1,-1.1,0)*angles(math.rad(-6),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
- LW.C0 = LW.C0:lerp(cf(-0.5,-0.2,-0.7)*angles(math.rad(-6.8),math.rad(21.2),math.rad(-178.3)),Alpha)
- RW.C0 = RW.C0:lerp(cf(0.8,0.5,-0.9)*angles(math.rad(84.8),math.rad(21.3),math.rad(-67.9)),Alpha)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 10)),math.rad(0),math.rad(40)),.1)
- end
- attack = false
- end
- function attackfour()
- attack = true
- hum.WalkSpeed = 0
- for i = 0, 4, 0.1 do
- swait()
- local Alpha = .1
- sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.05,0.05,-0.05,ModeColor,Color3.new(0,1,0))
- sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.05,0.05,-0.05,ModeColor2,Color3.new(0,1,0))
- RootJoint.C0 = RootJoint.C0:lerp(cf(0,1.7,0)*angles(math.rad(21.6),math.rad(0),math.rad(0))*RootCF,Alpha)
- LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(-32.9),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
- RH.C0 = RH.C0:lerp(cf(1,0.1,-0.8)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
- LW.C0 = LW.C0:lerp(cf(-1.2,1.5,0)*angles(math.rad(153.6),math.rad(-2.9),math.rad(31)),Alpha)
- RW.C0 = RW.C0:lerp(cf(1,1.4,-0.2)*angles(math.rad(176),math.rad(3.2),math.rad(-33.3)),Alpha)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.3,0.4)*angles(math.rad(-32),math.rad(0),math.rad(0))*necko,Alpha)
- end
- local hitb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.Random())
- hitb.Anchored = true
- hitb.CFrame = root.CFrame + root.CFrame.lookVector*4
- MagniDamage1234(hitb, 50, 50,50, 0, "Normal",153092213)
- shakes(0.1,0.1)
- hitb:Destroy()
- sphere2(1,"Add",tors.CFrame,vt(0,0,0),1,1,1,ModeColor2)
- sphere2(1,"Add",tors.CFrame,vt(0,0,0),2,2,2,ModeColor)
- sphere2(1,"Add",tors.CFrame,vt(0,0,0),2.5,2.5,2.5,ModeColor2)
- sphere2(1,"Add",root.CFrame,vt(0,0,0),3,3,3,ModeColor)
- sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,ModeColor2)
- sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,ModeColor2)
- CFuncs["Sound"].Create("rbxassetid://763718160", char, 1.5, 0.5)
- CFuncs["Sound"].Create("rbxassetid://763718160", char, 1.5, 0.25)
- CFuncs["Sound"].Create("rbxassetid://782353443", char, 4, 1)
- CFuncs["Sound"].Create("rbxassetid://782353443", char, 4, 0.75)
- for i = 0, 10, 0.1 do
- swait()
- local Alpha = .3
- sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.005,-0.005,ModeColor,Color3.new(0,1,0))
- sphere2(8,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.005,-0.005,ModeColor2,Color3.new(0,1,0))
- RootJoint.C0 = RootJoint.C0:lerp(cf(0,-1,-1.2)*angles(math.rad(-37),math.rad(0),math.rad(0))*RootCF,Alpha)
- LH.C0 = LH.C0:lerp(cf(-1,-1,-0.1)*angles(math.rad(-32.9),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
- RH.C0 = RH.C0:lerp(cf(1,0.2,-0.3)*angles(math.rad(39.2),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
- LW.C0 = LW.C0:lerp(cf(-1.4,0.4,-0.8)*angles(math.rad(37.4),math.rad(-4.2),math.rad(-9.8)),Alpha)
- RW.C0 = RW.C0:lerp(cf(1.6,0.4,-0.7)*angles(math.rad(27.1),math.rad(-9.9),math.rad(24)),Alpha)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0.2,0.2)*angles(math.rad(-21.3),math.rad(0),math.rad(0))*necko,Alpha)
- end
- hum.WalkSpeed = storehumanoidWS
- attack = false
- end
- function YouFightLikeAPRFan() --HAH
- hum.WalkSpeed = 0
- attack = true
- local voice = Instance.new("Sound",tors)
- voice.SoundId = "rbxassetid://2852509470"
- voice.Volume = 10
- voice:Play()
- --2852509470
- bosschatfunc("You fight like a [REDACTED] fan.",BrickColor.new("Navy blue").Color,4)
- for i = 0,15,0.1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(22 + 2 * math.cos(sine / 56))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 10) - math.random(-2,2)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-22 - 2 * math.cos(sine / 56) - math.random(-5,5))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.03)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(157 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.3)
- end
- bosschatfunc("What are you,",BrickColor.new("Navy blue").Color,4)
- for i = 0,5,0.1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10 + 2 * math.cos(sine / 56))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 10) - math.random(-2,2)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(5 - 10 * math.cos(sine / 5) - math.random(-5,5))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.03)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(-22 - 2 * math.cos(sine / 45))),.3)
- end
- Neutral()
- bosschatfunc("Stupid?",BrickColor.new("Navy blue").Color,4)
- ORVOL = 0
- for i = 0,8,0.1 do
- swait()
- local Alpha = 0.1
- RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*RootCF,Alpha)
- LH.C0 = LH.C0:lerp(cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
- RH.C0 = RH.C0:lerp(cf(1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 10) - math.random(-2,2)),math.rad(30 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(0 - 2 * math.cos(sine / 56) - math.random(-5,5))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 + 0 * math.cos(sine / 43)),math.rad(0 - 0 * math.cos(sine / 52)),math.rad(0 + 9 * math.cos(sine / 45))),.03)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0 * math.cos(sine / 51)),math.rad(0 - 0 * math.cos(sine / 64)),math.rad(0 - 2 * math.cos(sine / 45))),.3)
- end
- ORVOL = 1.25
- newTheme("rbxassetid://511836626",0,1.1,1.25)
- Upset()
- hum.WalkSpeed = storehumanoidWS
- attack = false
- end
- CORRUPTCHAOS = false
- transp=0
- e=Instance.new("Folder",char)
- e.Name = "Effects"
- function EffectBoi(par,color,CF,x,y,z,x1,y1,z1,de,mtyp,typ,rad,id,min,max,qu)
- local ex=Create("Part"){
- Size=Vector3.new(.2,.2,.2),
- CanCollide=false,
- Material="Neon",
- Anchored=true,
- Parent=par,
- Transparency=transp}
- NoOutline(ex)
- ex.CFrame=CF
- local exe=Create("SpecialMesh"){
- Scale=Vector3.new(x,y,z),
- MeshType=mtyp,
- Parent=ex}
- if mtyp=="FileMesh"and id~=""then
- exe.MeshId="rbxassetid://"..id
- end
- if color == "Rainbow" then
- ex.Color = Color3.new(r/255,g/255,b/255)
- else
- ex.BrickColor=BrickColor.new(color)
- end
- game:GetService("Debris"):AddItem(ex,10)
- local ez=ex.CFrame
- local nu=0
- local no=math.random()-math.random()
- coroutine.resume(coroutine.create(function()
- for i=transp,1.01,de do
- swait()
- if typ~=5 then
- ex.Transparency=i
- end
- exe.Scale=exe.Scale+Vector3.new(x1,y1,z1)
- if typ==1 then
- ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
- elseif typ==2 then
- ex.CFrame=ex.CFrame*CFrame.Angles(0,math.rad(rad),0)
- elseif typ==3 then
- ex.CFrame=ex.CFrame*CFrame.new(0,0,rad)
- elseif typ==4 then
- nu=nu+no
- ez=ez*CFrame.new(0,math.random(min,max)/qu,0)
- ex.CFrame=ez*CFrame.Angles(nu,0,0)
- --ex.CFrame=ex.CFrame
- elseif typ==7 then
- ex.CFrame=ez*CFrame.new(0,0,rad*i)
- ex.CFrame=ex.CFrame*CFrame.Angles(math.random(-360,360),math.random(-360,360),math.random(-360,360))
- end
- end
- ex:Remove()
- end))
- return ex
- end
- function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay)
- local bgui,imgc = createBGCircle(size,guipar,color)
- bgui.AlwaysOnTop = true
- imgc.Image = "rbxassetid://" ..img
- local rrot = math.random(1,2)
- CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
- coroutine.resume(coroutine.create(function()
- for i = 0, 24*delay do
- swait()
- if rotationenabled == true then
- if rrot == 1 then
- imgc.Rotation = imgc.Rotation + rotsp
- elseif rrot == 2 then
- imgc.Rotation = imgc.Rotation - rotsp
- end
- end
- bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0)
- imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay
- end
- bgui:Destroy()
- end))
- end
- local glitchMeshes = {}
- function genGlitches()
- clearGlitches()
- for _,v in next, char:children() do
- if(v:IsA'Part' and v.Name~='Ring')then
- local mesh = v:FindFirstChildOfClass'SpecialMesh'
- if(mesh)then
- mesh.Parent=nil
- local glitched = mesh:Clone()
- glitched.Parent=v
- table.insert(glitchMeshes,{Part=v,Original=mesh,New=glitched;})
- else
- table.insert(glitchMeshes,{Part=v,New=Instance.new("BlockMesh",v);})
- end
- elseif(v:IsA'Accessory' and v:FindFirstChild'Handle')then
- local mesh = v.Handle:FindFirstChildOfClass'SpecialMesh'
- if(mesh)then
- mesh.Parent=nil
- local glitched = mesh:Clone()
- glitched.Parent=v.Handle
- table.insert(glitchMeshes,{Part=v.Handle,Original=mesh,New=glitched;})
- else
- table.insert(glitchMeshes,{Part=v.Handle,New=Instance.new("BlockMesh",v.Handle);})
- end
- end
- end
- end
- function clearGlitches()
- for _,v in next, glitchMeshes do
- if(v.Original)then
- v.Original.Parent=v.Part
- end
- v.New:destroy()
- end
- glitchMeshes={}
- end
- function causeGlitch(intensity)
- local intensity = intensity or 1
- for _,v in next, glitchMeshes do
- v.New.Offset=Vector3.new((math.random(-1,1)/10)*intensity,(math.random(-1,1)/10)*intensity,(math.random(-1,1)/10)*intensity)
- end
- end
- local Glitching=false
- local lastGlitch=tick()
- local static = Instance.new("Sound")
- static.Volume=1
- static.SoundId='rbxassetid://1588058260'
- coroutine.wrap(function()
- while true do
- swait()
- if(ModeOfGlitch == "Corrupt" or ModeOfGlitch == "CHAOS")then
- if(tick()-lastGlitch>=(math.random()*2) and math.random(0,30)==1 and not Glitching)then
- genGlitches()
- Glitching=true
- static.Parent=tors
- wait()
- static:Play()
- local start=tick()
- repeat swait()
- causeGlitch((ModeOfGlitch == "CHAOS" and 4))
- until tick()-start>=(math.random()*2)+0.1
- lastGlitch=tick()
- Glitching=false
- clearGlitches()
- static:Stop()
- static.Parent=nil
- end
- end
- end
- end)()
- function ExtinctiveHeartbreak()
- local targetted = nil
- if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- targetted = mouse.Target.Parent
- end
- if targetted ~= nil then
- attack = true
- CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
- for i = 0, 9 do
- sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
- end
- for i = 0, 24 do
- PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
- end
- sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
- local originalpos = root.CFrame
- RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
- for i = 0, 9 do
- sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
- end
- for i = 0, 24 do
- PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
- end
- hum.WalkSpeed = 0
- sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
- local radm = math.random(1,3)
- if radm == 1 then
- bosschatfunc("YOU WONT BE NECCESSARY.",ModeColor.Color,2)
- elseif radm == 2 then
- bosschatfunc("YOUR EXISTANCE WILL BE GONE.",ModeColor.Color,2)
- elseif radm == 3 then
- bosschatfunc("DIE!",ModeColor.Color,2)
- end
- for i = 0,2,0.1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
- end
- CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
- CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
- for i = 0,2,0.1 do
- swait()
- coroutine.resume(coroutine.create(function()
- targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
- for i,v in pairs(targetted:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") then
- v.Velocity = vt(0,0,0)
- end
- end
- end))
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
- end
- shakes(1.25,1.5)
- CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
- CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
- for i = 0, 1 do
- CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
- end
- CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
- --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
- for i = 0,4,0.1 do
- swait()
- coroutine.resume(coroutine.create(function()
- local dis = CreateParta(char,1,1,"Neon",ModeColor)
- dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- local at1 = Instance.new("Attachment",dis)
- at1.Position = vt(-25000,0,0)
- local at2 = Instance.new("Attachment",dis)
- at2.Position = vt(25000,0,0)
- local trl = Instance.new('Trail',dis)
- trl.Attachment0 = at1
- trl.FaceCamera = true
- trl.Attachment1 = at2
- trl.Texture = "rbxassetid://1049219073"
- trl.LightEmission = 1
- trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- trl.Color = ColorSequence.new(Color3.new(1,0,0))
- trl.Lifetime = 5
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
- bv.Parent = dis
- game:GetService("Debris"):AddItem(dis, 5)
- targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0)
- CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
- CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
- CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
- CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
- CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
- sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,ModeColor)
- targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
- for i = 0, 2 do
- slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("KING CRIMSON DAVID!"))
- end
- symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25)
- for i,v in pairs(targetted:GetChildren()) do
- if v:IsA("BasePart") or v:IsA("MeshPart") then
- v.Velocity = vt(0,0,0)
- end
- end
- end))
- hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8)
- end
- hum.CameraOffset = vt(0,0,0)
- for i = 0, 49 do
- local dis = CreateParta(char,1,1,"Neon",ModeColor)
- dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- local at1 = Instance.new("Attachment",dis)
- at1.Position = vt(-50000,0,0)
- local at2 = Instance.new("Attachment",dis)
- at2.Position = vt(50000,0,0)
- local trl = Instance.new('Trail',dis)
- trl.Attachment0 = at1
- trl.FaceCamera = true
- trl.Attachment1 = at2
- trl.Texture = "rbxassetid://1049219073"
- trl.LightEmission = 1
- trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
- trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1))
- trl.Lifetime = 5
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = dis.CFrame.lookVector*math.random(500,2500)
- bv.Parent = dis
- game:GetService("Debris"):AddItem(dis, 5)
- end
- for i = 0, 49 do
- sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,ModeColor)
- slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red"))
- end
- CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
- for i = 0, 1 do
- CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
- CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
- end
- for i = 0, 4 do
- CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
- end
- symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1)
- symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2)
- symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4)
- dmg(targetted)
- CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
- for i = 0, 9 do
- sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
- end
- for i = 0, 24 do
- PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
- end
- sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
- root.CFrame = originalpos
- for i = 0, 9 do
- sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
- end
- for i = 0, 24 do
- PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
- end
- sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
- attack = false
- hum.WalkSpeed = storehumanoidWS
- end
- end
- function warnedyo(text,represfont,color,color2)
- if disably ~= true then
- CFuncs["Sound"].Create("rbxassetid://534859368", char, 2.5,1)
- CFuncs["Sound"].Create("rbxassetid://963718869", char, 1,1)
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- coroutine.resume(coroutine.create(function()
- if v.PlayerGui:FindFirstChild("Spinny")~= nil then
- v.PlayerGui:FindFirstChild("Spinny"):destroy()
- end
- local scrg = Instance.new("ScreenGui",v.PlayerGui)
- scrg.Name = "Spinny"
- local frm = Instance.new("TextLabel",scrg)
- frm.BackgroundTransparency = 0.75
- frm.BackgroundColor3 = color2
- frm.BorderSizePixel = 0
- frm.Rotation = 0
- frm.Size = UDim2.new(4,0,0,75)
- frm.Position = UDim2.new(-4,0,0,0)
- frm.Text = text
- frm.Font = represfont
- frm.TextColor3 = color
- frm.TextStrokeColor3 = color
- frm.TextScaled = true
- local frm2 = frm:Clone()
- frm2.Parent = scrg
- frm2.BackgroundColor3 = color2
- frm2.Position = UDim2.new(-4.05,0,22222222,0)
- local txtlb2 = Instance.new("TextLabel",imlb)
- txtlb2.Text = text
- txtlb2.Font = represfont
- txtlb2.TextColor3 = color
- txtlb2.TextStrokeTransparency = 0
- txtlb2.BackgroundTransparency = 1
- txtlb2.TextStrokeColor3 = color2
- txtlb2.TextScaled = true
- txtlb2.Size = UDim2.new(1,0,1,0)
- txtlb2.Position = UDim2.new(0,0,0,0)
- local fvalen = 0.55
- local fval = -0.49
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if chaosmode == true then
- txtlb2.TextStrokeColor3 = BrickColor.random().Color
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if scrg.Parent ~= nil then
- fvalen = fvalen - 0.0001
- elseif scrg.Parent == nil then
- break
- end
- end
- end))
- local flol = -5
- local flil = 1.6
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait()
- flol = flol + 0.125
- flil = flil - 0.1
- frm.Size = frm.Size + UDim2.new(0.1,0,0,0)
- frm.Rotation = frm.Rotation - 0
- frm2.Size = frm2.Size + UDim2.new(0.1,0,0,0)
- frm2.Rotation = frm.Rotation + 0.325
- txtlb2.Rotation = txtlb2.Rotation - 5.125
- end
- for i = 0, 99 do
- swait()
- fval = fval + 0.05
- flol = flol + 0.005
- frm.Size = frm.Size + UDim2.new(0.005,0,0,0)
- frm.Rotation = frm.Rotation - 0
- frm2.Size = frm2.Size + UDim2.new(0.005,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.125
- txtlb2.Rotation = txtlb2.Rotation - 1.125
- end
- local valinc = 0
- local vinc2 = 1
- for i = 0, 99 do
- swait()
- vinc2 = vinc2 + 0.25
- valinc = valinc + 0.0001
- flol = flol + valinc
- flil = flil + valinc
- txtlb2.Rotation = txtlb2.Rotation - 1.125*vinc2
- frm.Size = frm.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm.Rotation = frm.Rotation + 0*vinc2
- frm2.Size = frm2.Size + UDim2.new(0.005*vinc2,0,0,0)
- frm2.Rotation = frm2.Rotation + 0.225*vinc2
- frm2.BackgroundTransparency = frm2.BackgroundTransparency + 0.0075
- frm.BackgroundTransparency = frm.BackgroundTransparency + 0.0075
- txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01
- txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01
- end
- scrg:Destroy()
- end))
- end))
- end
- end
- end
- function MagniDamage1234(Part, magni, mindam, maxdam, knock, Type)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Head")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if magni >= mag and c.Name ~= Player.Name then
- Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
- end
- end
- end
- end
- end
- function CastRay(startPos,endPos,range,ignoreList)
- local ray = Ray.new(startPos,(endPos-startPos).unit*range)
- local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {char},false,true)
- return part,pos,norm,(pos and (startPos-pos).magnitude)
- end
- function Part(parent,color,material,size,cframe,anchored,cancollide)
- local part = Instance.new("Part")
- part.Parent = parent or char
- part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0)
- part.Material = material or Enum.Material.SmoothPlastic
- part.TopSurface,part.BottomSurface=10,10
- part.Size = size or Vector3.new(1,1,1)
- part.CFrame = cframe or cf(0,0,0)
- part.CanCollide = cancollide or false
- part.Anchored = anchored or false
- return part
- end
- local fromaxisangle = function(x, y, z) -- credit to phantom forces devs
- if not y then
- x, y, z = x.x, x.y, x.z
- end
- local m = (x * x + y * y + z * z) ^ 0.5
- if m > 1.0E-5 then
- local si = math.sin(m / 2) / m
- return CFrame.new(0, 0, 0, si * x, si * y, si * z, math.cos(m / 2))
- else
- return CFrame.new()
- end
- end
- function fakePhysics(elapsed,cframe,velocity,rotation,acceleration)
- local pos = cframe.p
- local matrix = cframe-pos
- return fromaxisangle(elapsed*rotation)*matrix+pos+elapsed*velocity+elapsed*elapsed*acceleration
- end
- function Projectile(data)
- local Size = data.Size or 1;
- local Origin = data.Origin or Torso.CFrame;
- local Velocity = data.Velocity or Vector3.new(0,100,0);
- local Gravity = data.Gravity or workspace.Gravity;
- local Color = data.Color or Color3.new(.7,0,0);
- local Lifetime = data.Lifetime or 1;
- local Material = data.Material or Enum.Material.Glass;
- local Ignore = data.Ignorelist or {char};
- local MeshData = data.Mesh or {};
- local HitFunc = data.Hit;
- local ShouldCollide = data.CheckCollision;
- local Update = data.Update;
- local Initialize = data.Initialize;
- local drop = Part(char,Color,Material,typeof(Size)=='number' and Vector3.new(Size,Size,Size) or typeof(Size)=='Vector3' and Size or Vector3.new(1,1,1),Origin,true,false)
- local dropM = Mesh(drop,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset)
- if(Initialize)then
- Initialize(drop,dropM)
- end
- local startTick = tick();
- coroutine.wrap(function()
- while true do
- local elapsed = tick()-startTick
- if(elapsed>Lifetime)then
- drop:destroy();
- break
- end
- local newCF = fakePhysics(elapsed,Origin,Velocity,Vector3.new(),Vector3.new(0,-Gravity,0))
- local dist = (drop.Position-newCF.p).magnitude
- local hit,pos,norm = CastRay(drop.Position,newCF.p,dist,Ignore)
- if(hit and (not ShouldCollide or ShouldCollide(hit)))then
- drop:destroy()
- if(HitFunc)then HitFunc(hit,pos,norm,data) end
- break
- else
- if(hit)then table.insert(Ignore,hit) end
- drop.CFrame = newCF
- end
- if(Update)then
- Update(drop)
- end
- swait()
- end
- end)()
- end
- function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon)
- local orb = Instance.new("Part", char)
- orb.Anchored = true
- orb.BrickColor = color
- orb.CanCollide = false
- orb.FormFactor = 3
- orb.Name = "Ring"
- orb.Material = "Neon"
- orb.Size = Vector3.new(1, 1, 1)
- orb.Transparency = 0
- orb.TopSurface = 0
- orb.BottomSurface = 0
- local orbm = Instance.new("SpecialMesh", orb)
- orbm.MeshType = "Sphere"
- orb.CFrame = positted
- orbm.Name = "SizeMesh"
- orbm.Scale = vt(1, 1, 1)
- CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
- sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor)
- coroutine.resume(coroutine.create(function()
- wait(timer)
- orb.Transparency = 1
- MagniDamage1234(orb, 3.5 * MagniBoost, min, max, 0, "Normal")
- sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor)
- CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
- wait(3)
- orb:Destroy()
- end))
- end
- ModeColor = ModeColor
- function CorruptionEvent2()
- attack = true
- local ModeColor = ModeColor
- bosschatfunc("Corruption",BrickColor.new("Royal purple").Color,7)
- hum.WalkSpeed = 0
- CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
- CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
- local keptcolor = ModeColor
- for i = 0,4,0.1 do
- swait()
- block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,ModeColor,ModeColor.Color)
- RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1)
- LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1)
- end
- symbolizeBlink(root,0,2109052855,ModeColor.Color,25,0,0,0,root,false,0,1)
- symbolizeBlink(root,0,2109052855,ModeColor.Color,25,0,0,0,root,false,0,1.5)
- symbolizeBlink(root,0,2109052855,ModeColor.Color,25,0,0,0,root,false,0,3)
- CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
- CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
- CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
- CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
- CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
- coroutine.resume(coroutine.create(function()
- local eff = Instance.new("ParticleEmitter",cen)
- eff.Texture = "rbxassetid://2344870656"
- eff.LightEmission = 1
- eff.Color = ColorSequence.new(keptcolor.Color)
- eff.Rate = 10000000
- eff.Enabled = true
- eff.EmissionDirection = "Front"
- eff.Lifetime = NumberRange.new(2)
- eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,120,0),NumberSequenceKeypoint.new(0.1,40,0),NumberSequenceKeypoint.new(0.8,80,0),NumberSequenceKeypoint.new(1,140,0)})
- eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.8,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
- eff.Speed = NumberRange.new(500)
- eff.Drag = 5
- eff.Rotation = NumberRange.new(-500,500)
- eff.SpreadAngle = Vector2.new(0,900)
- eff.RotSpeed = NumberRange.new(-500,500)
- wait(0.2)
- eff.Enabled = false
- wait(5)
- eff:Destroy()
- end))
- bosschatfunc("Event!",BrickColor.new("Royal purple").Color,7)
- sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,ModeColor,ModeColor.Color)
- sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,ModeColor,ModeColor.Color)
- for i = 0, 24 do
- slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
- end
- local rrot = 0
- coroutine.resume(coroutine.create(function()
- local rot = 0
- local randomrotations = math.random(1, 2)
- local lookv = 2.5
- local power = 5
- sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
- sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
- for i = 0, 9 do
- sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
- end
- CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
- CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
- CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
- CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
- CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
- local out = 5
- coroutine.wrap(function()
- for rad = 0, 180,5 do
- if(rad>90)then
- out=out-5
- else
- out=out+5
- end
- local start=root.CFrame
- orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(0,-2,out), 3, BrickColor.new("Really black"), power, 25, 75, 10, power / 5, 7.5)
- orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(0,-2,-out), 3, BrickColor.new("Really black"), power, 25, 75, 10, power / 5, 7.5)
- orb_spawn_norm(start*angles(0,math.rad(rad),0)*cf(out,-2,0), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
- orb_spawn_norm(root.CFrame*angles(0,math.rad(rad),0)*cf(-out,-2,0), 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
- swait()
- end
- end)()
- end))
- for i = 0,2,0.1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8)
- RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8)
- LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8)
- end
- attack = false
- hum.WalkSpeed = storehumanoidWS
- end
- local p1mit = Instance.new("ParticleEmitter")
- p1mit.Texture = "rbxasset://textures/particles/fire_main.dds"
- p1mit.LightEmission = 1
- p1mit.Color = ColorSequence.new(Color3.new(0,0,1))
- p1mit.Size = NumberSequence.new(1,0)
- p1mit.Lifetime = NumberRange.new(2)
- p1mit.Rate = 1000
- p1mit.Rotation = NumberRange.new(0,359)
- p1mit.Speed = NumberRange.new(0)
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if ModeOfGlitch == "Dreamess of David." then
- sphere2(3,"Add",root.CFrame*CFrame.new(0,-3,0),vt(3,0.55,3),0.025,-0.01,0.025,ModeColor)
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-2,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-30 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-2,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(30 * math.cos(sine / 10))),.1)
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if ModeOfGlitch == "KING CRIMSON DAVID!" then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if ModeOfGlitch == "DavidGrativol" then
- local lolwut = {"David...?","David...?","David...?","David...?","David...?","David...?","David...?","David...?","David...?","David...?"}
- local Sanicz = lolwut[math.random(1,#lolwut)]
- RecolorTextAndRename(Sanicz,BrickColor.new("Really black").Color,BrickColor.new("Really red").Color,"Arcade")
- ModeColor = BrickColor.new("Really red")
- ModeColor2 = BrickColor.new("Really blue")
- end
- end
- end))
- function owo()
- local targetted = nil
- if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- targetted = mouse.Target.Parent
- end
- if targetted ~= nil then
- RootPart.CFrame = FaceMouse()[1]
- attack = true
- hum.WalkSpeed = 0
- for x = 0, 1 do
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(90)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(180)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(270)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- for i = 0,1,0.5 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.3)
- end
- end
- coroutine.resume(coroutine.create(function()
- CFuncs["Sound"].Create("rbxassetid://884155627", targetted.Head, 1,1)
- CFuncs["Sound"].Create("rbxassetid://153092213", targetted.Head, 2.5,1)
- end))
- local A1 = Instance.new("Attachment",targetted.Head)
- local A2 = Instance.new("Attachment",sorb)
- local Beem = Instance.new("Beam",tors)
- Beem.Attachment0 = A1
- Beem.Attachment1 = A2
- Beem.Texture = "rbxassetid://897585362"
- Beem.LightEmission = 0.75
- Beem.FaceCamera = true
- Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
- Beem.Width0 = 1
- Beem.Width1 = 1
- Beem.TextureMode = "Wrap"
- Beem.TextureLength = 1
- Beem.Color = ColorSequence.new(ModeColor.Color)
- sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.15,0.15,0.15,ModeColor)
- sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),0.2,0.2,0.2,ModeColor)
- for x = 0, 24 do
- local rsiz = math.random(5,15)
- sphereMK(math.random(1,5),0.25,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,ModeColor,0)
- end
- CFuncs["EchoSound"].Create("rbxassetid://1448032965", char, 7, 1,0,10,0.15,0.5,1)
- CFuncs["EchoSound"].Create("rbxassetid://1448032965", root, 60, 1,0,10,0.15,0.5,1)
- local radm = math.random(1,3)
- if radm == 1 then
- bosschatfunc("GOTCHA!!",ModeColor.Color,1)
- elseif radm == 2 then
- bosschatfunc("COM'ERE!!",ModeColor.Color,1)
- elseif radm == 3 then
- bosschatfunc("UwU",ModeColor.Color,1)
- end
- for i = 0,3,0.1 do
- swait()
- coroutine.resume(coroutine.create(function()
- local rsiz = math.random(5,15)
- sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,ModeColor,0)
- end))
- sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,ModeColor)
- RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(50)),.6)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(-50)),.6)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(50)),.6)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.6)
- end
- CFuncs["Sound"].Create("rbxassetid://231917750", sorb, 1.25,0.9)
- CFuncs["Sound"].Create("rbxassetid://1042716828", sorb, 1.5,1)
- local vel = Instance.new("BodyPosition", targetted.Head)
- vel.P = 12500
- vel.D = 1000
- vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
- vel.position = hed.CFrame.p + root.CFrame.lookVector*2.75
- for i = 0,4,0.1 do
- swait()
- coroutine.resume(coroutine.create(function()
- local rsiz = math.random(5,15)
- sphereMK(math.random(1,5),0.01,"Add",targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,ModeColor,0)
- end))
- sphere2(8,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),0.01,0.01,0.01,ModeColor)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(6),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*cf(0,0,0)*angles(math.rad(10),math.rad(15),math.rad(40)),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 30),0)*angles(math.rad(90),math.rad(0),math.rad(-50)),.2)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40),math.rad(0),math.rad(100)),.2)
- end
- local visibility = 0
- coroutine.resume(coroutine.create(function()
- for i = 0, 49 do
- swait()
- visibility = visibility + 0.02
- Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, visibility),NumberSequenceKeypoint.new(1, visibility)})
- end
- Beem:Destroy()
- A1:Destroy()
- A2:Destroy()
- end))
- game:GetService("Debris"):AddItem(vel,0.75)
- attack = false
- hum.WalkSpeed = storehumanoidWS
- end
- end
- Distorted = false
- -------------------------------------
- Humanoid.Animator.Parent = nil
- -------------------------------------
- bosschatfunc(EDIT_LOGS_AND_SHIT,BrickColor.new("Really blue").Color,50)
- --[[
- local fastcast=require(script.FastCast)
- local bloodPuddle = script:WaitForChild'BloodPuddle'
- bloodPuddle.Parent=nil
- local BloodPuddles = {}
- function newBloodCaster(ignores)
- local bloodCaster = fastcast.new()
- bloodCaster.Gravity =workspace.Gravity
- bloodCaster.ExtraForce = Vector3.new(0,0,0)
- bloodCaster.IgnoreDescendantsInstance = (ignores or char)
- bloodCaster.LengthChanged:Connect(function(origin,sorigin,sdir,len,bloodDrop)
- bloodDrop.Size = Vector3.new(.2,.2,len)
- bloodDrop.CFrame = CFrame.new(sorigin,sorigin+sdir) * CFrame.new(0, 0, -len/2)
- end)
- bloodCaster.RayHit:Connect(function(hit,pos,norm,mat,bloodDrop)
- if hit then
- if(BloodPuddles[hit])then
- local cyl = hit:FindFirstChild'CylinderMesh'
- if(cyl)then
- BloodPuddles[hit] = 0
- cyl.Scale = cyl.Scale + Vector3.new(bloodDrop.Size.x*2,0,bloodDrop.Size.z*2)
- hit.Transparency = 0
- end
- else
- local part = bloodPuddle:Clone();
- part.Parent = workspace
- part.CFrame = CFrame.new(pos,pos+norm)*CFrame.Angles(math.rad(90),0,0)
- part.Size = Vector3.new(bloodDrop.Size.x*2,.1,bloodDrop.Size.z*2)
- BloodPuddles[part]=0
- end
- end
- bloodDrop:destroy()
- end)
- return bloodCaster;
- end
- function bloodDrop(origin,dir,speed,ignores)
- local bloodCaster=newBloodCaster()
- local origin = origin or root.CFrame.p;
- local dir = dir or root.CFrame.lookVector
- local speed = speed or 150;
- local drop = Instance.new("Part")
- drop.Color = bloodPuddle.Color;
- drop.Anchored = true
- drop.CanCollide = false
- drop.Locked = true
- drop.Material = bloodPuddle.Material
- drop.Size = Vector3.new(.2,.2,.2)
- drop.CFrame = CFrame.new(origin, origin+dir)
- drop.Parent = workspace
- drop.Name = 'Drop'
- bloodCaster:Fire(origin,dir*800,speed,drop)
- end
- for i,v in next, BloodPuddles do
- local mesh = i:FindFirstChild'CylinderMesh'
- BloodPuddles[i] = v + 1
- if(not mesh or i.Transparency >= 1)then
- print(mesh,i.Transparency)
- i:destroy()
- BloodPuddles[i] = nil
- elseif(v >= Frame_Speed*4)then
- local trans = (v-Frame_Speed*4)/(Frame_Speed*2)
- i.Transparency = trans
- if(mesh.Scale.Z > 0)then
- mesh.Scale = mesh.Scale-Vector3.new(.05,0,.05)
- end
- else
- i.Transparency = 0
- end
- end]]
- --------------------------
- --------------------------
- print(mouse,mouse.Button1Down)
- local attacktype = 1
- mouse.Button1Down:connect(function()
- if attack == false and attacktype == 1 then
- attacktype = 2
- attackone()
- elseif attack == false and attacktype == 2 then
- attacktype = 3
- attacktwo()
- elseif attack == false and attacktype == 3 then
- attacktype = 4
- attackthree()
- elseif attack == false and attacktype == 4 then
- attacktype = 1
- attackfour()
- end
- end)
- Shadow = false
- newTheme("rbxassetid://511836626",0,1.1,1.25)
- mouse.KeyDown:connect(function(k)
- if k == "l" and mutedtog == false then
- mutedtog = true
- kan.Volume = 0.05
- elseif k == "l" and mutedtog == true then
- mutedtog = false
- kan.Volume = 1.25
- end
- if k == "q" and attack == false and ModeOfGlitch ~= "DavidGrativol" then
- ModeOfGlitch = "DavidGrativol"
- Upset()
- storehumanoidWS = 20
- hum.WalkSpeed = 20
- RecolorTextAndRename("DavidGrativol...?",BrickColor.new("Really red").Color,BrickColor.new("Really black").Color,"Antique")
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- newTheme("rbxassetid://511836626",0,1.1,1.25)
- ModeColor = BrickColor.new("Really blue")
- ModeColor2 = BrickColor.new("Really red")
- disably = false
- warnedyo("YOU MONSTER... G-GR....","Arcade",Color3.new(0.25,0,0),Color3.new(1,0,0))
- elseif k == "e" and attack == false and ModeOfGlitch ~= "Ocean David." then
- ModeOfGlitch = "Ocean David."
- Happy()
- storehumanoidWS = 20
- hum.WalkSpeed = 20
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ModeColor = BrickColor.new("Toothpaste")
- ModeColor2 = BrickColor.new("Toothpaste")
- ENRAGE = false
- Global = false
- Shadow = false
- CORRUPTCHAOS = false
- newTheme("rbxassetid://2914547104",0,1.1,1.25)
- RecolorTextAndRename("Ocean David.",BrickColor.new("Toothpaste").Color,BrickColor.new("Deep blue").Color,"Code")
- elseif k == "r" and attack == false and ModeOfGlitch ~= "Corrupt" then
- ModeOfGlitch = "Corrupt"
- Happy()
- storehumanoidWS = 20
- hum.WalkSpeed = 20
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Really black")
- ModeColor2 = BrickColor.new("Royal purple")
- newTheme("rbxassetid://544291208",58.15,0.98,1.25)
- RecolorTextAndRename("CORRUPTED DAVID...",BrickColor.new("Really black").Color,BrickColor.new("Royal purple").Color,"SciFi")
- elseif k == "t" and attack == false and ModeOfGlitch ~= "CHAOS" then
- ModeOfGlitch = "C H A O S | D A V I D"
- Upset()
- storehumanoidWS = 20
- hum.WalkSpeed = 20
- chaosmode = true
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Black")
- ModeColor2 = BrickColor.new("Black")
- newTheme("rbxassetid://623662713",0,1.02,1.25)
- RecolorTextAndRename("CHAOS",BrickColor.random().Color,BrickColor.random().Color,"Code")
- bosschatfunc("CHAOS",Color3.new(1,1,1),7)
- elseif k == "y" and attack == false and ModeOfGlitch ~= "DIVINITY" then
- ModeOfGlitch = "DIVINITY"
- Happy()
- storehumanoidWS = 20
- hum.WalkSpeed = 20
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = false
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("White")
- ModeColor2 = BrickColor.new("Bright yellow")
- newTheme("rbxassetid://862258091",0,1.02,1.25)
- RecolorTextAndRename("Angelic David.",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
- elseif k == "u" and attack == false and ModeOfGlitch ~= "Flying To Skys!" then
- ModeOfGlitch = "Flying To Skys!"
- Happy()
- storehumanoidWS = 100
- hum.WalkSpeed = 100
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = false
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Deep blue")
- ModeColor2 = BrickColor.new("Deep blue")
- newTheme("rbxassetid://186267011",0,1.02,1.25)
- RecolorTextAndRename("Flying David!",BrickColor.new("Deep blue").Color,BrickColor.new("Really blue").Color,"Arcade")
- TheoriesMSGfunc("Flying David!",modet.TextColor3,modet.TextStrokeColor3)
- end
- if k == "n" and attack == false and ModeOfGlitch == "Corrupt" and ModeOfGlitch ~= "D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴" then
- ModeOfGlitch = "D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴"
- Upset()
- storehumanoidWS = 16
- hum.WalkSpeed = 16
- chaosmode = false
- rainbowmode = false
- Distorted = true
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Really red")
- ModeColor2 = BrickColor.new("Really blue")
- newTheme("rbxassetid://1751171913",0,1,1.25)
- RecolorTextAndRename("D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴",BrickColor.new("Really red").Color,BrickColor.new("Really blue").Color,"Arcade")
- end
- if k == "m" and attack == false and ModeOfGlitch == "Corrupt" and ModeOfGlitch ~= "KING CRIMSON DAVID!" then
- ModeOfGlitch = "KING CRIMSON DAVID!"
- Happy()
- storehumanoidWS = 12
- hum.WalkSpeed = 12
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("KING CRIMSON DAVID!")
- ModeColor2 = BrickColor.new("KING CRIMSON DAVID!")
- newTheme("rbxassetid://338871337",0,1.01,1.5)
- RecolorTextAndRename("KING CRIMSON DAVID!",BrickColor.new("KING CRIMSON DAVID!").Color,Color3.new(0.7,0,0),"Antique")
- end
- if k == "n" and attack == false and ModeOfGlitch == "DavidGrativol" and ModeOfGlitch ~= "STRONGER DAVID!" then
- ModeOfGlitch = "STRONGER DAVID!"
- Happy()
- storehumanoidWS = 12
- hum.WalkSpeed = 12
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Really red")
- ModeColor2 = BrickColor.new("Really red")
- newTheme("rbxassetid://495971354",48.6,1,1.25)
- RecolorTextAndRename("STRONGER DAVID!",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
- end
- if k == "n" and attack == false and ModeOfGlitch == "Ocean David." and ModeOfGlitch ~= "Dreamess of David." then
- ModeOfGlitch = "Dreamess of David."
- Happy()
- storehumanoidWS = 50
- hum.WalkSpeed = 50
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Hot pink")
- ModeColor2 = BrickColor.new("Really black")
- newTheme("rbxassetid://2483763576",0,1.01,1.25)
- RecolorTextAndRename("Dreamess of David.",Color3.new(0,0,0),BrickColor.new("Pink").Color,"Garamond")
- TheoriesMSGfunc("Dreamess of David.",modet.TextColor3,modet.TextStrokeColor3)
- end
- if k == "j" and attack == false and ModeOfGlitch ~= "RAINBOW" then
- ModeOfGlitch = "RAINBOW"
- Happy()
- storehumanoidWS = 100
- hum.WalkSpeed = 100
- chaosmode = false
- rainbowmode = true
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = false
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Really red")
- ModeColor2 = BrickColor.new("Really red")
- newTheme("rbxassetid://2988953773",0,1,1.15)
- RecolorTextAndRename("RAINBOW",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
- bosschatfunc("RAINBOW M- what.",Color3.new(0,255,0),20)
- end
- if k == "b" and attack == false and ModeOfGlitch == "DavidGrativol" and ModeOfGlitch ~= "Darkness will hunt you soul." then
- SSSOH()
- end
- ------Attacks!
- if k == "z" and attack == false and ModeOfGlitch == "DavidGrativol" then
- ExtinctiveHeartbreak()
- end
- if k == "z" and attack == false and ModeOfGlitch == "STRONGER DAVID!" then
- ExtinctiveHeartbreak()
- end
- if k == "x" and attack == false and ModeOfGlitch == "DavidGrativol" then
- EndGROUND()
- end
- if k == "x" and attack == false and ModeOfGlitch == "STRONGER DAVID!" then
- EndGROUND()
- end
- if k == "z" and attack == false and ModeOfGlitch == "Corrupt" then
- CorruptionEvent2()
- end
- if k == "0" and attack == false then
- die()
- end
- if k == "v" and attack == false and ModeOfGlitch == "RAINBOW" then
- killadudeDJFDFHUEUFBEUFB()
- end
- if k == "c" and attack == false and ModeOfGlitch == "RAINBOW" then
- owo()
- end
- end)
- ah = false
- --Upper-head Shadow by IgnorantRojo
- FHead = New("Part",char,"Upper Shadow",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
- Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- FHead.CanCollide = false
- FHead.Transparency = 1
- Shadow = true
- Humanoid.Name = "aaa"
- Humanoid.MaxHealth = 500
- Humanoid.Health = 300
- function SSSOH()
- attack=true
- newTheme("rbxassetid://723652641",0,1.02,0.85)
- kan.TimePosition = 0
- bosschatfunc("Grrrrr.",ModeColor.Color,5)
- for i = 0, 12, .1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
- RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
- LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
- end
- bosschatfunc("you wanted me to do this right?",ModeColor.Color,700)
- for i = 0, 14, .1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
- RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
- LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
- end
- bosschatfunc("well.",ModeColor.Color,700)
- for i = 0, 12, .1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
- RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
- LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
- end
- bosschatfunc("you wanted true power right?",ModeColor.Color,700)
- for i = 0, 14, .1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
- RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
- LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
- end
- bosschatfunc("it is your death.",ModeColor.Color,700)
- for i = 0, 12, .1 do
- swait()
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.4)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.4)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.4)
- RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.4)
- LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.4)
- end
- CFuncs["EchoSound"].Create("rbxassetid://1664711478", root, 1, 1,0,10,0.25,0.25,1)
- ModeColor = BrickColor.new("Black")
- sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,ModeColor)
- for i = 0, 49 do
- PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,ModeColor,0)
- end
- for i = 0, 24 do
- sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,ModeColor)
- slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White"))
- end
- for i = 0,3,0.1 do
- sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,ModeColor,0)
- end
- attack=false
- bosschatfunc("i tryed to warn you.",ModeColor.Color,7)
- ModeOfGlitch = "D A V I R K N E S S"
- Happy()
- storehumanoidWS = 16
- hum.WalkSpeed = 16
- chaosmode = false
- rainbowmode = false
- Distorted = false
- ENRAGE = false
- Global = false
- Shadow = true
- CORRUPTCHAOS = false
- ModeColor = BrickColor.new("Black")
- ModeColor2 = BrickColor.new("Really black")
- RecolorTextAndRename("D A V I R K N E S S",Color3.new(0,0,0),BrickColor.new(255,255,255).Color,"Antique")
- warnedpeople("D A V I R K N E S S.",modet.Font,modet.TextColor3,modet.TextStrokeColor3)
- CFuncs["EchoSound"].Create("rbxassetid://1664711478", root, 1, 1,0,10,0.25,0.25,1)
- end
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- if ModeOfGlitch == "Corrupt" then
- PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,BrickColor.new("Royal purple"),0)
- PixelBlockX(5,0.25,"Add",RightLeg.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.75,0.75,0.75,0.0075,BrickColor.new("Really black"),0)
- end
- end
- end))
- --------------------------------------
- --hacker stuff
- --------------------------------------
- Upset()
- idleanim=.4
- while true do
- Humanoid.JumpPower = 130
- if CORRUPTCHAOS == true then
- rdm = math.random(0,4)
- if rdm == 1 then
- Neutral()
- elseif rdm == 2 then
- Happy()
- elseif rdm == 3 then
- Upset()
- elseif rdm == 4 then
- CHAOS()
- elseif rdm == 0 then
- Determined()
- end
- else
- end
- if Shadow == true then
- FHead.Transparency = 0
- elseif Shadow == false then
- FHead.Transparency = 1
- end
- if Global == false then
- kan.Parent = tors
- kan.RollOffMode = "Inverse"
- kan.MaxDistance = 100000
- elseif Global == true then
- kan.Parent = char
- kan.RollOffMode = "LinearSquare"
- kan.MaxDistance = 100000
- end
- if mutedtog == false then
- kan.Volume = ORVOL
- elseif mutedtog == true then
- kan.Volume = 0
- end
- kan.Looped = true
- kan.Parent = tors
- kan:Resume()
- if chaosmode == false then
- modet.Position = UDim2.new(0,0,0,0)
- modet.Rotation = -5 * math.cos(sine / 32)
- techc.Rotation = techc.Rotation + 1
- circl.Rotation = circl.Rotation - GetClientProperty(kan,'PlaybackLoudness')/75 - 1
- imgl2.Rotation = imgl2.Rotation - GetClientProperty(kan,'PlaybackLoudness')/50 + 1
- ned.Rotation = 0 - 2 * math.cos(sine / 100)
- ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45))
- vis1.BackgroundColor3 = ModeColor2.Color
- vis2.BackgroundColor3 = ModeColor2.Color
- vis3.BackgroundColor3 = ModeColor.Color
- vis4.BackgroundColor3 = ModeColor.Color
- vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1600, 0)
- vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1400, 0)
- vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1200, 0)
- vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1000, 0)
- else
- techc.Rotation = techc.Rotation + 1
- circl.Rotation = circl.Rotation - GetClientProperty(kan,'PlaybackLoudness')/75 + math.random(-5,5)
- imgl2.Rotation = imgl2.Rotation - GetClientProperty(kan,'PlaybackLoudness')/50 + math.random(-5,5)
- ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3)
- ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3))
- modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1))
- modet.Rotation = -2 * math.cos(sine / 1) + math.random(-5,5)
- vis1.BackgroundColor3 = BrickColor.Random().Color
- vis2.BackgroundColor3 = BrickColor.Random().Color
- vis3.BackgroundColor3 = BrickColor.Random().Color
- vis4.BackgroundColor3 = BrickColor.Random().Color
- vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1600, 0+ math.random(-5,5))
- vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1400, 0+ math.random(-5,5))
- vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1200, 0+ math.random(-5,5))
- vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1000, 0+ math.random(-5,5))
- end
- if rainbowmode == true then
- RecolorTextAndRename("RAINBOW MEMER",Color3.new(r/255,g/255,b/255),Color3.new(r/255,g/255,b/255),"Fantasy")
- vis1.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- vis2.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- vis3.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- vis4.BackgroundColor3 = Color3.new(r/255,g/255,b/255)
- vis1.Size = UDim2.new(.1, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1600, 0+ math.random(-3,3))
- vis2.Size = UDim2.new(.07, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1400, 0+ math.random(-5,5))
- vis3.Size = UDim2.new(.045, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1200, 0+ math.random(-5,5))
- vis4.Size = UDim2.new(.03, 0, 0+ GetClientProperty(kan,'PlaybackLoudness')/1000, 0+ math.random(-5,5))
- ModeColor=BrickColor.new("White")
- ModeColor2=BrickColor.new("White")
- for i, v in pairs(m:GetChildren()) do
- if v:IsA("Part") then
- v.Color = Color3.new(r/255,g/255,b/255)
- end
- end
- for i, v in pairs(M1:GetChildren()) do
- if v:IsA("Part") then
- v.Color = Color3.new(r/255,g/255,b/255)
- end
- end
- end
- CameraManager()
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- coroutine.resume(coroutine.create(function()
- for i, v in pairs(m:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = ModeColor
- v.Transparency = 0
- elseif v:IsA("ParticleEmitter") then
- v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
- end
- end
- for i, v in pairs(M1:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = ModeColor2
- v.Transparency = 0
- elseif v:IsA("ParticleEmitter") then
- v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
- end
- end
- if ENRAGE == true then
- for i, v in pairs(m:GetChildren()) do
- if v:IsA("BasePart") then
- v.Color = Color3.new(math.random(0,1),0,0)
- end
- end
- for i, v in pairs(M1:GetChildren()) do
- if v:IsA("BasePart") then
- v.Color = Color3.new(math.random(0,1),0,0)
- end
- end
- end
- if chaosmode == true then
- RecolorTextAndRename("CHAOS",BrickColor.random().Color,BrickColor.random().Color,"Code")
- for i, v in pairs(m:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = BrickColor.random()
- elseif v:IsA("ParticleEmitter") then
- v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
- end
- end
- for i, v in pairs(M1:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = BrickColor.random()
- v.Transparency = 0.50
- elseif v:IsA("ParticleEmitter") then
- v.Color = ColorSequence.new(ModeColor.Color,ModeColor2.Color)
- elseif chaosmode == false then
- for i, v in pairs(m:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = ModeColor
- end
- end
- for i, v in pairs(M1:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = ModeColor2
- end
- end
- end
- end
- end
- if ModeOfGlitch == "KING CRIMSON DAVID!" or ModeOfGlitch == "Flying the skys!" or ModeOfGlitch == "Dreamess of David." or ModeOfGlitch == "Powered" or ModeOfGlitch == "Powered+" or ModeOfGlitch == 62 or ModeOfGlitch == 82 or ModeOfGlitch == 23 or ModeOfGlitch == 14 or ModeOfGlitch == 24 or ModeOfGlitch == 34 or ModeOfGlitch == 44 or ModeOfGlitch == 54 or ModeOfGlitch == 64 or ModeOfGlitch == 65 or ModeOfGlitch == 85 or ModeOfGlitch == "Unbeatable" then
- if hitfloor ~= nil then
- effar.Enabled = true
- effar.Color = ColorSequence.new(ModeColor.Color)
- slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(5,50)/250,ModeColor)
- elseif hitfloor == nil then
- effar.Enabled = false
- end
- elseif ModeOfGlitch == "REVENGE" then
- if hitfloor ~= nil and ah == false then
- effar.Enabled = true
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(2.5,2,0.5 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(360 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-2.5,2,0.5 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(360 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
- elseif ah == true and hitfloor ~= nil then
- effar.Enabled = true
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(2.5,4,-10 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(50 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-2.5,2,-10 + 0.1 * math.cos(sine / 30))*angles(math.rad(0),math.rad(-50 * math.cos(sine / 100)),math.rad(0 * math.cos(sine / 10))),.1)
- end
- elseif ModeOfGlitch == "EXTREMECORRUPT" then
- if hitfloor ~= nil then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1+ math.random(-1,1),-1.12+ math.random(-1,1),1.1+ 0.3 * math.cos(sine / 50)+ math.random(-1,1))*angles(math.rad(-90+ math.random(-7,7)),math.rad(16 * math.cos(sine / 50)+ math.random(-7,7)),math.rad(-16 * math.cos(sine / 50)+ math.random(-7,7))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1+ math.random(-1,1),-1.12+ math.random(-1,1),1.1+ 0.3 * math.cos(sine / 50)+ math.random(-1,1))*angles(math.rad(-90+ math.random(-7,7)),math.rad(-16 * math.cos(sine / 50)+ math.random(-7,7)),math.rad(16 * math.cos(sine / 50)+ math.random(-7,7))),.1)
- --+ math.random(-7,7)
- end
- elseif ModeOfGlitch ~= 5 or ModeOfGlitch ~= 7 or ModeOfGlitch ~= 8 or ModeOfGlitch ~= 62 or ModeOfGlitch ~= 82 or ModeOfGlitch ~= 23 or ModeOfGlitch ~= 14 or ModeOfGlitch ~= 24 or ModeOfGlitch ~= 34 or ModeOfGlitch ~= 44 or ModeOfGlitch ~= 54 or ModeOfGlitch ~= 64 or ModeOfGlitch ~= 65 or ModeOfGlitch ~= 85 then
- effar.Enabled = false
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 50)),math.rad(-16 * math.cos(sine / 50))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 50)),math.rad(16 * math.cos(sine / 50))),.1)
- end
- end))
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-25 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(25 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
- RH.C0=clerp(RH.C0,cf(1,-0.18 - 0.05 * math.cos(sine / 25),-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10 - 2 * math.cos(sine / 10)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5 - 10 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(0),math.rad(20 + 10 * math.cos(sine / 25))),.1)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(0),math.rad(-20 - 10 * math.cos(sine / 25))),.1)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-60),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1+ 0.3 * math.cos(sine / 50))*angles(math.rad(-60),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
- RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10 + 5 * math.cos(sine / 15)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 + 10 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-40),math.rad(0 - 10 * math.cos(sine / 25)),math.rad(90)),.1)
- LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-40),math.rad(0 + 10 * math.cos(sine / 25)),math.rad(-90)),.1)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- if ModeOfGlitch == "DavidGrativol" then
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(80),math.rad(17 - 2 * math.cos(sine / 32)))*angles(math.rad(-3),math.rad(5.5 - 2 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 24),0)*angles(math.rad(0),math.rad(-82),math.rad(-17 - 2 * math.cos(sine / 32)))*angles(math.rad(-6),math.rad(-22 - 2 * math.cos(sine / 56)),math.rad(12 + 2 * math.cos(sine / 32))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 24))*angles(math.rad(15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(22 + 2 * math.cos(sine / 56))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 37) - math.random(-2,2)),math.rad(0 + 1.8 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(-22 - 2 * math.cos(sine / 56) - math.random(-5,5))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.03)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(157 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.3)
- elseif ModeOfGlitch == "Ocean David." then
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0 - 4 * math.cos(sine / 42)),math.rad(0 - 3 * math.cos(sine / 76))),.1)
- RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 28),-0.5)*angles(math.rad(0 - 0 * math.cos(sine / 39)),math.rad(0),math.rad(-70 - 0 * math.cos(sine / 47))),.1)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
- elseif ModeOfGlitch == "Corrupt" then
- local snap = math.random(1,200)
- if snap == 1 then
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(20 + math.random(-1,1))),0.6)
- end
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 3 * math.cos(sine / 34))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20 - 3 * math.cos(sine / 56)),math.rad(0 + 3 * math.cos(sine / 34))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 3 * math.cos(sine / 56))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3.5 * math.cos(sine / 33)),math.rad(0 + 4 * math.cos(sine / 63)),math.rad(20 - 3 * math.cos(sine / 56))),.1)
- RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 37))),.1)
- LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(30 - 3 * math.cos(sine / 57) )),.1)
- elseif ModeOfGlitch == "CHAOS" then
- local snap = math.random(1,200)
- if snap == 1 then
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6)
- end
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)+ math.random(-5,5)),math.rad(0 + math.random(-5,5)),math.rad(0 + math.random(-5,5))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(30),math.rad(0),math.rad(0)),.1)
- elseif ModeOfGlitch == "DIVINITY" then
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 4 * math.cos(sine / 42)),math.rad(0 - 3 * math.cos(sine / 76))),.1)
- RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 37))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(7 + 2 * math.cos(sine / 57)),math.rad(20 + 4 * math.cos(sine / 47)),math.rad(-0 - 2 * math.cos(sine / 29))),.1)
- elseif ModeOfGlitch == "Flying David!" then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
- RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0 + 2.5 * math.cos(sine / 28))),.1)
- RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.8)*angles(math.rad(68),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1)
- LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.6)*angles(math.rad(90),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
- elseif ModeOfGlitch == "D̴.̴i̴.̴s̴.̴t̴.̴o̴.̴r̴.̴t̴.̴e̴.̴d̴ ̴D̴.̴a̴.̴v̴.̴i̴.̴d̴" then
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
- LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1)
- elseif ModeOfGlitch == "KING CRIMSON DAVID!" then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
- local Alpha = .1
- RootJoint.C0 = RootJoint.C0:lerp(cf(0,3+.5*math.cos(sine/32),0.1)*angles(math.rad(32-5*math.sin(sine/32)),math.rad(0),math.rad(0))*RootCF,Alpha)
- LH.C0 = LH.C0:lerp(cf(-1,-1-.1*math.sin(sine/32),0)*angles(math.rad(-14.3+15*math.sin(sine/32)),math.rad(7.6+2.5*math.sin(sine/32)),math.rad(-7.8-5*math.sin(sine/32)))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
- RH.C0 = RH.C0:lerp(cf(0.9,-0.7-.1*math.sin(sine/32),-0.5)*angles(math.rad(-14.3+15*math.sin(sine/32)),math.rad(-12.7-2.5*math.sin(sine/32)),math.rad(7+5*math.sin(sine/32)))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
- LW.C0 = LW.C0:lerp(cf(-1.2,0.5-.075*math.sin(sine/32),-0.1)*angles(math.rad(7.1+3*math.cos(sine/32)),math.rad(10.2),math.rad(24.2)),Alpha)
- RW.C0 = RW.C0:lerp(cf(1.3,1-.075*math.sin(sine/32),-0.2)*angles(math.rad(150.3+5*math.cos(sine/32)),math.rad(0),math.rad(-32.7)),Alpha)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0,0,0.1)*angles(math.rad(-14.3-3*math.sin(sine/32)),math.rad(0),math.rad(0))*necko,Alpha)
- elseif ModeOfGlitch == "STRONGER DAVID!" then
- local snap = math.random(1,10)
- local Alpha = .1
- RootJoint.C0 = RootJoint.C0:lerp(cf(0,.5+.3*math.cos(sine/32),0)*angles(math.rad(0),math.rad(10),math.rad(0))*RootCF,Alpha)
- LH.C0 = LH.C0:lerp(cf(-0.9,-0.7+0.05*math.cos(sine/32),-0.2)*angles(math.rad(-6.3),math.rad(26.1),math.rad(-6.3))*angles(math.rad(0),math.rad(-90),math.rad(0)),Alpha)
- RH.C0 = RH.C0:lerp(cf(1,-0.1+0.05*math.cos(sine/32),-1)*angles(math.rad(-14.8),math.rad(-2.6),math.rad(-0.3))*angles(math.rad(0),math.rad(90),math.rad(0)),Alpha)
- LW.C0 = LW.C0:lerp(cf(-1.3,0.4+0.05*math.cos(sine/32),0.7)*angles(math.rad(-35),math.rad(0),math.rad(40+2*math.cos(sine/32))),Alpha)
- RW.C0 = RW.C0:lerp(cf(1.5,0.7+0.05*math.cos(sine/32),0.1)*angles(math.rad(9.1),math.rad(-23.4),math.rad(21.9+2*math.cos(sine/32))),Alpha)
- Torso.Neck.C0 = Torso.Neck.C0:lerp(cf(0.1,0,0.2)*angles(math.rad(-5.9),math.rad(-10.4),math.rad(3.9))*necko,Alpha)
- elseif ModeOfGlitch == "RAINBOW" then --RAINBOW Idle
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1)
- RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(172 - 7 * math.cos(sine / 58)),math.rad(1 - 5 * math.cos(sine / 55)),math.rad(19 - 3 * math.cos(sine / 45))),.2)
- elseif ModeOfGlitch == "DREAMER" then
- local snap = math.random(1,100)
- if snap == 1 then
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(32 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1)
- end
- RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-4 - 7 * math.cos(sine / 39))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 8 * math.cos(sine / 31))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(32 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 + 6 * math.cos(sine / 72)),math.rad(2 - 4 * math.cos(sine / 58)),math.rad(14 + 1 * math.cos(sine / 45))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(32 - 7 * math.cos(sine / 66)),math.rad(6 - 5 * math.cos(sine / 59)),math.rad(-9 - 3 * math.cos(sine / 45))),.1)
- elseif ModeOfGlitch == "D A V I R K N E S S" then
- local snap = math.random(1,10)
- if snap == 1 then
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1)
- end
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1)
- LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1)
- end
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- if ModeOfGlitch == "DavidGrativol" then
- RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 4))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
- elseif ModeOfGlitch == "Corrupt" then
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-.5,-.6)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(45),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
- RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-30 + 2 * math.cos(sine / 37))),.1)
- LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(30 - 3 * math.cos(sine / 57) )),.1)
- elseif ModeOfGlitch == "Ocean David." then
- RW.C0=clerp(RW.C0,cf(0.8,0.5 + 0.1 * math.cos(sine / 4),-0.5)*angles(math.rad(0 - 0 * math.cos(sine / 39)),math.rad(0),math.rad(-70 - 0 * math.cos(sine / 47))),.1)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 4),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
- RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
- elseif ModeOfGlitch == "CHAOS" then
- RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)+ math.random(-5,5)),math.rad(0 + math.random(-5,5)),math.rad(0 + math.random(-5,5))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 4))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 4))),.1)
- elseif ModeOfGlitch == "DJ" then
- RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + GetClientProperty(kan,'PlaybackLoudness')/7.5),math.rad(0),math.rad(0 - 2 * math.cos(sine / 38))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 30 * math.cos(sine / 8)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 4))),.1)
- elseif ModeOfGlitch ~= "Corrupt" and ModeOfGlitch ~= "DavidGrativol" and ModeOfGlitch ~= "CHAOS" and ModeOfGlitch ~= "DJ" and ModeOfGlitch ~= "Ocean David." and ModeOfGlitch ~= "Genocidial" or ModeOfGlitch ~= "Depressed" then
- RH.C0 = clerp(RH.C0, cf(1, -0.85, -0.15 - 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- LH.C0 = clerp(LH.C0, cf(-1, -0.85, -0.15 + 0.15 * math.cos(sine / 4)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0 + 5 * math.cos(sine / 8)), math.rad(0 + 25 * math.cos(sine / 8))), 0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 4)),math.rad(0),math.rad(0 - hed.RotVelocity.Y*2.5 + 5 * math.cos(sine / 8))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 4))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 4))),.1)
- end
- end
- elseif torvel>=22 and hitfloor~=nil then
- Anim="Run"
- if attack==false then
- if ModeOfGlitch == "Flying David!" then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(16 * math.cos(sine / 10)),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.12,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-16 * math.cos(sine / 10)),math.rad(16 * math.cos(sine / 10))),.1)
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),-0.5 + 0.5 * math.cos(sine / 34),1 + 0.25 * math.cos(sine / 28))*angles(math.rad(50),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(0 - 0.3 * math.cos(sine / 43)),math.rad(-35 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(180 - 0.2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(0 - 0.2 * math.cos(sine / 45))),.1)
- elseif ModeOfGlitch ~= "DREAMER" then
- RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
- LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
- elseif ModeOfGlitch == "DREAMER" then
- RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
- RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
- elseif ModeOfGlitch ~= "Flying David!" and ModeOfGlitch ~= "DETERMINED" and ModeOfGlitch ~= "REVENGE" then
- Handle2weld.C1 = clerp(Handle2weld.C1,cf(1,-1.4,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(-40),math.rad(-16 * math.cos(sine / 10))),.1)
- Handleweld.C1 = clerp(Handleweld.C1,cf(-1,-1.4,1.1 + 0.1 * math.cos(sine / 10))*angles(math.rad(-90),math.rad(40),math.rad(16 * math.cos(sine / 10))),.1)
- RH.C0 = clerp(RH.C0, cf(1, -0.75 - 0.25 * math.cos(sine / 3), -0.25 - 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1)
- LH.C0 = clerp(LH.C0, cf(-1, -0.75 + 0.25 * math.cos(sine / 3), -0.25 + 0.25 * math.cos(sine / 3)) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0 + 95 * math.cos(sine / 6))), 0.1)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 100 * math.cos(sine / 6)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 100 * math.cos(sine / 6)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment