View difference between Paste ID: KEn3w5Yg and 844pga46
SHOW: | | - or go back to the newest paste.
1
-- Decompiled by Blyat
2
-- Fixed by ben
3
4-
while not getmetatable(shared) do
4+
5-
  wait()
5+
6
p = game.Players.LocalPlayer
7-
shared(script)
7+
8
pchar = char
9
as = 0.3
10
as_2 = 0.3
11
angle = 0
12
rift = true
13
canactivate = true
14
beamactive = true
15
laser = true
16
dorment = true
17
beam = true
18
hat = Instance.new("Part", char)
19
hat.Size = Vector3.new(1, 1, 1)
20
hatm = Instance.new("SpecialMesh", hat)
21
hatm.MeshType = "FileMesh"
22
hatm.MeshId = "http://www.roblox.com/asset/?id=96102993"
23
hatm.TextureId = "http://www.roblox.com/asset/?id=96103063"
24
hatw = Instance.new("Weld", hat)
25
hatw.Part0 = hat
26
hatw.Part1 = char.Head
27
Mouse = p:GetMouse()
28
mouse = p:GetMouse()
29
m = p:GetMouse()
30
char.Animate.Disabled = true
31
char.Head.Transparency = 1
32
anglespeed = 0
33
canstep = true
34
active = true
35
org = char.HumanoidRootPart.RootJoint.C0
36
char.Torso.CFrame = char.Torso.CFrame * CFrame.new(0, 15, 0)
37
mus = Instance.new("Sound", char)
38
mus.SoundId = "rbxassetid://404897101"
39
mus.Looped = true
40
char.Humanoid.JumpPower = 0
41
mus:Play()
42
char.Humanoid.WalkSpeed = 0
43
step = Instance.new("Sound", char.Torso)
44
step.SoundId = "rbxassetid://198360378"
45
FootStep = function()
46
  
47
  local ray = Ray.new(char["Left Leg"].Position, Vector3.new(0, -6.5, 0))
48
  local part, endPoint, normal = Workspace:FindPartOnRay(ray)
49
  if part then
50
    step:Play()
51
  end
52
end
53
54
local t = tick()
55
local Smooth = 1
56
torso = char:findFirstChild("Torso")
57
z = Instance.new("Sound", torso)
58
z.SoundId = "rbxassetid://412874168" -- Put Music ID Here.
59
z.Looped = true
60
z.Pitch = 0.80
61
z.Volume = 1
62
wait(.1)
63
z:Play()
64
head = char.Head
65
ra = char:findFirstChild("Right Arm")
66
ra.CanCollide = true
67
la = char:findFirstChild("Left Arm")
68
la.CanCollide = true
69
rl = char:findFirstChild("Right Leg")
70
rl.CanCollide = true
71
ll = char:findFirstChild("Left Leg")
72
ll.CanCollide = true
73
neck = torso:findFirstChild("Neck")
74
rootpart = char:findFirstChild("HumanoidRootPart")
75
rj = rootpart:findFirstChild("RootJoint")
76
scl = function(m)
77
  
78
  for i,v in pairs(m:GetChildren()) do
79
    if v:IsA("SpecialMesh") or v:IsA("DataModelMesh") then
80
      if v.MeshType == Enum.MeshType.FileMesh then
81
        v.Scale = v.Scale * size
82
      else
83
        v.Scale = v.Scale * size
84
      end
85
    else
86
    end
87
    if v:IsA("BasePart") then
88
      do
89
        scl(v)
90
        -- DECOMPILER ERROR at PC39: LeaveBlock: unexpected jumping out IF_THEN_STMT
91
92
        -- DECOMPILER ERROR at PC39: LeaveBlock: unexpected jumping out IF_STMT
93
94
      end
95
    end
96
  end
97
end
98
99
scl(char)
100
newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
101
  
102
  local wld = Instance.new("Weld", wp1)
103
  wld.Part0 = wp0
104
  wld.Part1 = wp1
105
  wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
106
  return wld
107
end
108
109
local mult = size
110
la.Size = la.Size * mult
111
ra.Size = ra.Size * mult
112
ll.Size = ll.Size * mult
113
rl.Size = rl.Size * mult
114
torso.Size = torso.Size * mult
115
rootpart.Size = rootpart.Size * mult
116
local LeftShoulder = newWeld(torso, la, -1.5 * mult, 0.5 * mult, 0)
117
LeftShoulder.C1 = CFrame.new(0, 0.5 * mult, 0)
118
local RightShoulder = newWeld(torso, ra, 1.5 * mult, 0.5 * mult, 0)
119
RightShoulder.C1 = CFrame.new(0, 0.5 * mult, 0)
120
local Neck = newWeld(torso, head, 0, mult, 0)
121
local LeftHip = newWeld(torso, ll, -0.5 * mult, -1 * mult, 0)
122
LeftHip.C1 = CFrame.new(0, mult, 0)
123
local RightHip = newWeld(torso, rl, 0.5 * mult, -1 * mult, 0)
124
RightHip.C1 = CFrame.new(0, mult, 0)
125
local Torso2 = rj:Clone()
126
Torso2.Part0 = rootpart
127
Torso2.Part1 = torso
128
Torso2.Parent = rootpart
129
Neck.C1 = CFrame.new(0, -(mult / 2), 0)
130
neckc0 = Neck.C0
131
rsc0 = RightShoulder.C0
132
lsc0 = LeftShoulder.C0
133
llc0 = LeftHip.C0
134
rlc0 = RightHip.C0
135
rootc0 = Torso2.C0
136
rootc1 = Torso2.C1
137
wait()
138
deg = math.deg
139
rad = math.rad
140
asin = math.asin
141
atan2 = math.atan2
142
cos = math.cos
143
sin = math.sin
144
rad = math.sin
145
getAngles = function(cf)
146
  
147
  local sx, sy, sz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
148
  return atan2(-m12, m22), asin(m02), atan2(-m01, m00)
149
end
150
151
Lerp = {Number = function(C1, C2, inc)
152
  
153
  return C1 + (C2 - C1) * inc
154
end
155
, CFrame = function(a, b, m)
156
  
157
  local c, d = {a:components()}, {b:components()}
158
  table.foreach(c, function(a, b)
159
    
160
    c[a] = c[a] + (d[a] - c[a]) * m
161
  end
162
)
163
  return CFrame.new(unpack(c))
164
end
165
}
166
staff = Instance.new("Part", char)
167
staff.Size = Vector3.new(2, 2, 40)
168
staff.TopSurface = 0
169
staff.CanCollide = false
170
staff.BottomSurface = 0
171
staff.Material = "Slate"
172
staff.BrickColor = BrickColor.new("Really black")
173
staffw = Instance.new("Weld", staff)
174
staffw.Part0 = staff
175
staffw.Part1 = char["Left Arm"]
176
staffw.C0 = CFrame.new(0, 6, -5)
177
top = Instance.new("Part", char)
178
top.Size = Vector3.new(4, 4, 4)
179
top.BrickColor = BrickColor.new("Lime green")
180
top.TopSurface = 0
181
top.BottomSurface = 0
182
top.Material = "Neon"
183
topm = Instance.new("SpecialMesh", top)
184
topm.MeshType = "Sphere"
185
topw = Instance.new("Weld", top)
186
topw.Part0 = top
187
topw.Part1 = staff
188
topw.C0 = CFrame.new(0, 0, 23)
189
top1 = Instance.new("Part", char)
190
top1.BrickColor = BrickColor.new("Really black")
191
top1.Size = Vector3.new(5, 5, 2)
192
top1.TopSurface = 0
193
top1.Material = "Slate"
194
top1.BottomSurface = 0
195
topw1 = Instance.new("Weld", top1)
196
topw1.Part0 = top1
197
topw1.Part1 = staff
198
topw1.C0 = CFrame.new(0, 0, 20)
199
top2 = Instance.new("Part", char)
200
top2.BrickColor = BrickColor.new("Really black")
201
top2.Size = Vector3.new(2, 2, 4)
202
top2.TopSurface = 0
203
top2.Material = "Slate"
204
top2.BottomSurface = 0
205
topw2 = Instance.new("Weld", top2)
206
topw2.Part0 = top2
207
topw2.Part1 = top1
208
topw2.C0 = CFrame.new(2, 0, 2.4) * CFrame.Angles(rad(0), rad(10), 0)
209
top3 = Instance.new("Part", char)
210
top3.BrickColor = BrickColor.new("Really black")
211
top3.Size = Vector3.new(2, 2, 4)
212
top3.TopSurface = 0
213
top3.Material = "Slate"
214
top3.BottomSurface = 0
215
topw3 = Instance.new("Weld", top3)
216
topw3.Part0 = top3
217
topw3.Part1 = top1
218
topw3.C0 = CFrame.new(-2, 0, 2.4) * CFrame.Angles(0, rad(-10), 0)
219
LerpTo = {RightArm = CFrame.new(9, 3, 0), LeftArm = CFrame.new(-9, 3, 0), Staff = CFrame.new(0, 6, -5), LeftLeg = CFrame.new(-3, -6, 0), RightLeg = CFrame.new(3, -6, 0), Body = Torso2.C0 * CFrame.new(0, 0, 0), Head = CFrame.new(0, 6, 0), Crystal = CFrame.new(0, 0, 23)}
220
if dorment == true then
221
  fakela = Instance.new("Part", char)
222
  fakela.Material = "Slate"
223
  fakela.TopSurface = 0
224
  fakela.BottomSurface = 0
225
  fakela.BrickColor = char.Torso.BrickColor
226
  fakela.Size = char["Left Arm"].Size + Vector3.new(0.1, 0.1, 0.1)
227
  fakelaw = Instance.new("Weld", fakela)
228
  fakelaw.Part0 = fakela
229
  fakelaw.Part1 = char["Left Arm"]
230
  fakera = Instance.new("Part", char)
231
  fakera.Material = "Slate"
232
  fakera.TopSurface = 0
233
  fakera.BottomSurface = 0
234
  fakera.BrickColor = char.Torso.BrickColor
235
  fakera.Size = char["Right Arm"].Size + Vector3.new(0.1, 0.1, 0.1)
236
  fakeraw = Instance.new("Weld", fakera)
237
  fakeraw.Part0 = fakera
238
  fakeraw.Part1 = char["Right Arm"]
239
  fakell = Instance.new("Part", char)
240
  fakell.Material = "Slate"
241
  fakell.TopSurface = 0
242
  fakell.BottomSurface = 0
243
  fakell.BrickColor = char.Torso.BrickColor
244
  fakell.Size = char["Left Leg"].Size + Vector3.new(0.1, 0.1, 0.1)
245
  fakellw = Instance.new("Weld", fakell)
246
  fakellw.Part0 = fakell
247
  fakellw.Part1 = char["Left Leg"]
248
  fakerl = Instance.new("Part", char)
249
  fakerl.Material = "Slate"
250
  fakerl.TopSurface = 0
251
  fakerl.BottomSurface = 0
252
  fakerl.BrickColor = char.Torso.BrickColor
253
  fakerl.Size = char["Right Leg"].Size + Vector3.new(0.1, 0.1, 0.1)
254
  fakerlw = Instance.new("Weld", fakerl)
255
  fakerlw.Part0 = fakerl
256
  fakerlw.Part1 = char["Right Leg"]
257
  faket = Instance.new("Part", char)
258
  faket.Material = "Slate"
259
  faket.TopSurface = 0
260
  faket.BottomSurface = 0
261
  faket.BrickColor = char.Torso.BrickColor
262
  faket.Size = char.Torso.Size + Vector3.new(0.1, 0.1, 0.1)
263
  faketw = Instance.new("Weld", faket)
264
  faketw.Part0 = faket
265
  faketw.Part1 = char.Torso
266
  char.Humanoid.Health = math.huge
267
  LerpTo.Body = Torso2.C0 * CFrame.new(0, 0, -3) * CFrame.Angles(rad(0.1), 0, 0)
268
  LerpTo.LeftLeg = CFrame.new(-3, -5, -4) * CFrame.Angles(rad(0.1), 0, 0)
269
  LerpTo.LeftArm = CFrame.new(-9, 3, 0) * CFrame.Angles(7.9, 0, 0)
270
  LerpTo.Head = Neck.C0 * CFrame.Angles(rad(-0.1), 0, 0)
271
  LerpTo.RightArm = RightShoulder.C0 * CFrame.Angles(0, 0, rad(0.2))
272
  LerpTo.Staff = CFrame.new(0, 6, 0) * CFrame.Angles(rad(0), 0, 0)
273
  LerpTo.RightLeg = CFrame.new(3, -6, -2.3) * CFrame.Angles(rad(-69.75), 0, 0)
274
end
275
updateanims = function()
276
  
277
  if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
278
    anglespeed = 0.5
279
    if active == false then
280
      as_2 = 0.3
281
      LerpTo.RightArm = CFrame.new(9, 3, 0) * CFrame.Angles(sin(angle) * 0.1, 0, rad(0.1))
282
      LerpTo.Body = org
283
      LerpTo.LeftArm = CFrame.new(-8.5, 3, -1) * CFrame.Angles(sin(angle) * 0.02, rad(0), rad(0)) * CFrame.Angles(1.5, 0, -0.2)
284
      LerpTo.RightLeg = CFrame.new(3.2, -6, -0.7) * CFrame.Angles(math.rad(-1), math.rad(-10), 0)
285
      LerpTo.Staff = CFrame.new(0, 6, -5)
286
      LerpTo.LeftLeg = CFrame.new(-3, -6, 0.1) * CFrame.Angles(math.rad(-5), math.rad(4), 0)
287
    end
288
  else
289
    if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
290
      anglespeed = 1
291
      if active == false then
292
        LerpTo.Body = org
293
        LerpTo.RightLeg = CFrame.new(3, -6, 0) * CFrame.Angles(-sin(angle * 1) * 0.3, 0, 0)
294
        LerpTo.LeftLeg = CFrame.new(-3, -6, 0) * CFrame.Angles(sin(angle * 1) * 0.3, 0, 0)
295
        LerpTo.Staff = CFrame.new(0, 6, -5)
296
        LerpTo.Head = CFrame.new(0, 6, 0)
297
        LerpTo.RightArm = CFrame.new(9, 3, 0) * CFrame.Angles(-sin(angle) * 0.4, 0, rad(3))
298
        as_2 = 0.05
299
        LerpTo.LeftArm = CFrame.new(-8.5, 3, -1) * CFrame.Angles(sin(angle) * 0.02, rad(0), rad(0)) * CFrame.Angles(1.3, 0, -0.2)
300
      end
301
    end
302
  end
303
end
304
305
Spawn(function()
306
  
307
  while wait() do
308
    angle = angle % 100 + anglespeed / 10
309
    t = t + 0.25 * Smooth
310
  end
311
end
312
)
313
m.KeyDown:connect(function(k)
314
  
315
  if k == string.char(52) and canactivate == true then
316
    canactivate = false
317
    dorment = false
318
    ch = Instance.new("Sound", char)
319
    ch.SoundId = "rbxassetid://257001355"
320
    ch.Volume = 1
321
    ch:Play()
322
    spark = Instance.new("Part", char)
323
    spark.Size = Vector3.new(2, 2, 2)
324
    spark.BrickColor = BrickColor.new("Lime green")
325
    spark.Material = "Neon"
326
    spark.TopSurface = 0
327
    sparkw = Instance.new("Weld", spark)
328
    sparkw.Part0 = spark
329
    sparkw.Part1 = top
330
    spark.BottomSurface = 0
331
    sparkm = Instance.new("SpecialMesh", spark)
332
    sparkm.MeshType = "Sphere"
333
    for i = 2, 30, 0.5 do
334
      wait()
335
      sparkm.Scale = Vector3.new(i, i, i)
336
      spark.Transparency = i / 10
337
    end
338
    char.Humanoid.WalkSpeed = 6
339
    char.Humanoid.MaxHealth = 1000000
340
    wait()
341
    char.Humanoid.Health = 1000000
342
    active = false
343
    faket:Remove()
344
    fakela:Remove()
345
    fakera:Remove()
346
    fakerl:Remove()
347
    fakell:Remove()
348
    wait(0.6)
349
    mus.SoundId = "rbxassetid://151514610"
350
    mus.Volume = 1
351
  end
352
end
353
)
354
poos = top.Position + Vector3.new(0, 20, 0)
355
m.KeyDown:connect(function(k)
356
  
357
  if k == "q" and beama == true then
358
    beama = false
359
    active = true
360
    s1 = Instance.new("Sound", char)
361
    s1.SoundId = "rbxassetid://154230112"
362
    s1.Volume = 1
363
    s1.Pitch = 1
364
    s1:Play()
365
    local ray = Ray.new(poos, Mouse.Hit.p - poos.unit * 999)
366
    local part, position = workspace:FindPartOnRay(ray, p.Character, false, true)
367
    local part, position = workspace:FindPartOnRay(ray, top, false, true)
368
    local part, position = workspace:FindPartOnRay(ray, top2, false, true)
369
    local part, position = workspace:FindPartOnRay(ray, top1, false, true)
370
    local hit, pos, normal = Workspace:FindPartOnRay(ray, character)
371
    if hit then
372
      local beam = Instance.new("Part", workspace)
373
      beam.BrickColor = BrickColor.new("Lime green")
374
      beam.FormFactor = "Custom"
375
      beam.Material = "Neon"
376
      beam.Transparency = 0
377
      beam.Anchored = true
378
      beam.Locked = true
379
      beam.CanCollide = false
380
      local distance = top.CFrame.p
381
      beam.Size = Vector3.new(3, 3, distance)
382
      beam.CFrame = CFrame.new(top.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
383
      game:GetService("Debris"):AddItem(beam, 1)
384
      portal = Instance.new("Part", char)
385
      portal.Anchored = true
386
      portal.Material = "Neon"
387
      portal.CanCollide = false
388
      portal.Size = Vector3.new(3, 0.2, 3)
389
      portal.CFrame = CFrame.new(pos, pos + normal) * CFrame.Angles(math.pi / 2, 0, 0)
390
      portal.BrickColor = BrickColor.new("Lime green")
391
      local portalm = Instance.new("CylinderMesh", portal)
392
      for i = 1, 7, 0.3 do
393
        wait()
394
        portalm.Scale = Vector3.new(i, 0.2, i)
395
      end
396
      s = Instance.new("Sound", char)
397
      s.SoundId = "rbxassetid://228343271"
398
      s.Volume = 1
399
      s.Pitch = 1
400
      s:Play()
401
      do
402
        for i = 1, 20 do
403
          wait()
404
          local CreateRegion3FromLocAndSize = function(Position, Size)
405
    
406
    local SizeOffset = Size / 2
407
    local Point1 = Position - SizeOffset
408
    local Point2 = Position + SizeOffset
409
    return Region3.new(Point1, Point2)
410
  end
411
412
          local reg = CreateRegion3FromLocAndSize(portal.Position, portal.Size * 10)
413
          do
414
            for i,v in pairs(game:service("Workspace"):FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
415
              print(v)
416
              Spawn(function()
417
    
418
    ypcall(function()
419
      
420
      if not v.Parent:FindFirstChild("Humanoid") then
421
        local humanoid = v.Parent.Parent:FindFirstChild("Humanoid")
422
      end
423
      humanoid:TakeDamage(math.random(1, 4))
424
    end
425
)
426
  end
427
)
428
            end
429
            local rng1 = Instance.new("Part", char)
430
            rng1.Anchored = true
431
            rng1.BrickColor = BrickColor.new("Lime green")
432
            rng1.CanCollide = false
433
            rng1.FormFactor = 3
434
            rng1.Name = "Ring"
435
            rng1.Size = Vector3.new(1, 1, 1)
436
            rng1.Transparency = 0.35
437
            rng1.TopSurface = 0
438
            rng1.BottomSurface = 0
439
            rng1.Position = portal.Position
440
            rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
441
            local rngm1 = Instance.new("SpecialMesh", rng1)
442
            rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
443
            rngm1.Scale = Vector3.new(1, 1.3, 2)
444
            local rng = Instance.new("Part", char)
445
            rng.Anchored = true
446
            rng.BrickColor = BrickColor.new("Lime green")
447
            rng.CanCollide = false
448
            rng.FormFactor = 3
449
            rng.Name = "Ring"
450
            rng.Size = Vector3.new(1, 1, 1)
451
            rng.Transparency = 0
452
            rng.TopSurface = 0
453
            rng.BottomSurface = 0
454
            rng.Material = "Neon"
455
            rng.Position = portal.Position - Vector3.new(0, 0, 0)
456
            rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
457
            local rngm = Instance.new("SpecialMesh", rng)
458
            rngm.MeshType = "Sphere"
459
            rngm.Scale = Vector3.new(1, 1.3, 2)
460
            local rng3 = Instance.new("Part", char)
461
            rng3.Anchored = true
462
            rng3.BrickColor = BrickColor.new("Lime green")
463
            rng3.CanCollide = false
464
            rng3.FormFactor = 3
465
            rng3.Name = "Ring"
466
            rng3.Size = Vector3.new(1, 1, 1)
467
            rng3.Transparency = 0
468
            rng3.TopSurface = 0
469
            rng3.BottomSurface = 0
470
            rng3.Material = "Neon"
471
            rng3.Position = portal.Position - Vector3.new(0, 2, 0)
472
            rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
473
            local rngm3 = Instance.new("CylinderMesh", rng3)
474
            rngm3.Scale = Vector3.new(1, 1.3, 2)
475
            wait(0.1)
476
            coroutine.wrap(function()
477
    
478
    for i = 1, 7, 0.5 do
479
      rngm.Scale = Vector3.new(2 + i * 6, 2 + i * 6, 2 + i * 6)
480
      rng.Transparency = i / 7
481
      rngm3.Scale = Vector3.new(3 + i, 10 + i * 30, 3 + i)
482
      rng3.Transparency = i / 7
483
      rngm1.Scale = Vector3.new(2 + i * 12, 2 + i * 12, 1)
484
      rng1.Transparency = i / 7
485
      wait()
486
    end
487
    wait()
488
    rng:Destroy()
489
    rng1:Remove()
490
    rng3:Remove()
491
    wait()
492
  end
493
)()
494
          end
495
        end
496
      end
497
      active = false
498
      for i = 10, 0, -2 do
499
        wait()
500
        portalm.Scale = Vector3.new(i, i, i)
501
      end
502
    end
503
  end
504
  do
505
    wait(2)
506
    beama = true
507
  end
508
end
509
)
510
m.KeyDown:connect(function(k)
511
  
512
  if k == "x" and rift == true then
513
    rift = false
514
    active = true
515
    LerpTo.LeftArm = LeftShoulder.C0 * CFrame.Angles(math.rad(40), 0, 0)
516
    LerpTo.Head = Neck.C0 * CFrame.Angles(math.rad(20), 0, 0)
517
    LerpTo.Staff = staffw.C0 * CFrame.Angles(rad(0.6), 0, 0) * CFrame.new(0, 5, 10)
518
    wait()
519
    spark = Instance.new("Part", char)
520
    spark.Size = Vector3.new(2, 2, 2)
521
    spark.BrickColor = BrickColor.new("Lime green")
522
    spark.Material = "Neon"
523
    spark.TopSurface = 0
524
    sparkw = Instance.new("Weld", spark)
525
    sparkw.Part0 = spark
526
    sparkw.Part1 = staff
527
    sparkw.C0 = CFrame.new(0, 0, 20)
528
    spark.BottomSurface = 0
529
    sparkm = Instance.new("SpecialMesh", spark)
530
    sparkm.MeshType = "Sphere"
531
    for i = 2, 10, 0.5 do
532
      wait()
533
      sparkm.Scale = Vector3.new(i, i, i)
534
      spark.Transparency = i / 10
535
    end
536
    wait(2)
537
    m = p:GetMouse()
538
    LerpTo.LeftArm = LeftShoulder.C0 * CFrame.Angles(math.rad(40), math.rad(20), 0)
539
    LerpTo.RightArm = RightShoulder.C0 * CFrame.Angles(math.rad(40), math.rad(-20), 0)
540
    LerpTo.Head = Neck.C0 * CFrame.Angles(math.rad(20), 0, 0)
541
    LerpTo.Staff = staffw.C0 * CFrame.Angles(0, 0, 0)
542
    local rng = Instance.new("Part", char)
543
    rng.Anchored = true
544
    rng.BrickColor = BrickColor.new("Lime green")
545
    rng.CanCollide = false
546
    rng.FormFactor = 3
547
    rng.Name = "Ring"
548
    rng.Size = Vector3.new(1.5, 1.5, 1.1)
549
    rng.Transparency = 0
550
    rng.TopSurface = 0
551
    rng.BottomSurface = 0
552
    rng.Material = "Neon"
553
    rng.CFrame = char.Torso.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, 0, -50)
554
    rng.CFrame = CFrame.new(rng.Position, Vector3.new(m.Hit.p.x, m.Hit.p.y, m.Hit.p.z)) * CFrame.Angles(math.rad(90), 0, 0)
555
    local rngm = Instance.new("SpecialMesh", rng)
556
    rngm.MeshType = "Sphere"
557
    do
558
      for i = 1, 20, 0.5 do
559
        wait()
560
        rngm.Scale = Vector3.new(60, 0.5, i)
561
      end
562
    end
563
    endpoint = Instance.new("Part", char)
564
    endpoint.Transparency = 1
565
    wait(0.5)
566
    LerpTo.LeftArm = CFrame.new(-9, 3, 0) * CFrame.Angles(math.rad(90), math.rad(0), 0)
567
    LerpTo.RightArm = CFrame.new(9, 3, 0) * CFrame.Angles(math.rad(0), math.rad(40), 0)
568
    LerpTo.Head = CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), 0, 0)
569
    LerpTo.Staff = CFrame.new(0, 5, -6) * CFrame.Angles(rad(-50), 0, 0)
570
    s1 = Instance.new("Sound", char)
571
    s1.SoundId = "rbxassetid://130792236"
572
    s1:Play()
573
    wait(0.4)
574
    s = Instance.new("Sound", char)
575
    s.SoundId = "rbxassetid://254847708"
576
    s.Volume = 1
577
    s.Pitch = 1
578
    s:Play()
579
    for i = 1, 85 do
580
      wait()
581
      local ray = Ray.new(rng.CFrame.p, rng.CFrame.p - rng.CFrame * CFrame.new(0, 20, 0).p.unit * 900)
582
      local part, position = workspace:FindPartOnRay(ray, p.Character, false, true)
583
      local beam = Instance.new("Part", workspace)
584
      beam.BrickColor = BrickColor.new("Lime green")
585
      beam.FormFactor = "Custom"
586
      beam.Material = "Neon"
587
      beam.Transparency = 0
588
      beam.Anchored = true
589
      beam.Locked = true
590
      beam.CanCollide = false
591
      local distance = rng.CFrame.p
592
      beam.Size = Vector3.new(30, 17, distance)
593
      beam.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance / 2)
594
      endpoint.Position = position
595
      game:GetService("Debris"):AddItem(beam, 0.5)
596
      local rng2 = Instance.new("Part", char)
597
      rng2.Anchored = true
598
      rng2.BrickColor = BrickColor.new("Lime green")
599
      rng2.CanCollide = false
600
      rng2.FormFactor = 3
601
      rng2.Name = "Ring"
602
      rng2.Size = Vector3.new(1, 1, 1)
603
      rng2.Transparency = 0
604
      rng2.TopSurface = 0
605
      rng2.BottomSurface = 0
606
      rng2.CFrame = rng.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)) * CFrame.new(0, -3, 0)
607
      local rngm2 = Instance.new("SpecialMesh", rng2)
608
      rngm2.MeshId = "http://www.roblox.com/asset/?id=20329976"
609
      rngm2.Scale = Vector3.new(1, 1.3, 2)
610
      local rng3 = Instance.new("Part", char)
611
      rng3.Anchored = true
612
      rng3.BrickColor = BrickColor.new("Lime green")
613
      rng3.CanCollide = false
614
      rng3.FormFactor = 3
615
      rng3.Name = "Ring"
616
      rng3.Size = Vector3.new(1, 1, 1)
617
      rng3.Transparency = 0
618
      rng3.TopSurface = 0
619
      rng3.BottomSurface = 0
620
      rng3.Material = "Neon"
621
      rng3.Position = endpoint.Position
622
      rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
623
      local rngm3 = Instance.new("SpecialMesh", rng3)
624
      rngm3.MeshType = "Sphere"
625
      rngm3.Scale = Vector3.new(1, 1.3, 2)
626
      local rng4 = Instance.new("Part", char)
627
      rng4.Anchored = true
628
      rng4.BrickColor = BrickColor.new("Lime green")
629
      rng4.CanCollide = false
630
      rng4.FormFactor = 3
631
      rng4.Name = "Ring"
632
      rng4.Size = Vector3.new(1, 1, 1)
633
      rng4.Transparency = 0
634
      rng4.TopSurface = 0
635
      rng4.BottomSurface = 0
636
      rng4.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, -3, 0)
637
      local rngm4 = Instance.new("SpecialMesh", rng4)
638
      do
639
        rngm4.MeshId = "http://www.roblox.com/asset/?id=3270017"
640
        rngm4.Scale = Vector3.new(1, 1.3, 2)
