Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Omnigod, Resurrected.
- -- Written by yeox769
- -- Based on the Omnigod of Eradication script; I don't know who wrote that, but credit for the idea goes to them.
- wait(0.5)
- Player=game:GetService("Players").LocalPlayer
- 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
- cl3=Color3.new
- rgb=Color3.fromRGB
- bcn=BrickColor.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
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- introFinished = false
- intro = true
- it = Instance.new
- -- Music --
- z = it("Sound",Character)
- z.Name = "musiccc"
- z.Looped = true
- z.SoundId = "rbxassetid://501613913"
- z.Volume = 0
- if intro == false then
- z.TimePosition = 9
- end
- z:Play()
- function fadeInTheme()
- for i=0,2.5,0.02 do
- z.Volume = i
- wait()
- end
- end
- delay(0,fadeInTheme)
- -- Functions --
- local inv = function()
- while true do
- wait()
- Humanoid.MaxHealth = math.huge
- Humanoid.Health = math.huge
- if Character:FindFirstChild("ForceField") == nil then
- local ff = it("ForceField",Character)
- ff.Visible = false
- end
- end
- end
- if Player.UserId == 8664741 then delay(0,inv) end
- local sndfx = function(id,ply,vol,timedel)
- local sd = it("Sound",Character)
- sd.SoundId,sd.PlaybackSpeed,sd.Volume = id,ply,vol
- sd:Play()
- game:GetService("Debris"):AddItem(sd,timedel)
- return sd
- end
- local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
- local prt = it("Part",parent)
- prt.Name = name
- prt.CanCollide = false
- prt.BrickColor = bcn(brkclr)
- if brkclr == "drkgrn" then
- prt.Color = rgb(0,37.5,0)
- elseif brkclr == "vdblk" then
- prt.Color = cl3(0,0,0)
- end
- prt.Material = mtrl
- prt.Reflectance = rfl
- prt.Transparency = trns
- prt.Size = sz
- prt.Anchored = true
- return prt
- end
- local mesh = function(meshtype,parent,meshid,textureid,scale)
- local msh = it("SpecialMesh",parent)
- if meshtype == "FileMesh" then
- msh.MeshId = meshid
- msh.TextureId = textureid
- end
- msh.MeshType = meshtype
- msh.Scale = scale
- return(msh)
- end
- local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
- local w = it("Weld",part1)
- w.Part0 = part1
- w.Part1 = part2
- if part1.Anchored or part2.Anchored then
- part1.Anchored = false
- part2.Anchored = false
- end
- w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(x2),math.rad(y2),math.rad(z2)))
- return(w)
- end
- local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
- local emm = it("ParticleEmitter",parent)
- emm.Texture = tex
- emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
- emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
- emm.LightEmission = lightem
- emm.EmissionDirection = emdir
- emm.Lifetime = NumberRange.new(lif)
- emm.Rate = rate
- emm.Speed = NumberRange.new(speed)
- emm.RotSpeed = NumberRange.new(rotspeed)
- emm.SpreadAngle = Vector2.new(sprdang,sprdang)
- return(emm)
- 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 sine = 0
- local change = 1
- local val = 0
- mouse=Player:GetMouse()
- RSH, LSH=nil, nil
- --welds
- RW, LW, LLW, RLW=Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- RLW.Name="Right Hip" LLW.Name="Left Hip"
- 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
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- LH.Parent=nil
- RH.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
- LLW.Name="Left Hip"
- LLW.Part0=ch.Torso
- LLW.C0=LH.C0 --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LLW.C1=LH.C1
- LLW.Part1=ch["Left Leg"]
- LLW.Parent=ch.Torso
- RLW.Name="Right Hip"
- RLW.Part0=ch.Torso
- RLW.C0=RH.C0 --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- RLW.C1=RH.C1
- RLW.Part1=ch["Right Leg"]
- RLW.Parent=ch.Torso
- 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
- -- Intro --
- function introWait()
- if intro == true then
- wait(9.525)
- introFinished = true
- else
- introFinished = true
- end
- end
- delay(0,introWait)
- if intro == true then
- local fx1=part("FX",Character,"Black","Granite",0,1,Vector3.new(45,45,45))
- fxe=emit(fx1,"rbxasset://textures/particles/fire_main.dds",bcn("Really black").Color,bcn("Royal purple").Color,3,0,0,"Top",0.5,250,5,50,360)
- fxe.Enabled,fxe.VelocityInheritance,fxe.Rotation,fxe.RotSpeed = false, 1, NumberRange.new(-360,360), NumberRange.new(-50,50)
- mesh("Sphere",fx1,"","",Vector3.new(1,1,1))
- function spin()
- local X,Y,Z = math.random(-2,2),math.random(-2,2),math.random(-2,2)
- while fx1~=nil do
- fx1.CFrame = fx1.CFrame * euler(math.rad(X),math.rad(Y),math.rad(Z))
- fx1.Position = Character.Torso.Position
- wait()
- end
- end
- delay(0,spin)
- function intro()
- Humanoid.WalkSpeed, Humanoid.JumpPower = 0,0
- for i=0,1,0.1 do
- wait(0.01)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- end
- fxe.Enabled = true
- for i=0,5,0.1 do
- wait()
- fx1.Transparency = fx1.Transparency - 0.02
- fx1.Size = fx1.Size - Vector3.new(0.7,0.7,0.7)
- end
- wait(7.25)
- Humanoid.WalkSpeed, Humanoid.JumpPower = 20,62.5
- end
- intro()
- function destroyFX()
- for i=0,9,0.1 do
- wait()
- fx1.Transparency = fx1.Transparency + 0.05
- fx1.Size = fx1.Size + Vector3.new(2.5,2.5,2.5)
- end
- fx1:Destroy()
- end
- delay(0,destroyFX)
- end
- Character.Animate:Destroy()
- -- Character Model --
- for _,v in pairs(Character:children()) do
- if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
- v:Destroy()
- end
- end
- Head.face:Destroy()
- Character["Body Colors"]:Destroy()
- p = part("FHead",m,"Really black","Sand",0,0,Vector3.new(2.01,1.01,1.01))
- mesh("Head",p,"","",Vector3.new(1.25, 1.25, 1.25))
- weld(Head,p,0,0,0,0,0,0)
- p = part("FTorso",m,"Really black","Granite",0,0,Vector3.new(2.01,2.01,1.01))
- weld(Torso,p,0,0,0,0,0,0)
- p = part("FArm1",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
- weld(LeftArm,p,0,0,0,0,0,0)
- p = part("FArm2",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
- weld(RightArm,p,0,0,0,0,0,0)
- p = part("FLeg1",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
- weld(LeftLeg,p,0,0,0,0,0,0)
- p = part("FLeg2",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
- weld(RightLeg,p,0,0,0,0,0,0)
- a1=emit(Torso,"rbxasset://textures/particles/sparkles_main.dds",bcn("Royal purple").Color,bcn("Dark indigo").Color,3,0,0.6,"Top",0.5,2000,7.5,50,90)
- a2=emit(Torso,"rbxasset://textures/particles/sparkles_main.dds",bcn("Royal purple").Color,bcn("Dark indigo").Color,3,0,0.6,"Bottom",0.75,2000,7.5,50,45)
- a1.Acceleration,a2.Acceleration,a1.LockedToPart,a2.LockedToPart,a1.ZOffset,a2.ZOffset = Vector3.new(0,5,0),Vector3.new(0,-5,0),true,true,-2.5,-2.5
- p = part("Part",m,"Dark indigo","Neon",0,0,Vector3.new(0.05,0.1,0.35))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Head,p,-0.25,0.2625,-0.55,0,112.5,180)
- p = part("Part",m,"Dark indigo","Neon",0,0,Vector3.new(0.05,0.35,0.05))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Head,p,-0.25,0.2625,-0.55,0,90,0,0)
- p = part("Part",m,"Dark indigo","Neon",0,0,Vector3.new(0.05,0.1,0.35))
- mesh("Wedge",p,"","",Vector3.new(1,1,1))
- weld(Head,p,0.25,0.2625,-0.55,0,-112.5,180)
- for _,v in pairs(m:children()) do
- NoOutline(v)
- end
- -- wot --
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "The Omnigod, Resurrected";
- Text = "Created/written by yeox769, \nbased on Omnigod of Eradication";
- })
- -- Animations --
- function Animate()
- while true do
- wait()
- if introFinished == true then
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(15)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-15)),.3)
- LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- change=1
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(30)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(-30)),.3)
- LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- change=0.5
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2+math.cos(sine/6)/6)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10)-(math.cos(sine/6)/15),math.rad(5)-(math.cos(sine/6)/30),math.rad(20)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.6+(math.cos(sine/6)/48),0)*euler(math.rad(-10)-(math.cos(sine/6)/12),math.rad(0),math.rad(10)+(math.cos(sine/6)/12)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6+(math.cos(sine/6)/48),0)*euler(math.rad(10)+(math.cos(sine/6)/12),math.rad(10),math.rad(-10)-(math.cos(sine/6)/12)),.3)
- LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(10)),.3)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- change=0.5
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2+math.cos(sine/6)/6)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.6+(math.cos(sine/6)/48),0)*euler(math.rad(-15)-(math.cos(sine/6)/12),math.rad(0),math.rad(10)+(math.cos(sine/6)/12)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.6+(math.cos(sine/6)/48),0)*euler(math.rad(-15)-(math.cos(sine/6)/12),math.rad(0),math.rad(-10)-(math.cos(sine/6)/12)),.3)
- LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(5)),.3)
- end
- end
- end
- end
- end
- end
- delay(0,Animate)
- -- Attacks --
- function onKeyDown(key)
- if attack == false then
- if key == "x" then
- warn("WIP.")
- elseif key == "m" then
- if z.IsPlaying == true then
- z:Stop()
- z.TimePosition = 0
- else
- z:Play()
- end
- end
- end
- end
- if mouse then
- mouse.KeyDown:connect(onKeyDown)
- end
- createEmit({
- Name = "UltAura",
- Color = ColorSequence.new(Color3.fromRGB(255, 255, 255)),
- LightEmission = 0.15,
- LightInfluence = 1,
- Size = NumberSequence.new(0.9),
- Texture = "rbxassetid://833874434", })
- Transparency = NumberSequence.new({
- NumberSequenceKeypoint.new(0, 1),
- NumberSequenceKeypoint.new(0.117, 0.705),
- NumberSequenceKeypoint.new(0.655, 0.732),
- NumberSequenceKeypoint.new(1, 1) })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement