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