SHOW:
|
|
- or go back to the newest paste.
1 | ----God of shapes created by Father_Heaven | |
2 | --using shackluster scripts-- | |
3 | --More added by XDavodioX-- | |
4 | --That includes-- | |
5 | --Name | |
6 | --Smite | |
7 | --The Gui | |
8 | --Teleport | |
9 | ||
10 | ||
11 | ||
12 | function sandbox(var,func) | |
13 | local env = getfenv(func) | |
14 | local newenv = setmetatable({},{ | |
15 | __index = function(self,k) | |
16 | if k=="script" then | |
17 | return var | |
18 | else | |
19 | return env[k] | |
20 | end | |
21 | end, | |
22 | }) | |
23 | setfenv(func,newenv) | |
24 | return func | |
25 | end | |
26 | function NS(...) | |
27 | local tab = {...} | |
28 | local fat = {} | |
29 | for i = 1, #tab do | |
30 | local v = tab[i] | |
31 | table.insert(fat,NumberSequenceKeypoint.new(v[1],v[2])) | |
32 | end | |
33 | return NumberSequence.new(fat); | |
34 | end | |
35 | ||
36 | cors = {} | |
37 | mas = Instance.new("Model",game:GetService("Lighting")) | |
38 | ParticleEmitter0 = Instance.new("ParticleEmitter") | |
39 | ParticleEmitter1 = Instance.new("ParticleEmitter") | |
40 | ParticleEmitter2 = Instance.new("ParticleEmitter") | |
41 | ParticleEmitter0.Name = "Flames" | |
42 | ParticleEmitter0.Parent = mas | |
43 | ParticleEmitter0.Speed = NumberRange.new(0, 15) | |
44 | ParticleEmitter0.Rotation = NumberRange.new(0, 360) | |
45 | ParticleEmitter0.Enabled = false | |
46 | ParticleEmitter0.LightEmission = 1 | |
47 | ParticleEmitter0.LightInfluence = 1 | |
48 | ParticleEmitter0.Transparency = NumberSequence.new(1,0) | |
49 | ParticleEmitter0.ZOffset = 1 | |
50 | ParticleEmitter0.Size = NumberSequence.new(10,0) | |
51 | ParticleEmitter0.EmissionDirection = Enum.NormalId.Back | |
52 | ParticleEmitter0.Lifetime = NumberRange.new(0, 2) | |
53 | ParticleEmitter0.Rate = 9999 | |
54 | ParticleEmitter0.RotSpeed = NumberRange.new(-25, 25) | |
55 | ParticleEmitter0.SpreadAngle = Vector2.new(25, 25) | |
56 | ParticleEmitter0.VelocitySpread = 25 | |
57 | ParticleEmitter0.Texture = "rbxasset://textures/particles/sparkles_main.dds" | |
58 | ParticleEmitter1.Name = "Death" | |
59 | ParticleEmitter1.Parent = mas | |
60 | ParticleEmitter1.Rotation = NumberRange.new(0, 360) | |
61 | ParticleEmitter1.Enabled = false | |
62 | ParticleEmitter1.LightEmission = 0.75 | |
63 | ParticleEmitter1.Texture = "rbxasset://textures/particles/sparkles_main.dds" | |
64 | ParticleEmitter1.Transparency = NS({0,0.47540986537933},{.168,0.37704920768738},{.457,0.25683063268661},{.803,0.4426229596138},{.948,0.62841534614563},{1,1}) | |
65 | ParticleEmitter1.ZOffset = 0.5 | |
66 | ParticleEmitter1.Size = NS({0,1},{.656,1.8032789230347},{.843,1.4207655191422},{1,0}) | |
67 | ParticleEmitter1.Acceleration = Vector3.new(0, 35, 0) | |
68 | ParticleEmitter1.Drag = 5 | |
69 | ParticleEmitter1.EmissionDirection = Enum.NormalId.Right | |
70 | ParticleEmitter1.Lifetime = NumberRange.new(0, 1) | |
71 | ParticleEmitter1.Rate = 999 | |
72 | ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56) | |
73 | ParticleEmitter1.SpreadAngle = Vector2.new(360, 360) | |
74 | ParticleEmitter1.VelocitySpread = 360 | |
75 | ParticleEmitter2.Name = "Wing" | |
76 | ParticleEmitter2.Parent = mas | |
77 | ParticleEmitter2.Rotation = NumberRange.new(0, 360) | |
78 | ParticleEmitter2.Enabled = false | |
79 | ParticleEmitter2.LightEmission = 1 | |
80 | ParticleEmitter2.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
81 | ParticleEmitter2.Size = NS({0,0.05464494228363},{.193,1.0382515192032},{.352,1.3661205768585},{1,0}) | |
82 | ParticleEmitter2.Acceleration = Vector3.new(0, -7, 15) | |
83 | ParticleEmitter2.Lifetime = NumberRange.new(0.80000001192093, 0.80000001192093) | |
84 | ParticleEmitter2.LockedToPart = true | |
85 | ParticleEmitter2.Rate = 300 | |
86 | ||
87 | for i,v in pairs(mas:GetChildren()) do | |
88 | v.Parent = script | |
89 | pcall(function() v:MakeJoints() end) | |
90 | end | |
91 | mas:Destroy() | |
92 | for i,v in pairs(cors) do | |
93 | spawn(function() | |
94 | pcall(v) | |
95 | end) | |
96 | end | |
97 | ||
98 | ||
99 | ||
100 | ||
101 | ||
102 | ||
103 | ||
104 | function onKeyPress(inputObject, gameProcessedEvent) | |
105 | if inputObject.KeyCode == Enum.KeyCode.L then | |
106 | ||
107 | ||
108 | local q = game.Players:GetChildren() for i = 1, #q do if q[i].Character.Parent ~= workspace and q[i].Parent ~= nil then q[i].Character.Parent = workspace local sound2 = Instance.new("Sound",workspace) sound2.SoundId = "rbxassetid://245910488" sound2.Volume = 5 sound2:Play() end end end | |
109 | ||
110 | ||
111 | end | |
112 | ||
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | ||
119 | game:GetService("UserInputService").InputBegan:connect(onKeyPress) | |
120 | ||
121 | ||
122 | ||
123 | ||
124 | ||
125 | ||
126 | ||
127 | ||
128 | Player = game:GetService("Players").LocalPlayer | |
129 | Character = Player.Character | |
130 | ||
131 | ||
132 | ||
133 | Torso = Character["Torso"] | |
134 | Head = Character["Head"] | |
135 | RightArm = Character["Right Arm"] | |
136 | LeftArm = Character["Left Arm"] | |
137 | RightLeg = Character["Right Leg"] | |
138 | LeftLeg = Character["Left Leg"] | |
139 | Neck = Torso["Neck"] | |
140 | ||
141 | wait(1) | |
142 | ||
143 | ||
144 | ||
145 | ||
146 | ||
147 | ||
148 | local createstuff = function() | |
149 | local stuff = Instance.new("Model") | |
150 | ||
151 | local ParticleBox = Instance.new("Part") | |
152 | ||
153 | ||
154 | stuff.Name = "Stuff" | |
155 | stuff.Parent = workspace | |
156 | ||
157 | ParticleBox.Size = Vector3.new(10, 10, 10) | |
158 | ParticleBox.BottomSurface = Enum.SurfaceType.Smooth | |
159 | ParticleBox.Material = Enum.Material.SmoothPlastic | |
160 | ParticleBox.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
161 | ParticleBox.BrickColor = BrickColor.new("Really black") | |
162 | ParticleBox.TopSurface = Enum.SurfaceType.Smooth | |
163 | ParticleBox.Name = "ParticleBox" | |
164 | ParticleBox.Parent = stuff | |
165 | ParticleBox.CFrame = CFrame.new(9.8, 44.1, -48.7) | |
166 | ParticleBox.Transparency = 1 | |
167 | ||
168 | local headness = Instance.new("Part") | |
169 | headness.Parent = stuff | |
170 | headness.Name = ("headness") | |
171 | headness.Size = Vector3.new(2,1,1) | |
172 | headness.Transparency = 0.5 | |
173 | headness.Material = ("Neon") | |
174 | headness.BrickColor = BrickColor.new("Navy blue") | |
175 | headness.CanCollide = false | |
176 | ||
177 | ||
178 | local Blockhead = Instance.new("BlockMesh") | |
179 | Blockhead.Name = ("Blockhead") | |
180 | Blockhead.Offset = Vector3.new(0,-0.45,0) | |
181 | Blockhead.Scale = Vector3.new(0.56,1.1,1.1) | |
182 | Blockhead.Parent = stuff | |
183 | ||
184 | local MajesticGlow = Instance.new("PointLight") | |
185 | MajesticGlow.Color = Color3.new(6/225,6/255,159/255) | |
186 | MajesticGlow.Range = 25 | |
187 | MajesticGlow.Shadows = false | |
188 | MajesticGlow.Brightness = 1 | |
189 | MajesticGlow.Name = ("MajesticGlow") | |
190 | MajesticGlow.Parent = stuff | |
191 | ||
192 | ||
193 | ||
194 | for i,v in pairs(stuff:GetChildren()) do | |
195 | v.Parent = script | |
196 | end | |
197 | end | |
198 | ||
199 | createstuff() | |
200 | ||
201 | ||
202 | wait(1) | |
203 | ||
204 | Player = game:GetService("Players").LocalPlayer | |
205 | PlayerGui = Player.PlayerGui | |
206 | Cam = workspace.CurrentCamera | |
207 | Backpack = Player.Backpack | |
208 | Character = Player.Character | |
209 | Humanoid = Character.Humanoid | |
210 | Mouse = Player:GetMouse() | |
211 | RootPart = Character["HumanoidRootPart"] | |
212 | Torso = Character["Torso"] | |
213 | Head = Character["Head"] | |
214 | RightArm = Character["Right Arm"] | |
215 | LeftArm = Character["Left Arm"] | |
216 | RightLeg = Character["Right Leg"] | |
217 | LeftLeg = Character["Left Leg"] | |
218 | RootJoint = RootPart["RootJoint"] | |
219 | Neck = Torso["Neck"] | |
220 | RightShoulder = Torso["Right Shoulder"] | |
221 | LeftShoulder = Torso["Left Shoulder"] | |
222 | RightHip = Torso["Right Hip"] | |
223 | LeftHip = Torso["Left Hip"] | |
224 | local sick = Instance.new("Sound",Character) | |
225 | Player_Size = 1 | |
226 | ||
227 | IT = Instance.new | |
228 | CF = CFrame.new | |
229 | VT = Vector3.new | |
230 | RAD = math.rad | |
231 | C3 = Color3.new | |
232 | UD2 = UDim2.new | |
233 | BRICKC = BrickColor.new | |
234 | ANGLES = CFrame.Angles | |
235 | EULER = CFrame.fromEulerAnglesXYZ | |
236 | COS = math.cos | |
237 | ACOS = math.acos | |
238 | SIN = math.sin | |
239 | ASIN = math.asin | |
240 | ABS = math.abs | |
241 | MRANDOM = math.random | |
242 | FLOOR = math.floor | |
243 | ||
244 | Animation_Speed = 3 | |
245 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
246 | local Speed = 35 | |
247 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
248 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
249 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
250 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
251 | local DAMAGEMULTIPLIER = 1 | |
252 | local ANIM = "Idle" | |
253 | local ATTACK = false | |
254 | local EQUIPPED = false | |
255 | local HOLD = false | |
256 | local COMBO = 1 | |
257 | local Rooted = false | |
258 | local SINE = 0 | |
259 | local KEYHOLD = false | |
260 | local CHANGE = 2 / Animation_Speed | |
261 | local WALKINGANIM = false | |
262 | local VALUE1 = false | |
263 | local VALUE2 = false | |
264 | local ROBLOXIDLEANIMATION = IT("Animation") | |
265 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
266 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
267 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
268 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
269 | WEAPONGUI.Name = "Weapon GUI" | |
270 | local Effects = IT("Folder", Character) | |
271 | Effects.Name = "Effects" | |
272 | ||
273 | local SKILLTEXTCOLOR = C3(0,1,0) | |
274 | ||
275 | ||
276 | local remember = coroutine.wrap(function() | |
277 | while true do | |
278 | ||
279 | for _, c in pairs(Character:GetChildren()) do | |
280 | if c:IsA("Folder") then | |
281 | Effects = c | |
282 | ||
283 | ||
284 | ||
285 | ||
286 | end | |
287 | ||
288 | ||
289 | ||
290 | end | |
291 | ||
292 | ||
293 | ||
294 | ||
295 | wait() | |
296 | end | |
297 | ||
298 | end) | |
299 | ||
300 | remember() | |
301 | ||
302 | ||
303 | ||
304 | ||
305 | local ANIMATOR = Humanoid.Animator | |
306 | local ANIMATE = Character.Animate | |
307 | local UNANCHOR = true | |
308 | local PLAYSONG = true | |
309 | local EXTRATRANS = 0 | |
310 | ||
311 | --//=================================\\ | |
312 | --\\=================================// | |
313 | ||
314 | ||
315 | --//=================================\\ | |
316 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
317 | --\\=================================// | |
318 | ||
319 | ArtificialHB = Instance.new("BindableEvent", script) | |
320 | ArtificialHB.Name = "ArtificialHB" | |
321 | ||
322 | script:WaitForChild("ArtificialHB") | |
323 | ||
324 | frame = Frame_Speed | |
325 | tf = 0 | |
326 | allowframeloss = false | |
327 | tossremainder = false | |
328 | lastframe = tick() | |
329 | script.ArtificialHB:Fire() | |
330 | ||
331 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
332 | tf = tf + s | |
333 | if tf >= frame then | |
334 | if allowframeloss then | |
335 | script.ArtificialHB:Fire() | |
336 | lastframe = tick() | |
337 | else | |
338 | for i = 1, math.floor(tf / frame) do | |
339 | script.ArtificialHB:Fire() | |
340 | end | |
341 | lastframe = tick() | |
342 | end | |
343 | if tossremainder then | |
344 | tf = 0 | |
345 | else | |
346 | tf = tf - frame * math.floor(tf / frame) | |
347 | end | |
348 | end | |
349 | end) | |
350 | ||
351 | --//=================================\\ | |
352 | --|| Nameing crep || | |
353 | --\\=================================// | |
354 | ||
355 | ||
356 | m = game.Players.LocalPlayer | |
357 | char = m.Character | |
358 | local txt = Instance.new("BillboardGui", char) | |
359 | txt.Adornee = char.Head | |
360 | txt.Name = "_status" | |
361 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
362 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
363 | local text = Instance.new("TextLabel", txt) | |
364 | text.Size = UDim2.new(10, 0, 7, 0) | |
365 | text.FontSize = "Size24" | |
366 | text.TextScaled = true | |
367 | text.TextTransparency = 0 | |
368 | text.BackgroundTransparency = 1 | |
369 | text.TextTransparency = 0 | |
370 | text.TextStrokeTransparency = 1 | |
371 | text.Font = "Arcade" | |
372 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
373 | v = Instance.new("Part") | |
374 | v.Name = "ColorBrick" | |
375 | v.Parent = m.Character | |
376 | v.FormFactor = "Symmetric" | |
377 | v.Anchored = true | |
378 | v.CanCollide = false | |
379 | v.BottomSurface = "Smooth" | |
380 | v.TopSurface = "Smooth" | |
381 | v.Size = Vector3.new(10, 5, 3) | |
382 | v.Transparency = 1 | |
383 | v.CFrame = char.Torso.CFrame | |
384 | v.BrickColor = BrickColor.new("Really black") | |
385 | v.Transparency = 1 | |
386 | v.Shape = "Block" | |
387 | spawn(function() | |
388 | local TweenService = game:GetService("TweenService") | |
389 | local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
390 | local Int = 0 | |
391 | while wait(0.5) do | |
392 | if Int == #Colours then Int = 0 end | |
393 | Int = Int+1 | |
394 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
395 | end | |
396 | end) | |
397 | text.Text = "God of Shapes" | |
398 | ||
399 | ||
400 | --//=================================\\ | |
401 | --|| SOME FUNCTIONS | |
402 | --\\=================================// | |
403 | ||
404 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
405 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
406 | end | |
407 | ||
408 | function PositiveAngle(NUMBER) | |
409 | if NUMBER >= 0 then | |
410 | NUMBER = 0 | |
411 | end | |
412 | return NUMBER | |
413 | end | |
414 | ||
415 | function NegativeAngle(NUMBER) | |
416 | if NUMBER <= 0 then | |
417 | NUMBER = 0 | |
418 | end | |
419 | return NUMBER | |
420 | end | |
421 | ||
422 | function Swait(NUMBER) | |
423 | if NUMBER == 0 or NUMBER == nil then | |
424 | ArtificialHB.Event:wait() | |
425 | else | |
426 | for i = 1, NUMBER do | |
427 | ArtificialHB.Event:wait() | |
428 | end | |
429 | end | |
430 | end | |
431 | ||
432 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
433 | local NEWMESH = IT(MESH) | |
434 | if MESH == "SpecialMesh" then | |
435 | NEWMESH.MeshType = MESHTYPE | |
436 | if MESHID ~= "nil" and MESHID ~= "" then | |
437 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
438 | end | |
439 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
440 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
441 | end | |
442 | end | |
443 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
444 | NEWMESH.Scale = SCALE | |
445 | NEWMESH.Parent = PARENT | |
446 | return NEWMESH | |
447 | end | |
448 | ||
449 | ||
450 | ||
451 | local function weldBetween(a, b) | |
452 | local weldd = Instance.new("ManualWeld") | |
453 | weldd.Part0 = a | |
454 | weldd.Part1 = b | |
455 | weldd.C0 = CFrame.new() | |
456 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
457 | weldd.Parent = a | |
458 | return weldd | |
459 | end | |
460 | ||
461 | ||
462 | function QuaternionFromCFrame(cf) | |
463 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
464 | local trace = m00 + m11 + m22 | |
465 | if trace > 0 then | |
466 | local s = math.sqrt(1 + trace) | |
467 | local recip = 0.5 / s | |
468 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
469 | else | |
470 | local i = 0 | |
471 | if m11 > m00 then | |
472 | i = 1 | |
473 | end | |
474 | if m22 > (i == 0 and m00 or m11) then | |
475 | i = 2 | |
476 | end | |
477 | if i == 0 then | |
478 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
479 | local recip = 0.5 / s | |
480 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
481 | elseif i == 1 then | |
482 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
483 | local recip = 0.5 / s | |
484 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
485 | elseif i == 2 then | |
486 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
487 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
488 | end | |
489 | end | |
490 | end | |
491 | ||
492 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
493 | local xs, ys, zs = x + x, y + y, z + z | |
494 | local wx, wy, wz = w * xs, w * ys, w * zs | |
495 | local xx = x * xs | |
496 | local xy = x * ys | |
497 | local xz = x * zs | |
498 | local yy = y * ys | |
499 | local yz = y * zs | |
500 | local zz = z * zs | |
501 | 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)) | |
502 | end | |
503 | ||
504 | function QuaternionSlerp(a, b, t) | |
505 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
506 | local startInterp, finishInterp; | |
507 | if cosTheta >= 0.0001 then | |
508 | if (1 - cosTheta) > 0.0001 then | |
509 | local theta = ACOS(cosTheta) | |
510 | local invSinTheta = 1 / SIN(theta) | |
511 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
512 | finishInterp = SIN(t * theta) * invSinTheta | |
513 | else | |
514 | startInterp = 1 - t | |
515 | finishInterp = t | |
516 | end | |
517 | else | |
518 | if (1 + cosTheta) > 0.0001 then | |
519 | local theta = ACOS(-cosTheta) | |
520 | local invSinTheta = 1 / SIN(theta) | |
521 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
522 | finishInterp = SIN(t * theta) * invSinTheta | |
523 | else | |
524 | startInterp = t - 1 | |
525 | finishInterp = t | |
526 | end | |
527 | end | |
528 | 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 | |
529 | end | |
530 | ||
531 | function Clerp(a, b, t) | |
532 | local qa = {QuaternionFromCFrame(a)} | |
533 | local qb = {QuaternionFromCFrame(b)} | |
534 | local ax, ay, az = a.x, a.y, a.z | |
535 | local bx, by, bz = b.x, b.y, b.z | |
536 | local _t = 1 - t | |
537 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
538 | end | |
539 | ||
540 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
541 | local frame = IT("Frame") | |
542 | frame.BackgroundTransparency = TRANSPARENCY | |
543 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
544 | frame.Position = POSITION | |
545 | frame.Size = SIZE | |
546 | frame.BackgroundColor3 = COLOR | |
547 | frame.BorderColor3 = BORDERCOLOR | |
548 | frame.Name = NAME | |
549 | frame.Parent = PARENT | |
550 | return frame | |
551 | end | |
552 | ||
553 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
554 | local label = IT("TextLabel") | |
555 | label.BackgroundTransparency = 1 | |
556 | label.Size = UD2(1, 0, 1, 0) | |
557 | label.Position = UD2(0, 0, 0, 0) | |
558 | label.TextColor3 = TEXTCOLOR | |
559 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
560 | label.TextTransparency = TRANSPARENCY | |
561 | label.FontSize = TEXTFONTSIZE | |
562 | label.Font = TEXTFONT | |
563 | label.BorderSizePixel = BORDERSIZEPIXEL | |
564 | label.TextScaled = false | |
565 | label.Text = TEXT | |
566 | label.Name = NAME | |
567 | label.Parent = PARENT | |
568 | return label | |
569 | end | |
570 | ||
571 | function NoOutlines(PART) | |
572 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
573 | end | |
574 | ||
575 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
576 | local NEWWELD = IT(TYPE) | |
577 | NEWWELD.Part0 = PART0 | |
578 | NEWWELD.Part1 = PART1 | |
579 | NEWWELD.C0 = C0 | |
580 | NEWWELD.C1 = C1 | |
581 | NEWWELD.Parent = PARENT | |
582 | return NEWWELD | |
583 | end | |
584 | ||
585 | local S = IT("Sound") | |
586 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
587 | local NEWSOUND = nil | |
588 | coroutine.resume(coroutine.create(function() | |
589 | NEWSOUND = S:Clone() | |
590 | NEWSOUND.Parent = PARENT | |
591 | NEWSOUND.Volume = VOLUME | |
592 | NEWSOUND.Pitch = PITCH | |
593 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
594 | NEWSOUND:play() | |
595 | if DOESLOOP == true then | |
596 | NEWSOUND.Looped = true | |
597 | else | |
598 | repeat wait(1) until NEWSOUND.Playing == false | |
599 | NEWSOUND:remove() | |
600 | end | |
601 | end)) | |
602 | return NEWSOUND | |
603 | end | |
604 | ||
605 | function CFrameFromTopBack(at, top, back) | |
606 | local right = top:Cross(back) | |
607 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
608 | end | |
609 | ||
610 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
611 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
612 | local mesh = IT("SpecialMesh",wave) | |
613 | mesh.MeshType = "FileMesh" | |
614 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
615 | mesh.Scale = SIZE | |
616 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
617 | wave.CFrame = CFRAME | |
618 | coroutine.resume(coroutine.create(function(PART) | |
619 | for i = 1, WAIT do | |
620 | Swait() | |
621 | mesh.Scale = mesh.Scale + GROW | |
622 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
623 | if DOESROT == true then | |
624 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
625 | end | |
626 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
627 | if wave.Transparency > 0.99 then | |
628 | wave:remove() | |
629 | end | |
630 | end | |
631 | end)) | |
632 | end | |
633 | ||
634 | function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
635 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
636 | local mesh = IT("SpecialMesh",wave) | |
637 | mesh.MeshType = "FileMesh" | |
638 | mesh.MeshId = "http://www.roblox.com/asset/?id=9982590" | |
639 | mesh.Scale = SIZE | |
640 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
641 | wave.CFrame = CFRAME | |
642 | coroutine.resume(coroutine.create(function(PART) | |
643 | for i = 1, WAIT do | |
644 | Swait() | |
645 | mesh.Scale = mesh.Scale + GROW | |
646 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
647 | if DOESROT == true then | |
648 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
649 | end | |
650 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
651 | if wave.Transparency > 0.99 then | |
652 | wave:remove() | |
653 | end | |
654 | end | |
655 | end)) | |
656 | end | |
657 | ||
658 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
659 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
660 | local mesh = IT("SpecialMesh",wave) | |
661 | mesh.MeshType = "FileMesh" | |
662 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
663 | mesh.Scale = SIZE | |
664 | wave.CFrame = CFRAME | |
665 | coroutine.resume(coroutine.create(function(PART) | |
666 | for i = 1, WAIT do | |
667 | Swait() | |
668 | mesh.Scale = mesh.Scale + GROW | |
669 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
670 | if DOESROT == true then | |
671 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
672 | end | |
673 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
674 | if wave.Transparency > 0.99 then | |
675 | wave:remove() | |
676 | end | |
677 | end | |
678 | end)) | |
679 | end | |
680 | ||
681 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
682 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
683 | local mesh = IT("SpecialMesh",wave) | |
684 | mesh.MeshType = "Sphere" | |
685 | mesh.Scale = SIZE | |
686 | mesh.Offset = VT(0,0,0) | |
687 | wave.CFrame = CFRAME | |
688 | coroutine.resume(coroutine.create(function(PART) | |
689 | for i = 1, WAIT do | |
690 | Swait() | |
691 | mesh.Scale = mesh.Scale + GROW | |
692 | wave.Transparency = wave.Transparency + (1/WAIT) | |
693 | if wave.Transparency > 0.99 then | |
694 | wave:remove() | |
695 | end | |
696 | end | |
697 | end)) | |
698 | end | |
699 | ||
700 | ||
701 | ------------------------------------------- | |
702 | ------------------------------------------------ | |
703 | ||
704 | ------------------------------------------------------------------------------------------------------------------------------ | |
705 | ||
706 | ||
707 | ||
708 | ||
709 | ||
710 | ||
711 | local headness = script.headness | |
712 | headness.Parent = Character | |
713 | headness.CFrame = Torso.CFrame*CFrame.new(0,2,0) | |
714 | weldBetween(Head,headness) | |
715 | ||
716 | local Blockhead = script.Blockhead | |
717 | Blockhead.Parent = headness | |
718 | ||
719 | ||
720 | ||
721 | for _, c in pairs(Character:GetChildren()) do | |
722 | ||
723 | if c:IsA("BasePart") then | |
724 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
725 | c:Remove() | |
726 | end | |
727 | if c == Head then | |
728 | if c:FindFirstChild("face") then | |
729 | c.face:remove() | |
730 | end | |
731 | end | |
732 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" or c.ClassName == "ShirtGraphic"then | |
733 | c:remove() | |
734 | end | |
735 | end | |
736 | local BODY = {} | |
737 | for _, c in pairs(Character:GetDescendants()) do | |
738 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
739 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
740 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
741 | ||
742 | end | |
743 | ||
744 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
745 | ||
746 | elseif c:IsA("JointInstance") then | |
747 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
748 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
749 | c:remove() | |
750 | ||
751 | end | |
752 | ||
753 | ||
754 | end | |
755 | ||
756 | for e = 1, #BODY do | |
757 | if BODY[e] ~= nil then | |
758 | local STUFF = BODY[e] | |
759 | local PART = STUFF[1] | |
760 | local PARENT = STUFF[2] | |
761 | local MATERIAL = STUFF[3] | |
762 | local COLOR = STUFF[4] | |
763 | local TRANSPARENCY = STUFF[5] | |
764 | if PART.ClassName == "Part" and PART ~= RootPart then | |
765 | PART.Material = MATERIAL | |
766 | PART.Color = COLOR | |
767 | PART.Transparency = TRANSPARENCY | |
768 | end | |
769 | PART.AncestryChanged:Connect(function() | |
770 | PART.Parent = PARENT | |
771 | end) | |
772 | end | |
773 | end | |
774 | function refit() | |
775 | ||
776 | ||
777 | Character.Parent = workspace | |
778 | for e = 1, #BODY do | |
779 | if BODY[e] ~= nil then | |
780 | local STUFF = BODY[e] | |
781 | local PART = STUFF[1] | |
782 | local PARENT = STUFF[2] | |
783 | local MATERIAL = STUFF[3] | |
784 | local COLOR = STUFF[4] | |
785 | local TRANSPARENCY = STUFF[5] | |
786 | if PART:IsA("BasePart") and PART ~= RootPart then | |
787 | ||
788 | end | |
789 | ||
790 | if PART.Parent ~= PARENT then | |
791 | Humanoid:remove() | |
792 | PART.Parent = PARENT | |
793 | Humanoid = IT("Humanoid",Character) | |
794 | end | |
795 | ||
796 | end | |
797 | end | |
798 | end | |
799 | ||
800 | Humanoid.Died:connect(function() | |
801 | for _, c in pairs(Character:GetChildren()) do | |
802 | c:Remove() | |
803 | local headness = script.headness | |
804 | headness.Parent = Character | |
805 | headness.CFrame = Torso.CFrame*CFrame.new(0,2,0) | |
806 | weldBetween(headness,Head) | |
807 | ||
808 | local Blockhead = script.Blockhead | |
809 | Blockhead.Parent = headness | |
810 | end | |
811 | refit() | |
812 | createstuff() | |
813 | end) | |
814 | ||
815 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
816 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
817 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
818 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
819 | --local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
820 | --local SKILL6FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.130, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
821 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.01, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
822 | ||
823 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[E] Change to Cube", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text 1") | |
824 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Change to Explosion", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text 2") | |
825 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Q] Teleport", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text 3") | |
826 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[F] Rainbow Smite", SKILLTEXTCOLOR, 6, "Arcade", 0, 2, 1, "Text4") | |
827 | --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[G] Rainbow Nuke (NOT WORKING UGH)", SKILLTEXTCOLOR, 6, "Arcade", 0, 2, 1, "Text5") | |
828 | --local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[] ", SKILLTEXTCOLOR, 6, "Arcade", 0, 2, 1, "Text6") | |
829 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[CLICK] Cube of Rainbow", SKILLTEXTCOLOR, 7, "Arcade", 0, 2, 1, "Text7") | |
830 | ||
831 | spawn(function() | |
832 | local TweenService = game:GetService("TweenService") | |
833 | local Colourss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
834 | local Intt = 0 | |
835 | while wait(0.5) do | |
836 | if Intt == #Colourss then Intt = 0 end | |
837 | Intt = Intt+1 | |
838 | TweenService:Create(SKILL7TEXT,TweenInfo.new(1),{TextColor3 = Colourss[Intt]}):Play() | |
839 | end | |
840 | end) | |
841 | ||
842 | spawn(function() | |
843 | local TweenService = game:GetService("TweenService") | |
844 | local Coloursss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
845 | local Inttt = 0 | |
846 | while wait(0.5) do | |
847 | if Inttt == #Coloursss then Inttt = 0 end | |
848 | Inttt = Inttt+1 | |
849 | TweenService:Create(SKILL4TEXT,TweenInfo.new(1),{TextColor3 = Coloursss[Inttt]}):Play() | |
850 | end | |
851 | end) | |
852 | ||
853 | --spawn(function() | |
854 | --local TweenService = game:GetService("TweenService") | |
855 | --local Clourss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
856 | --local Itt = 0 | |
857 | --while wait(0.5) do | |
858 | -- --if Itt == #Clourss then Itt = 0 end | |
859 | -- --Itt = Itt+1 | |
860 | -- --TweenService:Create(SKILL5TEXT,TweenInfo.new(1),{TextColor3 = Clourss[Itt]}):Play() | |
861 | --end | |
862 | --end) | |
863 | ||
864 | spawn(function() | |
865 | local TweenService = game:GetService("TweenService") | |
866 | local Clouurss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
867 | local Itlt = 0 | |
868 | while wait(0.5) do | |
869 | if Itlt == #Clouurss then Itlt = 0 end | |
870 | Itlt = Itlt+1 | |
871 | TweenService:Create(SKILL1TEXT,TweenInfo.new(1),{TextColor3 = Clouurss[Itlt]}):Play() | |
872 | end | |
873 | end) | |
874 | ||
875 | spawn(function() | |
876 | local TweenService = game:GetService("TweenService") | |
877 | local Cloouurss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
878 | local Ixtlt = 0 | |
879 | while wait(0.5) do | |
880 | if Ixtlt == #Cloouurss then Ixtlt = 0 end | |
881 | Ixtlt = Ixtlt+1 | |
882 | TweenService:Create(SKILL2TEXT,TweenInfo.new(1),{TextColor3 = Cloouurss[Ixtlt]}):Play() | |
883 | end | |
884 | end) | |
885 | ||
886 | spawn(function() | |
887 | local TweenService = game:GetService("TweenService") | |
888 | local Cllouurss = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)} | |
889 | local Itplt = 0 | |
890 | while wait(0.5) do | |
891 | if Itplt == #Cllouurss then Itplt = 0 end | |
892 | Itplt = Itplt+1 | |
893 | TweenService:Create(SKILL3TEXT,TweenInfo.new(1),{TextColor3 = Cllouurss[Itplt]}):Play() | |
894 | end | |
895 | end) | |
896 | ||
897 | local r = 255 | |
898 | local g = 0 | |
899 | local b = 0 | |
900 | ||
901 | local random3 = coroutine.wrap(function() | |
902 | while true do | |
903 | ||
904 | for i = 0, 254/5 do | |
905 | Swait() | |
906 | ||
907 | g = g + 5 | |
908 | end | |
909 | for i = 0, 254/5 do | |
910 | Swait() | |
911 | ||
912 | r = r - 5 | |
913 | end | |
914 | for i = 0, 254/5 do | |
915 | Swait() | |
916 | b = b + 5 | |
917 | end | |
918 | for i = 0, 254/5 do | |
919 | Swait() | |
920 | g = g - 5 | |
921 | end | |
922 | for i = 0, 254/5 do | |
923 | Swait() | |
924 | r = r + 5 | |
925 | end | |
926 | for i = 0, 254/5 do | |
927 | Swait() | |
928 | b = b - 5 | |
929 | end | |
930 | ||
931 | ||
932 | ||
933 | Swait() | |
934 | ||
935 | ||
936 | ||
937 | ||
938 | ||
939 | ||
940 | ||
941 | ||
942 | end | |
943 | ||
944 | end) | |
945 | random3() | |
946 | local r1 = r | |
947 | local g1 = g | |
948 | local b1 = b | |
949 | ||
950 | local RainbowEffect = coroutine.wrap(function() | |
951 | while true do | |
952 | Swait() | |
953 | r1 = r | |
954 | g1 = g | |
955 | b1 = b | |
956 | ||
957 | end | |
958 | ||
959 | end) | |
960 | ||
961 | ||
962 | function WACKYEFFECT(Table) | |
963 | ||
964 | local TYPE = Table.EffectType or "Sphere" | |
965 | local SIZE = Table.Size or VT(1, 1, 1) | |
966 | local ENDSIZE = Table.Size2 or VT(0, 0, 0) | |
967 | local TRANSPARENCY = Table.Transparency or 0 | |
968 | local ENDTRANSPARENCY = Table.Transparency2 or 1 | |
969 | local CFRAME = Table.CFrame or Torso.CFrame | |
970 | local MOVEDIRECTION = Table.MoveToPos or nil | |
971 | local ROTATION1 = Table.RotationX or 0 | |
972 | local ROTATION2 = Table.RotationY or 0 | |
973 | local ROTATION3 = Table.RotationZ or 0 | |
974 | local MATERIAL = Table.Material or "Neon" | |
975 | local COLOR = Table.Color or C3(r1/255,g1/255, b1/255) | |
976 | ||
977 | ||
978 | RainbowEffect() | |
979 | local TIME = Table.Time or 45 | |
980 | local SOUNDID = Table.SoundID or nil | |
981 | local SOUNDPITCH = Table.SoundPitch or nil | |
982 | local SOUNDVOLUME = Table.SoundVolume or nil | |
983 | coroutine.resume(coroutine.create(function() | |
984 | ||
985 | ||
986 | local PLAYSSOUND = false | |
987 | local SOUND | |
988 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) | |
989 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
990 | PLAYSSOUND = true | |
991 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
992 | end | |
993 | ||
994 | local colorss = coroutine.wrap(function() | |
995 | for i = 0,50,1 do | |
996 | ||
997 | Swait() | |
998 | ||
999 | EFFECT.Color = Color3.new(r1/255,g1/255, b1/255) | |
1000 | end | |
1001 | end) | |
1002 | colorss() | |
1003 | local MSH | |
1004 | if TYPE == "Sphere" then | |
1005 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
1006 | elseif TYPE == "Block" then | |
1007 | MSH = IT("BlockMesh", EFFECT) | |
1008 | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) | |
1009 | elseif TYPE == "Wave" then | |
1010 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
1011 | elseif TYPE == "Ring" then | |
1012 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) | |
1013 | elseif TYPE == "Slash" then | |
1014 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
1015 | elseif TYPE == "Round Slash" then | |
1016 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) | |
1017 | elseif TYPE == "Swirl" then | |
1018 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) | |
1019 | elseif TYPE == "Skull" then | |
1020 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) | |
1021 | elseif TYPE == "Crystal" then | |
1022 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) | |
1023 | end | |
1024 | if MSH ~= nil then | |
1025 | local MOVESPEED | |
1026 | if MOVEDIRECTION ~= nil then | |
1027 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME | |
1028 | end | |
1029 | local GROWTH = SIZE - ENDSIZE | |
1030 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1031 | if TYPE == "Block" then | |
1032 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
1033 | else | |
1034 | EFFECT.CFrame = CFRAME | |
1035 | end | |
1036 | for LOOP = 1, TIME + 1 do | |
1037 | Swait() | |
1038 | ||
1039 | MSH.Scale = MSH.Scale - GROWTH / TIME | |
1040 | if TYPE == "Wave" then | |
1041 | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) | |
1042 | end | |
1043 | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME | |
1044 | if TYPE == "Block" then | |
1045 | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) | |
1046 | else | |
1047 | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) | |
1048 | end | |
1049 | if MOVEDIRECTION ~= nil then | |
1050 | local ORI = EFFECT.Orientation | |
1051 | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) | |
1052 | EFFECT.Orientation = ORI | |
1053 | end | |
1054 | end | |
1055 | if PLAYSSOUND == false then | |
1056 | EFFECT:remove() | |
1057 | else | |
1058 | repeat | |
1059 | Swait() | |
1060 | until SOUND.Playing == false | |
1061 | EFFECT:remove() | |
1062 | end | |
1063 | elseif PLAYSSOUND == false then | |
1064 | EFFECT:remove() | |
1065 | else | |
1066 | repeat | |
1067 | Swait() | |
1068 | until SOUND.Playing == false | |
1069 | EFFECT:remove() | |
1070 | end | |
1071 | end)) | |
1072 | end | |
1073 | ||
1074 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1075 | local NEWMESH = IT(MESH) | |
1076 | if MESH == "SpecialMesh" then | |
1077 | NEWMESH.MeshType = MESHTYPE | |
1078 | if MESHID ~= "nil" and MESHID ~= "" then | |
1079 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID | |
1080 | end | |
1081 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1082 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID | |
1083 | end | |
1084 | end | |
1085 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1086 | NEWMESH.Scale = SCALE | |
1087 | NEWMESH.Parent = PARENT | |
1088 | return NEWMESH | |
1089 | end | |
1090 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1091 | local NEWPART = IT("Part") | |
1092 | NEWPART.formFactor = FORMFACTOR | |
1093 | NEWPART.Reflectance = REFLECTANCE | |
1094 | NEWPART.Transparency = TRANSPARENCY | |
1095 | NEWPART.CanCollide = false | |
1096 | NEWPART.Locked = true | |
1097 | NEWPART.Anchored = true | |
1098 | if ANCHOR == false then | |
1099 | NEWPART.Anchored = false | |
1100 | end | |
1101 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1102 | NEWPART.Name = NAME | |
1103 | NEWPART.Size = SIZE | |
1104 | NEWPART.Position = Torso.Position | |
1105 | NEWPART.Material = MATERIAL | |
1106 | NEWPART:BreakJoints() | |
1107 | NEWPART.Parent = PARENT | |
1108 | return NEWPART | |
1109 | end | |
1110 | ||
1111 | local DParticles = script.Death | |
1112 | DParticles:remove() | |
1113 | DParticles.Name = "ArchangelDeathParticles" | |
1114 | ||
1115 | function MakeForm(PART, TYPE) | |
1116 | if TYPE == "Cyl" then | |
1117 | local MSH = IT("CylinderMesh", PART) | |
1118 | elseif TYPE == "Ball" then | |
1119 | local MSH = IT("SpecialMesh", PART) | |
1120 | MSH.MeshType = "Sphere" | |
1121 | elseif TYPE == "Wedge" then | |
1122 | local MSH = IT("SpecialMesh", PART) | |
1123 | MSH.MeshType = "Wedge" | |
1124 | end | |
1125 | end | |
1126 | Debris = game:GetService("Debris") | |
1127 | ||
1128 | local DECAL = IT("Decal") | |
1129 | function MakeRing() | |
1130 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true) | |
1131 | local MSH = IT("BlockMesh", RING) | |
1132 | local TOP = DECAL:Clone() | |
1133 | local BOTTOM = DECAL:Clone() | |
1134 | TOP.Parent = RING | |
1135 | BOTTOM.Parent = RING | |
1136 | TOP.Face = "Top" | |
1137 | BOTTOM.Face = "Bottom" | |
1138 | TOP.Texture = "http://www.roblox.com/asset/?id=127817121" | |
1139 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121" | |
1140 | local function REMOVE() | |
1141 | coroutine.resume(coroutine.create(function() | |
1142 | local SIZE = MSH.Scale.X | |
1143 | for i = 1, 35 do | |
1144 | Swait() | |
1145 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
1146 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
1147 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
1148 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
1149 | end | |
1150 | RING:remove() | |
1151 | end)) | |
1152 | end | |
1153 | return RING, MSH, REMOVE | |
1154 | end | |
1155 | ||
1156 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
1157 | local TORSO = Torso | |
1158 | local HUM = Humanoid | |
1159 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1160 | coroutine.wrap(function() | |
1161 | VT = Vector3.new | |
1162 | MRANDOM = math.random | |
1163 | local A = TIME | |
1164 | local B = INTENSITY | |
1165 | local C = true | |
1166 | local HUMANOID = Humanoid | |
1167 | local TIMER = A or 35 | |
1168 | local SHAKE = B or 5 | |
1169 | local FADE = C or true | |
1170 | if HUMANOID then | |
1171 | local FADER = SHAKE / TIMER | |
1172 | for i = 1, TIMER do | |
1173 | wait() | |
1174 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
1175 | end | |
1176 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
1177 | end | |
1178 | ||
1179 | end)() | |
1180 | end | |
1181 | end | |
1182 | ||
1183 | function KillChildren(v) | |
1184 | v:BreakJoints() | |
1185 | for _, c in pairs(v:GetChildren()) do | |
1186 | if c:IsA("BasePart") then | |
1187 | if c.Transparency < 1 then | |
1188 | if c:FindFirstChildOfClass("Decal") then | |
1189 | c:FindFirstChildOfClass("Decal"):remove() | |
1190 | end | |
1191 | particles(c) | |
1192 | c.PE.Enabled = true | |
1193 | c.Parent = Effects | |
1194 | c.CanCollide = false | |
1195 | c.Material = "Neon" | |
1196 | c.Color = C3(1,1,1) | |
1197 | c.Transparency = 1 | |
1198 | local grav = Instance.new("BodyPosition",c) | |
1199 | grav.P = 20000 | |
1200 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1201 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1202 | grav.Name = "GravityForce" | |
1203 | coroutine.resume(coroutine.create(function() | |
1204 | for i = 1, 20 do | |
1205 | Swait() | |
1206 | c.Transparency = c.Transparency + 1/20 | |
1207 | end | |
1208 | c.PE.Enabled = false | |
1209 | Debris:AddItem(c,2) | |
1210 | end)) | |
1211 | end | |
1212 | end | |
1213 | end | |
1214 | end | |
1215 | ||
1216 | function killnearest(position,range,maxstrength) | |
1217 | for i,v in ipairs(workspace:GetChildren()) do | |
1218 | local body = v:GetChildren() | |
1219 | for part = 1, #body do | |
1220 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1221 | if(body[part].Position - position).Magnitude < range then | |
1222 | if v.ClassName == "Model" then | |
1223 | v:BreakJoints() | |
1224 | end | |
1225 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1226 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1227 | end | |
1228 | end | |
1229 | end | |
1230 | if v.ClassName == "Part" then | |
1231 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1232 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1233 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1234 | end | |
1235 | end | |
1236 | end | |
1237 | end | |
1238 | ||
1239 | function ApplyAoE(POSITION, RANGE) | |
1240 | local PARTS = {} | |
1241 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
1242 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1243 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1244 | if HUM then | |
1245 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1246 | if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1247 | CHILD:BreakJoints() | |
1248 | for index, PART in pairs(CHILD:GetChildren()) do | |
1249 | if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then | |
1250 | local P = DParticles:Clone() | |
1251 | ||
1252 | P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1)) | |
1253 | ||
1254 | table.insert(PARTS, {PART, P}) | |
1255 | end | |
1256 | end | |
1257 | end | |
1258 | end | |
1259 | elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then | |
1260 | local FOLDER = IT("Folder", CHILD) | |
1261 | FOLDER.Name = "ewdfrfgrwefd" | |
1262 | local P = DParticles:Clone() | |
1263 | ||
1264 | CHILD.Velocity = Vector3.new(math.huge,math.huge,math.huge) | |
1265 | ||
1266 | ||
1267 | P.Rate = math.ceil(CHILD.Size.Magnitude / 2) | |
1268 | P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1)) | |
1269 | table.insert(PARTS, {CHILD, P}) | |
1270 | end | |
1271 | end | |
1272 | coroutine.resume(coroutine.create(function() | |
1273 | if #PARTS > 0 then | |
1274 | for i = 1, 85 do | |
1275 | Swait() | |
1276 | for E = 1, #PARTS do | |
1277 | local F = PARTS[E] | |
1278 | local A = F[1] | |
1279 | local B = F[2] | |
1280 | A.Transparency = A.Transparency + 0.011764705882352941 | |
1281 | B.Rate = math.ceil(B.Rate * 1.2) | |
1282 | for index, E in pairs(A:GetChildren()) do | |
1283 | ||
1284 | end | |
1285 | end | |
1286 | end | |
1287 | for E = 1, #PARTS do | |
1288 | local F = PARTS[E] | |
1289 | local A = F[1] | |
1290 | local B = F[2] | |
1291 | B.Enabled = false | |
1292 | Debris:AddItem(A, 3) | |
1293 | end | |
1294 | end | |
1295 | end)) | |
1296 | end | |
1297 | ||
1298 | function AntiTimeStop() | |
1299 | for _, c in pairs(Character:GetChildren()) do | |
1300 | if c:IsA("Part") and c ~= RootPart then | |
1301 | c.Anchored = false | |
1302 | end | |
1303 | end | |
1304 | if UNANCHOR == true then | |
1305 | RootPart.Anchored = false | |
1306 | else | |
1307 | RootPart.Anchored = true | |
1308 | end | |
1309 | end | |
1310 | ||
1311 | Humanoid.Changed:connect(function(Jump) | |
1312 | if Jump == "Jump" and (Disable_Jump == true) then | |
1313 | Humanoid.Jump = false | |
1314 | end | |
1315 | ||
1316 | ||
1317 | end) | |
1318 | ||
1319 | ||
1320 | local cR=255 | |
1321 | local cG=0 | |
1322 | local cB=0 | |
1323 | local flg5=1 local omgidk=1 | |
1324 | local add=7.5 | |
1325 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
1326 | if omgidk>10000 then omgidk=0 end | |
1327 | omgidk=omgidk+1 | |
1328 | if cR>=255 then flg5=1 end | |
1329 | if cG>=255 then flg5=2 end | |
1330 | if cB>=255 then flg5=3 end | |
1331 | if flg5==1 then cR=cR-add cG=cG+add end | |
1332 | if flg5==2 then cG=cG-add cB=cB+add end | |
1333 | if flg5==3 then cB=cB-add cR=cR+add end | |
1334 | color=Color3.fromRGB(cR,cG,cB) | |
1335 | end) | |
1336 | ||
1337 | --------------------------------------------------\\\\ | |
1338 | -- ATTACKS |||| | |
1339 | --------------------------------------------------//// | |
1340 | ||
1341 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
1342 | coroutine.resume(coroutine.create(function() | |
1343 | local METEOR = IT("Model",Effects) | |
1344 | METEOR.Name = "Meteorite" | |
1345 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
1346 | METEOR.PrimaryPart = CENTER | |
1347 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
1348 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1349 | for i = 1, 15 do | |
1350 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "White", "Fire", VT(5.1,1,5.1)*SIZE) | |
1351 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1352 | end | |
1353 | if ISDEBREE ~= true then | |
1354 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1355 | else | |
1356 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1357 | end | |
1358 | local IMPACT = false | |
1359 | CreateSound(463593339, CENTER, 10, 0.6) | |
1360 | if SIZE >= 3.5 then | |
1361 | for i = 1, MRANDOM(3,7) do | |
1362 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
1363 | end | |
1364 | end | |
1365 | for i = 1, 200 do | |
1366 | Swait() | |
1367 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
1368 | if HITFLOOR == nil then | |
1369 | local ORI = CENTER.Orientation | |
1370 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1371 | else | |
1372 | if HITFLOOR.Anchored == true then | |
1373 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
1374 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
1375 | end | |
1376 | IMPACT = true | |
1377 | break | |
1378 | end | |
1379 | end | |
1380 | if IMPACT == true then | |
1381 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1382 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
1383 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1384 | ApplyAoE(CENTER.Position,30*SIZE) | |
1385 | end | |
1386 | METEOR:remove() | |
1387 | end)) | |
1388 | end | |
1389 | ||
1390 | function SpawnSmite(POS) | |
1391 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
1392 | local EMITPOS = HITPOS | |
1393 | if HITFLOOR ~= nil then | |
1394 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
1395 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
1396 | EMITPOS = HITPOS | |
1397 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1398 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
1399 | EMITPOS = HITPOS | |
1400 | end | |
1401 | end | |
1402 | if HITFLOOR ~= nil then | |
1403 | ApplyAoE(EMITPOS,10) | |
1404 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 1602946208, SoundPitch = 1, SoundVolume = 5}) | |
1405 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1406 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1407 | for i = 1, 5 do | |
1408 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
1409 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 1602946208, SoundPitch = 1, SoundVolume = 5}) | |
1410 | end | |
1411 | end | |
1412 | end | |
1413 | ||
1414 | function Meteor() | |
1415 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1416 | if DIST > 180 then | |
1417 | DIST = 180 | |
1418 | end | |
1419 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1420 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
1421 | if HITFLOOR then | |
1422 | local POS = HITPOS | |
1423 | ATTACK = true | |
1424 | Rooted = true | |
1425 | local WARPED = false | |
1426 | local SMASHED = false | |
1427 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1428 | coroutine.resume(coroutine.create(function() | |
1429 | repeat | |
1430 | Swait() | |
1431 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1432 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1433 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1434 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1435 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1436 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1437 | until WARPED == true | |
1438 | repeat | |
1439 | Swait() | |
1440 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1441 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1442 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1443 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1444 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1445 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1446 | until SMASHED == true | |
1447 | repeat | |
1448 | Swait() | |
1449 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1450 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1451 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1452 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1453 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1454 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1455 | until ATTACK == false | |
1456 | end)) | |
1457 | VALUE1 = true | |
1458 | CreateSound(233856115, Torso, 5, 1.6, false) | |
1459 | for i = 1, 25 do | |
1460 | Swait() | |
1461 | for _, c in pairs(Character:GetChildren()) do | |
1462 | if c.ClassName == "Part" then | |
1463 | c.Transparency = c.Transparency + 1/25 | |
1464 | end | |
1465 | end | |
1466 | for _, c in pairs(Weapon:GetChildren()) do | |
1467 | if c.ClassName == "Part" then | |
1468 | c.Transparency = c.Transparency + 1/25 | |
1469 | end | |
1470 | end | |
1471 | end | |
1472 | UNANCHOR = false | |
1473 | RootPart.Anchored = true | |
1474 | RootPart.Velocity = VT(0,0,0) | |
1475 | local ROOTPOS = RootPart.Position | |
1476 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
1477 | WARPED = true | |
1478 | for i = 1, 25 do | |
1479 | Swait() | |
1480 | for _, c in pairs(Character:GetChildren()) do | |
1481 | if c.ClassName == "Part" then | |
1482 | c.Transparency = c.Transparency - 0/25 | |
1483 | end | |
1484 | end | |
1485 | for _, c in pairs(Weapon:GetChildren()) do | |
1486 | if c.ClassName == "Part" then | |
1487 | c.Transparency = c.Transparency - 1/25 | |
1488 | end | |
1489 | end | |
1490 | end | |
1491 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Color3.fromRGB(cR,cG,cB)", "Part", VT(0,0,0)) | |
1492 | SHELL.CFrame = RootPart.CFrame | |
1493 | MakeForm(SHELL,"Ball") | |
1494 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
1495 | for i = 1, 10 do | |
1496 | Swait() | |
1497 | SHELL.Transparency = SHELL.Transparency - 0 | |
1498 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
1499 | end | |
1500 | for i = 1, math.ceil(75/2) do | |
1501 | Swait() | |
1502 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
1503 | SHELL.CFrame = CF(RootPart.Position) | |
1504 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1505 | end | |
1506 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
1507 | SHELL.CFrame = CF(RootPart.Position) | |
1508 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1509 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1510 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1511 | for i = 1, 5 do | |
1512 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = Color3.fromRGB(cR,cG,cB), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1513 | end | |
1514 | SHELL:remove() | |
1515 | ApplyAoE(RootPart.Position,75,35,75,175,false) | |
1516 | SMASHED = true | |
1517 | wait(1) | |
1518 | VALUE1 = false | |
1519 | UNANCHOR = true | |
1520 | ATTACK = false | |
1521 | Rooted = false | |
1522 | end | |
1523 | end | |
1524 | ||
1525 | ||
1526 | function Click() | |
1527 | ATTACK = true | |
1528 | Rooted = false | |
1529 | local HIT = nil | |
1530 | OFFSET = -45 | |
1531 | for i=0, 1, 0.1 / Animation_Speed do | |
1532 | Swait() | |
1533 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1534 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1535 | end | |
1536 | OFFSET = 45 | |
1537 | local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false) | |
1538 | PUNCH.CanCollide = true | |
1539 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0)) | |
1540 | TAUNT = true | |
1541 | local TOUCH = PUNCH.Touched:Connect(function(hit) | |
1542 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
1543 | HIT = hit.Parent | |
1544 | end | |
1545 | end) | |
1546 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1547 | Swait() | |
1548 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3) | |
1549 | if HIT ~= nil then | |
1550 | break | |
1551 | end | |
1552 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
1553 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1554 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1555 | end | |
1556 | PUNCH:remove() | |
1557 | TOUCH:disconnect() | |
1558 | if HIT ~= nil then | |
1559 | for _, c in pairs(HIT:GetChildren()) do | |
1560 | if c:IsA("BasePart") then | |
1561 | c.Anchored = true | |
1562 | end | |
1563 | end | |
1564 | Rooted = true | |
1565 | CreateSound(649634100, Torso, 10, 0.8) | |
1566 | CreateSound(1368573150, RightArm, 3, 1.5) | |
1567 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1568 | Swait() | |
1569 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1570 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed) | |
1571 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1572 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1573 | end | |
1574 | for _, c in pairs(HIT:GetChildren()) do | |
1575 | if c:IsA("BasePart") then | |
1576 | c.Anchored = false | |
1577 | end | |
1578 | end | |
1579 | KillChildren(HIT) | |
1580 | end | |
1581 | OFFSET = 0 | |
1582 | ATTACK = false | |
1583 | Rooted = false | |
1584 | TAUNT = false | |
1585 | end | |
1586 | ||
1587 | function Boom() | |
1588 | Rooted = true | |
1589 | ATTACK = true | |
1590 | Character:BreakJoints() | |
1591 | local Explosion = IT("Explosion",Effects) | |
1592 | Explosion.Position = HandlePart.Position | |
1593 | Explosion.BlastPressure = 5000000 | |
1594 | local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really white", "Handle", VT(0, 0, 0)) | |
1595 | PRT.CanCollide = false | |
1596 | PRT.CFrame = CF(HandlePart.Position) | |
1597 | Debris:AddItem(PRT,10) | |
1598 | CreateSound("2248511", Effects, 10, 0.2) | |
1599 | MagicSphere(VT(5,5,5),250,PRT.CFrame*CF(0,-2,0),"White",VT(6,2,6)) | |
1600 | MagicSphere(VT(4,4,4),250,PRT.CFrame*CF(0,-2,0),"Really white",VT(6,2,6)) | |
1601 | MagicSphere(VT(5,5,5),250,PRT.CFrame,"White",VT(5,15,5)) | |
1602 | MagicSphere(VT(4,4,4),250,PRT.CFrame,"Really white",VT(5,15,5)) | |
1603 | CreateWave(VT(1,5,1),250,PRT.CFrame*CF(0,-2,0),true,4,"White",VT(5,1,5)) | |
1604 | CreateSwirl(VT(0,0,0),250,PRT.CFrame,true,-4,"Pine Cone",VT(6,6,6)) | |
1605 | CreateSpikeball(VT(0,0,0),250,PRT.CFrame,true,15,"Pine Cone",VT(3,3,3)) | |
1606 | for i = 1, 250 do | |
1607 | Swait() | |
1608 | killnearest(PRT.Position,750000,75) | |
1609 | end | |
1610 | ATTACK = false | |
1611 | Rooted = false | |
1612 | end | |
1613 | ||
1614 | function Dismantle() | |
1615 | ||
1616 | local model = Instance.new("Model") | |
1617 | model.Parent = workspace | |
1618 | model.Name = math.random(-10000,10000) | |
1619 | ||
1620 | ||
1621 | local Spawner = Instance.new("Part") | |
1622 | Spawner.Name = "12qwaszx" | |
1623 | Spawner.CFrame = (Mouse.Hit) | |
1624 | Spawner.Anchored = true | |
1625 | Spawner.Size = Vector3.new(0,0,0) | |
1626 | Spawner.Transparency = 1 | |
1627 | Spawner.Parent = workspace | |
1628 | ||
1629 | ||
1630 | ||
1631 | ||
1632 | ||
1633 | local Box = Instance.new("Part") | |
1634 | Box.Position = (Spawner.Position) | |
1635 | Box.CanCollide = false | |
1636 | Box.Transparency = 0.5 | |
1637 | Box.Size = Vector3.new(20,20,20) | |
1638 | Box.Anchored = true | |
1639 | Box.Material = "Neon" | |
1640 | Box.Parent = model | |
1641 | ||
1642 | local selection = Instance.new("SelectionBox") | |
1643 | selection.Parent = Box | |
1644 | selection.Adornee = Box | |
1645 | selection.LineThickness = 1 | |
1646 | ||
1647 | ||
1648 | local face1 = Instance.new("Part") | |
1649 | face1.Size = Vector3.new(2,20,20) | |
1650 | face1.Transparency = 1 | |
1651 | face1.CFrame = (Spawner.CFrame) | |
1652 | face1.Anchored = true | |
1653 | face1.Parent = model | |
1654 | face1.CFrame = Box.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1655 | face1.Material = "Neon" | |
1656 | ||
1657 | local face2 = Instance.new("Part") | |
1658 | face2.Size = Vector3.new(2,20,20) | |
1659 | face2.Transparency = 1 | |
1660 | face2.CFrame = (Spawner.CFrame) | |
1661 | face2.Anchored = true | |
1662 | face2.Parent = model | |
1663 | face2.CFrame = Box.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1664 | face2.Material = "Neon" | |
1665 | ||
1666 | local face3 = Instance.new("Part") | |
1667 | face3.Size = Vector3.new(20,20,2) | |
1668 | face3.Transparency = 1 | |
1669 | face3.CFrame = (Spawner.CFrame) | |
1670 | face3.Anchored = true | |
1671 | face3.Parent = model | |
1672 | face3.CFrame = Box.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1673 | face3.Material = "Neon" | |
1674 | ||
1675 | local face4 = Instance.new("Part") | |
1676 | face4.Size = Vector3.new(20,20,2) | |
1677 | face4.Transparency = 1 | |
1678 | face4.CFrame = (Spawner.CFrame) | |
1679 | face4.Anchored = true | |
1680 | face4.Parent = model | |
1681 | face4.CFrame = Box.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1682 | face4.Material = "Neon" | |
1683 | ||
1684 | local face5 = Instance.new("Part") | |
1685 | face5.Size = Vector3.new(20,2,20) | |
1686 | face5.Transparency = 1 | |
1687 | face5.CFrame = (Spawner.CFrame) | |
1688 | face5.Anchored = true | |
1689 | face5.Parent = model | |
1690 | face5.CFrame = Box.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1691 | face5.Material = "Neon" | |
1692 | ||
1693 | local face6 = Instance.new("Part") | |
1694 | face6.Size = Vector3.new(20,2,20) | |
1695 | face6.Transparency = 1 | |
1696 | face6.CFrame = (Spawner.CFrame) | |
1697 | face6.Anchored = true | |
1698 | face6.Parent = model | |
1699 | face6.CFrame = Box.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1700 | face6.Material = "Neon" | |
1701 | ||
1702 | ||
1703 | ||
1704 | ||
1705 | ||
1706 | ||
1707 | ||
1708 | ||
1709 | ||
1710 | model.PrimaryPart = Spawner | |
1711 | ||
1712 | ||
1713 | ||
1714 | ||
1715 | local RainbowEffect = coroutine.wrap(function() | |
1716 | ||
1717 | while true do | |
1718 | Swait() | |
1719 | Box.Color = Color3.new(r/255,g/255,b/255) | |
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | ||
1727 | selection.Color3 = Color3.new(r/255,g/255,b/255) | |
1728 | ||
1729 | end | |
1730 | end) | |
1731 | ||
1732 | RainbowEffect() | |
1733 | local e = 0 | |
1734 | ||
1735 | ||
1736 | local killing = false | |
1737 | ||
1738 | if killing == false then | |
1739 | function onTouched(part) | |
1740 | ||
1741 | ||
1742 | local hit = part | |
1743 | hit.CFrame = CFrame.new(Spawner.CFrame.X,Spawner.CFrame.Y, Spawner.CFrame.Z) | |
1744 | ||
1745 | end | |
1746 | else | |
1747 | ||
1748 | end | |
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | Box.Touched:connect(onTouched) | |
1758 | ||
1759 | ||
1760 | local spin = coroutine.wrap(function() | |
1761 | while true do | |
1762 | e = e + 0.01 | |
1763 | model:SetPrimaryPartCFrame(CFrame.new(Spawner.CFrame.X,Spawner.CFrame.Y ,Spawner.CFrame.Z) * CFrame.fromEulerAnglesXYZ(e,e,0) ) | |
1764 | Swait() | |
1765 | end | |
1766 | ||
1767 | end) | |
1768 | ||
1769 | spin() | |
1770 | local moveup = coroutine.wrap(function() | |
1771 | local p = 0 | |
1772 | ||
1773 | ||
1774 | ||
1775 | for i = 0,0.7,0.01 do | |
1776 | Swait() | |
1777 | p = p+0.01 | |
1778 | ||
1779 | ||
1780 | ||
1781 | ||
1782 | ||
1783 | model:SetPrimaryPartCFrame(CFrame.new(Spawner.CFrame.X,Spawner.CFrame.Y + p,Spawner.CFrame.Z) * CFrame.fromEulerAnglesXYZ(e,e,0) ) | |
1784 | ||
1785 | ||
1786 | ||
1787 | end | |
1788 | ||
1789 | ||
1790 | ||
1791 | end) | |
1792 | ||
1793 | ||
1794 | ||
1795 | moveup() | |
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | wait(1) | |
1803 | ||
1804 | local FLASH = coroutine.wrap(function() | |
1805 | local p = 1 | |
1806 | ||
1807 | ||
1808 | ||
1809 | for i = 0,0.7,0.01 do | |
1810 | Swait() | |
1811 | p = p-0.01 | |
1812 | ||
1813 | ||
1814 | face1.Transparency = p | |
1815 | face2.Transparency = p | |
1816 | face3.Transparency = p | |
1817 | face4.Transparency = p | |
1818 | face5.Transparency = p | |
1819 | face6.Transparency = p | |
1820 | end | |
1821 | ||
1822 | ||
1823 | ||
1824 | ||
1825 | ||
1826 | end) | |
1827 | ||
1828 | local sound = Instance.new("Sound") | |
1829 | sound.Parent = Box | |
1830 | sound.SoundId = "rbxassetid://1996663666" | |
1831 | sound.EmitterSize = 100 | |
1832 | sound.MaxDistance = 1000 | |
1833 | sound.TimePosition = 0 | |
1834 | sound:Play() | |
1835 | sound.Volume = 5 | |
1836 | ||
1837 | ||
1838 | ||
1839 | FLASH() | |
1840 | wait(2) | |
1841 | ||
1842 | sound:Pause() | |
1843 | ||
1844 | local sound2 = Instance.new("Sound") | |
1845 | sound2.Parent = Box | |
1846 | sound2.SoundId = "rbxassetid://178452241" | |
1847 | sound2.EmitterSize = 100 | |
1848 | sound2.MaxDistance = 1000 | |
1849 | sound2.TimePosition = 0 | |
1850 | sound2:Play() | |
1851 | sound2.Volume = 10 | |
1852 | ||
1853 | local LIGHTNING = coroutine.wrap(function() | |
1854 | local p = 0 | |
1855 | for i = 0,1,0.01 do | |
1856 | Swait() | |
1857 | face1.Transparency = p | |
1858 | face2.Transparency = p | |
1859 | face3.Transparency = p | |
1860 | face4.Transparency = p | |
1861 | face5.Transparency = p | |
1862 | face6.Transparency = p | |
1863 | p = p+0.08 | |
1864 | end | |
1865 | ||
1866 | ||
1867 | ||
1868 | end) | |
1869 | ||
1870 | LIGHTNING() | |
1871 | ||
1872 | ||
1873 | ||
1874 | ||
1875 | ||
1876 | function onTouched(part) | |
1877 | ||
1878 | ||
1879 | local hit = part | |
1880 | ||
1881 | ||
1882 | ||
1883 | ||
1884 | local dismantle2 = coroutine.wrap(function() | |
1885 | for i = 0,2,0.01 do | |
1886 | ||
1887 | ||
1888 | Swait() | |
1889 | ||
1890 | ||
1891 | ||
1892 | hit.Velocity = Vector3.new(math.huge,math.huge,math.huge) | |
1893 | ||
1894 | ||
1895 | ||
1896 | end | |
1897 | ||
1898 | end) | |
1899 | dismantle2() | |
1900 | ||
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | ||
1906 | ||
1907 | ||
1908 | ||
1909 | ||
1910 | ||
1911 | end | |
1912 | ||
1913 | Box.Touched:connect(onTouched) | |
1914 | ||
1915 | ||
1916 | ||
1917 | ||
1918 | ||
1919 | ||
1920 | ||
1921 | ||
1922 | ||
1923 | ||
1924 | ||
1925 | ||
1926 | wait() | |
1927 | local DISAPPER = coroutine.wrap(function() | |
1928 | local p = 0 | |
1929 | for i = 0,2,0.01 do | |
1930 | Swait() | |
1931 | face1.Transparency = face1.Transparency + p | |
1932 | face2.Transparency = face1.Transparency + p | |
1933 | face3.Transparency = face1.Transparency + p | |
1934 | face4.Transparency = face1.Transparency + p | |
1935 | face5.Transparency = face1.Transparency + p | |
1936 | face6.Transparency = face1.Transparency + p | |
1937 | Box.Transparency = p | |
1938 | selection.Transparency = p | |
1939 | p = p+0.01 | |
1940 | end | |
1941 | ||
1942 | ||
1943 | ||
1944 | end) | |
1945 | DISAPPER() | |
1946 | ||
1947 | wait(2) | |
1948 | ||
1949 | model:Remove() | |
1950 | end | |
1951 | ||
1952 | ||
1953 | ||
1954 | ----------------------------------------------------------------------------------------------------- | |
1955 | ||
1956 | function implode() | |
1957 | ||
1958 | ||
1959 | ||
1960 | end | |
1961 | ||
1962 | ||
1963 | ||
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | ||
1969 | ||
1970 | ||
1971 | ||
1972 | ||
1973 | ||
1974 | ||
1975 | ||
1976 | ||
1977 | ||
1978 | ||
1979 | function Smite() | |
1980 | ||
1981 | local spawner = Instance.new("Part") | |
1982 | spawner.Parent = workspace | |
1983 | spawner.Transparency = 1 | |
1984 | spawner.CFrame = (Mouse.Hit) | |
1985 | spawner.Size = Vector3.new(0,0,0) | |
1986 | spawner.Anchored = true | |
1987 | ||
1988 | local suck = Instance.new("Part") | |
1989 | suck.Transparency = 0 | |
1990 | suck.CFrame = (spawner.CFrame) | |
1991 | suck.Size = Vector3.new(70,70,70) | |
1992 | suck.Material = "Neon" | |
1993 | suck.Anchored = true | |
1994 | suck.CanCollide = false | |
1995 | suck.Shape = "Ball" | |
1996 | suck.Parent = workspace | |
1997 | ||
1998 | local colors = coroutine.wrap(function() | |
1999 | for i = 1,55 do | |
2000 | Swait() | |
2001 | ||
2002 | ||
2003 | ||
2004 | suck.Color = Color3.new(r/255,g/255,b/255) | |
2005 | end | |
2006 | ||
2007 | ||
2008 | end) | |
2009 | ||
2010 | colors() | |
2011 | ||
2012 | ||
2013 | local fade = coroutine.wrap(function() | |
2014 | ||
2015 | local p = 0 | |
2016 | ||
2017 | for i = 1,55 do | |
2018 | ||
2019 | ||
2020 | suck.Transparency = p | |
2021 | p = p+0.02 | |
2022 | Swait() | |
2023 | end | |
2024 | ||
2025 | ||
2026 | ||
2027 | end) | |
2028 | ||
2029 | fade() | |
2030 | ||
2031 | ||
2032 | ||
2033 | ||
2034 | local size = coroutine.wrap(function() | |
2035 | ||
2036 | local p = 70 | |
2037 | ||
2038 | for i = 1,55 do | |
2039 | ||
2040 | ||
2041 | ||
2042 | ||
2043 | suck.Size = Vector3.new(p,p,p) | |
2044 | p = p - 1 | |
2045 | ||
2046 | Swait() | |
2047 | end | |
2048 | ||
2049 | ||
2050 | ||
2051 | end) | |
2052 | ||
2053 | size() | |
2054 | ||
2055 | local move = coroutine.wrap(function() | |
2056 | for i = 1,55 do | |
2057 | Swait() | |
2058 | ||
2059 | suck.CFrame = (spawner.CFrame) | |
2060 | ||
2061 | ||
2062 | end | |
2063 | ||
2064 | end) | |
2065 | ||
2066 | move() | |
2067 | ||
2068 | function onTouched(part) | |
2069 | local hit = part | |
2070 | ||
2071 | if hit:FindFirstChild("BodyPosition") then | |
2072 | else | |
2073 | ||
2074 | local blackhole1 = coroutine.wrap(function() | |
2075 | local pull = Instance.new("BodyPosition") | |
2076 | pull.position = suck.Position | |
2077 | pull.Parent = hit | |
2078 | pull.P = 10000000000 | |
2079 | pull.MaxForce = Vector3.new(10000,10000,10000) | |
2080 | wait(2) | |
2081 | pull:Remove() | |
2082 | ||
2083 | end) | |
2084 | blackhole1() | |
2085 | end | |
2086 | ||
2087 | end | |
2088 | ||
2089 | suck.Touched:connect(onTouched) | |
2090 | ||
2091 | wait(1) | |
2092 | suck:Remove() | |
2093 | ||
2094 | local death = Instance.new("Part") | |
2095 | ||
2096 | local boooom = coroutine.wrap(function() | |
2097 | Swait() | |
2098 | ||
2099 | local bang = Instance.new("Explosion") | |
2100 | ||
2101 | bang.BlastPressure = math.huge | |
2102 | bang.BlastRadius = 20 | |
2103 | bang.DestroyJointRadiusPercent = 100 | |
2104 | bang.Position = (spawner.Position) | |
2105 | bang.Visible = false | |
2106 | bang.Parent = spawner | |
2107 | ||
2108 | local sound2 = Instance.new("Sound") | |
2109 | sound2.Parent = spawner | |
2110 | sound2.SoundId = "rbxassetid://168586586" | |
2111 | sound2.EmitterSize = 100 | |
2112 | sound2.MaxDistance = 1000 | |
2113 | sound2.TimePosition = 0 | |
2114 | sound2:Play() | |
2115 | sound2.Volume = 10 | |
2116 | ||
2117 | death.Parent = workspace | |
2118 | death.Transparency = 1 | |
2119 | death.CFrame = (spawner.CFrame) | |
2120 | death.Size = Vector3.new(20,20,20) | |
2121 | ||
2122 | death.Velocity = Vector3.new(math.huge,math.huge,math.huge) | |
2123 | ||
2124 | local size = coroutine.wrap(function() | |
2125 | ||
2126 | local p = 20 | |
2127 | ||
2128 | for i = 1,55 do | |
2129 | ||
2130 | ||
2131 | ||
2132 | death.CFrame = (spawner.CFrame) | |
2133 | death.Size = Vector3.new(p,p,p) | |
2134 | p = p + 1 | |
2135 | ||
2136 | Swait() | |
2137 | end | |
2138 | ||
2139 | ||
2140 | ||
2141 | end) | |
2142 | ||
2143 | size() | |
2144 | ||
2145 | ||
2146 | bang.Parent = spawner | |
2147 | ||
2148 | end) | |
2149 | ||
2150 | boooom() | |
2151 | ||
2152 | local RING, MESH, DELET = MakeRing() | |
2153 | local POS = spawner.Position | |
2154 | RING.CFrame = CF(spawner.Position + VT(MRANDOM(-25, 25), 200, MRANDOM(-25, 25)), spawner.Position) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2155 | ||
2156 | local HITFLOOR, HITPOS = Raycast(RING.Position, CF(RING.Position, RING.CFrame * CF(0, -1, 0).p).lookVector, 500, Character) | |
2157 | ||
2158 | if HITFLOOR then | |
2159 | ||
2160 | local DIST = (RING.Position - HITPOS).Magnitude | |
2161 | ||
2162 | for i = 1, 5 do | |
2163 | WACKYEFFECT({ | |
2164 | EffectType = "Wave", | |
2165 | Size = VT(25, 0, 25), | |
2166 | Size2 = VT(40, 0, 40) + VT(i * 6, i / 5, i * 6), | |
2167 | Transparency = 0, | |
2168 | Transparency2 = 1, | |
2169 | CFrame = CF(spawner.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2170 | MoveToPos = nil, | |
2171 | RotationX = 0, | |
2172 | RotationY = 3, | |
2173 | RotationZ = 0, | |
2174 | Material = "Neon", | |
2175 | ||
2176 | Color = C3(r1/255, g1/255, b1/255), | |
2177 | SoundID = nil, | |
2178 | SoundPitch = nil, | |
2179 | SoundVolume = nil | |
2180 | }) | |
2181 | WACKYEFFECT({ | |
2182 | EffectType = "Round Slash", | |
2183 | Size = VT(3, 0, 3) / 13, | |
2184 | Size2 = (VT(3, 0, 3) + VT(i, 0, i)) / 5, | |
2185 | Transparency = 0, | |
2186 | Transparency2 = 1, | |
2187 | CFrame = CF(spawner.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-35, 35)), RAD(0), RAD(MRANDOM(-35, 35))), | |
2188 | MoveToPos = nil, | |
2189 | RotationX = 0, | |
2190 | RotationY = 0, | |
2191 | RotationZ = 0, | |
2192 | Material = "Neon", | |
2193 | Color = C3(r1/255, g1/255, b1/255), | |
2194 | SoundID = nil, | |
2195 | SoundPitch = nil, | |
2196 | SoundVolume = nil | |
2197 | }) | |
2198 | WACKYEFFECT({ | |
2199 | Time = 35, | |
2200 | EffectType = "Sphere", | |
2201 | Size = VT(22, 22, 22), | |
2202 | Size2 = VT(45, 45, 45) + VT(i * 5, i * 5, i * 5), | |
2203 | Transparency = 0, | |
2204 | Transparency2 = 1, | |
2205 | CFrame = CF(spawner.Position), | |
2206 | MoveToPos = nil, | |
2207 | RotationX = 0, | |
2208 | RotationY = 0, | |
2209 | RotationZ = 0, | |
2210 | Material = "Neon", | |
2211 | ||
2212 | Color = C3(r1/255, g1/255, b1/255), | |
2213 | SoundID = 459523898, | |
2214 | SoundPitch = MRANDOM(9, 12) / 10, | |
2215 | SoundVolume = 10 | |
2216 | }) | |
2217 | end | |
2218 | SHAKECAM(spawner.Position, 100, 8, 15) | |
2219 | ApplyAoE(spawner.Position, 50) | |
2220 | ||
2221 | ||
2222 | ||
2223 | ||
2224 | ||
2225 | ||
2226 | ||
2227 | ||
2228 | ||
2229 | ||
2230 | ||
2231 | ||
2232 | ||
2233 | ||
2234 | ||
2235 | ||
2236 | for i = 1, 25 do | |
2237 | Swait() | |
2238 | ||
2239 | end | |
2240 | ||
2241 | end | |
2242 | ||
2243 | wait(0.2) | |
2244 | ||
2245 | death:Remove() | |
2246 | DELET() | |
2247 | wait(2) | |
2248 | spawner:Remove() | |
2249 | ||
2250 | end | |
2251 | ||
2252 | ||
2253 | ||
2254 | ||
2255 | ||
2256 | ||
2257 | ||
2258 | ||
2259 | ||
2260 | ||
2261 | ||
2262 | ||
2263 | ||
2264 | ||
2265 | ||
2266 | ||
2267 | ||
2268 | ||
2269 | ||
2270 | ||
2271 | ||
2272 | ||
2273 | ||
2274 | ||
2275 | ||
2276 | ||
2277 | ||
2278 | ||
2279 | ||
2280 | ||
2281 | ||
2282 | ||
2283 | ||
2284 | ||
2285 | ||
2286 | ||
2287 | ||
2288 | v = 0 | |
2289 | ||
2290 | ||
2291 | function onKeyPress(inputObject, gameProcessedEvent) | |
2292 | if inputObject.KeyCode == Enum.KeyCode.E then | |
2293 | v = 0 | |
2294 | SKILL7TEXT.Text = "[CLICK] Cube of Rainbow" | |
2295 | end | |
2296 | end | |
2297 | ||
2298 | game:GetService("UserInputService").InputBegan:connect(onKeyPress) | |
2299 | ||
2300 | ||
2301 | function onKeyPress(inputObject, gameProcessedEvent) | |
2302 | if inputObject.KeyCode == Enum.KeyCode.R then | |
2303 | v = 1 | |
2304 | SKILL7TEXT.Text = "[CLICK] Explosion of Rainbow" | |
2305 | end | |
2306 | end | |
2307 | game:GetService("UserInputService").InputBegan:connect(onKeyPress) | |
2308 | ||
2309 | ||
2310 | Mouse.Button1Down:connect(function() | |
2311 | ||
2312 | ||
2313 | ||
2314 | if v == 0 then | |
2315 | Dismantle() | |
2316 | ||
2317 | end | |
2318 | ||
2319 | if v == 1 then | |
2320 | implode() | |
2321 | Smite() | |
2322 | end | |
2323 | ||
2324 | end) | |
2325 | ||
2326 | Mouse.KeyDown:connect(function(key) | |
2327 | if key == "f" then | |
2328 | SpawnSmite(Mouse.Hit.p) | |
2329 | end | |
2330 | if Key == "z" then | |
2331 | Smite() | |
2332 | end | |
2333 | if Key == "x" then | |
2334 | implode() | |
2335 | end | |
2336 | if Key == "c" then | |
2337 | Dismantle() | |
2338 | end | |
2339 | if key == "q" then | |
2340 | local pos = RootPart.Position | |
2341 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),pos) | |
2342 | end | |
2343 | if Key == "g" then | |
2344 | Boom() | |
2345 | end | |
2346 | end) | |
2347 | ||
2348 | ||
2349 | function onKeyPress(inputObject, gameProcessedEvent) | |
2350 | if inputObject.KeyCode == Enum.KeyCode.P then | |
2351 | ||
2352 | for _, c in pairs(Character:GetChildren()) do | |
2353 | c:Remove() | |
2354 | createstuff() | |
2355 | headness.Parent = Character | |
2356 | headness.CFrame = Torso.CFrame*CFrame.new(0,2,0) | |
2357 | weldBetween(headness,Head) | |
2358 | txt.Adornee = BlockHead | |
2359 | ||
2360 | ||
2361 | end | |
2362 | ||
2363 | sick.SoundId = "rbxassetid://556122490" | |
2364 | sick.Looped = true | |
2365 | sick.Pitch = 1 | |
2366 | sick.Volume = 2 | |
2367 | sick.Parent = Effects | |
2368 | sick.Playing = PLAYSONG | |
2369 | ||
2370 | local Effects = IT("Folder", Character) | |
2371 | Effects.Name = "Effects" | |
2372 | ||
2373 | local Effects = IT("Folder", Character) | |
2374 | Effects.Name = "Effects" | |
2375 | local deathpart = Instance.new("Part") | |
2376 | deathpart.Parent = game.Workspace | |
2377 | deathpart.CFrame = (Torso.CFrame) | |
2378 | deathpart.Anchored = true | |
2379 | deathpart.Size = Vector3.new(2,2,2) | |
2380 | deathpart.Material = ("Neon") | |
2381 | deathpart.CanCollide = false | |
2382 | deathpart.Transparency = 0 | |
2383 | deathpart.Shape = "Ball" | |
2384 | ||
2385 | ||
2386 | local stoptime = coroutine.wrap(function() | |
2387 | ||
2388 | local p = 2 | |
2389 | ||
2390 | ||
2391 | ||
2392 | for i = 1,10,0.1 do | |
2393 | ||
2394 | deathpart.CFrame = (Torso.CFrame) | |
2395 | ||
2396 | deathpart.Color = Color3.new(r/255,g/255,b/255) | |
2397 | deathpart.Size = Vector3.new(p,p,p) | |
2398 | Blockhead.Parent = headness | |
2399 | ||
2400 | p = p+2 | |
2401 | Swait() | |
2402 | end | |
2403 | ||
2404 | ||
2405 | ||
2406 | end) | |
2407 | ||
2408 | stoptime() | |
2409 | ||
2410 | ------------------------------------------ | |
2411 | ||
2412 | ||
2413 | ||
2414 | ||
2415 | local stoptime = coroutine.wrap(function() | |
2416 | ||
2417 | local p = 2 | |
2418 | ||
2419 | ||
2420 | ||
2421 | for i = 1,10,0.1 do | |
2422 | ||
2423 | ||
2424 | ||
2425 | ||
2426 | ||
2427 | deathpart.Transparency = p/30 | |
2428 | ||
2429 | p = p+1 | |
2430 | Swait() | |
2431 | end | |
2432 | ||
2433 | ||
2434 | ||
2435 | end) | |
2436 | ||
2437 | stoptime() | |
2438 | ||
2439 | ||
2440 | ||
2441 | ||
2442 | ||
2443 | ||
2444 | ||
2445 | ||
2446 | ||
2447 | ||
2448 | ||
2449 | ||
2450 | wait(1) | |
2451 | ||
2452 | deathpart:Remove() | |
2453 | ||
2454 | ||
2455 | end | |
2456 | ||
2457 | ||
2458 | ||
2459 | end | |
2460 | ||
2461 | game:GetService("UserInputService").InputBegan:connect(onKeyPress) | |
2462 | ||
2463 | ||
2464 | ||
2465 | ||
2466 | ||
2467 | ||
2468 | ||
2469 | ||
2470 | ||
2471 | ||
2472 | local random4 = coroutine.wrap(function() | |
2473 | while true do | |
2474 | ||
2475 | RightArm.Color = Color3.new(r/255,g/255,b/255) | |
2476 | LeftArm.Color = Color3.new(r/255,g/255,b/255) | |
2477 | RightLeg.Color = Color3.new(r/255,g/255,b/255) | |
2478 | LeftLeg.Color = Color3.new(r/255,g/255,b/255) | |
2479 | headness.Color = Color3.new(r/255,g/255,b/255) | |
2480 | Torso.Color = Color3.new(r/255,g/255,b/255) | |
2481 | headness.Transparency = 0.5 | |
2482 | RootPart.Transparency = 1 | |
2483 | ||
2484 | ||
2485 | Swait() | |
2486 | end | |
2487 | end) | |
2488 | ||
2489 | random4() | |
2490 | ||
2491 | while true do | |
2492 | ||
2493 | ||
2494 | RightArm.Transparency = 0.3 | |
2495 | LeftArm.Transparency = 0.3 | |
2496 | RightLeg.Transparency = 0.3 | |
2497 | LeftLeg.Transparency = 0.3 | |
2498 | Torso.Transparency = 0.3 | |
2499 | Head.Transparency = 1 | |
2500 | RightArm.Material = ("Neon") | |
2501 | LeftArm.Material = ("Neon") | |
2502 | LeftLeg.Material = ("Neon") | |
2503 | RightLeg.Material = ("Neon") | |
2504 | Torso.Material = ("Neon") | |
2505 | Head.Material = ("Neon") | |
2506 | headness.Material = ("Neon") | |
2507 | ||
2508 | ||
2509 | function fix() | |
2510 | ||
2511 | if Head.Size ~= Vector3.new(2,1,1)then | |
2512 | Head.Size = Vector3.new(1,1,1) | |
2513 | end | |
2514 | ||
2515 | ||
2516 | if RightArm.Size ~= Vector3.new(1,2,1)then | |
2517 | RightArm.Size = Vector3.new(1,2,1) | |
2518 | end | |
2519 | ||
2520 | ||
2521 | if LeftArm.Size ~= Vector3.new(1,2,1)then | |
2522 | LeftArm.Size = Vector3.new(1,2,1) | |
2523 | end | |
2524 | ||
2525 | if RightLeg.Size ~= Vector3.new(1,2,1)then | |
2526 | RightLeg.Size = Vector3.new(1,2,1) | |
2527 | end | |
2528 | ||
2529 | if LeftArm.Size ~= Vector3.new(1,2,1)then | |
2530 | LeftArm.Size = Vector3.new(1,2,1) | |
2531 | end | |
2532 | ||
2533 | if Torso.Size ~= Vector3.new(2,2,1)then | |
2534 | Torso.Size = Vector3.new(2,2,1) | |
2535 | end | |
2536 | end | |
2537 | ||
2538 | ||
2539 | ||
2540 | Swait() | |
2541 | ||
2542 | script.Parent = WEAPONGUI | |
2543 | ANIMATE.Parent = nil | |
2544 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2545 | v:Stop(); | |
2546 | end | |
2547 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2548 | Humanoid = IT("Humanoid",Character) | |
2549 | end | |
2550 | ||
2551 | SINE = SINE + CHANGE | |
2552 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2553 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2554 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2555 | local WALKSPEEDVALUE = 4 | |
2556 | ||
2557 | if ANIM == "Walk" and TORSOVELOCITY > 1 and PLAYSONG == true then | |
2558 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2559 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2560 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2561 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(65 * COS(SINE / WALKSPEEDVALUE))), 0.5 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2562 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or PLAYSONG == false then | |
2563 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2564 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2565 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2566 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2567 | end | |
2568 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2569 | ANIM = "Jump" | |
2570 | if ATTACK == false then | |
2571 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2572 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2573 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2574 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2575 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2576 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2577 | end | |
2578 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2579 | ANIM = "Fall" | |
2580 | if ATTACK == false then | |
2581 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2582 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2583 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(45 + 10 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2584 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35 - 4 * COS(SINE / 6)), RAD(0), RAD(-45 - 10 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2585 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.7) * ANGLES(RAD(-25 + 5 * SIN(SINE / 12)), RAD(90), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2586 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8, -0.3) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-1 * SIN(SINE / 6)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2587 | end | |
2588 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2589 | ANIM = "Idle" | |
2590 | if ATTACK == false then | |
2591 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2592 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2593 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2594 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2595 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2596 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2597 | end | |
2598 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2599 | ANIM = "Walk" | |
2600 | if ATTACK == false then | |
2601 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2602 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, -0.025, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2603 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2604 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-50 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2605 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2606 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2607 | end | |
2608 | end | |
2609 | for _, c in pairs(Character:GetChildren()) do | |
2610 | if c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "SelectionBox" or c.Name == "Body Colors" then | |
2611 | c:remove() | |
2612 | end | |
2613 | end | |
2614 | AntiTimeStop() | |
2615 | fix() | |
2616 | ||
2617 | Humanoid.MaxHealth = 10e10 | |
2618 | Humanoid.Health = 10e10 | |
2619 | ||
2620 | ||
2621 | ||
2622 | ||
2623 | if Rooted == false then | |
2624 | Disable_Jump = false | |
2625 | Humanoid.WalkSpeed = Speed | |
2626 | elseif Rooted == true then | |
2627 | Disable_Jump = true | |
2628 | Humanoid.WalkSpeed = 0 | |
2629 | end | |
2630 | ||
2631 | ||
2632 | --1383666704 | |
2633 | sick.SoundId = "rbxassetid://556122490" | |
2634 | sick.Looped = true | |
2635 | sick.Pitch = 1 | |
2636 | sick.Volume = 2 | |
2637 | sick.Parent = Effects | |
2638 | sick.Playing = PLAYSONG | |
2639 | Humanoid.PlatformStand = false | |
2640 | Humanoid.Name = "the god of shapes" | |
2641 | refit() | |
2642 | ||
2643 | for _, c in pairs(Character:GetChildren()) do | |
2644 | if c:IsA("BasePart") and ATTACK == false then | |
2645 | for _, e in pairs(c:GetChildren()) do | |
2646 | if e:IsA("BodyPosition") or e:IsA("BodyGyro") or e:IsA("Decal") or e:IsA("ParticleEmitter") or e:IsA("Fire") or e:IsA("Smoke") or e:IsA("SelectionBox") or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" or c.ClassName == "ShirtGraphic" or c.ClassName == "Shirt" or c.ClassName == "Pants" then | |
2647 | e:remove() | |
2648 | end | |
2649 | end | |
2650 | end | |
2651 | end | |
2652 | end |