View difference between Paste ID: pExr8TQh and PiGVDhWC
SHOW: | | - or go back to the newest paste.
1
-- Omnigod, Resurrected.
2
-- Written by yeox769
3
-- Based on the Omnigod of Eradication script; I don't know who wrote that, but credit for the idea goes to them.
4
5
wait(0.5)
6
Player=game:GetService("Players").LocalPlayer
7
Character=Player.Character 
8
PlayerGui=Player.PlayerGui
9
Backpack=Player.Backpack 
10
Torso=Character.Torso 
11
Head=Character.Head 
12
Humanoid=Character.Humanoid
13
m=Instance.new('Model',Character)
14
LeftArm=Character["Left Arm"] 
15
LeftLeg=Character["Left Leg"] 
16
RightArm=Character["Right Arm"] 
17
RightLeg=Character["Right Leg"] 
18
LS=Torso["Left Shoulder"] 
19
LH=Torso["Left Hip"] 
20
RS=Torso["Right Shoulder"] 
21
RH=Torso["Right Hip"] 
22
Face = Head.face
23
Neck=Torso.Neck
24
it=Instance.new
25
attacktype=1
26
vt=Vector3.new
27
cf=CFrame.new
28
cl3=Color3.new
29
rgb=Color3.fromRGB
30
bcn=BrickColor.new
31
euler=CFrame.fromEulerAnglesXYZ
32
angles=CFrame.Angles
33
cloaked=false
34
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
35
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
36
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
37
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
38
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
39
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
40
RootPart=Character.HumanoidRootPart
41
RootJoint=RootPart.RootJoint
42
RootCF=euler(-1.57,0,3.14)
43
attack = false 
44
attackdebounce = false 
45
deb=false
46
equipped=true
47
hand=false
48
MMouse=nil
49
combo=0
50
trispeed=.2
51
attackmode='none'
52
local idle=0
53
local Anim="Idle"
54
55
introFinished = false
56
57
intro = true
58
59
it = Instance.new
60
61
-- Music --
62
z = it("Sound",Character)
63
z.Name = "musiccc"
64
z.Looped = true
65
z.SoundId = "rbxassetid://501613913"
66
z.Volume = 0
67
if intro == false then
68
z.TimePosition = 9
69
end
70
z:Play()
71
72
function fadeInTheme()
73
	for i=0,2.5,0.02 do
74
		z.Volume = i
75
		wait()
76
	end
77
end
78
79
delay(0,fadeInTheme)
80
81
-- Functions --
82
83
local inv = function()
84
	while true do
85
		wait()
86
		Humanoid.MaxHealth = math.huge
87
		Humanoid.Health = math.huge
88
		if Character:FindFirstChild("ForceField") == nil then
89
			local ff = it("ForceField",Character)
90
			ff.Visible = false
91
		end
92
	end
93
end
94
95
if Player.UserId == 8664741 then delay(0,inv) end
96
97
local sndfx = function(id,ply,vol,timedel)
98
	local sd = it("Sound",Character)
99
	sd.SoundId,sd.PlaybackSpeed,sd.Volume = id,ply,vol
100
	sd:Play()
101
	game:GetService("Debris"):AddItem(sd,timedel)
102
	return sd
103
end
104
105
local part = function(name,parent,brkclr,mtrl,rfl,trns,sz)
106
	local prt = it("Part",parent)
107
	prt.Name = name
108
	prt.CanCollide = false
109
	prt.BrickColor = bcn(brkclr)
110
	if brkclr == "drkgrn" then 
111
		prt.Color = rgb(0,37.5,0) 
112
	elseif brkclr == "vdblk" then 
113
		prt.Color = cl3(0,0,0) 
114
	end
115
	prt.Material = mtrl
116
	prt.Reflectance = rfl
117
	prt.Transparency = trns
118
	prt.Size = sz
119
	prt.Anchored = true
120
	return prt
121
end
122
local mesh = function(meshtype,parent,meshid,textureid,scale)
123
	local msh = it("SpecialMesh",parent)
124
	if meshtype == "FileMesh" then
125
		msh.MeshId = meshid
126
		msh.TextureId = textureid
127
	end
128
	msh.MeshType = meshtype
129
	msh.Scale = scale
130
	return(msh)
131
end
132
local weld = function(part1,part2,x1,y1,z1,x2,y2,z2)
133
	local w = it("Weld",part1)
134
	w.Part0 = part1
135
	w.Part1 = part2
136
	if part1.Anchored or part2.Anchored then
137
		part1.Anchored = false
138
		part2.Anchored = false
139
	end
140
	w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(x2),math.rad(y2),math.rad(z2)))
141
	return(w)
142
end
143
local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang)
144
	local emm = it("ParticleEmitter",parent)
145
	emm.Texture = tex
146
	emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
147
	emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
148
	emm.LightEmission = lightem
149
	emm.EmissionDirection = emdir
150
	emm.Lifetime = NumberRange.new(lif)
151
	emm.Rate = rate
152
	emm.Speed = NumberRange.new(speed)
153
	emm.RotSpeed = NumberRange.new(rotspeed)
154
	emm.SpreadAngle = Vector2.new(sprdang,sprdang)
155
	return(emm)
156
end
157
158
function clerp(a,b,t) 
159
local qa = {QuaternionFromCFrame(a)}
160
local qb = {QuaternionFromCFrame(b)} 
161
local ax, ay, az = a.x, a.y, a.z 
162
local bx, by, bz = b.x, b.y, b.z
163
local _t = 1-t
164
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
165
end 
166
 
167
function QuaternionFromCFrame(cf) 
168
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
169
local trace = m00 + m11 + m22 
170
if trace > 0 then 
171
local s = math.sqrt(1 + trace) 
172
local recip = 0.5/s 
173
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
174
else 
175
local i = 0 
176
if m11 > m00 then
177
i = 1
178
end
179
if m22 > (i == 0 and m00 or m11) then 
180
i = 2 
181
end 
182
if i == 0 then 
183
local s = math.sqrt(m00-m11-m22+1) 
184
local recip = 0.5/s 
185
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
186
elseif i == 1 then 
187
local s = math.sqrt(m11-m22-m00+1) 
188
local recip = 0.5/s 
189
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
190
elseif i == 2 then 
191
local s = math.sqrt(m22-m00-m11+1) 
192
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
193
end 
194
end 
195
end
196
 
197
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
198
local xs, ys, zs = x + x, y + y, z + z 
199
local wx, wy, wz = w*xs, w*ys, w*zs 
200
local xx = x*xs 
201
local xy = x*ys 
202
local xz = x*zs 
203
local yy = y*ys 
204
local yz = y*zs 
205
local zz = z*zs 
206
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)) 
207
end
208
209
function QuaternionSlerp(a, b, t) 
210
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
211
local startInterp, finishInterp; 
212
if cosTheta >= 0.0001 then 
213
if (1 - cosTheta) > 0.0001 then 
214
local theta = math.acos(cosTheta) 
215
local invSinTheta = 1/math.sin(theta) 
216
startInterp = math.sin((1-t)*theta)*invSinTheta 
217
finishInterp = math.sin(t*theta)*invSinTheta  
218
else 
219
startInterp = 1-t 
220
finishInterp = t 
221
end 
222
else 
223
if (1+cosTheta) > 0.0001 then 
224
local theta = math.acos(-cosTheta) 
225
local invSinTheta = 1/math.sin(theta) 
226
startInterp = math.sin((t-1)*theta)*invSinTheta 
227
finishInterp = math.sin(t*theta)*invSinTheta 
228
else 
229
startInterp = t-1 
230
finishInterp = t 
231
end 
232
end 
233
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 
234
end
235
236
local sine = 0
237
local change = 1
238
local val = 0
239
240
mouse=Player:GetMouse()
241
RSH, LSH=nil, nil 
242
--welds 
243
RW, LW, LLW, RLW=Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld"), Instance.new("Weld")
244
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
245
RLW.Name="Right Hip" LLW.Name="Left Hip"
246
LH=Torso["Left Hip"]
247
RH=Torso["Right Hip"]
248
TorsoColor=Torso.BrickColor
249
function NoOutline(Part)
250
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
251
end
252
player=Player 
253
ch=Character
254
RSH=ch.Torso["Right Shoulder"] 
255
LSH=ch.Torso["Left Shoulder"] 
256
-- 
257
RSH.Parent=nil 
258
LSH.Parent=nil 
259
LH.Parent=nil
260
RH.Parent=nil
261
-- 
262
RW.Name="Right Shoulder"
263
RW.Part0=ch.Torso 
264
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
265
RW.C1=cf(0, 0.5, 0) 
266
RW.Part1=ch["Right Arm"] 
267
RW.Parent=ch.Torso 
268
-- 
269
LW.Name="Left Shoulder"
270
LW.Part0=ch.Torso 
271
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
272
LW.C1=cf(0, 0.5, 0) 
273
LW.Part1=ch["Left Arm"] 
274
LW.Parent=ch.Torso 
275
276
LLW.Name="Left Hip"
277
LLW.Part0=ch.Torso 
278
LLW.C0=LH.C0 --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
279
LLW.C1=LH.C1
280
LLW.Part1=ch["Left Leg"] 
281
LLW.Parent=ch.Torso 
282
283
RLW.Name="Right Hip"
284
RLW.Part0=ch.Torso 
285
RLW.C0=RH.C0 --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
286
RLW.C1=RH.C1
287
RLW.Part1=ch["Right Leg"] 
288
RLW.Parent=ch.Torso 
289
290
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
291
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
292
end 
293
294
-- Intro --
295
296
function introWait()
297
if intro == true then
298
wait(9.525)
299
introFinished = true
300
else
301
introFinished = true
302
end
303
end
304
delay(0,introWait)
305
if intro == true then
306
local fx1=part("FX",Character,"Black","Granite",0,1,Vector3.new(45,45,45))
307
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)
308
fxe.Enabled,fxe.VelocityInheritance,fxe.Rotation,fxe.RotSpeed = false, 1, NumberRange.new(-360,360), NumberRange.new(-50,50)
309
mesh("Sphere",fx1,"","",Vector3.new(1,1,1))
310
function spin()
311
	local X,Y,Z = math.random(-2,2),math.random(-2,2),math.random(-2,2)
312
	while fx1~=nil do 
313
		fx1.CFrame = fx1.CFrame * euler(math.rad(X),math.rad(Y),math.rad(Z)) 
314
		fx1.Position = Character.Torso.Position		
315
		wait()
316
	end 
317
end
318
delay(0,spin)
319
function intro()
320
	Humanoid.WalkSpeed, Humanoid.JumpPower = 0,0
321
	for i=0,1,0.1 do
322
		wait(0.01)
323
		Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(0)),.3)
324
		RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
325
	end
326
	fxe.Enabled = true
327
	for i=0,5,0.1 do
328
		wait()
329
		fx1.Transparency = fx1.Transparency - 0.02
330
		fx1.Size = fx1.Size - Vector3.new(0.7,0.7,0.7)
331
	end
332
	wait(7.25)
333
	Humanoid.WalkSpeed, Humanoid.JumpPower = 20,62.5
334
end
335
intro()
336
function destroyFX()
337
	for i=0,9,0.1 do
338
		wait()
339
		fx1.Transparency = fx1.Transparency + 0.05
340
		fx1.Size = fx1.Size + Vector3.new(2.5,2.5,2.5)
341
	end
342
	fx1:Destroy()
343
end
344
delay(0,destroyFX)
345
end
346
Character.Animate:Destroy()
347
348
-- Character Model --
349
350
for _,v in pairs(Character:children()) do
351
	if v:IsA("Accessory") or v:IsA("Shirt") or v:IsA("Pants") then
352
		v:Destroy()
353
	end
354
end
355
Head.face:Destroy()
356
Character["Body Colors"]:Destroy()
357
358
p = part("FHead",m,"Really black","Sand",0,0,Vector3.new(2.01,1.01,1.01))
359
mesh("Head",p,"","",Vector3.new(1.25, 1.25, 1.25))
360
weld(Head,p,0,0,0,0,0,0)
361
p = part("FTorso",m,"Really black","Granite",0,0,Vector3.new(2.01,2.01,1.01))
362
weld(Torso,p,0,0,0,0,0,0)
363
p = part("FArm1",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
364
weld(LeftArm,p,0,0,0,0,0,0)
365
p = part("FArm2",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
366
weld(RightArm,p,0,0,0,0,0,0)
367
p = part("FLeg1",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
368
weld(LeftLeg,p,0,0,0,0,0,0)
369
p = part("FLeg2",m,"Really black","Granite",0,0,Vector3.new(1.01,2.01,1.01))
370
weld(RightLeg,p,0,0,0,0,0,0)
371
372
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)
373
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)
374
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
375
376
p = part("Part",m,"Dark indigo","Neon",0,0,Vector3.new(0.05,0.1,0.35))
377
mesh("Wedge",p,"","",Vector3.new(1,1,1))
378
weld(Head,p,-0.25,0.2625,-0.55,0,112.5,180)
379
p = part("Part",m,"Dark indigo","Neon",0,0,Vector3.new(0.05,0.35,0.05))
380
mesh("Wedge",p,"","",Vector3.new(1,1,1))
381
weld(Head,p,-0.25,0.2625,-0.55,0,90,0,0)
382
p = part("Part",m,"Dark indigo","Neon",0,0,Vector3.new(0.05,0.1,0.35))
383
mesh("Wedge",p,"","",Vector3.new(1,1,1))
384
weld(Head,p,0.25,0.2625,-0.55,0,-112.5,180)
385
386
387
388
for _,v in pairs(m:children()) do
389
	NoOutline(v)
390
end
391
392
393
-- wot --
394
395
game:GetService("StarterGui"):SetCore("SendNotification", {
396
	Title = "The Omnigod, Resurrected";
397
	Text = "Created/written by yeox769, \nbased on Omnigod of Eradication";
398
})
399
400
-- Animations --
401
402
function Animate()
403
	while true do
404
wait()
405
if introFinished == true then
406
sine = sine + change
407
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
408
local velderp=RootPart.Velocity.y
409
local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
410
if equipped==true or equipped==false then
411
if RootPart.Velocity.y > 1 and hitfloor==nil then 
412
Anim="Jump"
413
if attack==false then
414
change=1
415
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
416
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
417
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(15)),.3)
418
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-15)),.3)
419
LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
420
end
421
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
422
Anim="Fall"
423
if attack==false then
424
change=1
425
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
426
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
427
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(30)),.3)
428
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(0),math.rad(-30)),.3)
429
LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
430
end
431
elseif torvel<1 and hitfloor~=nil then
432
Anim="Idle"
433
if attack==false then
434
change=0.5
435
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)
436
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)
437
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)
438
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)
439
LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(10)),.3)
440
end
441
elseif torvel>2 and torvel<22 and hitfloor~=nil then
442
Anim="Walk"
443
if attack==false then
444
change=0.5
445
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)
446
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
447
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)
448
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)
449
LLW.C0=clerp(LLW.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(5)),.3)
450
end
451
end
452
end
453
end
454
end
455
end
456
457
delay(0,Animate)
458
459
-- Attacks --
460
461
function onKeyDown(key)
462
	if attack == false then
463
		if key == "x" then
464
			warn("WIP.")
465
		elseif key == "m" then
466
			if z.IsPlaying == true then
467
				z:Stop()
468
				z.TimePosition = 0
469
			else
470
				z:Play()
471
			end
472
		end
473
	end
474
end
475
476
if mouse then
477
mouse.KeyDown:connect(onKeyDown)
478
end
479
createEmit({
480
    Name = "UltAura",
481
    Color = ColorSequence.new(Color3.fromRGB(255, 255, 255)),
482
    LightEmission = 0.15,
483
    LightInfluence = 1,
484
    Size = NumberSequence.new(0.9),
485-
    Texture = "rbxassetid://833874434",
485+
    Texture = "rbxassetid://833874434", })
486
    Transparency = NumberSequence.new({
487
        NumberSequenceKeypoint.new(0, 1),
488
        NumberSequenceKeypoint.new(0.117, 0.705),
489
        NumberSequenceKeypoint.new(0.655, 0.732),
490-
        NumberSequenceKeypoint.new(1, 1)
490+
        NumberSequenceKeypoint.new(1, 1) })
491
end