641
        local rng5 = Instance.new("Part", char)
642
        rng5.Anchored = true
643
        rng5.BrickColor = BrickColor.new("Lime green")
644
        rng5.CanCollide = false
645
        rng5.FormFactor = 3
646
        rng5.Name = "Ring"
647
        rng5.Size = Vector3.new(1, 1, 1)
648
        rng5.Transparency = 0
649
        rng5.TopSurface = 0
650
        rng5.BottomSurface = 0
651
        rng5.CFrame = rng3.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) * CFrame.new(0, -15, 0)
652
        local rngm5 = Instance.new("SpecialMesh", rng5)
653
        rngm5.MeshId = "http://www.roblox.com/asset/?id=3270017"
654
        rngm5.Scale = Vector3.new(1, 1.3, 2)
655
        wait(0.1)
656
        coroutine.wrap(function()
657
    
658
    for i = 1, 30, 3 do
659
      rngm2.Scale = Vector3.new(30 + i * 2, 30 + i, 30 + i * 2)
660
      rng2.Transparency = i / 30
661
      rngm4.Scale = Vector3.new(100 + i * 2, 100 + i, 2)
662
      rng4.Transparency = i / 30
663
      rngm5.Scale = Vector3.new(10 + i * 10, 10 + i * 10, 2)
664
      rng5.Transparency = i / 30
665
      rngm3.Scale = Vector3.new(50 + i, 50 + i, 50 + i)
666
      rng3.Transparency = i / 30
667
      wait()
668
    end
669
    wait()
670
    rng5:Remove()
671
    rng2:Remove()
672
    rng4:Remove()
673
    rng3:Remove()
674
    wait()
675
  end
676
)()
677
        local CreateRegion3FromLocAndSize = function(Position, Size)
678
    
679
    local SizeOffset = Size / 2
680
    local Point1 = Position - SizeOffset
681
    local Point2 = Position + SizeOffset
682
    return Region3.new(Point1, Point2)
683
  end
684
685
        local reg = CreateRegion3FromLocAndSize(endpoint.Position, endpoint.Size * 20)
686
        for i,v in pairs(game:service("Workspace"):FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
687
          print(v)
688
          Spawn(function()
689
    
690
    ypcall(function()
691
      
692
      if not v.Parent:FindFirstChild("Humanoid") then
693
        local humanoid = v.Parent.Parent:FindFirstChild("Humanoid")
694
      end
695
      humanoid:TakeDamage(math.random(1, 4))
696
    end
697
)
698
  end
699
)
700
        end
701
      end
702
    end
703
    active = false
704
    for i = 20, 0, -0.5 do
705
      wait()
706
      rngm.Scale = Vector3.new(49, 0.5, i)
707
    end
708
    rng:Remove()
709
    wait(0.5)
710
    rift = true
711
  end
712
end
713
)
714
RunService = game:service("RunService")
715
RunService.RenderStepped:connect(function()
716
  
717
  updateanims()
718
  if char.Humanoid.PlatformStand == true then
719
    char.Humanoid.PlatformStand = false
720
  end
721
  Torso2.C0 = Lerp.CFrame(Torso2.C0, LerpTo.Body, as)
722
  RightShoulder.C0 = Lerp.CFrame(RightShoulder.C0, LerpTo.RightArm, as)
723
  LeftShoulder.C0 = Lerp.CFrame(LeftShoulder.C0, LerpTo.LeftArm, as_2)
724
  RightHip.C0 = Lerp.CFrame(RightHip.C0, LerpTo.RightLeg, as)
725
  LeftHip.C0 = Lerp.CFrame(LeftHip.C0, LerpTo.LeftLeg, as)
726
  Neck.C0 = Lerp.CFrame(Neck.C0, LerpTo.Head, as)
727
  staffw.C0 = Lerp.CFrame(staffw.C0, LerpTo.Staff, as)
728
  topw.C0 = Lerp.CFrame(topw.C0, LerpTo.Crystal, as)
729
end
730
)
731
while 1 do
732
  if wait(1.1) and canstep ~= true or Vector3.new(char.Torso.Velocity.X, 0, char.Torso.Velocity.Z).magnitude <= 2 or Vector3.new(0, char.Torso.Velocity.Y, 0).magnitude < 2 then
733
    FootStep()
734
  end
735
end