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