SHOW:
|
|
- or go back to the newest paste.
1 | -- [[[ | |
2 | --000000[[====================================================================================\\ | |
3 | --000000[[ DEIVIS97 EDIT | |
4 | --000000[[====================================================================================// | |
5 | -- [[[ | |
6 | --usage | |
7 | ||
8 | local FEService = loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/WhyGitHubb/FEService/main/main.lua"))() | |
9 | ||
10 | ||
11 | FEService:FullNetwork() | |
12 | ||
13 | print(game.Players.LocalPlayer.SimulationRadius) | |
14 | --reanimate by MyWorld#4430 discord.gg/pYVHtSJmEY | |
15 | local v3_net, v3_808 = Vector3.new(5000, 25.1, 0), Vector3.new(8, 0, 8) | |
16 | local function getNetlessVelocity(realPartVelocity) | |
17 | local mag = realPartVelocity.Magnitude | |
18 | if mag > 1 then | |
19 | local unit = realPartVelocity.Unit | |
20 | if (unit.Y > 0.25) or (unit.Y < -0.75) then | |
21 | return unit * (25.1 / unit.Y) | |
22 | end | |
23 | end | |
24 | return v3_net + realPartVelocity * v3_808 | |
25 | end | |
26 | local simradius = "shp" --simulation radius (net bypass) method | |
27 | --"shp" - sethiddenproperty | |
28 | --"ssr" - setsimulationradius | |
29 | --false - disable | |
30 | local simrad = 1000 --simulation radius value | |
31 | local healthHide = true --moves your head away every 3 seconds so players dont see your health bar (alignmode 4 only) | |
32 | local reclaim = true --if you lost control over a part this will move your primary part to the part so you get it back (alignmode 4) | |
33 | local novoid = true --prevents parts from going under workspace.FallenPartsDestroyHeight if you control them (alignmode 4 only) | |
34 | local physp = nil --PhysicalProperties.new(0.01, 0, 1, 0, 0) --sets .CustomPhysicalProperties to this for each part | |
35 | local noclipAllParts = false --set it to true if you want noclip | |
36 | local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character | |
37 | local newanimate = true --disables the animate script and enables after reanimation | |
38 | local discharscripts = true --disables all localScripts parented to your character before reanimation | |
39 | local R15toR6 = true --tries to convert your character to r6 if its r15 | |
40 | local hatcollide = false --makes hats cancollide (credit to ShownApe) (works only with reanimate method 0) | |
41 | local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState) | |
42 | local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation | |
43 | local hedafterneck = true --disable aligns for head and enable after neck or torso is removed | |
44 | local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay | |
45 | local method = 3 --reanimation method | |
46 | --methods: | |
47 | --0 - breakJoints (takes [loadtime] seconds to load) | |
48 | --1 - limbs | |
49 | --2 - limbs + anti respawn | |
50 | --3 - limbs + breakJoints after [loadtime] seconds | |
51 | --4 - remove humanoid + breakJoints | |
52 | --5 - remove humanoid + limbst | |
53 | local alignmode = 3 --AlignPosition mode | |
54 | --modes: | |
55 | --1 - AlignPosition rigidity enabled true | |
56 | --2 - 2 AlignPositions rigidity enabled both true and false | |
57 | --3 - AlignPosition rigidity enabled false | |
58 | --4 - CFrame | |
59 | local flingpart = "HumanoidRootPart" --name of the part or the hat used for flinging | |
60 | --the fling function | |
61 | --usage: fling(target, duration, velocity) | |
62 | --target can be set to: basePart, CFrame, Vector3, character model or humanoid (flings at mouse.Hit if argument not provided)) | |
63 | --duration (fling time in seconds) can be set to a number or a string convertable to the number (0.5s if not provided), | |
64 | --velocity (fling part rotation velocity) can be set to a vector3 value (Vector3.new(20000, 20000, 20000) if not provided) | |
65 | ||
66 | local lp = game:GetService("Players").LocalPlayer | |
67 | local rs, ws, sg = game:GetService("RunService"), game:GetService("Workspace"), game:GetService("StarterGui") | |
68 | local stepped, heartbeat, renderstepped = rs.Stepped, rs.Heartbeat, rs.RenderStepped | |
69 | local twait, tdelay, rad, inf, abs, clamp = task.wait, task.delay, math.rad, math.huge, math.abs, math.clamp | |
70 | local cf, v3 = CFrame.new, Vector3.new | |
71 | local angles = CFrame.Angles | |
72 | local v3_0, cf_0 = v3(0, 0, 0), cf(0, 0, 0) | |
73 | ||
74 | local c = lp.Character | |
75 | if not (c and c.Parent) then | |
76 | return | |
77 | end | |
78 | ||
79 | c:GetPropertyChangedSignal("Parent"):Connect(function() | |
80 | if not (c and c.Parent) then | |
81 | c = nil | |
82 | end | |
83 | end) | |
84 | ||
85 | local clone, destroy, getchildren, getdescendants, isa = c.Clone, c.Destroy, c.GetChildren, c.GetDescendants, c.IsA | |
86 | ||
87 | local function gp(parent, name, className) | |
88 | if typeof(parent) == "Instance" then | |
89 | for i, v in pairs(getchildren(parent)) do | |
90 | if (v.Name == name) and isa(v, className) then | |
91 | return v | |
92 | end | |
93 | end | |
94 | end | |
95 | return nil | |
96 | end | |
97 | ||
98 | local fenv = getfenv() | |
99 | ||
100 | local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop | |
101 | local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.setsimrad or fenv.set_sim_rad | |
102 | ||
103 | healthHide = healthHide and ((method == 0) or (method == 3)) and gp(c, "Head", "BasePart") | |
104 | ||
105 | local reclaim, lostpart = reclaim and c.PrimaryPart, nil | |
106 | ||
107 | local function align(Part0, Part1) | |
108 | ||
109 | local att0 = Instance.new("Attachment") | |
110 | att0.Position, att0.Orientation, att0.Name = v3_0, v3_0, "att0_" .. Part0.Name | |
111 | local att1 = Instance.new("Attachment") | |
112 | att1.Position, att1.Orientation, att1.Name = v3_0, v3_0, "att1_" .. Part1.Name | |
113 | ||
114 | if alignmode == 4 then | |
115 | ||
116 | local hide = false | |
117 | if Part0 == healthHide then | |
118 | healthHide = false | |
119 | tdelay(0, function() | |
120 | while twait(2.9) and Part0 and c do | |
121 | hide = #Part0:GetConnectedParts() == 1 | |
122 | twait(0.1) | |
123 | hide = false | |
124 | end | |
125 | end) | |
126 | end | |
127 | ||
128 | local rot = rad(0.05) | |
129 | local con0, con1 = nil, nil | |
130 | con0 = stepped:Connect(function() | |
131 | if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end | |
132 | Part0.RotVelocity = Part1.RotVelocity | |
133 | end) | |
134 | local lastpos = Part0.Position | |
135 | con1 = heartbeat:Connect(function(delta) | |
136 | if not (Part0 and Part1 and att1) then return con0:Disconnect() and con1:Disconnect() end | |
137 | if (not Part0.Anchored) and (Part0.ReceiveAge == 0) then | |
138 | if lostpart == Part0 then | |
139 | lostpart = nil | |
140 | end | |
141 | rot = -rot | |
142 | local newcf = Part1.CFrame * att1.CFrame * angles(0, 0, rot) | |
143 | if Part1.Velocity.Magnitude > 0.01 then | |
144 | Part0.Velocity = getNetlessVelocity(Part1.Velocity) | |
145 | else | |
146 | Part0.Velocity = getNetlessVelocity((newcf.Position - lastpos) / delta) | |
147 | end | |
148 | lastpos = newcf.Position | |
149 | if lostpart and (Part0 == reclaim) then | |
150 | newcf = lostpart.CFrame | |
151 | elseif hide then | |
152 | newcf += v3(0, 3000, 0) | |
153 | end | |
154 | if novoid and (newcf.Y < ws.FallenPartsDestroyHeight + 0.1) then | |
155 | newcf += v3(0, ws.FallenPartsDestroyHeight + 0.1 - newcf.Y, 0) | |
156 | end | |
157 | Part0.CFrame = newcf | |
158 | elseif (not Part0.Anchored) and (abs(Part0.Velocity.X) < 45) and (abs(Part0.Velocity.Y) < 25) and (abs(Part0.Velocity.Z) < 45) then | |
159 | lostpart = Part0 | |
160 | end | |
161 | end) | |
162 | ||
163 | else | |
164 | ||
165 | Part0.CustomPhysicalProperties = physp | |
166 | if (alignmode == 1) or (alignmode == 2) then | |
167 | local ape = Instance.new("AlignPosition") | |
168 | ape.MaxForce, ape.MaxVelocity, ape.Responsiveness = inf, inf, inf | |
169 | ape.ReactionForceEnabled, ape.RigidityEnabled, ape.ApplyAtCenterOfMass = false, true, false | |
170 | ape.Attachment0, ape.Attachment1, ape.Name = att0, att1, "AlignPositionRtrue" | |
171 | ape.Parent = att0 | |
172 | end | |
173 | ||
174 | if (alignmode == 2) or (alignmode == 3) then | |
175 | local apd = Instance.new("AlignPosition") | |
176 | apd.MaxForce, apd.MaxVelocity, apd.Responsiveness = inf, inf, inf | |
177 | apd.ReactionForceEnabled, apd.RigidityEnabled, apd.ApplyAtCenterOfMass = false, false, false | |
178 | apd.Attachment0, apd.Attachment1, apd.Name = att0, att1, "AlignPositionRfalse" | |
179 | apd.Parent = att0 | |
180 | end | |
181 | ||
182 | local ao = Instance.new("AlignOrientation") | |
183 | ao.MaxAngularVelocity, ao.MaxTorque, ao.Responsiveness = inf, inf, inf | |
184 | ao.PrimaryAxisOnly, ao.ReactionTorqueEnabled, ao.RigidityEnabled = false, false, false | |
185 | ao.Attachment0, ao.Attachment1 = att0, att1 | |
186 | ao.Parent = att0 | |
187 | ||
188 | local con0, con1 = nil, nil | |
189 | local vel = Part0.Velocity | |
190 | con0 = renderstepped:Connect(function() | |
191 | if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end | |
192 | Part0.Velocity = vel | |
193 | end) | |
194 | local lastpos = Part0.Position | |
195 | con1 = heartbeat:Connect(function(delta) | |
196 | if not (Part0 and Part1) then return con0:Disconnect() and con1:Disconnect() end | |
197 | vel = Part0.Velocity | |
198 | if Part1.Velocity.Magnitude > 0.01 then | |
199 | Part0.Velocity = getNetlessVelocity(Part1.Velocity) | |
200 | else | |
201 | Part0.Velocity = getNetlessVelocity((Part0.Position - lastpos) / delta) | |
202 | end | |
203 | lastpos = Part0.Position | |
204 | end) | |
205 | ||
206 | end | |
207 | ||
208 | att0:GetPropertyChangedSignal("Parent"):Connect(function() | |
209 | Part0 = att0.Parent | |
210 | if not isa(Part0, "BasePart") then | |
211 | att0 = nil | |
212 | if lostpart == Part0 then | |
213 | lostpart = nil | |
214 | end | |
215 | Part0 = nil | |
216 | end | |
217 | end) | |
218 | att0.Parent = Part0 | |
219 | ||
220 | att1:GetPropertyChangedSignal("Parent"):Connect(function() | |
221 | Part1 = att1.Parent | |
222 | if not isa(Part1, "BasePart") then | |
223 | att1 = nil | |
224 | Part1 = nil | |
225 | end | |
226 | end) | |
227 | att1.Parent = Part1 | |
228 | end | |
229 | ||
230 | local function respawnrequest() | |
231 | local ccfr, c = ws.CurrentCamera.CFrame, lp.Character | |
232 | lp.Character = nil | |
233 | lp.Character = c | |
234 | local con = nil | |
235 | con = ws.CurrentCamera.Changed:Connect(function(prop) | |
236 | if (prop ~= "Parent") and (prop ~= "CFrame") then | |
237 | return | |
238 | end | |
239 | ws.CurrentCamera.CFrame = ccfr | |
240 | con:Disconnect() | |
241 | end) | |
242 | end | |
243 | ||
244 | local destroyhum = (method == 4) or (method == 5) | |
245 | local breakjoints = (method == 0) or (method == 4) | |
246 | local antirespawn = (method == 0) or (method == 2) or (method == 3) | |
247 | ||
248 | hatcollide = hatcollide and (method == 0) | |
249 | ||
250 | addtools = addtools and lp:FindFirstChildOfClass("Backpack") | |
251 | ||
252 | if type(simrad) ~= "number" then simrad = 1000 end | |
253 | if shp and (simradius == "shp") then | |
254 | tdelay(0, function() | |
255 | while c do | |
256 | shp(lp, "SimulationRadius", simrad) | |
257 | heartbeat:Wait() | |
258 | end | |
259 | end) | |
260 | elseif ssr and (simradius == "ssr") then | |
261 | tdelay(0, function() | |
262 | while c do | |
263 | ssr(simrad) | |
264 | heartbeat:Wait() | |
265 | end | |
266 | end) | |
267 | end | |
268 | ||
269 | if antiragdoll then | |
270 | antiragdoll = function(v) | |
271 | if isa(v, "HingeConstraint") or isa(v, "BallSocketConstraint") then | |
272 | v.Parent = nil | |
273 | end | |
274 | end | |
275 | for i, v in pairs(getdescendants(c)) do | |
276 | antiragdoll(v) | |
277 | end | |
278 | c.DescendantAdded:Connect(antiragdoll) | |
279 | end | |
280 | ||
281 | if antirespawn then | |
282 | respawnrequest() | |
283 | end | |
284 | ||
285 | if method == 0 then | |
286 | twait(loadtime) | |
287 | if not c then | |
288 | return | |
289 | end | |
290 | end | |
291 | ||
292 | if discharscripts then | |
293 | for i, v in pairs(getdescendants(c)) do | |
294 | if isa(v, "LocalScript") then | |
295 | v.Disabled = true | |
296 | end | |
297 | end | |
298 | elseif newanimate then | |
299 | local animate = gp(c, "Animate", "LocalScript") | |
300 | if animate and (not animate.Disabled) then | |
301 | animate.Disabled = true | |
302 | else | |
303 | newanimate = false | |
304 | end | |
305 | end | |
306 | ||
307 | if addtools then | |
308 | for i, v in pairs(getchildren(addtools)) do | |
309 | if isa(v, "Tool") then | |
310 | v.Parent = c | |
311 | end | |
312 | end | |
313 | end | |
314 | ||
315 | pcall(function() | |
316 | settings().Physics.AllowSleep = false | |
317 | settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled | |
318 | end) | |
319 | ||
320 | local OLDscripts = {} | |
321 | ||
322 | for i, v in pairs(getdescendants(c)) do | |
323 | if v.ClassName == "Script" then | |
324 | OLDscripts[v.Name] = true | |
325 | end | |
326 | end | |
327 | ||
328 | local scriptNames = {} | |
329 | ||
330 | for i, v in pairs(getdescendants(c)) do | |
331 | if isa(v, "BasePart") then | |
332 | local newName, exists = tostring(i), true | |
333 | while exists do | |
334 | exists = OLDscripts[newName] | |
335 | if exists then | |
336 | newName = newName .. "_" | |
337 | end | |
338 | end | |
339 | table.insert(scriptNames, newName) | |
340 | Instance.new("Script", v).Name = newName | |
341 | end | |
342 | end | |
343 | ||
344 | local hum = c:FindFirstChildOfClass("Humanoid") | |
345 | if hum then | |
346 | for i, v in pairs(hum:GetPlayingAnimationTracks()) do | |
347 | v:Stop() | |
348 | end | |
349 | end | |
350 | c.Archivable = true | |
351 | local cl = clone(c) | |
352 | if hum and humState16 then | |
353 | hum:ChangeState(Enum.HumanoidStateType.Physics) | |
354 | if destroyhum then | |
355 | twait(1.6) | |
356 | end | |
357 | end | |
358 | if destroyhum then | |
359 | pcall(destroy, hum) | |
360 | end | |
361 | ||
362 | if not c then | |
363 | return | |
364 | end | |
365 | ||
366 | local head, torso, root = gp(c, "Head", "BasePart"), gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart"), gp(c, "HumanoidRootPart", "BasePart") | |
367 | if hatcollide then | |
368 | pcall(destroy, torso) | |
369 | pcall(destroy, root) | |
370 | pcall(destroy, c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")) | |
371 | end | |
372 | ||
373 | local model = Instance.new("Model", c) | |
374 | model:GetPropertyChangedSignal("Parent"):Connect(function() | |
375 | if not (model and model.Parent) then | |
376 | model = nil | |
377 | end | |
378 | end) | |
379 | ||
380 | for i, v in pairs(getchildren(c)) do | |
381 | if v ~= model then | |
382 | if addtools and isa(v, "Tool") then | |
383 | for i1, v1 in pairs(getdescendants(v)) do | |
384 | if v1 and v1.Parent and isa(v1, "BasePart") then | |
385 | local bv = Instance.new("BodyVelocity") | |
386 | bv.Velocity, bv.MaxForce, bv.P, bv.Name = v3_0, v3(1000, 1000, 1000), 1250, "bv_" .. v.Name | |
387 | bv.Parent = v1 | |
388 | end | |
389 | end | |
390 | end | |
391 | v.Parent = model | |
392 | end | |
393 | end | |
394 | ||
395 | if breakjoints then | |
396 | model:BreakJoints() | |
397 | else | |
398 | if head and torso then | |
399 | for i, v in pairs(getdescendants(model)) do | |
400 | if isa(v, "JointInstance") then | |
401 | local save = false | |
402 | if (v.Part0 == torso) and (v.Part1 == head) then | |
403 | save = true | |
404 | end | |
405 | if (v.Part0 == head) and (v.Part1 == torso) then | |
406 | save = true | |
407 | end | |
408 | if save then | |
409 | if hedafterneck then | |
410 | hedafterneck = v | |
411 | end | |
412 | else | |
413 | pcall(destroy, v) | |
414 | end | |
415 | end | |
416 | end | |
417 | end | |
418 | if method == 3 then | |
419 | task.delay(loadtime, pcall, model.BreakJoints, model) | |
420 | end | |
421 | end | |
422 | ||
423 | cl.Parent = ws | |
424 | for i, v in pairs(getchildren(cl)) do | |
425 | v.Parent = c | |
426 | end | |
427 | pcall(destroy, cl) | |
428 | ||
429 | local uncollide, noclipcon = nil, nil | |
430 | if noclipAllParts then | |
431 | uncollide = function() | |
432 | if c then | |
433 | for i, v in pairs(getdescendants(c)) do | |
434 | if isa(v, "BasePart") then | |
435 | v.CanCollide = false | |
436 | end | |
437 | end | |
438 | else | |
439 | noclipcon:Disconnect() | |
440 | end | |
441 | end | |
442 | else | |
443 | uncollide = function() | |
444 | if model then | |
445 | for i, v in pairs(getdescendants(model)) do | |
446 | if isa(v, "BasePart") then | |
447 | v.CanCollide = false | |
448 | end | |
449 | end | |
450 | else | |
451 | noclipcon:Disconnect() | |
452 | end | |
453 | end | |
454 | end | |
455 | noclipcon = stepped:Connect(uncollide) | |
456 | uncollide() | |
457 | ||
458 | for i, scr in pairs(getdescendants(model)) do | |
459 | if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then | |
460 | local Part0 = scr.Parent | |
461 | if isa(Part0, "BasePart") then | |
462 | for i1, scr1 in pairs(getdescendants(c)) do | |
463 | if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then | |
464 | local Part1 = scr1.Parent | |
465 | if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then | |
466 | align(Part0, Part1) | |
467 | pcall(destroy, scr) | |
468 | pcall(destroy, scr1) | |
469 | break | |
470 | end | |
471 | end | |
472 | end | |
473 | end | |
474 | end | |
475 | end | |
476 | ||
477 | for i, v in pairs(getdescendants(c)) do | |
478 | if v and v.Parent and (not v:IsDescendantOf(model)) then | |
479 | if isa(v, "Decal") then | |
480 | v.Transparency = 1 | |
481 | elseif isa(v, "BasePart") then | |
482 | v.Transparency = 1 | |
483 | v.Anchored = false | |
484 | elseif isa(v, "ForceField") then | |
485 | v.Visible = false | |
486 | elseif isa(v, "Sound") then | |
487 | v.Playing = false | |
488 | elseif isa(v, "BillboardGui") or isa(v, "SurfaceGui") or isa(v, "ParticleEmitter") or isa(v, "Fire") or isa(v, "Smoke") or isa(v, "Sparkles") then | |
489 | v.Enabled = false | |
490 | end | |
491 | end | |
492 | end | |
493 | ||
494 | if newanimate then | |
495 | local animate = gp(c, "Animate", "LocalScript") | |
496 | if animate then | |
497 | animate.Disabled = false | |
498 | end | |
499 | end | |
500 | ||
501 | if addtools then | |
502 | for i, v in pairs(getchildren(c)) do | |
503 | if isa(v, "Tool") then | |
504 | v.Parent = addtools | |
505 | end | |
506 | end | |
507 | end | |
508 | ||
509 | local hum0, hum1 = model:FindFirstChildOfClass("Humanoid"), c:FindFirstChildOfClass("Humanoid") | |
510 | if hum0 then | |
511 | hum0:GetPropertyChangedSignal("Parent"):Connect(function() | |
512 | if not (hum0 and hum0.Parent) then | |
513 | hum0 = nil | |
514 | end | |
515 | end) | |
516 | end | |
517 | if hum1 then | |
518 | hum1:GetPropertyChangedSignal("Parent"):Connect(function() | |
519 | if not (hum1 and hum1.Parent) then | |
520 | hum1 = nil | |
521 | end | |
522 | end) | |
523 | ||
524 | ws.CurrentCamera.CameraSubject = hum1 | |
525 | local camSubCon = nil | |
526 | local function camSubFunc() | |
527 | camSubCon:Disconnect() | |
528 | if c and hum1 then | |
529 | ws.CurrentCamera.CameraSubject = hum1 | |
530 | end | |
531 | end | |
532 | camSubCon = renderstepped:Connect(camSubFunc) | |
533 | if hum0 then | |
534 | hum0:GetPropertyChangedSignal("Jump"):Connect(function() | |
535 | if hum1 then | |
536 | hum1.Jump = hum0.Jump | |
537 | end | |
538 | end) | |
539 | else | |
540 | respawnrequest() | |
541 | end | |
542 | end | |
543 | ||
544 | local rb = Instance.new("BindableEvent", c) | |
545 | rb.Event:Connect(function() | |
546 | pcall(destroy, rb) | |
547 | sg:SetCore("ResetButtonCallback", true) | |
548 | if destroyhum then | |
549 | if c then c:BreakJoints() end | |
550 | return | |
551 | end | |
552 | if model and hum0 and (hum0.Health > 0) then | |
553 | model:BreakJoints() | |
554 | hum0.Health = 0 | |
555 | end | |
556 | if antirespawn then | |
557 | respawnrequest() | |
558 | end | |
559 | end) | |
560 | sg:SetCore("ResetButtonCallback", rb) | |
561 | ||
562 | tdelay(0, function() | |
563 | while c do | |
564 | if hum0 and hum1 then | |
565 | hum1.Jump = hum0.Jump | |
566 | end | |
567 | wait() | |
568 | end | |
569 | sg:SetCore("ResetButtonCallback", true) | |
570 | end) | |
571 | ||
572 | R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15) | |
573 | if R15toR6 then | |
574 | local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart") | |
575 | if part then | |
576 | local cfr = part.CFrame | |
577 | local R6parts = { | |
578 | head = { | |
579 | Name = "Head", | |
580 | Size = v3(2, 1, 1), | |
581 | R15 = { | |
582 | Head = 0 | |
583 | } | |
584 | }, | |
585 | torso = { | |
586 | Name = "Torso", | |
587 | Size = v3(2, 2, 1), | |
588 | R15 = { | |
589 | UpperTorso = 0.2, | |
590 | LowerTorso = -0.8 | |
591 | } | |
592 | }, | |
593 | root = { | |
594 | Name = "HumanoidRootPart", | |
595 | Size = v3(2, 2, 1), | |
596 | R15 = { | |
597 | HumanoidRootPart = 0 | |
598 | } | |
599 | }, | |
600 | leftArm = { | |
601 | Name = "Left Arm", | |
602 | Size = v3(1, 2, 1), | |
603 | R15 = { | |
604 | LeftHand = -0.849, | |
605 | LeftLowerArm = -0.174, | |
606 | LeftUpperArm = 0.415 | |
607 | } | |
608 | }, | |
609 | rightArm = { | |
610 | Name = "Right Arm", | |
611 | Size = v3(1, 2, 1), | |
612 | R15 = { | |
613 | RightHand = -0.849, | |
614 | RightLowerArm = -0.174, | |
615 | RightUpperArm = 0.415 | |
616 | } | |
617 | }, | |
618 | leftLeg = { | |
619 | Name = "Left Leg", | |
620 | Size = v3(1, 2, 1), | |
621 | R15 = { | |
622 | LeftFoot = -0.85, | |
623 | LeftLowerLeg = -0.29, | |
624 | LeftUpperLeg = 0.49 | |
625 | } | |
626 | }, | |
627 | rightLeg = { | |
628 | Name = "Right Leg", | |
629 | Size = v3(1, 2, 1), | |
630 | R15 = { | |
631 | RightFoot = -0.85, | |
632 | RightLowerLeg = -0.29, | |
633 | RightUpperLeg = 0.49 | |
634 | } | |
635 | } | |
636 | } | |
637 | for i, v in pairs(getchildren(c)) do | |
638 | if isa(v, "BasePart") then | |
639 | for i1, v1 in pairs(getchildren(v)) do | |
640 | if isa(v1, "Motor6D") then | |
641 | v1.Part0 = nil | |
642 | end | |
643 | end | |
644 | end | |
645 | end | |
646 | part.Archivable = true | |
647 | for i, v in pairs(R6parts) do | |
648 | local part = clone(part) | |
649 | part:ClearAllChildren() | |
650 | part.Name, part.Size, part.CFrame, part.Anchored, part.Transparency, part.CanCollide = v.Name, v.Size, cfr, false, 1, false | |
651 | for i1, v1 in pairs(v.R15) do | |
652 | local R15part = gp(c, i1, "BasePart") | |
653 | local att = gp(R15part, "att1_" .. i1, "Attachment") | |
654 | if R15part then | |
655 | local weld = Instance.new("Weld") | |
656 | weld.Part0, weld.Part1, weld.C0, weld.C1, weld.Name = part, R15part, cf(0, v1, 0), cf_0, "Weld_" .. i1 | |
657 | weld.Parent = R15part | |
658 | R15part.Massless, R15part.Name = true, "R15_" .. i1 | |
659 | R15part.Parent = part | |
660 | if att then | |
661 | att.Position = v3(0, v1, 0) | |
662 | att.Parent = part | |
663 | end | |
664 | end | |
665 | end | |
666 | part.Parent = c | |
667 | R6parts[i] = part | |
668 | end | |
669 | local R6joints = { | |
670 | neck = { | |
671 | Parent = R6parts.torso, | |
672 | Name = "Neck", | |
673 | Part0 = R6parts.torso, | |
674 | Part1 = R6parts.head, | |
675 | C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), | |
676 | C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
677 | }, | |
678 | rootJoint = { | |
679 | Parent = R6parts.root, | |
680 | Name = "RootJoint" , | |
681 | Part0 = R6parts.root, | |
682 | Part1 = R6parts.torso, | |
683 | C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0), | |
684 | C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
685 | }, | |
686 | rightShoulder = { | |
687 | Parent = R6parts.torso, | |
688 | Name = "Right Shoulder", | |
689 | Part0 = R6parts.torso, | |
690 | Part1 = R6parts.rightArm, | |
691 | C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), | |
692 | C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
693 | }, | |
694 | leftShoulder = { | |
695 | Parent = R6parts.torso, | |
696 | Name = "Left Shoulder", | |
697 | Part0 = R6parts.torso, | |
698 | Part1 = R6parts.leftArm, | |
699 | C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
700 | C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
701 | }, | |
702 | rightHip = { | |
703 | Parent = R6parts.torso, | |
704 | Name = "Right Hip", | |
705 | Part0 = R6parts.torso, | |
706 | Part1 = R6parts.rightLeg, | |
707 | C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0), | |
708 | C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0) | |
709 | }, | |
710 | leftHip = { | |
711 | Parent = R6parts.torso, | |
712 | Name = "Left Hip" , | |
713 | Part0 = R6parts.torso, | |
714 | Part1 = R6parts.leftLeg, | |
715 | C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
716 | C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
717 | } | |
718 | } | |
719 | for i, v in pairs(R6joints) do | |
720 | local joint = Instance.new("Motor6D") | |
721 | for prop, val in pairs(v) do | |
722 | joint[prop] = val | |
723 | end | |
724 | R6joints[i] = joint | |
725 | end | |
726 | if hum1 then | |
727 | hum1.RigType, hum1.HipHeight = Enum.HumanoidRigType.R6, 0 | |
728 | end | |
729 | end | |
730 | end | |
731 | ||
732 | local torso1 = torso | |
733 | torso = gp(c, "Torso", "BasePart") or ((not R15toR6) and gp(c, torso.Name, "BasePart")) | |
734 | if (typeof(hedafterneck) == "Instance") and head and torso and torso1 then | |
735 | local conNeck, conTorso, conTorso1 = nil, nil, nil | |
736 | local aligns = {} | |
737 | local function enableAligns() | |
738 | conNeck:Disconnect() | |
739 | conTorso:Disconnect() | |
740 | conTorso1:Disconnect() | |
741 | for i, v in pairs(aligns) do | |
742 | v.Enabled = true | |
743 | end | |
744 | end | |
745 | conNeck = hedafterneck.Changed:Connect(function(prop) | |
746 | if table.find({"Part0", "Part1", "Parent"}, prop) then | |
747 | enableAligns() | |
748 | end | |
749 | end) | |
750 | conTorso = torso:GetPropertyChangedSignal("Parent"):Connect(enableAligns) | |
751 | conTorso1 = torso1:GetPropertyChangedSignal("Parent"):Connect(enableAligns) | |
752 | for i, v in pairs(getdescendants(head)) do | |
753 | if isa(v, "AlignPosition") or isa(v, "AlignOrientation") then | |
754 | i = tostring(i) | |
755 | aligns[i] = v | |
756 | v:GetPropertyChangedSignal("Parent"):Connect(function() | |
757 | aligns[i] = nil | |
758 | end) | |
759 | v.Enabled = false | |
760 | end | |
761 | end | |
762 | end | |
763 | ||
764 | local flingpart0 = gp(model, flingpart, "BasePart") or gp(gp(model, flingpart, "Accessory"), "Handle", "BasePart") | |
765 | local flingpart1 = gp(c, flingpart, "BasePart") or gp(gp(c, flingpart, "Accessory"), "Handle", "BasePart") | |
766 | ||
767 | local fling = function() end | |
768 | if flingpart0 and flingpart1 then | |
769 | flingpart0:GetPropertyChangedSignal("Parent"):Connect(function() | |
770 | if not (flingpart0 and flingpart0.Parent) then | |
771 | flingpart0 = nil | |
772 | fling = function() end | |
773 | end | |
774 | end) | |
775 | flingpart0.Archivable = true | |
776 | flingpart1:GetPropertyChangedSignal("Parent"):Connect(function() | |
777 | if not (flingpart1 and flingpart1.Parent) then | |
778 | flingpart1 = nil | |
779 | fling = function() end | |
780 | end | |
781 | end) | |
782 | local att0 = gp(flingpart0, "att0_" .. flingpart0.Name, "Attachment") | |
783 | local att1 = gp(flingpart1, "att1_" .. flingpart1.Name, "Attachment") | |
784 | if att0 and att1 then | |
785 | att0:GetPropertyChangedSignal("Parent"):Connect(function() | |
786 | if not (att0 and att0.Parent) then | |
787 | att0 = nil | |
788 | fling = function() end | |
789 | end | |
790 | end) | |
791 | att1:GetPropertyChangedSignal("Parent"):Connect(function() | |
792 | if not (att1 and att1.Parent) then | |
793 | att1 = nil | |
794 | fling = function() end | |
795 | end | |
796 | end) | |
797 | local lastfling = nil | |
798 | local mouse = lp:GetMouse() | |
799 | fling = function(target, duration, rotVelocity) | |
800 | if typeof(target) == "Instance" then | |
801 | if isa(target, "BasePart") then | |
802 | target = target.Position | |
803 | elseif isa(target, "Model") then | |
804 | target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart") | |
805 | if target then | |
806 | target = target.Position | |
807 | else | |
808 | return | |
809 | end | |
810 | elseif isa(target, "Humanoid") then | |
811 | target = target.Parent | |
812 | if not (target and isa(target, "Model")) then | |
813 | return | |
814 | end | |
815 | target = gp(target, "HumanoidRootPart", "BasePart") or gp(target, "Torso", "BasePart") or gp(target, "UpperTorso", "BasePart") or target:FindFirstChildWhichIsA("BasePart") | |
816 | if target then | |
817 | target = target.Position | |
818 | else | |
819 | return | |
820 | end | |
821 | else | |
822 | return | |
823 | end | |
824 | elseif typeof(target) == "CFrame" then | |
825 | target = target.Position | |
826 | elseif typeof(target) ~= "Vector3" then | |
827 | target = mouse.Hit | |
828 | if target then | |
829 | target = target.Position | |
830 | else | |
831 | return | |
832 | end | |
833 | end | |
834 | if target.Y < ws.FallenPartsDestroyHeight + 5 then | |
835 | target = v3(target.X, ws.FallenPartsDestroyHeight + 5, target.Z) | |
836 | end | |
837 | lastfling = target | |
838 | if type(duration) ~= "number" then | |
839 | duration = tonumber(duration) or 0.5 | |
840 | end | |
841 | if typeof(rotVelocity) ~= "Vector3" then | |
842 | rotVelocity = v3(20000, 20000, 20000) | |
843 | end | |
844 | if not (target and flingpart0 and flingpart1 and att0 and att1) then | |
845 | return | |
846 | end | |
847 | flingpart0.Archivable = true | |
848 | local flingpart = clone(flingpart0) | |
849 | flingpart.Transparency = 1 | |
850 | flingpart.CanCollide = false | |
851 | flingpart.Name = "flingpart_" .. flingpart0.Name | |
852 | flingpart.Anchored = true | |
853 | flingpart.Velocity = v3_0 | |
854 | flingpart.RotVelocity = v3_0 | |
855 | flingpart.Position = target | |
856 | flingpart:GetPropertyChangedSignal("Parent"):Connect(function() | |
857 | if not (flingpart and flingpart.Parent) then | |
858 | flingpart = nil | |
859 | end | |
860 | end) | |
861 | flingpart.Parent = flingpart1 | |
862 | if flingpart0.Transparency > 0.5 then | |
863 | flingpart0.Transparency = 0.5 | |
864 | end | |
865 | att1.Parent = flingpart | |
866 | local con = nil | |
867 | local rotchg = v3(0, rotVelocity.Unit.Y * -1000, 0) | |
868 | con = heartbeat:Connect(function(delta) | |
869 | if target and (lastfling == target) and flingpart and flingpart0 and flingpart1 and att0 and att1 then | |
870 | flingpart.Orientation += rotchg * delta | |
871 | flingpart0.RotVelocity = rotVelocity | |
872 | else | |
873 | con:Disconnect() | |
874 | end | |
875 | end) | |
876 | if alignmode ~= 4 then | |
877 | local con = nil | |
878 | con = renderstepped:Connect(function() | |
879 | if flingpart0 and target then | |
880 | flingpart0.RotVelocity = v3_0 | |
881 | else | |
882 | con:Disconnect() | |
883 | end | |
884 | end) | |
885 | end | |
886 | twait(duration) | |
887 | if lastfling ~= target then | |
888 | if flingpart then | |
889 | if att1 and (att1.Parent == flingpart) then | |
890 | att1.Parent = flingpart1 | |
891 | end | |
892 | pcall(destroy, flingpart) | |
893 | end | |
894 | return | |
895 | end | |
896 | target = nil | |
897 | if not (flingpart and flingpart0 and flingpart1 and att0 and att1) then | |
898 | return | |
899 | end | |
900 | flingpart0.RotVelocity = v3_0 | |
901 | att1.Parent = flingpart1 | |
902 | pcall(destroy, flingpart) | |
903 | end | |
904 | end | |
905 | end | |
906 | ||
907 | lp:GetMouse().Button1Down:Connect(fling) --click fling | |
908 | ||
909 | lol = getcustomasset or getsynasset | |
910 | getgenv().LoadLibrary = function(lib) return loadstring(game:HttpGet("https://raw.githubusercontent.com/Roblox/Core-Scripts/master/CoreScriptsRoot/Libraries/" .. lib .. ".lua"))() end | |
911 | ||
912 | ||
913 | ||
914 | local Player = game:GetService("Players").LocalPlayer | |
915 | repeat | |
916 | wait() | |
917 | until Player.Character | |
918 | local Character = Player.Character | |
919 | TrailSettings = { | |
920 | Lifetime = 1, | |
921 | Texture = "http://www.roblox.com/asset/?id=1097260739", | |
922 | Color1 = ColorSequence.new(BrickColor.new("Cool yellow").Color), | |
923 | Color2 = ColorSequence.new(BrickColor.new("Cool yellow").Color), | |
924 | AllBody = true, | |
925 | UpperBodyOnly = false, | |
926 | LowerBodyOnly = false, | |
927 | Accessories = false, | |
928 | Extras = true, | |
929 | R15 = false, | |
930 | R15Parts = {"UpperTorso", "LowerTorso"} | |
931 | } | |
932 | local Trail | |
933 | function UpperBody() | |
934 | if TrailSettings.R15 == false then | |
935 | A0 = Instance.new("Attachment", Character.Torso) | |
936 | A1 = Instance.new("Attachment", Character.Head) | |
937 | A2 = Instance.new("Attachment", Character["Right Arm"]) | |
938 | A3 = Instance.new("Attachment", Character["Left Arm"]) | |
939 | Trail = Instance.new("Trail", Character) | |
940 | Trail.Attachment0 = A0 | |
941 | Trail.Attachment1 = A1 | |
942 | Trail.Texture = TrailSettings.Texture | |
943 | Trail.Color = TrailSettings.Color1 | |
944 | Trail.Lifetime = TrailSettings.Lifetime | |
945 | local Trail2 = Trail:Clone() | |
946 | Trail2.Parent = Character | |
947 | Trail2.Attachment1 = A2 | |
948 | local Trail3 = Trail:Clone() | |
949 | Trail3.Parent = Character | |
950 | Trail3.Attachment1 = A3 | |
951 | local Trail6 = Trail:Clone() | |
952 | Trail6.Parent = Character | |
953 | Trail6.Attachment0 = A1 | |
954 | Trail6.Attachment1 = A2 | |
955 | local Trail7 = Trail:Clone() | |
956 | Trail7.Parent = Character | |
957 | Trail7.Attachment0 = A1 | |
958 | Trail7.Attachment1 = A3 | |
959 | else | |
960 | A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]]) | |
961 | A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]]) | |
962 | A1 = Instance.new("Attachment", Character.Head) | |
963 | A2 = Instance.new("Attachment", Character.RightUpperArm) | |
964 | A2R = Instance.new("Attachment", Character.RightLowerArm) | |
965 | A3 = Instance.new("Attachment", Character.LeftUpperArm) | |
966 | A3R = Instance.new("Attachment", Character.LeftLowerArm) | |
967 | Trail = Instance.new("Trail", Character) | |
968 | Trail.Attachment0 = A0 | |
969 | Trail.Attachment1 = A1 | |
970 | Trail.Texture = TrailSettings.Texture | |
971 | Trail.Color = TrailSettings.Color1 | |
972 | Trail.Lifetime = TrailSettings.Lifetime | |
973 | local Trail2 = Trail:Clone() | |
974 | Trail2.Parent = Character | |
975 | Trail2.Attachment1 = A2 | |
976 | local Trail3 = Trail:Clone() | |
977 | Trail3.Parent = Character | |
978 | Trail3.Attachment1 = A3 | |
979 | local Trail6 = Trail:Clone() | |
980 | Trail6.Parent = Character | |
981 | Trail6.Attachment0 = A1 | |
982 | Trail6.Attachment1 = A2 | |
983 | local Trail7 = Trail:Clone() | |
984 | Trail7.Parent = Character | |
985 | Trail7.Attachment0 = A1 | |
986 | Trail7.Attachment1 = A3 | |
987 | local Trail1R = Trail:Clone() | |
988 | Trail1R.Parent = Character | |
989 | Trail1R.Attachment1 = A2R | |
990 | local Trail2R = Trail:Clone() | |
991 | Trail2R.Parent = Character | |
992 | Trail2R.Attachment1 = A3R | |
993 | local Trail6R = Trail:Clone() | |
994 | Trail6.Parent = Character | |
995 | Trail6.Attachment0 = A1 | |
996 | Trail6.Attachment1 = A2R | |
997 | local Trail7R = Trail:Clone() | |
998 | Trail7.Parent = Character | |
999 | Trail7.Attachment0 = A1 | |
1000 | Trail7.Attachment1 = A3R | |
1001 | end | |
1002 | end | |
1003 | function LowerBody() | |
1004 | if TrailSettings.R15 == false then | |
1005 | A4 = Instance.new("Attachment", Character["Right Leg"]) | |
1006 | A5 = Instance.new("Attachment", Character["Left Leg"]) | |
1007 | local Trail4 = Trail:Clone() | |
1008 | Trail4.Parent = Character | |
1009 | Trail4.Attachment1 = A4 | |
1010 | local Trail5 = Trail:Clone() | |
1011 | Trail5.Parent = Character | |
1012 | Trail5.Attachment1 = A5 | |
1013 | local Trail8 = Trail:Clone() | |
1014 | Trail8.Parent = Character | |
1015 | Trail8.Attachment0 = A2 | |
1016 | Trail8.Attachment1 = A4 | |
1017 | Trail8.Color = TrailSettings.Color2 | |
1018 | local Trail9 = Trail:Clone() | |
1019 | Trail9.Parent = Character | |
1020 | Trail9.Attachment0 = A3 | |
1021 | Trail9.Attachment1 = A5 | |
1022 | Trail9.Color = TrailSettings.Color2 | |
1023 | local FT = Trail:Clone() | |
1024 | FT.Parent = Character | |
1025 | FT.Attachment0 = A4 | |
1026 | FT.Attachment1 = A5 | |
1027 | FT.Color = TrailSettings.Color2 | |
1028 | else | |
1029 | A4 = Instance.new("Attachment", Character.RightLowerLeg) | |
1030 | A4R = Instance.new("Attachment", Character.RightUpperLeg) | |
1031 | A5 = Instance.new("Attachment", Character.LeftLowerLeg) | |
1032 | A5R = Instance.new("Attachment", Character.LeftUpperLeg) | |
1033 | local Trail4 = Trail:Clone() | |
1034 | Trail4.Parent = Character | |
1035 | Trail4.Attachment1 = A4 | |
1036 | local Trail5 = Trail:Clone() | |
1037 | Trail5.Parent = Character | |
1038 | Trail5.Attachment1 = A5 | |
1039 | local Trail8 = Trail:Clone() | |
1040 | Trail8.Parent = Character | |
1041 | Trail8.Attachment0 = A2 | |
1042 | Trail8.Attachment1 = A4 | |
1043 | Trail8.Color = TrailSettings.Color2 | |
1044 | local Trail9 = Trail:Clone() | |
1045 | Trail9.Parent = Character | |
1046 | Trail9.Attachment0 = A3 | |
1047 | Trail9.Attachment1 = A5 | |
1048 | Trail9.Color = TrailSettings.Color2 | |
1049 | local FT = Trail:Clone() | |
1050 | FT.Parent = Character | |
1051 | FT.Attachment0 = A4 | |
1052 | FT.Attachment1 = A5 | |
1053 | FT.Color = TrailSettings.Color2 | |
1054 | local Trail3R = Trail:Clone() | |
1055 | Trail3R.Parent = Character | |
1056 | Trail3R.Attachment1 = A4R | |
1057 | local Trail4R = Trail:Clone() | |
1058 | Trail4R.Parent = Character | |
1059 | Trail4R.Attachment1 = A5R | |
1060 | local Trail8 = Trail:Clone() | |
1061 | Trail8.Parent = Character | |
1062 | Trail8.Attachment0 = A2R | |
1063 | Trail8.Attachment1 = A4R | |
1064 | Trail8.Color = TrailSettings.Color2 | |
1065 | local Trail9 = Trail:Clone() | |
1066 | Trail9.Parent = Character | |
1067 | Trail9.Attachment0 = A3R | |
1068 | Trail9.Attachment1 = A5R | |
1069 | Trail9.Color = TrailSettings.Color2 | |
1070 | local FT2R = Trail:Clone() | |
1071 | FT2R.Parent = Character | |
1072 | FT2R.Attachment0 = A4R | |
1073 | FT2R.Attachment1 = A5R | |
1074 | FT2R.Color = TrailSettings.Color2 | |
1075 | end | |
1076 | end | |
1077 | function AllBody() | |
1078 | UpperBody() | |
1079 | LowerBody() | |
1080 | end | |
1081 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
1082 | TrailSettings.UpperBodyOnly = false | |
1083 | TrailSettings.LowerBodyOnly = false | |
1084 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
1085 | TrailSettings.UpperBodyOnly = false | |
1086 | TrailSettings.LowerBodyOnly = false | |
1087 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
1088 | TrailSettings.UpperBodyOnly = false | |
1089 | TrailSettings.LowerBodyOnly = false | |
1090 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
1091 | TrailSettings.AllBody = true | |
1092 | TrailSettings.UpperBodyOnly = false | |
1093 | TrailSettings.LowerBodyOnly = false | |
1094 | end | |
1095 | if TrailSettings.UpperBodyOnly == true then | |
1096 | UpperBody() | |
1097 | print("Called Upper Body Trail") | |
1098 | elseif TrailSettings.LowerBodyOnly == true then | |
1099 | LowerBody() | |
1100 | print("Called Lower Body Trail") | |
1101 | elseif TrailSettings.AllBody == true then | |
1102 | AllBody() | |
1103 | print("Called Full Body Trail") | |
1104 | end | |
1105 | if TrailSettings.Accessories == true then | |
1106 | for Index, Item in pairs(Character:GetChildren()) do | |
1107 | if Item:IsA("Accessory") then | |
1108 | local AA = Instance.new("Attachment", Item.Handle) | |
1109 | local ATrail = Trail:Clone() | |
1110 | ATrail.Parent = Character | |
1111 | ATrail.Attachment1 = AA | |
1112 | end | |
1113 | end | |
1114 | end | |
1115 | if TrailSettings.Extras == true then | |
1116 | spawn(function() | |
1117 | repeat | |
1118 | wait() | |
1119 | until Trail | |
1120 | local AB = Instance.new("Attachment", a) | |
1121 | local ABT = Trail:Clone() | |
1122 | ABT.Parent = Character | |
1123 | ABT.Attachment0 = A4 | |
1124 | ABT.Attachment1 = AB | |
1125 | ABT.Color = TrailSettings.Color2 | |
1126 | local ABT2 = Trail:Clone() | |
1127 | ABT2.Parent = Character | |
1128 | ABT2.Attachment0 = A5 | |
1129 | ABT2.Attachment1 = AB | |
1130 | ABT2.Color = TrailSettings.Color2 | |
1131 | end) | |
1132 | end | |
1133 | wait(0.1) | |
1134 | --//====================================================\\-- | |
1135 | --|| CREATED BY SHACKLUSTER | |
1136 | --\\====================================================//-- | |
1137 | ||
1138 | local Player = game.Players.localPlayer | |
1139 | local Character = Player.Character | |
1140 | local Humanoid = Character.Humanoid | |
1141 | local Mouse = Player:GetMouse() | |
1142 | local LeftArm = Character["Left Arm"] | |
1143 | local RightArm = Character["Right Arm"] | |
1144 | local LeftLeg = Character["Left Leg"] | |
1145 | local RightLeg = Character["Right Leg"] | |
1146 | local Head = Character.Head | |
1147 | local Torso = Character.Torso | |
1148 | local Camera = game.Workspace.CurrentCamera | |
1149 | local RootPart = Character.HumanoidRootPart | |
1150 | local RootJoint = RootPart.RootJoint | |
1151 | local attack = false | |
1152 | local Anim = 'Idle' | |
1153 | local Lighty = game:GetService"Lighting" | |
1154 | local attacktype = 1 | |
1155 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1156 | local velocity = RootPart.Velocity.y | |
1157 | local sine = 0 | |
1158 | local change = 1 | |
1159 | local bored = {492070484,1232162751,1534958855,303535614,1117396305,0} | |
1160 | local Create = LoadLibrary("RbxUtility").Create | |
1161 | function swait(num) | |
1162 | if num == 0 or num == nil then | |
1163 | ArtificialHB.Event:wait() | |
1164 | else | |
1165 | for i = 0, num do | |
1166 | ArtificialHB.Event:wait() | |
1167 | end | |
1168 | end | |
1169 | end | |
1170 | ||
1171 | local chara = Character | |
1172 | local m = Create("Model"){ | |
1173 | Parent = Character, | |
1174 | Name = "WeaponModel", | |
1175 | } | |
1176 | function chatfunc(text) | |
1177 | local chat = coroutine.wrap(function() | |
1178 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1179 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1180 | end | |
1181 | local Bill = Instance.new("BillboardGui",Character) | |
1182 | Bill.Size = UDim2.new(0,100,0,40) | |
1183 | Bill.StudsOffset = Vector3.new(0,3,0) | |
1184 | Bill.Adornee = Character.Head | |
1185 | Bill.Name = "TalkingBillBoard" | |
1186 | local Hehe = Instance.new("TextLabel",Bill) | |
1187 | Hehe.BackgroundTransparency = 1 | |
1188 | Hehe.BorderSizePixel = 0 | |
1189 | Hehe.Text = "" | |
1190 | Hehe.Font = "Garamond" | |
1191 | Hehe.TextSize = 40 | |
1192 | Hehe.TextStrokeTransparency = 0 | |
1193 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1194 | coroutine.resume(coroutine.create(function() | |
1195 | while Hehe ~= nil do | |
1196 | swait() | |
1197 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1198 | Hehe.Rotation = math.random(-5,5) | |
1199 | Hehe.TextColor3 = Color3.new(255,255,0) | |
1200 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
1201 | end | |
1202 | end)) | |
1203 | for i = 1,string.len(text),1 do | |
1204 | swait() | |
1205 | Hehe.Text = string.sub(text,1,i) | |
1206 | end | |
1207 | swait(90)--Re[math.random(1, 93)] | |
1208 | for i = 0, 1, .025 do | |
1209 | swait() | |
1210 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1211 | Hehe.TextStrokeTransparency = i | |
1212 | Hehe.TextTransparency = i | |
1213 | end | |
1214 | Bill:Destroy() | |
1215 | end) | |
1216 | chat() | |
1217 | end | |
1218 | ||
1219 | function onChatted(msg) | |
1220 | chatfunc(msg) | |
1221 | end | |
1222 | ||
1223 | Player.Chatted:connect(onChatted) | |
1224 | wait(0.2) | |
1225 | ||
1226 | Player = game:GetService("Players").LocalPlayer | |
1227 | PlayerGui = Player.PlayerGui | |
1228 | Cam = workspace.CurrentCamera | |
1229 | Backpack = Player.Backpack | |
1230 | Character = Player.Character | |
1231 | Humanoid = Character.Humanoid | |
1232 | Mouse = Player:GetMouse() | |
1233 | RootPart = Character["HumanoidRootPart"] | |
1234 | Torso = Character["Torso"] | |
1235 | Head = Character["Head"] | |
1236 | RightArm = Character["Right Arm"] | |
1237 | LeftArm = Character["Left Arm"] | |
1238 | RightLeg = Character["Right Leg"] | |
1239 | LeftLeg = Character["Left Leg"] | |
1240 | RootJoint = RootPart["RootJoint"] | |
1241 | Neck = Torso["Neck"] | |
1242 | RightShoulder = Torso["Right Shoulder"] | |
1243 | LeftShoulder = Torso["Left Shoulder"] | |
1244 | RightHip = Torso["Right Hip"] | |
1245 | LeftHip = Torso["Left Hip"] | |
1246 | Character.Archivable = true | |
1247 | Player:ClearCharacterAppearance() | |
1248 | ||
1249 | IT = Instance.new | |
1250 | CF = CFrame.new | |
1251 | VT = Vector3.new | |
1252 | RAD = math.rad | |
1253 | C3 = Color3.new | |
1254 | UD2 = UDim2.new | |
1255 | BRICKC = BrickColor.new | |
1256 | ANGLES = CFrame.Angles | |
1257 | EULER = CFrame.fromEulerAnglesXYZ | |
1258 | COS = math.cos | |
1259 | ACOS = math.acos | |
1260 | SIN = math.sin | |
1261 | ASIN = math.asin | |
1262 | ABS = math.abs | |
1263 | MRANDOM = math.random | |
1264 | FLOOR = math.floor | |
1265 | local CHOICE = MRANDOM(1,5) | |
1266 | --//=================================\\ | |
1267 | --|| USEFUL VALUES | |
1268 | --\\=================================// | |
1269 | ||
1270 | Animation_Speed = 3 | |
1271 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
1272 | local Speed = 20 | |
1273 | local SIZE = 1.4 | |
1274 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1275 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1276 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
1277 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
1278 | local DAMAGEMULTIPLIER = "inf" | |
1279 | local ANIM = "Idle" | |
1280 | local ATTACK = false | |
1281 | local EQUIPPED = false | |
1282 | local HOLD = false | |
1283 | local COMBO = 1 | |
1284 | local Rooted = false | |
1285 | local SINE = 0 | |
1286 | local KEYHOLD = false | |
1287 | local CHANGE = 2 / Animation_Speed | |
1288 | local WALKINGANIM = false | |
1289 | local VALUE1 = false | |
1290 | local VALUE2 = false | |
1291 | local ROBLOXIDLEANIMATION = IT("Animation") | |
1292 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
1293 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
1294 | local ATANIM = IT("Animation") | |
1295 | ATANIM.Name = "Attack Animation" | |
1296 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
1297 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
1298 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
1299 | WEAPONGUI.Name = "Weapon GUI" | |
1300 | local Weapon = IT("Model") | |
1301 | Weapon.Name = "Adds" | |
1302 | local Effects = IT("Folder", Weapon) | |
1303 | Effects.Name = "Effects" | |
1304 | local ANIMATOR = Humanoid.Animator | |
1305 | local ANIMATE = Character.Animate | |
1306 | local UNANCHOR = true | |
1307 | local CLOCKLOOP = 0 | |
1308 | local SONG = 492070484 | |
1309 | local CLOCKTARGET = nil | |
1310 | local CLOCKSPEED = 4 | |
1311 | script.Parent = WEAPONGUI | |
1312 | local CLONE = Character:Clone() | |
1313 | CLONE.Parent = nil | |
1314 | Character.Archivable = false | |
1315 | local sick = Instance.new("Sound",Torso) | |
1316 | sick.Volume = 50999 | |
1317 | ||
1318 | --//=================================\\ | |
1319 | --\\=================================// | |
1320 | ||
1321 | ||
1322 | --//=================================\\ | |
1323 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
1324 | --\\=================================// | |
1325 | ||
1326 | ArtificialHB = Instance.new("BindableEvent", script) | |
1327 | ArtificialHB.Name = "ArtificialHB" | |
1328 | ||
1329 | script:WaitForChild("ArtificialHB") | |
1330 | ||
1331 | frame = Frame_Speed | |
1332 | tf = 0 | |
1333 | allowframeloss = false | |
1334 | tossremainder = false | |
1335 | lastframe = tick() | |
1336 | script.ArtificialHB:Fire() | |
1337 | ||
1338 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1339 | tf = tf + s | |
1340 | if tf >= frame then | |
1341 | if allowframeloss then | |
1342 | script.ArtificialHB:Fire() | |
1343 | lastframe = tick() | |
1344 | else | |
1345 | for i = 1, math.floor(tf / frame) do | |
1346 | script.ArtificialHB:Fire() | |
1347 | end | |
1348 | lastframe = tick() | |
1349 | end | |
1350 | if tossremainder then | |
1351 | tf = 0 | |
1352 | else | |
1353 | tf = tf - frame * math.floor(tf / frame) | |
1354 | end | |
1355 | end | |
1356 | end) | |
1357 | ||
1358 | --//=================================\\ | |
1359 | --\\=================================// | |
1360 | ||
1361 | --//=================================\\ | |
1362 | --|| SOME FUNCTIONS | |
1363 | --\\=================================// | |
1364 | ||
1365 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1366 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1367 | end | |
1368 | ||
1369 | function PositiveAngle(NUMBER) | |
1370 | if NUMBER >= 0 then | |
1371 | NUMBER = 0 | |
1372 | end | |
1373 | return NUMBER | |
1374 | end | |
1375 | ||
1376 | function NegativeAngle(NUMBER) | |
1377 | if NUMBER <= 0 then | |
1378 | NUMBER = 0 | |
1379 | end | |
1380 | return NUMBER | |
1381 | end | |
1382 | ||
1383 | function Swait(NUMBER) | |
1384 | if NUMBER == 0 or NUMBER == nil then | |
1385 | ArtificialHB.Event:wait() | |
1386 | else | |
1387 | for i = 1, NUMBER do | |
1388 | ArtificialHB.Event:wait() | |
1389 | end | |
1390 | end | |
1391 | end | |
1392 | ||
1393 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1394 | local NEWMESH = IT(MESH) | |
1395 | if MESH == "SpecialMesh" then | |
1396 | NEWMESH.MeshType = MESHTYPE | |
1397 | if MESHID ~= "nil" and MESHID ~= "" then | |
1398 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1399 | end | |
1400 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1401 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1402 | end | |
1403 | end | |
1404 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1405 | NEWMESH.Scale = SCALE | |
1406 | NEWMESH.Parent = PARENT | |
1407 | return NEWMESH | |
1408 | end | |
1409 | ||
1410 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1411 | local NEWPART = IT("Part") | |
1412 | NEWPART.formFactor = FORMFACTOR | |
1413 | NEWPART.Reflectance = REFLECTANCE | |
1414 | NEWPART.Transparency = TRANSPARENCY | |
1415 | NEWPART.CanCollide = false | |
1416 | NEWPART.Locked = true | |
1417 | NEWPART.Anchored = true | |
1418 | if ANCHOR == false then | |
1419 | NEWPART.Anchored = false | |
1420 | end | |
1421 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1422 | NEWPART.Name = NAME | |
1423 | NEWPART.Size = SIZE | |
1424 | NEWPART.Position = Torso.Position | |
1425 | NEWPART.Material = MATERIAL | |
1426 | NEWPART:BreakJoints() | |
1427 | NEWPART.Parent = PARENT | |
1428 | return NEWPART | |
1429 | end | |
1430 | ||
1431 | local function weldBetween(a, b) | |
1432 | local weldd = Instance.new("ManualWeld") | |
1433 | weldd.Part0 = a | |
1434 | weldd.Part1 = b | |
1435 | weldd.C0 = CFrame.new() | |
1436 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
1437 | weldd.Parent = a | |
1438 | return weldd | |
1439 | end | |
1440 | ||
1441 | ||
1442 | function QuaternionFromCFrame(cf) | |
1443 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1444 | local trace = m00 + m11 + m22 | |
1445 | if trace > 0 then | |
1446 | local s = math.sqrt(1 + trace) | |
1447 | local recip = 0.5 / s | |
1448 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1449 | else | |
1450 | local i = 0 | |
1451 | if m11 > m00 then | |
1452 | i = 1 | |
1453 | end | |
1454 | if m22 > (i == 0 and m00 or m11) then | |
1455 | i = 2 | |
1456 | end | |
1457 | if i == 0 then | |
1458 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1459 | local recip = 0.5 / s | |
1460 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1461 | elseif i == 1 then | |
1462 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1463 | local recip = 0.5 / s | |
1464 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1465 | elseif i == 2 then | |
1466 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1467 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1468 | end | |
1469 | end | |
1470 | end | |
1471 | ||
1472 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1473 | local xs, ys, zs = x + x, y + y, z + z | |
1474 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1475 | local xx = x * xs | |
1476 | local xy = x * ys | |
1477 | local xz = x * zs | |
1478 | local yy = y * ys | |
1479 | local yz = y * zs | |
1480 | local zz = z * zs | |
1481 | 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)) | |
1482 | end | |
1483 | ||
1484 | function QuaternionSlerp(a, b, t) | |
1485 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1486 | local startInterp, finishInterp; | |
1487 | if cosTheta >= 0.0001 then | |
1488 | if (1 - cosTheta) > 0.0001 then | |
1489 | local theta = ACOS(cosTheta) | |
1490 | local invSinTheta = 1 / SIN(theta) | |
1491 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
1492 | finishInterp = SIN(t * theta) * invSinTheta | |
1493 | else | |
1494 | startInterp = 1 - t | |
1495 | finishInterp = t | |
1496 | end | |
1497 | else | |
1498 | if (1 + cosTheta) > 0.0001 then | |
1499 | local theta = ACOS(-cosTheta) | |
1500 | local invSinTheta = 1 / SIN(theta) | |
1501 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
1502 | finishInterp = SIN(t * theta) * invSinTheta | |
1503 | else | |
1504 | startInterp = t - 1 | |
1505 | finishInterp = t | |
1506 | end | |
1507 | end | |
1508 | 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 | |
1509 | end | |
1510 | ||
1511 | function Clerp(a, b, t) | |
1512 | local qa = {QuaternionFromCFrame(a)} | |
1513 | local qb = {QuaternionFromCFrame(b)} | |
1514 | local ax, ay, az = a.x, a.y, a.z | |
1515 | local bx, by, bz = b.x, b.y, b.z | |
1516 | local _t = 1 - t | |
1517 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1518 | end | |
1519 | ||
1520 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
1521 | local frame = IT("Frame") | |
1522 | frame.BackgroundTransparency = TRANSPARENCY | |
1523 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
1524 | frame.Position = POSITION | |
1525 | frame.Size = SIZE | |
1526 | frame.BackgroundColor3 = COLOR | |
1527 | frame.BorderColor3 = BORDERCOLOR | |
1528 | frame.Name = NAME | |
1529 | frame.Parent = PARENT | |
1530 | return frame | |
1531 | end | |
1532 | ||
1533 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
1534 | local label = IT("TextLabel") | |
1535 | label.BackgroundTransparency = 1 | |
1536 | label.Size = UD2(1, 0, 1, 0) | |
1537 | label.Position = UD2(0, 0, 0, 0) | |
1538 | label.TextColor3 = TEXTCOLOR | |
1539 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
1540 | label.TextTransparency = TRANSPARENCY | |
1541 | label.FontSize = TEXTFONTSIZE | |
1542 | label.Font = TEXTFONT | |
1543 | label.BorderSizePixel = BORDERSIZEPIXEL | |
1544 | label.TextStrokeColor3 = C3(1,1,1) | |
1545 | label.TextScaled = false | |
1546 | label.Text = TEXT | |
1547 | label.Name = NAME | |
1548 | label.Parent = PARENT | |
1549 | return label | |
1550 | end | |
1551 | ||
1552 | function NoOutlines(PART) | |
1553 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
1554 | end | |
1555 | ||
1556 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
1557 | local NEWWELD = IT(TYPE) | |
1558 | NEWWELD.Part0 = PART0 | |
1559 | NEWWELD.Part1 = PART1 | |
1560 | NEWWELD.C0 = C0 | |
1561 | NEWWELD.C1 = C1 | |
1562 | NEWWELD.Parent = PARENT | |
1563 | return NEWWELD | |
1564 | end | |
1565 | ||
1566 | local S = IT("Sound") | |
1567 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1568 | local NEWSOUND = nil | |
1569 | coroutine.resume(coroutine.create(function() | |
1570 | NEWSOUND = S:Clone() | |
1571 | NEWSOUND.Parent = PARENT | |
1572 | NEWSOUND.Volume = VOLUME | |
1573 | NEWSOUND.Pitch = PITCH | |
1574 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1575 | NEWSOUND:play() | |
1576 | if DOESLOOP == true then | |
1577 | NEWSOUND.Looped = true | |
1578 | else | |
1579 | repeat wait(1) until NEWSOUND.Playing == false | |
1580 | NEWSOUND:remove() | |
1581 | end | |
1582 | end)) | |
1583 | return NEWSOUND | |
1584 | end | |
1585 | ||
1586 | function CFrameFromTopBack(at, top, back) | |
1587 | local right = top:Cross(back) | |
1588 | 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) | |
1589 | end | |
1590 | ||
1591 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1592 | function WACKYEFFECT(Table) | |
1593 | local TYPE = (Table.EffectType or "Sphere") | |
1594 | local SIZE = (Table.Size or VT(1,1,1)) | |
1595 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1596 | local TRANSPARENCY = (Table.Transparency or 0) | |
1597 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1598 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1599 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1600 | local ROTATION1 = (Table.RotationX or 0) | |
1601 | local ROTATION2 = (Table.RotationY or 0) | |
1602 | local ROTATION3 = (Table.RotationZ or 0) | |
1603 | local MATERIAL = (Table.Material or "Neon") | |
1604 | local COLOR = (Table.Color or C3(66/255, 0/255, 127/2551)) | |
1605 | local TIME = (Table.Time or 45) | |
1606 | local SOUNDID = (Table.SoundID or nil) | |
1607 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1608 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1609 | coroutine.resume(coroutine.create(function() | |
1610 | local PLAYSSOUND = false | |
1611 | local SOUND = nil | |
1612 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Dark indigo"), "Effect", VT(1,1,1), true) | |
1613 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1614 | PLAYSSOUND = true | |
1615 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1616 | end | |
1617 | EFFECT.Color = COLOR | |
1618 | local MSH = nil | |
1619 | if TYPE == "Sphere" then | |
1620 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1621 | elseif TYPE == "Block" then | |
1622 | MSH = IT("BlockMesh",EFFECT) | |
1623 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1624 | elseif TYPE == "Wave" then | |
1625 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1626 | elseif TYPE == "Ring" then | |
1627 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1628 | elseif TYPE == "Slash" then | |
1629 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1630 | elseif TYPE == "Round Slash" then | |
1631 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1632 | elseif TYPE == "Swirl" then | |
1633 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1634 | elseif TYPE == "Skull" then | |
1635 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1636 | elseif TYPE == "Crystal" then | |
1637 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1638 | end | |
1639 | if MSH ~= nil then | |
1640 | local MOVESPEED = nil | |
1641 | if MOVEDIRECTION ~= nil then | |
1642 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1643 | end | |
1644 | local GROWTH = SIZE - ENDSIZE | |
1645 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1646 | if TYPE == "Block" then | |
1647 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1648 | else | |
1649 | EFFECT.CFrame = CFRAME | |
1650 | end | |
1651 | for LOOP = 1, TIME+1 do | |
1652 | Swait() | |
1653 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1654 | if TYPE == "Wave" then | |
1655 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1656 | end | |
1657 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1658 | if TYPE == "Block" then | |
1659 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1660 | else | |
1661 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1662 | end | |
1663 | if MOVEDIRECTION ~= nil then | |
1664 | local ORI = EFFECT.Orientation | |
1665 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1666 | EFFECT.Orientation = ORI | |
1667 | end | |
1668 | end | |
1669 | if PLAYSSOUND == false then | |
1670 | EFFECT:remove() | |
1671 | else | |
1672 | repeat Swait() until SOUND.Playing == false | |
1673 | EFFECT:remove() | |
1674 | end | |
1675 | else | |
1676 | if PLAYSSOUND == false then | |
1677 | EFFECT:remove() | |
1678 | else | |
1679 | repeat Swait() until SOUND.Playing == false | |
1680 | EFFECT:remove() | |
1681 | end | |
1682 | end | |
1683 | end)) | |
1684 | end | |
1685 | ||
1686 | function MakeForm(PART,TYPE) | |
1687 | if TYPE == "Cyl" then | |
1688 | local MSH = IT("CylinderMesh",PART) | |
1689 | elseif TYPE == "Ball" then | |
1690 | local MSH = IT("SpecialMesh",PART) | |
1691 | MSH.MeshType = "Sphere" | |
1692 | elseif TYPE == "Wedge" then | |
1693 | local MSH = IT("SpecialMesh",PART) | |
1694 | MSH.MeshType = "Wedge" | |
1695 | end | |
1696 | end | |
1697 | ||
1698 | Debris = game:GetService("Debris") | |
1699 | ||
1700 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1701 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1702 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1703 | end | |
1704 | ||
1705 | function turnto(position) | |
1706 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1707 | end | |
1708 | ||
1709 | --//=================================\\ | |
1710 | --|| WEAPON CREATION | |
1711 | --\\=================================// | |
1712 | ||
1713 | Humanoid.Parent = nil | |
1714 | RootPart.Size = RootPart.Size*SIZE | |
1715 | Torso.Size = Torso.Size*SIZE | |
1716 | RightArm.Size = RightArm.Size*SIZE | |
1717 | RightLeg.Size = RightLeg.Size*SIZE | |
1718 | LeftArm.Size = LeftArm.Size*SIZE | |
1719 | LeftLeg.Size = LeftLeg.Size*SIZE | |
1720 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1721 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1722 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1723 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1724 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
1725 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
1726 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1727 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1728 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1729 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1730 | Head.Size = Head.Size*SIZE | |
1731 | RootJoint.Parent = RootPart | |
1732 | Neck.Parent = Torso | |
1733 | RightShoulder.Parent = Torso | |
1734 | LeftShoulder.Parent = Torso | |
1735 | RightHip.Parent = Torso | |
1736 | LeftHip.Parent = Torso | |
1737 | ||
1738 | Humanoid.DisplayDistanceType = "None" | |
1739 | local naeeym2 = IT("BillboardGui",Character) | |
1740 | naeeym2.AlwaysOnTop = true | |
1741 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1742 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1743 | naeeym2.MaxDistance = 75 | |
1744 | naeeym2.Adornee = Character.Head | |
1745 | naeeym2.Name = "Name" | |
1746 | local tecks2 = IT("TextLabel",naeeym2) | |
1747 | tecks2.BackgroundTransparency = 1 | |
1748 | tecks2.TextScaled = true | |
1749 | tecks2.BorderSizePixel = 0 | |
1750 | tecks2.Text = "Master of Time" | |
1751 | tecks2.Font = "Fantasy" | |
1752 | tecks2.TextSize = 30 | |
1753 | tecks2.TextStrokeTransparency = 0 | |
1754 | tecks2.TextColor3 = C3(0,0,0) | |
1755 | tecks2.TextStrokeColor3 = C3(255/255, 255/255, 0/255) | |
1756 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1757 | tecks2.Parent = naeeym2 | |
1758 | local top = Instance.new("Shirt") | |
1759 | top.ShirtTemplate = "rbxassetid://45695443" | |
1760 | top.Parent = Character | |
1761 | top.Name = "Cloth" | |
1762 | local bottom = Instance.new("Pants") | |
1763 | bottom.PantsTemplate = "rbxassetid://45696190" | |
1764 | bottom.Parent = Character | |
1765 | bottom.Name = "Cloth" | |
1766 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
1767 | PRT.Color = C3(0,0,0) | |
1768 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1769 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "82907376", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1770 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
1771 | PRT.Color = C3(0,0,0) | |
1772 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1773 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1774 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false) | |
1775 | PRT.Color = C3(255/255, 0/255, 0/255) | |
1776 | MakeForm(PRT,"Ball") | |
1777 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1778 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false) | |
1779 | PRT.Color = C3(255/255, 255/255, 0/255) | |
1780 | MakeForm(PRT,"Ball") | |
1781 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0)) | |
1782 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
1783 | PRT.Color = C3(255/255, 255/255, 0/255) | |
1784 | MakeForm(PRT,"Ball") | |
1785 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1786 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false) | |
1787 | PRT.Color = C3(255/255, 255/255, 0/255) | |
1788 | MakeForm(PRT,"Ball") | |
1789 | local Aura = Instance.new('ParticleEmitter') | |
1790 | Aura.Name = "Aura" | |
1791 | Aura.Texture = "rbxassetid://131765579" | |
1792 | Aura.Parent = PRT | |
1793 | Aura.LightEmission = 0.3 | |
1794 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1795 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(255/255, 0/255, 0/255)) | |
1796 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1797 | Aura.LockedToPart = false | |
1798 | Aura.Lifetime = NumberRange.new(2) | |
1799 | Aura.Rate = 30 | |
1800 | Aura.Speed = NumberRange.new(1) | |
1801 | Aura.EmissionDirection = "Top" | |
1802 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1803 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
1804 | PRT.Color = C3(255/255, 255/255, 0/255) | |
1805 | MakeForm(PRT,"Ball") | |
1806 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0)) | |
1807 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false) | |
1808 | PRT.Color = C3(255/255, 255/255, 0/255) | |
1809 | MakeForm(PRT,"Ball") | |
1810 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0)) | |
1811 | ||
1812 | local LASTPART = Head | |
1813 | for i = 1, 24 do | |
1814 | local MATH = (1-(i/30)) | |
1815 | if LASTPART == Head then | |
1816 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1817 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) | |
1818 | LASTPART = Horn | |
1819 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1820 | local Aura = Instance.new('ParticleEmitter') | |
1821 | Aura.Name = "Aura" | |
1822 | Aura.Texture = "rbxassetid://242997264" | |
1823 | Aura.Parent = Horn | |
1824 | Aura.LightEmission = 0.8 | |
1825 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1826 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1827 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1828 | Aura.LockedToPart = true | |
1829 | Aura.Lifetime = NumberRange.new(2) | |
1830 | Aura.Rate = 25 | |
1831 | Aura.Speed = NumberRange.new(0.1) | |
1832 | Aura.EmissionDirection = "Top" | |
1833 | else | |
1834 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1835 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1836 | LASTPART = Horn | |
1837 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1838 | local Aura = Instance.new('ParticleEmitter') | |
1839 | Aura.Name = "Aura" | |
1840 | Aura.Texture = "rbxassetid://242997264" | |
1841 | Aura.Parent = Horn | |
1842 | Aura.LightEmission = 0.8 | |
1843 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1844 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1845 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1846 | Aura.LockedToPart = true | |
1847 | Aura.Lifetime = NumberRange.new(2) | |
1848 | Aura.Rate = 25 | |
1849 | Aura.Speed = NumberRange.new(0.1) | |
1850 | Aura.EmissionDirection = "Top" | |
1851 | end | |
1852 | end | |
1853 | local LASTPART = Head | |
1854 | for i = 1, 24 do | |
1855 | local MATH = (1-(i/30)) | |
1856 | if LASTPART == Head then | |
1857 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1858 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) | |
1859 | LASTPART = Horn | |
1860 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1861 | local Aura = Instance.new('ParticleEmitter') | |
1862 | Aura.Name = "Aura" | |
1863 | Aura.Texture = "rbxassetid://242997264" | |
1864 | Aura.Parent = Horn | |
1865 | Aura.LightEmission = 0.8 | |
1866 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1867 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1868 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1869 | Aura.LockedToPart = true | |
1870 | Aura.Lifetime = NumberRange.new(2) | |
1871 | Aura.Rate = 25 | |
1872 | Aura.Speed = NumberRange.new(0.1) | |
1873 | Aura.EmissionDirection = "Top" | |
1874 | else | |
1875 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1876 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1877 | LASTPART = Horn | |
1878 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1879 | local Aura = Instance.new('ParticleEmitter') | |
1880 | Aura.Name = "Aura" | |
1881 | Aura.Texture = "rbxassetid://242997264" | |
1882 | Aura.Parent = Horn | |
1883 | Aura.LightEmission = 0.8 | |
1884 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1885 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1886 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1887 | Aura.LockedToPart = true | |
1888 | Aura.Lifetime = NumberRange.new(2) | |
1889 | Aura.Rate = 25 | |
1890 | Aura.Speed = NumberRange.new(0.1) | |
1891 | Aura.EmissionDirection = "Top" | |
1892 | end | |
1893 | end | |
1894 | local LASTPART = Head | |
1895 | for i = 1, 8 do | |
1896 | local MATH = (1-(i/14)) | |
1897 | if LASTPART == Head then | |
1898 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1899 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) | |
1900 | LASTPART = Horn | |
1901 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1902 | local Aura = Instance.new('ParticleEmitter') | |
1903 | Aura.Name = "Aura" | |
1904 | Aura.Texture = "rbxassetid://242997264" | |
1905 | Aura.Parent = Horn | |
1906 | Aura.LightEmission = 0.8 | |
1907 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1908 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1909 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1910 | Aura.LockedToPart = true | |
1911 | Aura.Lifetime = NumberRange.new(2) | |
1912 | Aura.Rate = 25 | |
1913 | Aura.Speed = NumberRange.new(0.1) | |
1914 | Aura.EmissionDirection = "Top" | |
1915 | else | |
1916 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1917 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1918 | LASTPART = Horn | |
1919 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1920 | local Aura = Instance.new('ParticleEmitter') | |
1921 | Aura.Name = "Aura" | |
1922 | Aura.Texture = "rbxassetid://242997264" | |
1923 | Aura.Parent = Horn | |
1924 | Aura.LightEmission = 0.8 | |
1925 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1926 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1927 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1928 | Aura.LockedToPart = true | |
1929 | Aura.Lifetime = NumberRange.new(2) | |
1930 | Aura.Rate = 25 | |
1931 | Aura.Speed = NumberRange.new(0.1) | |
1932 | Aura.EmissionDirection = "Top" | |
1933 | end | |
1934 | end | |
1935 | local LASTPART = Head | |
1936 | for i = 1, 8 do | |
1937 | local MATH = (1-(i/14)) | |
1938 | if LASTPART == Head then | |
1939 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1940 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) | |
1941 | LASTPART = Horn | |
1942 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1943 | local Aura = Instance.new('ParticleEmitter') | |
1944 | Aura.Name = "Aura" | |
1945 | Aura.Texture = "rbxassetid://242997264" | |
1946 | Aura.Parent = Horn | |
1947 | Aura.LightEmission = 0.8 | |
1948 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1949 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1950 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1951 | Aura.LockedToPart = true | |
1952 | Aura.Lifetime = NumberRange.new(2) | |
1953 | Aura.Rate = 25 | |
1954 | Aura.Speed = NumberRange.new(0.1) | |
1955 | Aura.EmissionDirection = "Top" | |
1956 | else | |
1957 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1958 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1959 | LASTPART = Horn | |
1960 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),0/255) | |
1961 | local Aura = Instance.new('ParticleEmitter') | |
1962 | Aura.Name = "Aura" | |
1963 | Aura.Texture = "rbxassetid://242997264" | |
1964 | Aura.Parent = Horn | |
1965 | Aura.LightEmission = 0.8 | |
1966 | Aura.Transparency = NumberSequence.new(0,0.6,1) | |
1967 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 255/255),Color3.new(0/255, 0/255, 0/255)) | |
1968 | Aura.Size = NumberSequence.new(0.3,0.2,0.1) | |
1969 | Aura.LockedToPart = true | |
1970 | Aura.Lifetime = NumberRange.new(2) | |
1971 | Aura.Rate = 25 | |
1972 | Aura.Speed = NumberRange.new(0.1) | |
1973 | Aura.EmissionDirection = "Top" | |
1974 | end | |
1975 | end | |
1976 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
1977 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1978 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
1979 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1980 | MakeForm(PRT,"Cyl") | |
1981 | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
1982 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1983 | MakeForm(PRT,"Cyl") | |
1984 | PRT.Color = C3(255/255, 255/255, 0/255) | |
1985 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
1986 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1987 | MakeForm(RING,"Cyl") | |
1988 | RING.Color = C3(0,0,0) | |
1989 | for i = 1, 12 do | |
1990 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
1991 | PRT.Color = C3(0,0,0) | |
1992 | local MSH = IT("BlockMesh",PRT) | |
1993 | MSH.Scale = VT(0.6,1,1) | |
1994 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
1995 | end | |
1996 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
1997 | PRT.Color = C3(0,0,0) | |
1998 | local MSH = IT("BlockMesh",PRT) | |
1999 | MSH.Scale = VT(0.4,1,1) | |
2000 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
2001 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
2002 | PRT.Color = C3(0,0,0) | |
2003 | local MSH = IT("BlockMesh",PRT) | |
2004 | MSH.Scale = VT(0.4,1,1) | |
2005 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
2006 | coroutine.resume(coroutine.create(function() | |
2007 | while true do | |
2008 | Swait() | |
2009 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
2010 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
2011 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
2012 | if CLOCKLOOP <= -150 then | |
2013 | if VALUE1 == false then | |
2014 | CLOCKLOOP = 0 | |
2015 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 2}) | |
2016 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
2017 | ApplyAoE(HITPOS,10,15,45,75,true) | |
2018 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4}) | |
2019 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 4}) | |
2020 | if CLOCKTARGET ~= nil then | |
2021 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
2022 | if CLOCKTARGET.Torso ~= nil then | |
2023 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
2024 | end | |
2025 | if CLOCKTARGET.Health == 0 then | |
2026 | CLOCKTARGET = nil | |
2027 | end | |
2028 | end | |
2029 | end | |
2030 | end | |
2031 | end | |
2032 | end)) | |
2033 | ||
2034 | for _, c in pairs(Weapon:GetChildren()) do | |
2035 | if c.ClassName == "Part" then | |
2036 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2037 | end | |
2038 | end | |
2039 | ||
2040 | Neck.Name = "Weld" | |
2041 | RootJoint.Name = "Weld" | |
2042 | RightShoulder.Name = "Weld" | |
2043 | LeftShoulder.Name = "Weld" | |
2044 | RightHip.Name = "Weld" | |
2045 | LeftHip.Name = "Weld" | |
2046 | ||
2047 | local BODY = {} | |
2048 | for _, c in pairs(Character:GetDescendants()) do | |
2049 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
2050 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
2051 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2052 | end | |
2053 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
2054 | elseif c:IsA("JointInstance") then | |
2055 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
2056 | end | |
2057 | end | |
2058 | for e = 1, #BODY do | |
2059 | if BODY[e] ~= nil then | |
2060 | local STUFF = BODY[e] | |
2061 | local PART = STUFF[1] | |
2062 | local PARENT = STUFF[2] | |
2063 | local MATERIAL = STUFF[3] | |
2064 | local COLOR = STUFF[4] | |
2065 | local TRANSPARENCY = STUFF[5] | |
2066 | if PART.ClassName == "Part" and PART ~= RootPart then | |
2067 | PART.Material = MATERIAL | |
2068 | PART.Color = COLOR | |
2069 | PART.Transparency = TRANSPARENCY | |
2070 | end | |
2071 | PART.AncestryChanged:Connect(function() | |
2072 | PART.Parent = PARENT | |
2073 | end) | |
2074 | end | |
2075 | end | |
2076 | ||
2077 | function refit() | |
2078 | Character.Parent = workspace | |
2079 | for e = 1, #BODY do | |
2080 | if BODY[e] ~= nil then | |
2081 | local STUFF = BODY[e] | |
2082 | local PART = STUFF[1] | |
2083 | local PARENT = STUFF[2] | |
2084 | local MATERIAL = STUFF[3] | |
2085 | local COLOR = STUFF[4] | |
2086 | local TRANSPARENCY = STUFF[5] | |
2087 | if PART.ClassName == "Part" and PART ~= RootPart then | |
2088 | PART.Material = MATERIAL | |
2089 | PART.Color = COLOR | |
2090 | PART.Transparency = TRANSPARENCY | |
2091 | end | |
2092 | if PART.Parent ~= PARENT then | |
2093 | Humanoid:remove() | |
2094 | PART.Parent = PARENT | |
2095 | Humanoid = IT("Humanoid",Character) | |
2096 | chatfunc ("I dont have time to die...") | |
2097 | end | |
2098 | end | |
2099 | end | |
2100 | end | |
2101 | local SKILLTEXTCOLOR = C3(255/255, 255/255, 0/255) | |
2102 | local SKILLFONT = "Fantasy" | |
2103 | local SKILLTEXTSIZE = 7 | |
2104 | ||
2105 | Weapon.Parent = Character | |
2106 | Humanoid.Parent = Character | |
2107 | ||
2108 | Humanoid.Died:connect(function() | |
2109 | refit() | |
2110 | end) | |
2111 | chatfunc("Gentlemen, you just annoyed me") | |
2112 | warn("deivis97 edit") | |
2113 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
2114 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
2115 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
2116 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
2117 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
2118 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
2119 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.10, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
2120 | ||
2121 | ||
2122 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Nuke Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
2123 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
2124 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
2125 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
2126 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
2127 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[G] Time Stop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
2128 | local SKILL6TEXT = CreateLabel(SKILL7FRAME, "[{1-5}] Musics [{6}] off", Color3.new(0/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
2129 | ||
2130 | --//=================================\\ | |
2131 | --|| DAMAGING | |
2132 | --\\=================================// | |
2133 | ||
2134 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
2135 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
2136 | defence.Name = ("HitBy"..Player.Name) | |
2137 | game:GetService("Debris"):AddItem(defence, 0.001) | |
2138 | Damage = Damage * DAMAGEMULTIPLIER | |
2139 | if Humanoid.Health ~= 0 then | |
2140 | local CritChance = MRANDOM(1,100) | |
2141 | if Damage > Humanoid.Health then | |
2142 | Damage = math.ceil(Humanoid.Health) | |
2143 | if Damage == 0 then | |
2144 | Damage = 0.1 | |
2145 | end | |
2146 | end | |
2147 | Humanoid.Health = Humanoid.Health - Damage | |
2148 | end | |
2149 | end | |
2150 | ||
2151 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
2152 | local CHILDREN = workspace:GetDescendants() | |
2153 | for index, CHILD in pairs(CHILDREN) do | |
2154 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2155 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2156 | if HUM then | |
2157 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2158 | if TORSO then | |
2159 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
2160 | if INSTAKILL == false then | |
2161 | CHILD:BreakJoints() | |
2162 | else | |
2163 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
2164 | ApplyDamage(HUM,DMG,TORSO) | |
2165 | end | |
2166 | if FLING > 0 then | |
2167 | for _, c in pairs(CHILD:GetChildren()) do | |
2168 | if c:IsA("BasePart") then | |
2169 | local bv = Instance.new("BodyVelocity") | |
2170 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2171 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
2172 | bv.Parent = c | |
2173 | Debris:AddItem(bv,0.05) | |
2174 | end | |
2175 | end | |
2176 | end | |
2177 | end | |
2178 | end | |
2179 | end | |
2180 | end | |
2181 | end | |
2182 | end | |
2183 | ||
2184 | --//=================================\\ | |
2185 | --|| ATTACK FUNCTIONS AND STUFF | |
2186 | --\\=================================// | |
2187 | ||
2188 | Circle = nil | |
2189 | CircleParts = {} | |
2190 | Equipped = false | |
2191 | ||
2192 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
2193 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
2194 | end | |
2195 | Equipped = true | |
2196 | Circle = Instance.new("Model") | |
2197 | Circle.Name = "Circle" | |
2198 | Angle = 0 | |
2199 | for i = 1, 1 do | |
2200 | local CirclePart = Instance.new("Part") | |
2201 | CirclePart.Name = "CirclePart" | |
2202 | CirclePart.Transparency = 1 | |
2203 | CirclePart.BrickColor = BrickColor.new("Really black") | |
2204 | CirclePart.Material = Enum.Material.Plastic | |
2205 | CirclePart.Shape = Enum.PartType.Block | |
2206 | CirclePart.FormFactor = Enum.FormFactor.Custom | |
2207 | CirclePart.TopSurface = Enum.SurfaceType.Smooth | |
2208 | CirclePart.BottomSurface = Enum.SurfaceType.Smooth | |
2209 | CirclePart.Anchored = true | |
2210 | CirclePart.CanCollide = false | |
2211 | CirclePart.Locked = true | |
2212 | CirclePart.Size = Vector3.new(10, 0.2, 10) | |
2213 | local Aura = Instance.new('ParticleEmitter') | |
2214 | Aura.Name = "Aura" | |
2215 | Aura.Texture = "rbxassetid://641078192" | |
2216 | Aura.Parent = CirclePart | |
2217 | Aura.LightEmission = 0 | |
2218 | Aura.Transparency = NumberSequence.new(0.2,0.4,1) | |
2219 | Aura.Color = ColorSequence.new(Color3.new(255/255, 255/255, 0/255),Color3.new(255/200, 200/200, 200/200)) | |
2220 | Aura.Size = NumberSequence.new(0.9,0.5,0.3) | |
2221 | Aura.LockedToPart = false | |
2222 | Aura.Lifetime = NumberRange.new(1) | |
2223 | Aura.Rate = 50 | |
2224 | Aura.Speed = NumberRange.new(2.5) | |
2225 | Aura.SpreadAngle = Vector2.new(80,80) | |
2226 | local BlockMesh = Instance.new("BlockMesh") | |
2227 | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) | |
2228 | BlockMesh.Parent = CirclePart | |
2229 | CirclePart.Parent = Circle | |
2230 | local Star = Instance.new("Decal", CirclePart) | |
2231 | Star.Texture = "http://www.roblox.com/asset/?id=253215684" | |
2232 | Star.Face = "Top" | |
2233 | local Light = Instance.new("PointLight", CirclePart) | |
2234 | Light.Color = Color3.new(.20,0,0) | |
2235 | Light.Brightness = 100 | |
2236 | Light.Range = 15 | |
2237 | table.insert(CircleParts, CirclePart) | |
2238 | end | |
2239 | Spawn(function() | |
2240 | while Equipped and Humanoid.Parent and Torso.Parent do | |
2241 | if Angle == 360 then | |
2242 | Angle = 0 | |
2243 | end | |
2244 | Angle = Angle + 0.05 | |
2245 | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) | |
2246 | if Hit then | |
2247 | if not Circle.Parent then | |
2248 | Circle.Parent = Character | |
2249 | end | |
2250 | for i, v in pairs(CircleParts) do | |
2251 | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
2252 | end | |
2253 | else | |
2254 | Circle.Parent = nil | |
2255 | end | |
2256 | wait() | |
2257 | end | |
2258 | end) | |
2259 | ||
2260 | ||
2261 | ||
2262 | function MagicMissiles() | |
2263 | ATTACK = true | |
2264 | Rooted = false | |
2265 | local SELECTING = true | |
2266 | local SPOTS = {} | |
2267 | coroutine.resume(coroutine.create(function() | |
2268 | local LOOP = 0 | |
2269 | repeat | |
2270 | LOOP = LOOP + 1 | |
2271 | Swait() | |
2272 | if LOOP >= 15 then | |
2273 | LOOP = 0 | |
2274 | for i = 1, #SPOTS do | |
2275 | if SPOTS[i] ~= nil then | |
2276 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2277 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255, 255, 0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2278 | end | |
2279 | end | |
2280 | end | |
2281 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2282 | 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) | |
2283 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2284 | 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) | |
2285 | 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) | |
2286 | 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) | |
2287 | until SELECTING == false | |
2288 | Rooted = false | |
2289 | repeat | |
2290 | LOOP = LOOP + 1 | |
2291 | Swait() | |
2292 | if LOOP >= 15 then | |
2293 | LOOP = 0 | |
2294 | for i = 1, #SPOTS do | |
2295 | if SPOTS[i] ~= nil then | |
2296 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2297 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2298 | end | |
2299 | end | |
2300 | end | |
2301 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2302 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2303 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2304 | 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) | |
2305 | 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) | |
2306 | 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) | |
2307 | until ATTACK == false | |
2308 | end)) | |
2309 | repeat | |
2310 | repeat Swait() until HOLD == true | |
2311 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
2312 | if DIST > 9999 then | |
2313 | DIST = 9999 | |
2314 | end | |
2315 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
2316 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
2317 | if HITFLOOR ~= nil then | |
2318 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
2319 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6}) | |
2320 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2321 | end | |
2322 | repeat Swait() until HOLD == false | |
2323 | until #SPOTS == 5 | |
2324 | SELECTING = false | |
2325 | for i = 1, #SPOTS do | |
2326 | if SPOTS[i] ~= nil then | |
2327 | local POS = SPOTS[i] | |
2328 | coroutine.resume(coroutine.create(function() | |
2329 | local MISSILE = IT("Model",Effects) | |
2330 | MISSILE.Name = "Missile" | |
2331 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,2,2)) | |
2332 | MakeForm(BASEPART,"Cyl") | |
2333 | MISSILE.PrimaryPart = BASEPART | |
2334 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
2335 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2,4,2)) | |
2336 | MakeForm(HEAD,"Ball") | |
2337 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
2338 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Lime green", "Part", VT(2.5,0.1,2.5)) | |
2339 | MakeForm(TAIL,"Cyl") | |
2340 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
2341 | chatfunc("you like nukes?") | |
2342 | for i = 1, 15 do | |
2343 | Swait() | |
2344 | for _, c in pairs(MISSILE:GetChildren()) do | |
2345 | if c.ClassName == "Part" then | |
2346 | c.Transparency = c.Transparency - 1/10 | |
2347 | end | |
2348 | end | |
2349 | end | |
2350 | for i = 1, 15*1.5 do | |
2351 | Swait() | |
2352 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
2353 | end | |
2354 | ApplyAoE(BASEPART.CFrame.p,200,350,450,750,true) | |
2355 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(750,350,750), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) | |
2356 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(350,350,350), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4}) | |
2357 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(220,2,220), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2358 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(200,3,200), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2359 | MISSILE:remove() | |
2360 | end)) | |
2361 | end | |
2362 | end | |
2363 | wait(0.6) | |
2364 | ATTACK = false | |
2365 | Rooted = false | |
2366 | end | |
2367 | ||
2368 | function TimesUp() | |
2369 | CLOCKTARGET = nil | |
2370 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2371 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2372 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2373 | if TORSO then | |
2374 | ATTACK = true | |
2375 | Rooted = false | |
2376 | coroutine.resume(coroutine.create(function() | |
2377 | repeat | |
2378 | Swait() | |
2379 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2380 | 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) | |
2381 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2382 | 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) | |
2383 | 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) | |
2384 | 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) | |
2385 | until ATTACK == false | |
2386 | end)) | |
2387 | if Effects:FindFirstChild("NeonDoll") then | |
2388 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil | |
2389 | end | |
2390 | wait(0.5) | |
2391 | local FAKECHARACTER = IT("Model",Effects) | |
2392 | FAKECHARACTER.Name = "NeonDoll" | |
2393 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.3,0.3,0.15),false) | |
2394 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0)) | |
2395 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
2396 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
2397 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
2398 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
2399 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
2400 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0)) | |
2401 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.3,0.15),false) | |
2402 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
2403 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Cool yellow", "Part", VT(0.15,0.15,0.15),false) | |
2404 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
2405 | CreateSound(201858045, TORS, 5, 0.4, false) | |
2406 | for i = 1, 50 do | |
2407 | Swait() | |
2408 | CLOCKSPEED = 2.5 | |
2409 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
2410 | if c.ClassName == "Part" then | |
2411 | c.Transparency = c.Transparency - 0.5/150 | |
2412 | end | |
2413 | end | |
2414 | end | |
2415 | CLOCKTARGET = HUM | |
2416 | coroutine.resume(coroutine.create(function() | |
2417 | repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil | |
2418 | for i = 1, 25 do | |
2419 | Swait() | |
2420 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
2421 | if c.ClassName == "Part" then | |
2422 | c.Transparency = c.Transparency + 0.5/25 | |
2423 | end | |
2424 | end | |
2425 | end | |
2426 | CLOCKSPEED = 4 | |
2427 | FAKECHARACTER:remove() | |
2428 | end)) | |
2429 | wait(0.5) | |
2430 | ATTACK = false | |
2431 | Rooted = false | |
2432 | end | |
2433 | end | |
2434 | end | |
2435 | ||
2436 | function ChainPunch() | |
2437 | ATTACK = true | |
2438 | Rooted = false | |
2439 | local GYRO = IT("BodyGyro",RootPart) | |
2440 | GYRO.D = 25 | |
2441 | GYRO.P = 2000 | |
2442 | GYRO.MaxTorque = VT(0,40000,0) | |
2443 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2444 | repeat | |
2445 | Swait() | |
2446 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2447 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2448 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
2449 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2450 | 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) | |
2451 | 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) | |
2452 | 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) | |
2453 | until HOLD == true | |
2454 | local POS = Mouse.Hit.p | |
2455 | local CHAINS = false | |
2456 | local CHAINLINKS = {} | |
2457 | local A = IT("Attachment",RightArm) | |
2458 | A.Position = VT(1,-1,0)*SIZE | |
2459 | A.Orientation = VT(-90, -89.982, 0) | |
2460 | local B = IT("Attachment",RightArm) | |
2461 | B.Position = VT(-1,-1,0)*SIZE | |
2462 | B.Orientation = VT(-90, 89.988, 0) | |
2463 | local C = IT("Attachment",RightArm) | |
2464 | C.Position = VT(0.5,-1.3,0)*SIZE | |
2465 | C.Orientation = VT(-90, -89.982, 0) | |
2466 | local D = IT("Attachment",RightArm) | |
2467 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
2468 | D.Orientation = VT(-90, 89.988, 0) | |
2469 | local LIGHT = IT("Attachment",RightArm) | |
2470 | LIGHT.Position = VT(0,-1,0)*SIZE | |
2471 | local LIGHT2 = IT("PointLight",LIGHT) | |
2472 | LIGHT2.Range = 7 | |
2473 | LIGHT2.Brightness = 5 | |
2474 | LIGHT2.Color = SKILLTEXTCOLOR | |
2475 | chatfunc("Falcon...") | |
2476 | for i = 1, 2 do | |
2477 | local TWIST = -2 | |
2478 | local START = A | |
2479 | local END = B | |
2480 | if i == 1 then | |
2481 | START = B | |
2482 | END = A | |
2483 | end | |
2484 | local ChainLink = IT("Beam",Torso) | |
2485 | ChainLink.Texture = "rbxassetid://73042633" | |
2486 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
2487 | ChainLink.TextureSpeed = 1 | |
2488 | ChainLink.Width0 = 1 | |
2489 | ChainLink.Width1 = 1 | |
2490 | ChainLink.TextureLength = 2.5 | |
2491 | ChainLink.Attachment0 = START | |
2492 | ChainLink.Attachment1 = END | |
2493 | ChainLink.CurveSize0 = TWIST | |
2494 | ChainLink.CurveSize1 = TWIST | |
2495 | --ChainLink.FaceCamera = true | |
2496 | ChainLink.Segments = 45 | |
2497 | ChainLink.Transparency = NumberSequence.new(1) | |
2498 | table.insert(CHAINLINKS,ChainLink) | |
2499 | end | |
2500 | for i = 1, 2 do | |
2501 | local TWIST = -1 | |
2502 | local START = C | |
2503 | local END = D | |
2504 | if i == 1 then | |
2505 | START = D | |
2506 | END = C | |
2507 | end | |
2508 | local ChainLink = IT("Beam",Torso) | |
2509 | ChainLink.Texture = "rbxassetid://73042633" | |
2510 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
2511 | ChainLink.TextureSpeed = 1 | |
2512 | ChainLink.Width0 = 1 | |
2513 | ChainLink.Width1 = 1 | |
2514 | ChainLink.TextureLength = 5 | |
2515 | ChainLink.Attachment0 = START | |
2516 | ChainLink.Attachment1 = END | |
2517 | ChainLink.CurveSize0 = TWIST | |
2518 | ChainLink.CurveSize1 = TWIST | |
2519 | --ChainLink.FaceCamera = true | |
2520 | ChainLink.Segments = 25 | |
2521 | ChainLink.LightEmission = 0.5 | |
2522 | ChainLink.Transparency = NumberSequence.new(1) | |
2523 | table.insert(CHAINLINKS,ChainLink) | |
2524 | end | |
2525 | coroutine.resume(coroutine.create(function() | |
2526 | repeat | |
2527 | Swait() | |
2528 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2529 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
2530 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2531 | 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) | |
2532 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2533 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2534 | until CHAINS == true | |
2535 | repeat | |
2536 | Swait() | |
2537 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2538 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2539 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2540 | 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) | |
2541 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2542 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2543 | until ATTACK == false | |
2544 | for e = 1, 15 do | |
2545 | Swait() | |
2546 | chatfunc("PUNCH!!!") | |
2547 | for i = 1, #CHAINLINKS do | |
2548 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
2549 | end | |
2550 | end | |
2551 | A:remove() | |
2552 | B:remove() | |
2553 | C:remove() | |
2554 | D:remove() | |
2555 | end)) | |
2556 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
2557 | for e = 1, 15 do | |
2558 | Swait() | |
2559 | for i = 1, #CHAINLINKS do | |
2560 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
2561 | end | |
2562 | end | |
2563 | CHAINS = true | |
2564 | Rooted = true | |
2565 | wait(0.25) | |
2566 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "New Yeller", "Part", VT(2,2,2)) | |
2567 | FIST.Color = C3(1, 215/255, 1) | |
2568 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2569 | local LIGHT3 = IT("PointLight",FIST) | |
2570 | LIGHT3.Range = 7 | |
2571 | LIGHT3.Brightness = 5 | |
2572 | LIGHT3.Color = SKILLTEXTCOLOR | |
2573 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0)) | |
2574 | local FISTA = IT("Attachment",FIST) | |
2575 | FISTA.Position = VT(0.062, 0.977, 0) | |
2576 | local ChainLink = IT("Beam",Torso) | |
2577 | ChainLink.Texture = "rbxassetid://73042633" | |
2578 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
2579 | ChainLink.TextureSpeed = 2 | |
2580 | ChainLink.Width0 = 3 | |
2581 | ChainLink.Width1 = 3 | |
2582 | ChainLink.TextureLength = 12 | |
2583 | ChainLink.Attachment0 = LIGHT | |
2584 | ChainLink.Attachment1 = FISTA | |
2585 | ChainLink.FaceCamera = true | |
2586 | ChainLink.Segments = 45 | |
2587 | ChainLink.LightEmission = 0.5 | |
2588 | ChainLink.Transparency = NumberSequence.new(0.25) | |
2589 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
2590 | for i = 1, 85 do | |
2591 | Swait() | |
2592 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
2593 | ChainLink.TextureLength = 12+(i*2) | |
2594 | ApplyAoE(FIST.Position,10,15,25,100,true) | |
2595 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2596 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
2597 | if HITFLOOR ~= nil then | |
2598 | HITFLOOR:BreakJoints() | |
2599 | coroutine.resume(coroutine.create(function() | |
2600 | for i = 1, 15 do | |
2601 | Swait() | |
2602 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
2603 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,true) | |
2604 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.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 = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2605 | end | |
2606 | end)) | |
2607 | break | |
2608 | end | |
2609 | end | |
2610 | coroutine.resume(coroutine.create(function() | |
2611 | for i = 1, 50 do | |
2612 | Swait() | |
2613 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
2614 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
2615 | end | |
2616 | FIST:remove() | |
2617 | end)) | |
2618 | LIGHT:remove() | |
2619 | GYRO:remove() | |
2620 | ATTACK = false | |
2621 | Rooted = false | |
2622 | end | |
2623 | ||
2624 | function WarpMeteor() | |
2625 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
2626 | if DIST > 9999 then | |
2627 | DIST = 9999 | |
2628 | end | |
2629 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
2630 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
2631 | if HITFLOOR then | |
2632 | local POS = HITPOS | |
2633 | ATTACK = true | |
2634 | Rooted = false | |
2635 | local WARPED = false | |
2636 | local SMASHED = false | |
2637 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
2638 | coroutine.resume(coroutine.create(function() | |
2639 | repeat | |
2640 | Swait() | |
2641 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2642 | 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) | |
2643 | 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) | |
2644 | 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) | |
2645 | 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) | |
2646 | 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) | |
2647 | until WARPED == true | |
2648 | repeat | |
2649 | Swait() | |
2650 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2651 | 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) | |
2652 | 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) | |
2653 | 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) | |
2654 | 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) | |
2655 | 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) | |
2656 | until SMASHED == true | |
2657 | repeat | |
2658 | Swait() | |
2659 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2660 | 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) | |
2661 | 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) | |
2662 | 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) | |
2663 | 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) | |
2664 | 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) | |
2665 | until ATTACK == false | |
2666 | end)) | |
2667 | VALUE1 = true | |
2668 | CreateSound(233856115, Torso, 5, 1.6, false) | |
2669 | chatfunc("This hurt more than you think") | |
2670 | for i = 1, 25 do | |
2671 | Swait() | |
2672 | for _, c in pairs(Character:GetChildren()) do | |
2673 | if c.ClassName == "Part" then | |
2674 | c.Transparency = c.Transparency + 1/25 | |
2675 | end | |
2676 | end | |
2677 | for _, c in pairs(Weapon:GetChildren()) do | |
2678 | if c.ClassName == "Part" then | |
2679 | c.Transparency = c.Transparency + 1/25 | |
2680 | end | |
2681 | end | |
2682 | end | |
2683 | UNANCHOR = false | |
2684 | RootPart.Anchored = true | |
2685 | RootPart.Velocity = VT(0,0,0) | |
2686 | local ROOTPOS = RootPart.Position | |
2687 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
2688 | WARPED = true | |
2689 | for i = 1, 25 do | |
2690 | Swait() | |
2691 | for _, c in pairs(Character:GetChildren()) do | |
2692 | if c.ClassName == "Part" then | |
2693 | c.Transparency = c.Transparency - 1/25 | |
2694 | end | |
2695 | end | |
2696 | for _, c in pairs(Weapon:GetChildren()) do | |
2697 | if c.ClassName == "Part" then | |
2698 | c.Transparency = c.Transparency - 1/25 | |
2699 | end | |
2700 | end | |
2701 | end | |
2702 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Part", VT(0,0,0)) | |
2703 | SHELL.CFrame = RootPart.CFrame | |
2704 | MakeForm(SHELL,"Ball") | |
2705 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
2706 | for i = 1, 10 do | |
2707 | Swait() | |
2708 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
2709 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
2710 | end | |
2711 | for i = 1, math.ceil(75/2) do | |
2712 | Swait() | |
2713 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
2714 | SHELL.CFrame = CF(RootPart.Position) | |
2715 | 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 = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
2716 | end | |
2717 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
2718 | SHELL.CFrame = CF(RootPart.Position) | |
2719 | 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 = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
2720 | 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 = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
2721 | 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 = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
2722 | for i = 1, 5 do | |
2723 | 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 = C3(255/255, 255/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2724 | end | |
2725 | SHELL:remove() | |
2726 | ApplyAoE(RootPart.Position,75,35,75,175,true) | |
2727 | SMASHED = true | |
2728 | wait(1) | |
2729 | VALUE1 = false | |
2730 | UNANCHOR = true | |
2731 | ATTACK = false | |
2732 | Rooted = false | |
2733 | end | |
2734 | end | |
2735 | ||
2736 | function PandorasBox() | |
2737 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2738 | if HITFLOOR ~= nil then | |
2739 | ATTACK = false | |
2740 | Rooted = false | |
2741 | local RINGSPIN = true | |
2742 | local CONSTRUCTING = true | |
2743 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0)) | |
2744 | RING.Color = C3(0,0,0) | |
2745 | MakeForm(RING,"Cyl") | |
2746 | RING.CFrame = CF(HITPOS) | |
2747 | CreateSound(402981977, RING, 5, 1.2, false) | |
2748 | coroutine.resume(coroutine.create(function() | |
2749 | repeat | |
2750 | Swait() | |
2751 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2752 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2753 | 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) | |
2754 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2755 | 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) | |
2756 | 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) | |
2757 | 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) | |
2758 | until CONSTRUCTING == false | |
2759 | repeat | |
2760 | Swait() | |
2761 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2762 | until RINGSPIN == false | |
2763 | for i = 1, 25 do | |
2764 | Swait() | |
2765 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2766 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
2767 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
2768 | RING.Transparency = RING.Transparency + 1/25 | |
2769 | end | |
2770 | RING:remove() | |
2771 | end)) | |
2772 | for i = 1, 15 do | |
2773 | Swait() | |
2774 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
2775 | RING.Transparency = RING.Transparency - 1/15 | |
2776 | end | |
2777 | chatfunc("let's see your prize...") | |
2778 | local BOXSPIN = true | |
2779 | local PANDORASBOX = IT("Model",Effects) | |
2780 | PANDORASBOX.Name = "Pandora's Box" | |
2781 | local BOX = IT("Model",PANDORASBOX) | |
2782 | BOX.Name = "Body" | |
2783 | local LID = IT("Model",PANDORASBOX) | |
2784 | LID.Name = "Lid" | |
2785 | --BUILDING THE BOX-- | |
2786 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2)) | |
2787 | BASE.Color = C3(0,0,0) | |
2788 | PANDORASBOX.PrimaryPart = BASE | |
2789 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
2790 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
2791 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
2792 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
2793 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
2794 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
2795 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
2796 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
2797 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
2798 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
2799 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
2800 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
2801 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
2802 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
2803 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
2804 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
2805 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
2806 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
2807 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
2808 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
2809 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
2810 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
2811 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
2812 | local WOOD = CreatePart(3, BOX, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
2813 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
2814 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1)) | |
2815 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
2816 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,1.9,0.1)) | |
2817 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
2818 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1)) | |
2819 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
2820 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(0.1,1.9,2.1)) | |
2821 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
2822 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1)) | |
2823 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
2824 | ------------- | |
2825 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Really black", "Marble", VT(2.1,0.1,2.1)) | |
2826 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
2827 | LID.PrimaryPart = LIDPART | |
2828 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
2829 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
2830 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
2831 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
2832 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
2833 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
2834 | local WOOD = CreatePart(3, LID, "Neon", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
2835 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
2836 | local DECAL = IT("Decal",LIDPART) | |
2837 | DECAL.Face = "Top" | |
2838 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
2839 | DECAL.Color3 = C3(0,0,0) | |
2840 | --BUILDING THE BOX-- | |
2841 | coroutine.resume(coroutine.create(function() | |
2842 | repeat | |
2843 | Swait() | |
2844 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
2845 | until BOXSPIN == false | |
2846 | end)) | |
2847 | for i = 1, 25 do | |
2848 | Swait() | |
2849 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
2850 | end | |
2851 | wait(0.5) | |
2852 | BOXSPIN = false | |
2853 | CONSTRUCTING = false | |
2854 | coroutine.resume(coroutine.create(function() | |
2855 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6}) | |
2856 | --[[for i = 1, 45 do | |
2857 | Swait() | |
2858 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
2859 | end- | |
2860 | LID:remove()]]-- | |
2861 | for _, c in pairs(LID:GetChildren()) do | |
2862 | if c.ClassName == "Part" then | |
2863 | c.Anchored = false | |
2864 | c.CanCollide = true | |
2865 | if c ~= LIDPART then | |
2866 | weldBetween(LIDPART,c) | |
2867 | end | |
2868 | end | |
2869 | end | |
2870 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
2871 | Debris:AddItem(LID,15) | |
2872 | wait(0.5) | |
2873 | local RANDOMEFFECT = MRANDOM(1,4) | |
2874 | if RANDOMEFFECT == 1 then | |
2875 | for i = 1, 45 do | |
2876 | wait((2-(i/15))/15) | |
2877 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6}) | |
2878 | end | |
2879 | wait(1) | |
2880 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
2881 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6}) | |
2882 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
2883 | for i = 1, 5 do | |
2884 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.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 = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
2885 | end | |
2886 | ApplyAoE(BASE.Position,50,1,200,375,true) | |
2887 | ApplyAoE(BASE.Position,250,35,75,175,true) | |
2888 | elseif RANDOMEFFECT == 2 then | |
2889 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
2890 | FIELD.CFrame = BASE.CFrame | |
2891 | MakeForm(FIELD,"Ball") | |
2892 | for i = 1, 50 do | |
2893 | Swait() | |
2894 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
2895 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
2896 | end | |
2897 | wait(0.2) | |
2898 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
2899 | coroutine.resume(coroutine.create(function() | |
2900 | for i = 1, 75 do | |
2901 | Swait() | |
2902 | LOOP.Volume = LOOP.Volume + 10/75 | |
2903 | LOOP.Parent = FIELD | |
2904 | local CHILDREN = workspace:GetDescendants() | |
2905 | for index, CHILD in pairs(CHILDREN) do | |
2906 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2907 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2908 | if HUM then | |
2909 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2910 | if TORSO then | |
2911 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
2912 | HUM.Health = HUM.Health - 1.5 | |
2913 | TORSO.Velocity = VT(0,5,0) | |
2914 | HUM.PlatformStand = true | |
2915 | if TORSO.RotVelocity.Magnitude < 15 then | |
2916 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2917 | end | |
2918 | end | |
2919 | end | |
2920 | end | |
2921 | end | |
2922 | end | |
2923 | FIELD.Size = FIELD.Size + VT(9,9,9) | |
2924 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
2925 | end | |
2926 | for i = 1, 500 do | |
2927 | Swait() | |
2928 | LOOP.Parent = FIELD | |
2929 | local CHILDREN = workspace:GetDescendants() | |
2930 | for index, CHILD in pairs(CHILDREN) do | |
2931 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2932 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2933 | if HUM then | |
2934 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2935 | if TORSO then | |
2936 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
2937 | TORSO.Velocity = VT(0,5,0) | |
2938 | HUM.Health = HUM.Health - 1.5 | |
2939 | HUM.PlatformStand = true | |
2940 | if TORSO.RotVelocity.Magnitude < 15 then | |
2941 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2942 | end | |
2943 | end | |
2944 | end | |
2945 | end | |
2946 | end | |
2947 | end | |
2948 | end | |
2949 | for i = 1, 25 do | |
2950 | Swait() | |
2951 | LOOP.Volume = LOOP.Volume + 10/25 | |
2952 | LOOP.Parent = FIELD | |
2953 | local CHILDREN = workspace:GetDescendants() | |
2954 | for index, CHILD in pairs(CHILDREN) do | |
2955 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2956 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2957 | if HUM then | |
2958 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2959 | if TORSO then | |
2960 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
2961 | TORSO.Velocity = VT(0,5,0) | |
2962 | HUM.Health = HUM.Health - 1.5 | |
2963 | HUM.PlatformStand = false | |
2964 | if TORSO.RotVelocity.Magnitude < 15 then | |
2965 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2966 | end | |
2967 | end | |
2968 | end | |
2969 | end | |
2970 | end | |
2971 | end | |
2972 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
2973 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
2974 | end | |
2975 | FIELD:remove() | |
2976 | end)) | |
2977 | elseif RANDOMEFFECT == 3 then | |
2978 | for i = 1, 10 do | |
2979 | wait(0.15) | |
2980 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6}) | |
2981 | coroutine.resume(coroutine.create(function() | |
2982 | local MINION = CLONE:Clone() | |
2983 | MINION.Parent = Effects | |
2984 | MINION.Name = "Shadow" | |
2985 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
2986 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
2987 | for _, c in pairs(MINION:GetChildren()) do | |
2988 | if c.ClassName == "Part" then | |
2989 | c.Material = "Neon" | |
2990 | c.Color = C3(0,0,0) | |
2991 | c.Transparency = 0.25 | |
2992 | if c.Name == "Head" then | |
2993 | c:ClearAllChildren() | |
2994 | local MSH = IT("BlockMesh",c) | |
2995 | MSH.Scale = VT(0.5,1,1) | |
2996 | end | |
2997 | end | |
2998 | end | |
2999 | local TORSO = MINION.Torso | |
3000 | local HUMAN = MINION.Humanoid | |
3001 | HUMAN.WalkSpeed = 20 | |
3002 | HUMAN.MaxHealth = math.huge | |
3003 | HUMAN.Health = math.huge | |
3004 | HUMAN.DisplayDistanceType = "None" | |
3005 | HUMAN.Died:connect(function() | |
3006 | MINION:remove() | |
3007 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
3008 | end) | |
3009 | wait(1) | |
3010 | local findNearestTorso = function(POS) | |
3011 | local list = game.Workspace:GetDescendants() | |
3012 | local torso = nil | |
3013 | local dist = 500 | |
3014 | local temp = nil | |
3015 | local human = nil | |
3016 | local temp2 = nil | |
3017 | for x = 1, #list do | |
3018 | temp2 = list[x] | |
3019 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
3020 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
3021 | human = temp2:findFirstChildOfClass("Humanoid") | |
3022 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
3023 | if (temp.Position - POS).magnitude < dist then | |
3024 | torso = temp | |
3025 | dist = (temp.Position - POS).magnitude | |
3026 | end | |
3027 | end | |
3028 | end | |
3029 | end | |
3030 | return torso, dist | |
3031 | end | |
3032 | for i = 1, 40 do | |
3033 | if HUMAN.Health == 0 then | |
3034 | break | |
3035 | end | |
3036 | wait(0.3) | |
3037 | local target,dist= findNearestTorso(TORSO.Position) | |
3038 | if target then | |
3039 | HUMAN:MoveTo(target.Position) | |
3040 | if dist < 25 then | |
3041 | CreateSound(348663022, TORSO, 10, 1, true) | |
3042 | wait(2) | |
3043 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
3044 | --ANIM:Play() | |
3045 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
3046 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
3047 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10}) | |
3048 | for i = 1, 5 do | |
3049 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
3050 | end | |
3051 | break | |
3052 | end | |
3053 | end | |
3054 | end | |
3055 | MINION:remove() | |
3056 | end)) | |
3057 | end | |
3058 | elseif RANDOMEFFECT == 4 then | |
3059 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
3060 | FIELD.Color = C3(0,0,0) | |
3061 | FIELD.CFrame = BASE.CFrame | |
3062 | MakeForm(FIELD,"Ball") | |
3063 | FIELD.CanCollide = true | |
3064 | for i = 1, 50 do | |
3065 | Swait() | |
3066 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
3067 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
3068 | end | |
3069 | wait(0.2) | |
3070 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
3071 | coroutine.resume(coroutine.create(function() | |
3072 | local E = 0 | |
3073 | for i = 1, 75 do | |
3074 | E = E + 1 | |
3075 | Swait() | |
3076 | if E >= 35 then | |
3077 | E = 0 | |
3078 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
3079 | end | |
3080 | LOOP.Volume = LOOP.Volume + 10/75 | |
3081 | LOOP.Parent = FIELD | |
3082 | local CHILDREN = workspace:GetDescendants() | |
3083 | for index, CHILD in pairs(CHILDREN) do | |
3084 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
3085 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3086 | if HUM then | |
3087 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
3088 | if TORSO then | |
3089 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
3090 | for _, c in pairs(CHILD:GetChildren()) do | |
3091 | if c:IsA("BasePart") then | |
3092 | local bv = Instance.new("BodyVelocity") | |
3093 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3094 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
3095 | bv.Parent = c | |
3096 | Debris:AddItem(bv,0.05) | |
3097 | end | |
3098 | end | |
3099 | HUM.Health = HUM.Health - 0.3 | |
3100 | end | |
3101 | end | |
3102 | end | |
3103 | end | |
3104 | end | |
3105 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
3106 | end | |
3107 | for i = 1, 180 do | |
3108 | E = E + 1 | |
3109 | Swait() | |
3110 | if E >= 35 then | |
3111 | E = 0 | |
3112 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
3113 | end | |
3114 | LOOP.Parent = FIELD | |
3115 | local CHILDREN = workspace:GetDescendants() | |
3116 | for index, CHILD in pairs(CHILDREN) do | |
3117 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
3118 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3119 | if HUM then | |
3120 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
3121 | if TORSO then | |
3122 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
3123 | for _, c in pairs(CHILD:GetChildren()) do | |
3124 | if c:IsA("BasePart") then | |
3125 | local bv = Instance.new("BodyVelocity") | |
3126 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3127 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
3128 | bv.Parent = c | |
3129 | Debris:AddItem(bv,0.05) | |
3130 | end | |
3131 | end | |
3132 | HUM.Health = HUM.Health - 0.3 | |
3133 | end | |
3134 | end | |
3135 | end | |
3136 | end | |
3137 | end | |
3138 | end | |
3139 | ApplyAoE(FIELD.Position,40,15,20,375,true) | |
3140 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6}) | |
3141 | for i = 1, 5 do | |
3142 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.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 = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
3143 | end | |
3144 | FIELD:remove() | |
3145 | end)) | |
3146 | elseif RANDOMEFFECT == 5 then | |
3147 | end | |
3148 | wait(0.5) | |
3149 | for i = 1, 25 do | |
3150 | Swait() | |
3151 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
3152 | end | |
3153 | PANDORASBOX:remove() | |
3154 | RINGSPIN = false | |
3155 | end)) | |
3156 | ATTACK = false | |
3157 | Rooted = false | |
3158 | end | |
3159 | end | |
3160 | ||
3161 | function TimeStop () | |
3162 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
3163 | CHOICE = 6 | |
3164 | CreateSound(1193182658, Character, 5, 1, false) | |
3165 | chatfunc ("Za warudo...") | |
3166 | back = CreateSound(1841228386, Character, 9999, 1, false) | |
3167 | local killsky = Instance.new('Sky', game:GetService'Lighting') | |
3168 | killsky.SkyboxBk = "rbxassetid://1013852" | |
3169 | killsky.SkyboxDn = "rbxassetid://1013853" | |
3170 | killsky.SkyboxFt = "rbxassetid://1013850" | |
3171 | killsky.SkyboxLf = "rbxassetid://1013851" | |
3172 | killsky.SkyboxRt = "rbxassetid://1013849" | |
3173 | killsky.SkyboxUp = "rbxassetid://1013854" | |
3174 | killsky.StarCount = 0 | |
3175 | killsky.SunAngularSize = 0 | |
3176 | killsky.MoonAngularSize = 0 | |
3177 | killsky.MoonTextureId = "" | |
3178 | killsky.CelestialBodiesShown = false | |
3179 | game.Lighting.FogColor = Color3.new(1,1,0) | |
3180 | game.Lighting.FogEnd = 1400 | |
3181 | if HITFLOOR ~= nil then | |
3182 | ATTACK = false | |
3183 | Rooted = false | |
3184 | local RINGSPIN = true | |
3185 | local CONSTRUCTING = true | |
3186 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Ring", VT(0,0,0)) | |
3187 | RING.Color = C3(0,0,0) | |
3188 | MakeForm(RING,"Cyl") | |
3189 | RING.CFrame = CF(HITPOS) | |
3190 | coroutine.resume(coroutine.create(function() | |
3191 | repeat | |
3192 | Swait() | |
3193 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
3194 | until CONSTRUCTING == false | |
3195 | repeat | |
3196 | Swait() | |
3197 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
3198 | until RINGSPIN == false | |
3199 | for i = 1, 25 do | |
3200 | Swait() | |
3201 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
3202 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
3203 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
3204 | RING.Transparency = RING.Transparency + 1/25 | |
3205 | end | |
3206 | RING:remove() | |
3207 | end)) | |
3208 | for i = 1, 15 do | |
3209 | Swait() | |
3210 | RING.Size = RING.Size + VT(0,0,0) | |
3211 | RING.Transparency = RING.Transparency - 1/15 | |
3212 | end | |
3213 | end | |
3214 | local RANDOMEFFECT = MRANDOM(1) | |
3215 | local BASE = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Black", VT(2,1.8,2)) | |
3216 | BASE.Color = C3(0,0,0) | |
3217 | BASE.Transparency = 1 | |
3218 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
3219 | if RANDOMEFFECT == 1 then | |
3220 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
3221 | FIELD.CFrame = BASE.CFrame | |
3222 | MakeForm(FIELD,"Ball") | |
3223 | for i = 1, 50 do | |
3224 | Swait() | |
3225 | FIELD.Size = VT(0,0,0) | |
3226 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
3227 | end | |
3228 | end | |
3229 | wait(0.2) | |
3230 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "New Yeller", "Field", VT(0.3,0.3,0.3)) | |
3231 | FIELD.CFrame = BASE.CFrame | |
3232 | local LOOP = CreateSound(1393698948, Character, 0, 1, true) | |
3233 | coroutine.resume(coroutine.create(function() | |
3234 | for i = 1, 75 do | |
3235 | Swait() | |
3236 | LOOP.Volume = LOOP.Volume + 10/75 | |
3237 | LOOP.Parent = FIELD | |
3238 | local CHILDREN = workspace:GetDescendants() | |
3239 | for index, CHILD in pairs(CHILDREN) do | |
3240 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
3241 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3242 | if HUM then | |
3243 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
3244 | if TORSO then | |
3245 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
3246 | HUM.Health = HUM.Health - 0 | |
3247 | TORSO.Velocity = VT(0,5,0) | |
3248 | HUM.PlatformStand = true | |
3249 | if TORSO.RotVelocity.Magnitude < 15 then | |
3250 | TORSO.Anchored = true | |
3251 | end | |
3252 | end | |
3253 | end | |
3254 | end | |
3255 | end | |
3256 | end | |
3257 | FIELD.Size = FIELD.Size + VT(90,90,90) | |
3258 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
3259 | end | |
3260 | for i = 1, 500 do | |
3261 | Swait() | |
3262 | LOOP.Parent = FIELD | |
3263 | local CHILDREN = workspace:GetDescendants() | |
3264 | for index, CHILD in pairs(CHILDREN) do | |
3265 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
3266 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3267 | if HUM then | |
3268 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
3269 | if TORSO then | |
3270 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
3271 | TORSO.Velocity = VT(0,5,0) | |
3272 | HUM.Health = HUM.Health - 0 | |
3273 | HUM.PlatformStand = true | |
3274 | if TORSO.RotVelocity.Magnitude < 15 then | |
3275 | TORSO.Anchored = true | |
3276 | end | |
3277 | end | |
3278 | end | |
3279 | end | |
3280 | end | |
3281 | end | |
3282 | end | |
3283 | wait (20) | |
3284 | back:Remove() | |
3285 | CreateSound(1538466750, Character, 99999, 1, false) | |
3286 | chatfunc ("the time rusume") | |
3287 | killsky:Remove() | |
3288 | game.Lighting.FogEnd = 90000000 | |
3289 | wait (5) | |
3290 | CHOICE = MRANDOM (1,5) | |
3291 | for i = 1, 25 do | |
3292 | Swait() | |
3293 | LOOP.Volume = LOOP.Volume + 10/25 | |
3294 | LOOP.Parent = FIELD | |
3295 | local CHILDREN = workspace:GetDescendants() | |
3296 | for index, CHILD in pairs(CHILDREN) do | |
3297 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
3298 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
3299 | if HUM then | |
3300 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
3301 | if TORSO then | |
3302 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
3303 | TORSO.Velocity = VT(0,5,0) | |
3304 | HUM.Health = HUM.Health - 0 | |
3305 | HUM.PlatformStand = false | |
3306 | if TORSO.RotVelocity.Magnitude < 15 then | |
3307 | TORSO.Anchored = false | |
3308 | end | |
3309 | end | |
3310 | end | |
3311 | end | |
3312 | end | |
3313 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
3314 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
3315 | end | |
3316 | end | |
3317 | end)) | |
3318 | FIELD:Remove() | |
3319 | ATTACK = false | |
3320 | Rooted = false | |
3321 | end | |
3322 | ||
3323 | ||
3324 | function Taunt() | |
3325 | ATTACK = true | |
3326 | local LAUGH = nil | |
3327 | coroutine.resume(coroutine.create(function() | |
3328 | repeat | |
3329 | Swait() | |
3330 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3331 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3332 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3333 | 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) | |
3334 | 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) | |
3335 | 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) | |
3336 | until LAUGH ~= nil | |
3337 | repeat | |
3338 | Swait() | |
3339 | LAUGH.Parent = Head | |
3340 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
3341 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3342 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(75), RAD(50), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3343 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3344 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
3345 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 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) | |
3346 | until LAUGH.Playing == false | |
3347 | ATTACK = false | |
3348 | end)) | |
3349 | wait(0.1) | |
3350 | CHOICE = 6 | |
3351 | chatfunc("I HATE YOU...") | |
3352 | LAUGH = CreateSound(212000587, Character, 8099999, 1, false) | |
3353 | wait(1.5) | |
3354 | CHOICE = MRANDOM (1,5) | |
3355 | end | |
3356 | ||
3357 | --//=================================\\ | |
3358 | --|| ASSIGN THINGS TO KEYS | |
3359 | --\\=================================// | |
3360 | ||
3361 | function MouseDown(Mouse) | |
3362 | HOLD = true | |
3363 | if ATTACK == false then | |
3364 | end | |
3365 | end | |
3366 | ||
3367 | function MouseUp(Mouse) | |
3368 | HOLD = false | |
3369 | end | |
3370 | ||
3371 | function KeyDown(Key) | |
3372 | KEYHOLD = true | |
3373 | if Key == "z" and ATTACK == false then | |
3374 | MagicMissiles() | |
3375 | end | |
3376 | ||
3377 | if Key == "b" and ATTACK == false then | |
3378 | TimesUp() | |
3379 | end | |
3380 | ||
3381 | if Key == "c" and ATTACK == false then | |
3382 | ChainPunch() | |
3383 | end | |
3384 | ||
3385 | if Key == "v" and ATTACK == false then | |
3386 | WarpMeteor() | |
3387 | end | |
3388 | ||
3389 | if Key == "x" and ATTACK == false then | |
3390 | PandorasBox() | |
3391 | end | |
3392 | ||
3393 | if Key == "g" and ATTACK == false then | |
3394 | TimeStop() | |
3395 | end | |
3396 | ||
3397 | if Key == "t" and ATTACK == false then | |
3398 | Taunt() | |
3399 | elseif Key == "1" and ATTACK == false then | |
3400 | if CHOICE ~= 1 then | |
3401 | CHOICE = 1 | |
3402 | sick:Play() | |
3403 | chatfunc("original song") | |
3404 | end | |
3405 | elseif Key == "2" and ATTACK == false then | |
3406 | if CHOICE ~= 2 then | |
3407 | CHOICE = 2 | |
3408 | sick:Play() | |
3409 | chatfunc("no comments...") | |
3410 | end | |
3411 | elseif Key == "3" and ATTACK == false then | |
3412 | if CHOICE ~= 3 then | |
3413 | CHOICE = 3 | |
3414 | sick:Play() | |
3415 | chatfunc("Now the fight really begins...") | |
3416 | tecks2.Color = Color3.new (255,0,0) | |
3417 | end | |
3418 | elseif Key == "4" and ATTACK == false then | |
3419 | if CHOICE ~= 4 then | |
3420 | CHOICE = 4 | |
3421 | sick:Play() | |
3422 | chatfunc("Just let me relax a little") | |
3423 | end | |
3424 | elseif Key == "5" and ATTACK == false then | |
3425 | if CHOICE ~= 5 then | |
3426 | CHOICE = 5 | |
3427 | sick:Play() | |
3428 | chatfunc("Why not this sound, i like it") | |
3429 | end | |
3430 | elseif Key == "6" and ATTACK == false then | |
3431 | if CHOICE ~= 6 then | |
3432 | CHOICE = 6 | |
3433 | sick:Play() | |
3434 | chatfunc("music off") | |
3435 | end | |
3436 | end | |
3437 | end | |
3438 | ||
3439 | function KeyUp(Key) | |
3440 | KEYHOLD = false | |
3441 | end | |
3442 | ||
3443 | Mouse.Button1Down:connect(function(NEWKEY) | |
3444 | MouseDown(NEWKEY) | |
3445 | end) | |
3446 | Mouse.Button1Up:connect(function(NEWKEY) | |
3447 | MouseUp(NEWKEY) | |
3448 | end) | |
3449 | Mouse.KeyDown:connect(function(NEWKEY) | |
3450 | KeyDown(NEWKEY) | |
3451 | end) | |
3452 | Mouse.KeyUp:connect(function(NEWKEY) | |
3453 | KeyUp(NEWKEY) | |
3454 | end) | |
3455 | ||
3456 | --//=================================\\ | |
3457 | --\\=================================// | |
3458 | ||
3459 | ||
3460 | function unanchor() | |
3461 | if UNANCHOR == true then | |
3462 | RootPart.Anchored = false | |
3463 | end | |
3464 | g = Character:GetChildren() | |
3465 | for i = 1, #g do | |
3466 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
3467 | g[i].Anchored = false | |
3468 | end | |
3469 | end | |
3470 | g = Weapon:GetChildren() | |
3471 | for i = 1, #g do | |
3472 | if g[i].ClassName == "Part" then | |
3473 | g[i].Anchored = false | |
3474 | end | |
3475 | end | |
3476 | end | |
3477 | ||
3478 | ||
3479 | --//=================================\\ | |
3480 | --|| WRAP THE WHOLE SCRIPT UP | |
3481 | --\\=================================// | |
3482 | ||
3483 | Humanoid.Changed:connect(function(Jump) | |
3484 | if Jump == "Jump" and (Disable_Jump == true) then | |
3485 | Humanoid.Jump = false | |
3486 | end | |
3487 | end) | |
3488 | ||
3489 | while true do | |
3490 | Swait() | |
3491 | refit() | |
3492 | script.Parent = WEAPONGUI | |
3493 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
3494 | v:Stop(); | |
3495 | end | |
3496 | ANIMATE.Parent = nil | |
3497 | SINE = SINE + CHANGE*1.5 | |
3498 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3499 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3500 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
3501 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
3502 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
3503 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0 * COS(SINE / (WALKSPEEDVALUE / 2)) * SIZE) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3504 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * 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) | |
3505 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3506 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3507 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3508 | end | |
3509 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3510 | ANIM = "Jump" | |
3511 | if ATTACK == false then | |
3512 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3513 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3514 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3515 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3516 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
3517 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
3518 | end | |
3519 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3520 | ANIM = "Fall" | |
3521 | if ATTACK == false then | |
3522 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3523 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3524 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3525 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3526 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
3527 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
3528 | end | |
3529 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3530 | ANIM = "Idle" | |
3531 | if ATTACK == false then | |
3532 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0 - 3 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3533 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3534 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75*SIZE, 0.5*SIZE, -1*SIZE) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3535 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1*SIZE, 0.2*SIZE, -0.5*SIZE) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3536 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3537 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3538 | end | |
3539 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3540 | ANIM = "Walk" | |
3541 | if ATTACK == false then | |
3542 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3543 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3544 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3545 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3546 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3547 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3548 | end | |
3549 | end | |
3550 | unanchor() | |
3551 | Humanoid.MaxHealth = "inf" | |
3552 | Humanoid.Health = "inf" | |
3553 | if Rooted == false then | |
3554 | Disable_Jump = false | |
3555 | Humanoid.WalkSpeed = Speed | |
3556 | elseif Rooted == true then | |
3557 | Disable_Jump = true | |
3558 | Humanoid.WalkSpeed = 0 | |
3559 | end | |
3560 | for _, c in pairs(Character:GetChildren()) do | |
3561 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
3562 | c.Material = "Fabric" | |
3563 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
3564 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
3565 | end | |
3566 | if c ~= Head then | |
3567 | c.Color = C3(0,0,0) | |
3568 | else | |
3569 | c.Color = C3(0,0,0) | |
3570 | end | |
3571 | if c == Head then | |
3572 | if c:FindFirstChild("face") then | |
3573 | c.face:remove() | |
3574 | end | |
3575 | end | |
3576 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
3577 | c:remove() | |
3578 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
3579 | c:remove() | |
3580 | end | |
3581 | end | |
3582 | sick.SoundId = "rbxassetid://"..bored[CHOICE] | |
3583 | sick.Looped = true | |
3584 | sick.Pitch = 1 | |
3585 | sick.Volume = 999999 | |
3586 | sick.Parent = Character | |
3587 | sick:Resume() | |
3588 | --sick.Playing = false | |
3589 | Humanoid.Name = "Master of Time = "..Player.Name | |
3590 | end | |
3591 | ||
3592 | --//=================================\\ | |
3593 | --\\=================================// | |
3594 | ||
3595 | ||
3596 | ||
3597 | ||
3598 | ||
3599 | --//====================================================\\-- | |
3600 | --|| END OF SCRIPT | |
3601 | --\\====================================================//-- |