SHOW:
|
|
- or go back to the newest paste.
1 | --------------------------This is an Official script from Duelist-------------------------- | |
2 | ---{-------------------- -------------------}--- | |
3 | ---{-------------------- / \ -------------------}--- | |
4 | ---{-------------------- II -------------------}--- | |
5 | ---{-------------------- II -------------------}--- | |
6 | ---{-------------------- II -------------------}--- | |
7 | ---{-------------------- A========A -------------------}--- | |
8 | ---{-------------------- II -------------------}--- | |
9 | ---{-------------------- II -------------------}--- | |
10 | ---{-------------------- W -------------------}--- | |
11 | ------------------------------------------------------------------------------------------------------------- | |
12 | - | game.Workspace.EnderWolfMage.Humanoid.MaxHealth= math.Huge |
12 | + | h=Script.Parent--Humanoid |
13 | for 1,15 do--change 15 into how many seconds your place takes to load+15 | |
14 | wait(1)--wait for a second and try again | |
15 | h.MaxHealth=100500--Change that into required max health | |
16 | h.Health=10000--Change that into required health | |
17 | end | |
18 | ||
19 | s = Instance.new("Sound",Workspace) | |
20 | s.Pitch = 1 | |
21 | s.Volume = 4 | |
22 | s.SoundId = "rbxassetid://2014353985" | |
23 | s.Looped = true | |
24 | s.PlayOnRemove = false | |
25 | s:Play() | |
26 | ||
27 | plr = game.Players.LocalPlayer | |
28 | ||
29 | wait(1) | |
30 | ||
31 | HUMANOID = game.Workspace:WaitForChild(plr.Name) | |
32 | ||
33 | NEWPART = Instance.new("BillboardGui",HUMANOID.Head) | |
34 | ||
35 | NEWTEXT = Instance.new("TextLabel",NEWPART) | |
36 | ||
37 | NEWTEXT.Text = plr.Name | |
38 | ||
39 | NEWPART.ExtentsOffset = Vector3.new(0,3,0) | |
40 | ||
41 | NEWPART.Size = UDim2.new(1,1,1,1) | |
42 | ||
43 | NEWTEXT.Size = UDim2.new(5,0,1,1) | |
44 | ||
45 | NEWTEXT.TextScaled = true | |
46 | ||
47 | NEWTEXT.BackgroundTransparency = 1 | |
48 | ||
49 | NEWTEXT.Position = UDim2.new(-2,0,-0.5,0) | |
50 | ||
51 | NEWPART.AlwaysOnTop = true | |
52 | ||
53 | --i used stravants Beautifier so it might look a bit wonky | |
54 | Meshes = { | |
55 | Blast = '20329976', | |
56 | Crown = '1323306', | |
57 | Ring = '3270017', | |
58 | Claw = '10681506', | |
59 | Crystal = '9756362', | |
60 | Coil = '9753878', | |
61 | Cloud = '1095708', | |
62 | } | |
63 | clangsounds = { | |
64 | '199149119', | |
65 | '199149109', | |
66 | '199149072', | |
67 | '199149025', | |
68 | '199148971' | |
69 | } | |
70 | hitsounds = { | |
71 | '199149137', | |
72 | '199149186', | |
73 | '199149221', | |
74 | '199149235', | |
75 | '199149269', | |
76 | '199149297' | |
77 | } | |
78 | blocksounds = { | |
79 | '199148933', | |
80 | '199148947' | |
81 | } | |
82 | armorsounds = { | |
83 | '199149321', | |
84 | '199149338', | |
85 | '199149367', | |
86 | '199149409', | |
87 | '199149452' | |
88 | } | |
89 | woosh = { | |
90 | Heavy1 = '320557353', | |
91 | Heavy2 = '320557382', | |
92 | Heavy3 = '320557453', | |
93 | Heavy4 = '199144226', | |
94 | Heavy5 = '203691447', | |
95 | Heavy6 = '203691467', | |
96 | Heavy7 = '203691492', | |
97 | Light1 = '320557413', | |
98 | Light2 = '320557487', | |
99 | Light3 = '199145095', | |
100 | Light4 = '199145146', | |
101 | Light5 = '199145887', | |
102 | Light6 = '199145913', | |
103 | Light7 = '199145841', | |
104 | Medium1 = '320557518', | |
105 | Medium2 = '320557537', | |
106 | Medium3 = '320557563', | |
107 | Medium4 = '199145204' | |
108 | } | |
109 | music = {--i like music a lot | |
110 | Breaking = '179281636', | |
111 | FinalReckoning = '357375770', | |
112 | NotDeadYet = '346175829', | |
113 | Intense = '151514610', | |
114 | JumpP1 = '160536628', | |
115 | JumpP2 = '60536666', | |
116 | SonsOfWar = '158929777', | |
117 | WrathOfSea = '165520893', | |
118 | ProtecTorsofEarth = '160542922', | |
119 | SkyTitans = '179282324', | |
120 | ArchAngel = '144043274', | |
121 | Anticipation = '168614529', | |
122 | TheMartyred = '186849544', | |
123 | AwakeP1 = '335631255', | |
124 | AwakeP2 = '335631297', | |
125 | ReadyAimFireP1 = '342455387', | |
126 | ReadyAimFireP2 = '342455399', | |
127 | DarkLordP1 = '209567483', | |
128 | DarkLordP2 = '209567529', | |
129 | BloodDrainP1 = '162914123', | |
130 | BloodDrainP2 = '162914203', | |
131 | DanceOfSwords = '320473062', | |
132 | Opal = '286415112', | |
133 | Calamity = '190454307', | |
134 | Hypnotica = '155968128', | |
135 | Nemisis = '160453802', | |
136 | Breathe = '276963903', | |
137 | GateToTheRift = '270655227', | |
138 | InfernalBeserking = '244143404', | |
139 | Trust = '246184492', | |
140 | AwakeningTheProject = '245121821', | |
141 | BloodPain = '242545577', | |
142 | Chaos = '247241693', | |
143 | NightmareFictionHighStake = '248062278', | |
144 | TheWhiteWeapon = '247236446', | |
145 | Gale = '256851659', | |
146 | ImperialCode = '256848383', | |
147 | Blitzkrieg = '306431437', | |
148 | RhapsodyRage = '348690251', | |
149 | TheGodFist = '348541501', | |
150 | BattleForSoul = '321185592', | |
151 | TheDarkColossus = '305976780', | |
152 | EmpireOfAngels = '302580452', | |
153 | Kronos = '302205297', | |
154 | Exorcist = '299796054', | |
155 | CrimsonFlames = '297799220', | |
156 | UltimatePower = '295753229', | |
157 | DrivingInTheDark = '295753229', | |
158 | AscendToPower = '293860654', | |
159 | GodOfTheSun = '293612495', | |
160 | DarkRider = '293861765', | |
161 | Vengeance = '293375555', | |
162 | SoundOfWar = '293376196', | |
163 | HellsCrusaders = '293012202', | |
164 | Legend = '293011823', | |
165 | RisingSouls = '290524959' | |
166 | } | |
167 | misc = { | |
168 | GroundSlam = '199145477', | |
169 | LaserSlash = '199145497', | |
170 | RailGunFire = '199145534', | |
171 | Charge1 = '199145659', | |
172 | Charge2 = '169380469', | |
173 | Charge3 = '169380479', | |
174 | EmptyGun = '203691822', | |
175 | GunShoot = '203691837', | |
176 | Stomp1 = '200632875', | |
177 | Stomp2 = '200632561', | |
178 | TelsaCannonCharge = '169445572', | |
179 | TelsaCannonShoot = '169445602', | |
180 | AncientHymm = '245313442' | |
181 | } | |
182 | wait(1 / 60) | |
183 | local Player = game.Players.localPlayer | |
184 | local Character = Player.Character | |
185 | local Humanoid = Character.Humanoid | |
186 | local mouse = Player:GetMouse() | |
187 | local m = Instance.new('Model', Character) | |
188 | m.Name = "WeaponModel" | |
189 | local LeftArm = Character["Left Arm"] | |
190 | local RightArm = Character["Right Arm"] | |
191 | local LeftLeg = Character["Left Leg"] | |
192 | local RightLeg = Character["Right Leg"] | |
193 | local Head = Character.Head | |
194 | local Torso = Character.Torso | |
195 | local cam = game.Workspace.CurrentCamera | |
196 | local RootPart = Character.HumanoidRootPart | |
197 | local RootJoint = RootPart.RootJoint | |
198 | --cam.CameraSubject = Head | |
199 | local equipped = false | |
200 | local attack = false | |
201 | local Anim = 'Idle' | |
202 | local idle = 0 | |
203 | local sprint = false | |
204 | local battlestance = false | |
205 | local attacktype = 1 | |
206 | local state = 'none' | |
207 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
208 | local velocity = RootPart.Velocity.y | |
209 | local sine = 0 | |
210 | local change = 1 | |
211 | local on = false | |
212 | local grabbed = false | |
213 | local skill1 = false | |
214 | local skill2 = false | |
215 | local skill3 = false | |
216 | local skill4 = false | |
217 | local cooldown1 = 0 | |
218 | local cooldown2 = 0 | |
219 | local cooldown3 = 0 | |
220 | local cooldown4 = 0 | |
221 | local co1 = 10--how long it will take for skill to cooldown | |
222 | local co2 = 15 | |
223 | local co3 = 15 | |
224 | local co4 = 25 | |
225 | local inputserv = game:GetService('UserInputService') | |
226 | local typing = false | |
227 | local crit = false | |
228 | local critchance = 2--critical chance percentage | |
229 | local critdamageaddmin = 3--minimum amount of critical damage being added to regular damage | |
230 | local critdamageaddmax = 7--maximum amount | |
231 | local maxstamina = 100--max amount of stamina | |
232 | local stamina = 0--stamina you start out with | |
233 | local skill1stam = 10--how much stamina is needed for a skill | |
234 | local skill2stam = 10 | |
235 | local skill3stam = 20 | |
236 | local skill4stam = 30 | |
237 | local recovermana = 3--how much mana per second | |
238 | local defensevalue = 1--how much defense this character has | |
239 | local speedvalue = 1--how much speed this character has | |
240 | --speed is 16*speedvalue | |
241 | local mindamage = 5--self explanatory | |
242 | local maxdamage = 7--self explanatory | |
243 | local damagevalue = 1--how much damage this character has | |
244 | --damage is math.random(mindamage,maxdamage)*damagevalue | |
245 | --damage(hit, mindamage, maxdamage, 1, 1, RootPart) | |
246 | --asd | |
247 | local cn = CFrame.new-- make things easier :) | |
248 | local mr = math.rad | |
249 | local angles = CFrame.Angles | |
250 | local ud = UDim2.new | |
251 | local c3 = Color3.new | |
252 | local skillcolorscheme = c3(1, 1, 1)--color scheme for skills lol | |
253 | --asd | |
254 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
255 | Humanoid.Animator:Destroy() | |
256 | ||
257 | --Angles For RootJoint `~` | |
258 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
259 | --Save Shoulders/Hips | |
260 | RSH, LSH = nil, nil | |
261 | RHS, LHS = nil, nil | |
262 | --Shoulders | |
263 | RW = Instance.new("Weld") | |
264 | LW = Instance.new("Weld") | |
265 | --Hips | |
266 | RH = Instance.new("Weld") | |
267 | LH = Instance.new("Weld") | |
268 | -- | |
269 | Player = Player | |
270 | ch = Character | |
271 | LHS = Torso["Left Hip"] | |
272 | RHS = Torso["Right Hip"] | |
273 | RSH = ch.Torso["Right Shoulder"] | |
274 | LSH = ch.Torso["Left Shoulder"] | |
275 | -- | |
276 | RSH.Parent = nil | |
277 | LSH.Parent = nil | |
278 | -- | |
279 | LHS.Parent = nil | |
280 | RHS.Parent = nil | |
281 | -- | |
282 | RW.Name = "RW" | |
283 | RW.Part0 = ch.Torso | |
284 | RW.C0 = cn(1.5, 0.5, 0) | |
285 | RW.C1 = cn(0, 0.5, 0) | |
286 | RW.Part1 = ch["Right Arm"] | |
287 | RW.Parent = ch.Torso | |
288 | -- | |
289 | LW.Name = "LW" | |
290 | LW.Part0 = ch.Torso | |
291 | LW.C0 = cn(-1.5, 0.5, 0) | |
292 | LW.C1 = cn(0, 0.5, 0) | |
293 | LW.Part1 = ch["Left Arm"] | |
294 | LW.Parent = ch.Torso | |
295 | -- | |
296 | LH.Name = "LH" | |
297 | LH.Part0 = ch.Torso | |
298 | LH.C0 = cn(-0.5, -2, 0) | |
299 | LH.Part1 = ch["Left Leg"] | |
300 | LH.Parent = ch.Torso | |
301 | -- | |
302 | RH.Name = "RH" | |
303 | RH.Part0 = ch.Torso | |
304 | RH.C0 = cn(0.5, -2, 0) | |
305 | RH.Part1 = ch["Right Leg"] | |
306 | RH.Parent = ch.Torso | |
307 | ||
308 | local Flying = false | |
309 | ||
310 | game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump) | |
311 | if Flying == true then | |
312 | if jump == "Jump" then | |
313 | Humanoid.Jump = false | |
314 | end | |
315 | end | |
316 | end) | |
317 | ||
318 | Humanoid.CameraOffset = Vector3.new(0, -2, 0) | |
319 | ||
320 | Torso.Transparency = 1 | |
321 | Head.Transparency = 1 | |
322 | LeftLeg.Transparency = 1 | |
323 | RightLeg.Transparency = 1 | |
324 | LeftArm.Transparency = 1 | |
325 | RightArm.Transparency = 1 | |
326 | ||
327 | for i,v in pairs (Character:GetChildren()) do | |
328 | if v.ClassName == "Hat" | |
329 | then v:Destroy() | |
330 | end | |
331 | end | |
332 | ||
333 | for i,v in pairs (Character.Head:GetChildren()) do | |
334 | if v.ClassName == "Decal" | |
335 | then v:Destroy() | |
336 | end | |
337 | end | |
338 | ||
339 | Character.Animate:Destroy() | |
340 | ||
341 | local scrn = Instance.new('ScreenGui') | |
342 | scrn.Parent = nil | |
343 | ||
344 | function makeframe(par, trans, pos, size, color) | |
345 | local frame = Instance.new('Frame', par) | |
346 | frame.BackgroundTransparency = trans | |
347 | frame.BorderSizePixel = 0 | |
348 | frame.Position = pos | |
349 | frame.Size = size | |
350 | frame.BackgroundColor3 = color | |
351 | return frame | |
352 | end | |
353 | function makelabel(par, text) | |
354 | local label = Instance.new('TextLabel', par) | |
355 | label.BackgroundTransparency = 1 | |
356 | label.Size = ud(1, 0, 1, 0) | |
357 | label.Position = ud(0, 0, 0, 0) | |
358 | label.TextColor3 = c3(255, 255, 255) | |
359 | label.TextStrokeTransparency = 0 | |
360 | label.FontSize = Enum.FontSize.Size32 | |
361 | label.Font = Enum.Font.SourceSansBold | |
362 | label.BorderSizePixel = 0 | |
363 | label.TextScaled = true | |
364 | label.Text = text | |
365 | end | |
366 | framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
367 | framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
368 | framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
369 | framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme) | |
370 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
371 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
372 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
373 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme) | |
374 | text1 = makelabel(framesk1, '[3] Skill3') | |
375 | text2 = makelabel(framesk2, '[4] Skill4') | |
376 | text3 = makelabel(framesk3, "[2] Skill2") | |
377 | text4 = makelabel(framesk4, '[1] Skill1') | |
378 | staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(61 / 255, 171 / 255, 1)) | |
379 | staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(61 / 255, 171 / 255, 1)) | |
380 | staminatext = makelabel(staminabar, 'Mana') | |
381 | healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0)) | |
382 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255)) | |
383 | healthtext = makelabel(healthbar, 'Health') | |
384 | ||
385 | local stats = Instance.new('Folder', Character) | |
386 | stats.Name = 'Stats' | |
387 | local block = Instance.new('BoolValue', stats) | |
388 | block.Name = 'Block' | |
389 | block.Value = false | |
390 | local stun = Instance.new('BoolValue', stats) | |
391 | stun.Name = 'Stun' | |
392 | stun.Value = false | |
393 | local defense = Instance.new('NumberValue', stats) | |
394 | defense.Name = 'Defence' | |
395 | defense.Value = defensevalue | |
396 | local speed = Instance.new('NumberValue', stats) | |
397 | speed.Name = 'Speed' | |
398 | speed.Value = speedvalue | |
399 | local damagea = Instance.new('NumberValue', stats) | |
400 | damagea.Name = 'Damage' | |
401 | damagea.Value = damagevalue | |
402 | ||
403 | function atktype(s, e) | |
404 | coroutine.resume(coroutine.create(function() | |
405 | attacktype = e | |
406 | wait(1.5) | |
407 | attacktype = s | |
408 | end)) | |
409 | end | |
410 | ||
411 | function turncrit() | |
412 | coroutine.resume(coroutine.create(function() | |
413 | print'CRITICAL!' | |
414 | crit = true | |
415 | wait(.25) | |
416 | crit = false | |
417 | end)) | |
418 | end | |
419 | ||
420 | function subtractstamina(k) | |
421 | if stamina >= k then | |
422 | stamina = stamina - k | |
423 | end | |
424 | end | |
425 | ||
426 | function clerp(a, b, t) | |
427 | return a:lerp(b, t) | |
428 | end | |
429 | ||
430 | function randomizer(percent) | |
431 | local randomized = math.random(0, 100) | |
432 | if randomized <= percent then | |
433 | return true | |
434 | elseif randomized >= percent then | |
435 | return false | |
436 | end | |
437 | end | |
438 | ||
439 | local RbxUtility = LoadLibrary("RbxUtility") | |
440 | local Create = RbxUtility.Create | |
441 | ||
442 | function RemoveOutlines(part) | |
443 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
444 | end | |
445 | ||
446 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
447 | local Part = Create("Part"){ | |
448 | formFactor = FormFactor, | |
449 | Parent = Parent, | |
450 | Reflectance = Reflectance, | |
451 | Transparency = Transparency, | |
452 | CanCollide = false, | |
453 | Locked = true, | |
454 | BrickColor = BrickColor.new(tostring(BColor)), | |
455 | Name = Name, | |
456 | Size = Size, | |
457 | Material = Material, | |
458 | } | |
459 | RemoveOutlines(Part) | |
460 | return Part | |
461 | end | |
462 | ||
463 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
464 | local Msh = Create(Mesh){ | |
465 | Parent = Part, | |
466 | Offset = OffSet, | |
467 | Scale = Scale, | |
468 | } | |
469 | if Mesh == "SpecialMesh" then | |
470 | Msh.MeshType = MeshType | |
471 | Msh.MeshId = MeshId | |
472 | end | |
473 | return Msh | |
474 | end | |
475 | ||
476 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
477 | local Weld = Create("Weld"){ | |
478 | Parent = Parent, | |
479 | Part0 = Part0, | |
480 | Part1 = Part1, | |
481 | C0 = C0, | |
482 | C1 = C1, | |
483 | } | |
484 | return Weld | |
485 | end | |
486 | ||
487 | function rayCast(pos, dir, maxl, ignore) | |
488 | return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore) | |
489 | end | |
490 | --Effects | |
491 | function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type) | |
492 | local p = Instance.new('Part', par or workspace) | |
493 | p.CFrame = pos1 | |
494 | p.Anchored = true | |
495 | p.Material = 'Concrete' | |
496 | p.CanCollide = false | |
497 | p.TopSurface = 0 | |
498 | p.Size = Vector3.new(1, 1, 1) | |
499 | p.BottomSurface = 0 | |
500 | p.Transparency = trans | |
501 | p.FormFactor = 'Custom' | |
502 | RemoveOutlines(p) | |
503 | local mesh = Instance.new('SpecialMesh', p) | |
504 | mesh.Scale = size | |
505 | if id ~= nil and type == nil then | |
506 | mesh.MeshId = 'rbxassetid://'..id | |
507 | elseif id == nil and type ~= nil then | |
508 | mesh.MeshType = type | |
509 | elseif id == nil and type == nil then | |
510 | mesh.MeshType = 'Brick' | |
511 | end | |
512 | coroutine.wrap(function() | |
513 | for i = 0, delay1, .1 do | |
514 | wait(1 / 60) | |
515 | p.CFrame = p.CFrame | |
516 | mesh.Scale = mesh.Scale + howmuch | |
517 | p.Transparency = p.Transparency + trans1 | |
518 | end | |
519 | p:Destroy() | |
520 | end)() | |
521 | return p | |
522 | end | |
523 | function clangy(cframe) | |
524 | wait(1 / 60) | |
525 | local clang = {} | |
526 | local dis = 0 | |
527 | local part = Instance.new('Part', nil) | |
528 | part.CFrame = cframe | |
529 | part.Anchored = true | |
530 | part.CanCollide = false | |
531 | part.BrickColor = BrickColor.new('New Yeller') | |
532 | part.FormFactor = 'Custom' | |
533 | part.Name = 'clanger' | |
534 | part.Size = Vector3.new(.2, .2, .2) | |
535 | part.TopSurface = 10 | |
536 | part.BottomSurface = 10 | |
537 | part.RightSurface = 10 | |
538 | part.LeftSurface = 10 | |
539 | part.BackSurface = 10 | |
540 | part.FrontSurface = 10 | |
541 | --part.Material='Neon' | |
542 | part:BreakJoints() | |
543 | local mesh = Instance.new('BlockMesh', part) | |
544 | coroutine.wrap(function() | |
545 | for i = 1, 7 do | |
546 | wait(1 / 60) | |
547 | dis = dis + .2 | |
548 | local partc = part:clone() | |
549 | partc.Parent = workspace | |
550 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
551 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
552 | table.insert(clang, partc) | |
553 | end | |
554 | for i, v in pairs(clang) do | |
555 | coroutine.wrap(function() | |
556 | for i = 1, 10 do | |
557 | wait(.01) | |
558 | v.Transparency = v.Transparency + .1 | |
559 | end | |
560 | v:destroy() | |
561 | end)() | |
562 | end | |
563 | end)() | |
564 | end | |
565 | --damage effects | |
566 | function circle(color, pos1) | |
567 | local p = Instance.new('Part', m) | |
568 | p.BrickColor = BrickColor.new(color) | |
569 | p.CFrame = pos1 | |
570 | p.Anchored = true | |
571 | p.Material = 'Plastic' | |
572 | p.CanCollide = false | |
573 | p.TopSurface = 0 | |
574 | p.Size = Vector3.new(1, 1, 1) | |
575 | p.BottomSurface = 0 | |
576 | p.Transparency = 0.35 | |
577 | p.FormFactor = 'Custom' | |
578 | local mesh = Instance.new('CylinderMesh', p) | |
579 | mesh.Scale = Vector3.new(0, 0, 0) | |
580 | coroutine.wrap(function() | |
581 | for i = 0, 5, .1 do | |
582 | wait(1 / 60) | |
583 | p.CFrame = p.CFrame | |
584 | mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5) | |
585 | p.Transparency = p.Transparency + .025 | |
586 | end | |
587 | p:Destroy() | |
588 | end)() | |
589 | end | |
590 | function firespaz1(color, pos1) | |
591 | local p = Instance.new('Part', m) | |
592 | p.BrickColor = BrickColor.new(color) | |
593 | p.CFrame = pos1 | |
594 | p.Anchored = true | |
595 | p.Material = 'Plastic' | |
596 | p.CanCollide = false | |
597 | p.TopSurface = 0 | |
598 | p.Size = Vector3.new(1, 1, 1) | |
599 | p.BottomSurface = 0 | |
600 | p.Transparency = 0.5 | |
601 | p.FormFactor = 'Custom' | |
602 | local mesh = Instance.new('BlockMesh', p) | |
603 | mesh.Scale = Vector3.new(1, 1, 1) | |
604 | coroutine.wrap(function() | |
605 | for i = 0, 15, .1 do | |
606 | wait(1 / 30) | |
607 | p.CFrame = p.CFrame * CFrame.new(0, .1, 0) | |
608 | mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1) | |
609 | p.Transparency = p.Transparency + .025 | |
610 | end | |
611 | p:Destroy() | |
612 | end)() | |
613 | end | |
614 | ||
615 | function pickrandom(tablesa) | |
616 | local randomized = tablesa[math.random(1, #tablesa)] | |
617 | return randomized | |
618 | end | |
619 | function sound(id, pitch, volume, par, last) | |
620 | local s = Instance.new('Sound', par or Torso) | |
621 | s.SoundId = 'rbxassetid://'..id | |
622 | s.Pitch = pitch or 1 | |
623 | s.Volume = volume or 1 | |
624 | wait() | |
625 | s:play() | |
626 | game.Debris:AddItem(s, last or 120) | |
627 | end | |
628 | function clangy(cframe) | |
629 | wait(1 / 60) | |
630 | local clang = {} | |
631 | local dis = 0 | |
632 | local part = Instance.new('Part', nil) | |
633 | part.CFrame = cframe | |
634 | part.Anchored = true | |
635 | part.CanCollide = false | |
636 | part.BrickColor = BrickColor.new('New Yeller') | |
637 | part.FormFactor = 'Custom' | |
638 | part.Name = 'clanger' | |
639 | part.Size = Vector3.new(.2, .2, .2) | |
640 | part.TopSurface = 10 | |
641 | part.BottomSurface = 10 | |
642 | part.RightSurface = 10 | |
643 | part.LeftSurface = 10 | |
644 | part.BackSurface = 10 | |
645 | part.FrontSurface = 10 | |
646 | --part.Material='Neon' | |
647 | part:BreakJoints() | |
648 | local mesh = Instance.new('BlockMesh', part) | |
649 | coroutine.wrap(function() | |
650 | for i = 1, 7 do | |
651 | wait(1 / 60) | |
652 | dis = dis + .2 | |
653 | local partc = part:clone() | |
654 | partc.Parent = workspace | |
655 | partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0) | |
656 | partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0) | |
657 | table.insert(clang, partc) | |
658 | end | |
659 | for i, v in pairs(clang) do | |
660 | coroutine.wrap(function() | |
661 | for i = 1, 10 do | |
662 | wait(.01) | |
663 | v.Transparency = v.Transparency + .1 | |
664 | end | |
665 | v:destroy() | |
666 | end)() | |
667 | end | |
668 | end)() | |
669 | end | |
670 | --damage effects | |
671 | --Effects | |
672 | so = function(id, par, vol, pit) | |
673 | coroutine.resume(coroutine.create(function() | |
674 | local sou = Instance.new("Sound", par or workspace) | |
675 | sou.Volume = vol | |
676 | sou.Pitch = pit or 1 | |
677 | sou.SoundId = id | |
678 | wait() | |
679 | sou:play() | |
680 | game:GetService("Debris"):AddItem(sou, 6) | |
681 | end)) | |
682 | end | |
683 | ||
684 | local function getclosest(obj, distance) | |
685 | local last, lastx = distance + 1 | |
686 | for i, v in pairs(workspace:GetChildren()) do | |
687 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
688 | local t = v.Torso | |
689 | local dist = (t.Position - obj.Position).magnitude | |
690 | if dist <= distance then | |
691 | if dist < last then | |
692 | last = dist | |
693 | lastx = v | |
694 | end | |
695 | end | |
696 | end | |
697 | end | |
698 | return lastx | |
699 | end | |
700 | ||
701 | function makegui(cframe, text) | |
702 | local a = math.random(-10, 10) / 100 | |
703 | local c = Instance.new("Part") | |
704 | c.Transparency = 1 | |
705 | Instance.new("BodyGyro").Parent = c | |
706 | c.Parent = m | |
707 | c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0)) | |
708 | local f = Instance.new("BodyPosition") | |
709 | f.P = 2000 | |
710 | f.D = 100 | |
711 | f.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
712 | f.position = c.Position + Vector3.new(0, 3, 0) | |
713 | f.Parent = c | |
714 | game:GetService("Debris"):AddItem(c, .5 + 6) | |
715 | c.CanCollide = false | |
716 | m.Parent = workspace | |
717 | c.CanCollide = false | |
718 | local bg = Instance.new('BillboardGui', m) | |
719 | bg.Adornee = c | |
720 | bg.Size = UDim2.new(1, 0, 1, 0) | |
721 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
722 | bg.AlwaysOnTop = false | |
723 | local tl = Instance.new('TextLabel', bg) | |
724 | tl.BackgroundTransparency = 1 | |
725 | tl.Size = UDim2.new(1, 0, 1, 0) | |
726 | tl.Text = text | |
727 | tl.Font = 'SourceSansBold' | |
728 | tl.FontSize = 'Size42' | |
729 | if crit == true then | |
730 | tl.TextColor3 = Color3.new(180 / 255, 0, 0) | |
731 | else | |
732 | tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255) | |
733 | end | |
734 | tl.TextStrokeTransparency = 0 | |
735 | tl.TextScaled = true | |
736 | tl.TextWrapped = true | |
737 | coroutine.wrap(function() | |
738 | wait(2) | |
739 | for i = 1, 10 do | |
740 | wait() | |
741 | tl.TextTransparency = tl.TextTransparency + .1 | |
742 | end | |
743 | end)() | |
744 | end | |
745 | ||
746 | function tag(hum, Player) | |
747 | local creator = Instance.new('ObjectValue', hum) | |
748 | creator.Value = Player | |
749 | creator.Name = 'creator' | |
750 | end | |
751 | function untag(hum) | |
752 | if hum ~= nil then | |
753 | local tag = hum:findFirstChild("creator") | |
754 | if tag ~= nil then | |
755 | tag.Parent = nil | |
756 | end | |
757 | end | |
758 | end | |
759 | ||
760 | function tagPlayer(h) | |
761 | coroutine.wrap(function() | |
762 | tag(h, Player) | |
763 | wait(1) | |
764 | untag(h) | |
765 | end)() | |
766 | end | |
767 | function damage(hit, mind, maxd, knock, type, prop) | |
768 | --[[ | |
769 | to apply it to a Player directly, make the first arg go to the Players Torso | |
770 | 1 - normal type(damage and knockback) | |
771 | 2 - drain type(damage no knockback) | |
772 | 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed | |
773 | 4 - heal(heals target) | |
774 | 5 - subtracts enemies defense | |
775 | 6 - subtracts enemies speed | |
776 | 7 - | |
777 | ]] | |
778 | if hit.Name:lower() == 'Hitbox' then | |
779 | local pos = CFrame.new(0, 1, -1) | |
780 | sound(pickrandom(clangsounds), math.random(100, 150) / 100, 1, Torso, 6) | |
781 | coroutine.wrap(function() | |
782 | for i = 1, 4 do | |
783 | clangy(Torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0)) | |
784 | end | |
785 | end)() | |
786 | end | |
787 | if hit.Parent == nil then | |
788 | return | |
789 | end | |
790 | local h = hit.Parent:FindFirstChild("Humanoid") | |
791 | for i, v in pairs(hit.Parent:children()) do | |
792 | if v:IsA("Humanoid") then | |
793 | h = v | |
794 | end | |
795 | end | |
796 | if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then | |
797 | h = hit.Parent.Parent:FindFirstChild('Humanoid') | |
798 | end | |
799 | if hit.Parent:IsA('Hat') then | |
800 | hit = hit.Parent.Parent:findFirstChild('Head') | |
801 | end | |
802 | local D = math.random(mind, maxd) * damagea.Value | |
803 | if h.Parent:FindFirstChild('Stats') then | |
804 | D = D / h.Parent:FindFirstChild('Stats').Defence.Value | |
805 | elseif not h.Parent:FindFirstChild('Stats') then | |
806 | D = D | |
807 | end | |
808 | if h then | |
809 | makegui(h.Parent.Head.CFrame, tostring(math.floor(D + .5))) | |
810 | end | |
811 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
812 | if type == 1 then | |
813 | tagPlayer(h) | |
814 | local asd = randomizer(critchance) | |
815 | if asd == true then | |
816 | turncrit() | |
817 | end | |
818 | if crit == false then | |
819 | h.Health = h.Health - D | |
820 | else | |
821 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
822 | end | |
823 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
824 | local vp = Instance.new('BodyVelocity') | |
825 | vp.P = 500 | |
826 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
827 | vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05 | |
828 | if knock > 0 then | |
829 | vp.Parent = hit.Parent.Torso | |
830 | end | |
831 | game:GetService("Debris"):AddItem(vp, .5) | |
832 | elseif type == 2 then | |
833 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100) | |
834 | local asd = randomizer(critchance) | |
835 | if asd == true then | |
836 | turncrit() | |
837 | end | |
838 | if crit == false then | |
839 | h.Health = h.Health - D | |
840 | else | |
841 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
842 | end | |
843 | tagPlayer(h) | |
844 | elseif type == 3 then | |
845 | tagPlayer(h) | |
846 | local asd = randomizer(critchance) | |
847 | if asd == true then | |
848 | turncrit() | |
849 | end | |
850 | if crit == false then | |
851 | h.Health = h.Health - D | |
852 | else | |
853 | h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax)) | |
854 | end | |
855 | Character.Humanoid.Health = Character.Humanoid.Health + D / 2 | |
856 | so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5) | |
857 | for i = 1, 10 do | |
858 | firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))) | |
859 | end | |
860 | elseif type == 4 then | |
861 | h.Health = h.Health + D | |
862 | so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1) | |
863 | circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0)) | |
864 | end | |
865 | end | |
866 | end | |
867 | ||
868 | function subtrackstamina(k) | |
869 | if stamina >= k then | |
870 | stamina = stamina - k | |
871 | end | |
872 | end | |
873 | ||
874 | Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Handle",Vector3.new(2.39999986, 1.20000005, 1.39999998)) | |
875 | Handleweld=CreateWeld(m,Torso,Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200019836, 2.05684233, -1.52587891e-005, -3.33786011e-006, 5.10364771e-007, -1.00000072, 7.4505806e-007, 0.999990106, 5.23030758e-006, 0.999992847, 1.10268593e-006, -2.98023224e-006)) | |
876 | CreateMesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
877 | LLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Really Pearl","LLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
878 | LLeg1Connectorweld=CreateWeld(m,Handle,LLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.271961212, 0.323261261, 0.554561615, 0.953878522, 0.237942964, 0.183013678, -0.270872086, 0.945040286, 0.183021933, -0.12940976, -0.224147677, 0.965908945)) | |
879 | CreateMesh("SpecialMesh",LLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
880 | LLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","LLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
881 | LLeg2Connectorweld=CreateWeld(m,Handle,LLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.286304474, 0.549964905, 0.383785248, 0.87001282, -0.368683487, -0.327339649, 0.475172013, 0.804078519, 0.357260257, 0.131499231, -0.466358542, 0.874748588)) | |
882 | CreateMesh("SpecialMesh",LLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
883 | NeckHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","NeckHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
884 | NeckHandleConnectorweld=CreateWeld(m,Handle,NeckHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.800014496, 2.2649765e-006, -1.52587891e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
885 | CreateMesh("SpecialMesh",NeckHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
886 | RLeg2Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg2Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
887 | RLeg2Connectorweld=CreateWeld(m,Handle,RLeg2Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.284488678, 0.502339363, -0.511051178, 0.866028607, -0.433008194, 0.249994621, 0.482959986, 0.853833973, -0.194110557, -0.12941049, 0.288845479, 0.948575199)) | |
888 | CreateMesh("SpecialMesh",RLeg2Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
889 | RLeg1Connector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg1Connector",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
890 | RLeg1Connectorweld=CreateWeld(m,Handle,RLeg1Connector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.434127808, 0.261667252, -0.51184082, 0.953878462, 0.277202159, 0.115192153, -0.270872086, 0.960207343, -0.0678096935, -0.129410967, 0.0334844999, 0.991011441)) | |
891 | CreateMesh("SpecialMesh",RLeg1Connector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
892 | TailHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","TailHandleConnector",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
893 | TailHandleConnectorweld=CreateWeld(m,Handle,TailHandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.800014496, -4.17232513e-006, -1.14440918e-005, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
894 | CreateMesh("SpecialMesh",TailHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
895 | Wings=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Wings",Vector3.new(1.38, 0.600000024, 0.400000006)) | |
896 | Wingsweld=CreateWeld(m,Handle,Wings,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00999832153, -1.35054588, -0.870742798, -3.57603994e-007, 1.84772534e-006, 0.999992847, 0.707109332, 0.707094491, -2.27373675e-013, -0.707105219, 0.707105219, 0)) | |
897 | CreateMesh("SpecialMesh",Wings,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=188700920 ",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 0.928000093)) | |
898 | HeadHandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","HeadHandleConnector",Vector3.new(0.799999774, 0.800000012, 1.19999993)) | |
899 | HeadHandleConnectorweld=CreateWeld(m, NeckHandleConnector, HeadHandleConnector, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.13883209, -1.22878647, -4.95910645e-005, 0.965921879, -0.258816749, -8.3394184e-007, 0.258814901, 0.965910494, 1.70232727e-006, 7.33734851e-009, -1.24428539e-008, 0.999992847)) | |
900 | CreateMesh("SpecialMesh",HeadHandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
901 | HeadHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","HeadHandle",Vector3.new(0.799999774, 0.800000012, 1.19999993)) | |
902 | HeadHandleweld=CreateWeld(m,HeadHandleConnector,HeadHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(.5,.3,0)) | |
903 | CreateMesh("SpecialMesh",HeadHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
904 | BlinkPartL=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","BlinkPartL",Vector3.new(0.430000007, 0.349999994, 0.209999993)) | |
905 | BlinkPartLweld=CreateWeld(m,HeadHandle,BlinkPartL,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.627552032, -0.15424633, 0.675392151, 0.965920627, 3.52720974e-007, 0.258818448, -3.27823614e-007, 0.999994576, -4.27638327e-007, -0.258816987, 3.32397349e-007, 0.965925992)) | |
906 | CreateMesh("SpecialMesh",BlinkPartL,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
907 | BlinkPartR=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Cyan","BlinkPartR",Vector3.new(0.430000007, 0.349999994, 0.209999919)) | |
908 | BlinkPartRweld=CreateWeld(m,HeadHandle,BlinkPartR,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.668586731, 0.0254650116, 0.6536026, 0.963257611, 0.166627169, -0.210616693, 0.170450777, -0.985360563, 7.06354513e-007, -0.207533255, -0.035900455, -0.977568686)) | |
909 | CreateMesh("SpecialMesh",BlinkPartR,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
910 | Head=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Head",Vector3.new(1.59999979, 1, 1.19999993)) | |
911 | Headweld=CreateWeld(m,HeadHandle,Head,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.399993896, -0.100018501, -3.81469727e-006, 0.999994338, -7.45053441e-008, 0, 4.59620352e-013, 0.999994516, 5.40012479e-013, -6.82121026e-013, -1.62003744e-012, 1)) | |
912 | CreateMesh("SpecialMesh",Head,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
913 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003)) | |
914 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268547058, 0.0147666931, 0.492343903, 0.266456544, 0.961500287, -0.0669870079, -0.937416613, 0.24235782, -0.249999925, -0.22414504, 0.129409671, 0.965918422)) | |
915 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
916 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006)) | |
917 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.35981369, -0.0811252594, -0.392364502, 0.499998569, 0.866011322, 1.38495011e-007, -0.836511791, 0.482955486, 0.258817196, 0.224141717, -0.129405871, 0.965918958)) | |
918 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
919 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.400000006, 1.39999998, 0.400000006)) | |
920 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.359809875, -0.0811347961, 0.392364502, 0.500002265, 0.866017759, 4.3843329e-009, -0.836509109, 0.48296532, -0.25881812, -0.224141061, 0.129409656, 0.965926051)) | |
921 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
922 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.200000003, 1.39999998, 0.200000003)) | |
923 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.268550873, 0.0147647858, -0.492359161, 0.266456187, 0.961500764, 0.066986382, -0.937418401, 0.242359444, 0.249994203, 0.224138066, -0.129404321, 0.965920031)) | |
924 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
925 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917)) | |
926 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148231506, -0.399997711, 0.999991596, -8.94065053e-008, -6.82121026e-013, -4.47030253e-008, 0.999991894, -1.00897068e-012, -4.54747351e-013, -1.05160325e-012, 1)) | |
927 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
928 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(0.599999785, 0.400000006, 0.399999917)) | |
929 | Partweld=CreateWeld(m,HeadHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.706802368, -0.148216248, 0.399990082, 0.999985158, -5.96041865e-008, -1.13686838e-012, -8.94065053e-008, 0.999985576, -1.15107923e-012, -6.82121026e-013, -1.44950718e-012, 1)) | |
930 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
931 | LLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","LLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
932 | LLeg1Handleweld=CreateWeld(m,LLeg1Connector,LLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365982056, 0.0366020203, 0.193164825, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503)) | |
933 | CreateMesh("SpecialMesh",LLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
934 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
935 | Partweld=CreateWeld(m,LLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.299993515, 7.62939453e-006, 0.999997556, -8.96677375e-006, -5.36441803e-007, -8.96677375e-006, 0.999984801, 3.7252903e-006, -5.36441803e-007, 3.7252903e-006, 0.999984503)) | |
936 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
937 | LLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","LLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
938 | LLeg2Handleweld=CreateWeld(m,LLeg2Connector,LLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0654640198, 0.0714416504, 0.174942017, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668)) | |
939 | CreateMesh("SpecialMesh",LLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
940 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
941 | Partweld=CreateWeld(m,LLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, 0.300003052, 0, 1.0000006, 4.96953726e-006, 2.38418579e-006, 4.96953726e-006, 0.999982536, 4.35113907e-006, 2.38418579e-006, 4.35113907e-006, 0.999983668)) | |
942 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
943 | RLeg1Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg1Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
944 | RLeg1Handleweld=CreateWeld(m,RLeg1Connector,RLeg1Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874)) | |
945 | CreateMesh("SpecialMesh",RLeg1Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
946 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
947 | Partweld=CreateWeld(m,RLeg1Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, 0.299995422, 7.62939453e-006, 0.999997318, -9.39005986e-006, -1.82539225e-006, -9.39005986e-006, 0.999983907, 2.83867121e-006, -1.82539225e-006, 2.83867121e-006, 0.999985874)) | |
948 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
949 | RLeg2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","RLeg2Handle",Vector3.new(0.599999726, 0.600000024, 0.600000024)) | |
950 | RLeg2Handleweld=CreateWeld(m,RLeg2Connector,RLeg2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0499954224, 0.038819313, -0.189697266, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768)) | |
951 | CreateMesh("SpecialMesh",RLeg2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
952 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(0.599999726, 1.20000005, 0.600000024)) | |
953 | Partweld=CreateWeld(m,RLeg2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.299996376, -7.62939453e-006, 0.999999583, 6.79865479e-006, -3.51667404e-006, 6.79865479e-006, 0.999980748, -1.23679638e-006, -3.51667404e-006, -1.23679638e-006, 0.999986768)) | |
954 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
955 | NeckHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","NeckHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
956 | NeckHandleweld=CreateWeld(m,NeckHandleConnector,NeckHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
957 | CreateMesh("SpecialMesh",NeckHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
958 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.5999999, 0.800000012, 0.99999994)) | |
959 | Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.673364639, 0.315284729, 1.14440918e-005, 0.499996573, 0.866005898, 1.41687553e-006, -0.866028965, 0.499994099, 1.24860276e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
960 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
961 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.5999999, 1, 1.39999998)) | |
962 | Partweld=CreateWeld(m,NeckHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.456003189, -0.000812530518, 1.52587891e-005, 0.707109332, 0.707094491, 1.05421987e-006, -0.707105219, 0.707105219, 1.56317299e-006, 2.27782948e-009, -3.0485694e-009, 0.999992847)) | |
963 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
964 | TailHandle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","TailHandle",Vector3.new(0.799999714, 0.800000012, 0.99999994)) | |
965 | TailHandleweld=CreateWeld(m,TailHandleConnector,TailHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(7.62939453e-006, -1.90734863e-006, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
966 | CreateMesh("SpecialMesh",TailHandle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
967 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.39999974, 0.800000012, 0.99999994)) | |
968 | Partweld=CreateWeld(m,TailHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.299999237, 3.57627869e-007, 0, 1.00000143, -4.71995372e-006, -3.57601493e-007, -4.71995372e-006, 0.999980211, 1.84771216e-006, -3.57601493e-007, 1.84771216e-006, 0.999985695)) | |
969 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
970 | Tail2HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail2HandleConnector",Vector3.new(0.599999726, 0.800000012, 0.799999952)) | |
971 | Tail2HandleConnectorweld=CreateWeld(m,TailHandle,Tail2HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.674129486, -0.0147686005, -0.00961303711, 0.999255121, 0.0334871411, -0.0192402583, -0.0341572762, 0.998781741, -0.0350642987, 0.0180421956, 0.0356986672, 0.999185622)) | |
972 | CreateMesh("SpecialMesh",Tail2HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
973 | Tail2Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail2Handle",Vector3.new(0.599999726, 0.800000012, 0.799999952)) | |
974 | Tail2Handleweld=CreateWeld(m,Tail2HandleConnector,Tail2Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993)) | |
975 | CreateMesh("SpecialMesh",Tail2Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
976 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.39999974, 0.800000012, 0.799999952)) | |
977 | Partweld=CreateWeld(m,Tail2Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399993896, -2.86102295e-006, 3.81469727e-006, 1.00000131, -5.39020402e-006, -1.95577741e-007, -5.39020402e-006, 0.999980748, 1.59069896e-006, -1.95577741e-007, 1.59069896e-006, 0.999985993)) | |
978 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
979 | Tail3HandleConnector=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail3HandleConnector",Vector3.new(0.599999845, 0.800000012, 0.799999952)) | |
980 | Tail3HandleConnectorweld=CreateWeld(m,Tail2Handle,Tail3HandleConnector,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.933692932, 0.152185202, 0.0128250122, 0.989802122, -0.139427915, 0.0292246509, 0.138289496, 0.989660025, 0.0377997532, -0.0341934189, -0.0333709307, 0.998850942)) | |
981 | CreateMesh("SpecialMesh",Tail3HandleConnector,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
982 | Tail3Handle=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,1,"Pearl","Tail3Handle",Vector3.new(0.599999845, 0.800000012, 0.799999952)) | |
983 | Tail3Handleweld=CreateWeld(m,Tail3HandleConnector,Tail3Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
984 | CreateMesh("SpecialMesh",Tail3Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
985 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(1.79999983, 0.800000012, 0.200000003)) | |
986 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04519272, 0.064440012, -0.0208930969, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
987 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
988 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003)) | |
989 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.11207199, 0.0611591339, 0.00499725342, 0.965926647, -0.258816153, -5.12227416e-008, 0.258816123, 0.965926647, -1.83936208e-007, 9.68575478e-008, 1.64000085e-007, 1)) | |
990 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
991 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Ghost grey","Part",Vector3.new(1.79999983, 0.600000024, 0.200000003)) | |
992 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.07800674, 0.0849123001, -0.020816803, 0.965926468, 0.258816481, 2.40281224e-007, -0.258821636, 0.965915978, -1.06403604e-006, -1.3038516e-006, 2.83645932e-006, 0.999992907)) | |
993 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
994 | Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Glass,0,0,"Pearl","Part",Vector3.new(1.39999986, 0.800000012, 0.799999952)) | |
995 | Partweld=CreateWeld(m,Tail3Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400001526, -2.14576721e-006, -3.81469727e-006, 1, 2.3010216e-009, 0, 2.3010216e-009, 1, 0, 0, 0, 1.00000012)) | |
996 | CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
997 | ||
998 | mouse.Button1Down:connect(function() | |
999 | end) | |
1000 | - | Humanoid.WalkSpeed = 25 |
1000 | + | |
1001 | mouse.KeyDown:connect(function(k) | |
1002 | k = k:lower() | |
1003 | if k == "f" and attack == false and Flying == false then | |
1004 | Humanoid.CameraOffset = Vector3.new(0, -1, 0) | |
1005 | Humanoid.WalkSpeed = 200 | |
1006 | Flying = true | |
1007 | elseif k == "f" and attack == false and Flying == true then | |
1008 | Humanoid.CameraOffset = Vector3.new(0, -2, 0) | |
1009 | Humanoid.WalkSpeed = 16 | |
1010 | Flying = false | |
1011 | end | |
1012 | end) | |
1013 | ||
1014 | ||
1015 | inputserv.InputBegan:connect(function(k) | |
1016 | if k.KeyCode == Enum.KeyCode.One and typing == false and cooldown3 >= co1 and stamina >= skill1stam then | |
1017 | elseif k.KeyCode == Enum.KeyCode.Two and typing == false and cooldown3 >= co2 and stamina >= skill2stam then | |
1018 | elseif k.KeyCode == Enum.KeyCode.Three and typing == false and cooldown3 >= co3 and stamina >= skill3stam then | |
1019 | elseif k.KeyCode == Enum.KeyCode.Four and typing == false and cooldown3 >= co4 and stamina >= skill4stam then | |
1020 | end | |
1021 | end) | |
1022 | ||
1023 | inputserv.InputBegan:connect(function(k) | |
1024 | if k.KeyCode == Enum.KeyCode.Slash then | |
1025 | local fin = nil | |
1026 | typing = true | |
1027 | fin = inputserv.InputBegan:connect(function(k) | |
1028 | if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then | |
1029 | typing = false | |
1030 | fin:disconnect() | |
1031 | end | |
1032 | end) | |
1033 | end | |
1034 | end) | |
1035 | ||
1036 | function updateskills() | |
1037 | if cooldown1 <= co1 then | |
1038 | cooldown1 = cooldown1 + 1 / 30 | |
1039 | end | |
1040 | if cooldown2 <= co2 then | |
1041 | cooldown2 = cooldown2 + 1 / 30 | |
1042 | end | |
1043 | if cooldown3 <= co3 then | |
1044 | cooldown3 = cooldown3 + 1 / 30 | |
1045 | end | |
1046 | if cooldown4 <= co4 then | |
1047 | cooldown4 = cooldown4 + 1 / 30 | |
1048 | end | |
1049 | if stamina <= maxstamina then | |
1050 | stamina = stamina + recovermana / 30 | |
1051 | end | |
1052 | end | |
1053 | ||
1054 | coroutine.resume(coroutine.create(function(Part,Weld) | |
1055 | while Part.Parent~=nil do | |
1056 | wait(5) | |
1057 | for i=0,1,0.2 do | |
1058 | wait() | |
1059 | BlinkPartR.Mesh.Scale = Vector3.new(.7-1*i,1,1) | |
1060 | end | |
1061 | for i=0,1,0.2 do | |
1062 | wait() | |
1063 | BlinkPartR.Mesh.Scale = Vector3.new(.7+.3*i,1,1) | |
1064 | end | |
1065 | end | |
1066 | end),BlinkPartR,BlinkPartRweld) | |
1067 | ||
1068 | coroutine.resume(coroutine.create(function(Part,Weld) | |
1069 | while Part.Parent~=nil do | |
1070 | wait(5) | |
1071 | for i=0,1,0.2 do | |
1072 | wait() | |
1073 | BlinkPartL.Mesh.Scale = Vector3.new(.7-1*i,1,1) | |
1074 | end | |
1075 | for i=0,1,0.2 do | |
1076 | wait() | |
1077 | BlinkPartL.Mesh.Scale = Vector3.new(.7+.3*i,1,1) | |
1078 | end | |
1079 | end | |
1080 | end),BlinkPartL,BlinkPartLweld) | |
1081 | ||
1082 | game:GetService'RunService'.Heartbeat:connect(function() | |
1083 | updateskills() | |
1084 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1085 | velocity = RootPart.Velocity.y | |
1086 | sine = sine + change | |
1087 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1088 | if equipped == true or equipped == false then | |
1089 | if RootPart.Velocity.y > 1 and hit == nil and stun.Value ~= true then | |
1090 | Anim = "Jump" | |
1091 | if attack == false then | |
1092 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 2) * angles(math.rad(50), math.rad(0), math.rad(0)), .3) | |
1093 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
1094 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1095 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
1096 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
1097 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
1098 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), .3) | |
1099 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
1100 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
1101 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
1102 | end | |
1103 | elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value ~= true then | |
1104 | Anim = "Fall" | |
1105 | if attack == false then | |
1106 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 1) * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
1107 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), .3) | |
1108 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), .3) | |
1109 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1110 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1111 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1112 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
1113 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
1114 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
1115 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), .3) | |
1116 | end | |
1117 | elseif Torsovelocity < 1 and hit ~= nil and stun.Value ~= true then | |
1118 | Anim = "Idle" | |
1119 | if attack == false and Flying == false then | |
1120 | change = 1 | |
1121 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1122 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+1.5*math.cos(sine/10))), .3) | |
1123 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-5+1.5*math.cos(sine/10))), .3) | |
1124 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
1125 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
1126 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
1127 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2-3*math.cos(sine/10))), .3) | |
1128 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(15*math.cos(sine/15)), math.rad(5*math.cos(sine/25))), .3) | |
1129 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(-15*math.cos(sine/15)), math.rad(20*math.cos(sine/15)), math.rad(2*math.cos(sine/15))), .3) | |
1130 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(15*math.cos(sine/15)), math.rad(10*math.cos(sine/15)), math.rad(0)), .3) | |
1131 | elseif attack == false and Flying == true then | |
1132 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 2) * angles(math.rad(40+2*math.cos(sine/10)), math.rad(0), math.rad(0)), .3) | |
1133 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+3*math.cos(sine/10))), .3) | |
1134 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-20-3*math.cos(sine/10))), .3) | |
1135 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
1136 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
1137 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
1138 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
1139 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20-3*math.cos(sine/10))), .3) | |
1140 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10+2*math.cos(sine/10))), .3) | |
1141 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(15-1.5*math.cos(sine/10))), .3) | |
1142 | end | |
1143 | elseif Torsovelocity > 2 and hit ~= nil and stun.Value ~= true then | |
1144 | Anim = "Walk" | |
1145 | if attack == false and Flying == false then | |
1146 | change = 1 | |
1147 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 0, 0) * angles(math.rad(1.5+1*math.cos(sine/10)), math.rad(0), math.rad(0)), .3) | |
1148 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3) | |
1149 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+1.5*math.cos(sine/10))), .3) | |
1150 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3) | |
1151 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3) | |
1152 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30*math.cos(sine/5))), .3) | |
1153 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30*math.cos(sine/4.5))), .3) | |
1154 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3) | |
1155 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(2*math.cos(sine/15))), .3) | |
1156 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3*math.cos(sine/15))), .3) | |
1157 | elseif attack == false and Flying == true then | |
1158 | change = 1 | |
1159 | Handleweld.C0 = clerp(Handleweld.C0, cn(0, 3.5+.2*math.cos(sine/10), 1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1160 | NeckHandleConnectorweld.C0 = clerp(NeckHandleConnectorweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-10+1*math.cos(sine/10))), .3) | |
1161 | HeadHandleweld.C0 = clerp(HeadHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20+1*math.cos(sine/10))), .3) | |
1162 | LLeg1Handleweld.C0 = clerp(LLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
1163 | LLeg2Handleweld.C0 = clerp(LLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
1164 | RLeg1Handleweld.C0 = clerp(RLeg1Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-40+5*math.cos(sine/10))), .3) | |
1165 | RLeg2Handleweld.C0 = clerp(RLeg2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30+5*math.cos(sine/10))), .3) | |
1166 | TailHandleweld.C0 = clerp(TailHandleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(10-3*math.cos(sine/10))), .3) | |
1167 | Tail2Handleweld.C0 = clerp(Tail2Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(5+2*math.cos(sine/10))), .3) | |
1168 | Tail3Handleweld.C0 = clerp(Tail3Handleweld.C0, cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(3-1.5*math.cos(sine/10))), .3) | |
1169 | end | |
1170 | end | |
1171 | end | |
1172 | end) | |
1173 | local p = game.Players:findFirstChild("EnderWolfMage") -- Put your name where it says pingfuzz | |
1174 | script.Name = "FusScript" | |
1175 | local go = true --for normal shouts | |
1176 | local skygo = true --for sky-related shouts | |
1177 | --19 Shouts: Fus Ro Dah, Wuld Nah Kest, Liz Slen Nus, Yol Toor Shul, Feim Zii Gron, Strun Bah Qo, Fo Krah Diin, Laas Yah Nir, | |
1178 | --Zun Haal Viik, Krii Lun Aus, Tiid Klo Ul, Faas Ru Maar, Toor Bah Yol, Joor Zah Frul, Kaan Drem Ov, Ven Mul Riik, Lok Vah Koor, | |
1179 | --Nahl Daal Vus, and Bex | |
1180 | p.Chatted:connect(function(message) | |
1181 | local msg = string.lower(message) | |
1182 | if string.find(msg, "fus ro dah") and go == true then | |
1183 | go = false | |
1184 | fus = Instance.new("Part") | |
1185 | fus.formFactor = "Custom" | |
1186 | fus.Size = Vector3.new(1, 1, 4) | |
1187 | fus.TopSurface = "Smooth" | |
1188 | fus.BottomSurface = "Smooth" | |
1189 | fus.Anchored = false | |
1190 | fus.CanCollide = false | |
1191 | fus.BrickColor = BrickColor.new("Bright blue") | |
1192 | fus.Transparency = 0.6 | |
1193 | fus.Reflectance = 0.5 | |
1194 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1195 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1196 | local f = Instance.new("Fire") | |
1197 | f.Name = "FusFire" | |
1198 | f.Size = fus:GetMass() | |
1199 | f.Heat = 0 | |
1200 | f.Color = Color3.new(1, 1, 1) | |
1201 | f.SecondaryColor = Color3.new(1, 1, 1) | |
1202 | f.Parent = fus | |
1203 | local mesh = Instance.new("SpecialMesh") | |
1204 | mesh.MeshType = "Sphere" | |
1205 | mesh.Parent = fus | |
1206 | local bp = Instance.new("BodyPosition") | |
1207 | bp.position = p.Character.Head.Position | |
1208 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1209 | bp.Parent = fus | |
1210 | fus.Parent = workspace | |
1211 | fus.Touched:connect(fused) | |
1212 | coroutine.resume(coroutine.create(function() | |
1213 | wait(0.5) | |
1214 | for i = 1, 20 do | |
1215 | wait(0.01) | |
1216 | local cf = fus.CFrame | |
1217 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1218 | f.Size = fus:GetMass()/2 | |
1219 | fus.CFrame = cf | |
1220 | end | |
1221 | wait(3) | |
1222 | for i = 1, 40 do | |
1223 | fus.Transparency = fus.Transparency + 0.1 | |
1224 | f.Size = f.Size - (fus:GetMass()/40) | |
1225 | wait(0.1) | |
1226 | end | |
1227 | wait() | |
1228 | fus.Transparency = 1 | |
1229 | f:remove() | |
1230 | fus:remove() | |
1231 | go = true | |
1232 | end)) | |
1233 | game:GetService("Debris"):AddItem(fus, 15) | |
1234 | elseif string.find(msg, "wuld nah kest") then | |
1235 | local speed = p.Character.Humanoid.WalkSpeed --Speed prior to sprinting | |
1236 | local cf = p.Character.Torso.CFrame * CFrame.new(0, 0, -50) | |
1237 | local pos = cf.p | |
1238 | p.Character.Humanoid.WalkSpeed = 200 | |
1239 | p.Character.Humanoid:MoveTo(pos, workspace.Base) | |
1240 | wait(0.275) | |
1241 | p.Character.Humanoid.WalkSpeed = speed | |
1242 | p.Character.Humanoid:MoveTo(p.Character.Torso.Position, p.Character.Torso) | |
1243 | elseif string.find(msg, "liz slen nus") and go == true then | |
1244 | --local succ, ret = pcall(function() | |
1245 | go = false | |
1246 | fus = Instance.new("Part") | |
1247 | fus.formFactor = "Custom" | |
1248 | fus.Size = Vector3.new(3, 3, 6) | |
1249 | fus.TopSurface = "Smooth" | |
1250 | fus.BottomSurface = "Smooth" | |
1251 | fus.Anchored = false | |
1252 | fus.CanCollide = false | |
1253 | fus.BrickColor = BrickColor.new("White") | |
1254 | fus.Transparency = 0.5 | |
1255 | fus.Reflectance = 0.6 | |
1256 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -6) | |
1257 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1258 | local s = Instance.new("Sparkles") | |
1259 | s.Name = "LizSparkle" | |
1260 | s.SparkleColor = Color3.new(1, 1, 1) | |
1261 | s.Parent = fus | |
1262 | local mesh = Instance.new("SpecialMesh") | |
1263 | mesh.MeshType = "Sphere" | |
1264 | mesh.Parent = fus | |
1265 | local bp = Instance.new("BodyPosition") | |
1266 | bp.position = p.Character.Head.Position | |
1267 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1268 | bp.Parent = fus | |
1269 | fus.Parent = workspace | |
1270 | fus.Touched:connect(lized) | |
1271 | --[end) | |
1272 | if ret then | |
1273 | local m = Instance.new("Part", p.PlayerGui) | |
1274 | m.Text = "ERROR: " ..ret | |
1275 | game:GetService("Debris"):AddItem(m, 15) | |
1276 | end | |
1277 | coroutine.resume(coroutine.create(function() | |
1278 | wait(3) | |
1279 | for i = 1, 40 do | |
1280 | fus.Transparency = fus.Transparency + 0.1 | |
1281 | wait(0.1) | |
1282 | end | |
1283 | wait() | |
1284 | fus.Transparency = 1 | |
1285 | fus:remove() | |
1286 | go = true | |
1287 | end)) | |
1288 | game:GetService("Debris"):AddItem(fus, 15) | |
1289 | elseif string.find(msg, "yol toor shul") and go == true then | |
1290 | go = false | |
1291 | fus = Instance.new("Part") | |
1292 | fus.formFactor = "Custom" | |
1293 | fus.Size = Vector3.new(3, 3, 6) | |
1294 | fus.TopSurface = "Smooth" | |
1295 | fus.BottomSurface = "Smooth" | |
1296 | fus.Anchored = false | |
1297 | fus.CanCollide = false | |
1298 | fus.BrickColor = BrickColor.new("Bright orange") | |
1299 | fus.Transparency = 0.5 | |
1300 | fus.Reflectance = 0.6 | |
1301 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -6) | |
1302 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1303 | local f = Instance.new("Fire") | |
1304 | f.Name = "FusFire" | |
1305 | f.Size = fus:GetMass()/3 | |
1306 | f.Heat = 0 | |
1307 | f.Parent = fus | |
1308 | local mesh = Instance.new("SpecialMesh") | |
1309 | mesh.MeshType = "Sphere" | |
1310 | mesh.Parent = fus | |
1311 | local bp = Instance.new("BodyPosition") | |
1312 | bp.position = p.Character.Head.Position | |
1313 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1314 | bp.Parent = fus | |
1315 | fus.Parent = workspace | |
1316 | fus.Touched:connect(yoled) | |
1317 | coroutine.resume(coroutine.create(function() | |
1318 | wait(0.5) | |
1319 | for i = 1, 20 do | |
1320 | wait(0.01) | |
1321 | local cf = fus.CFrame | |
1322 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1323 | f.Size = fus:GetMass()/2 | |
1324 | fus.CFrame = cf | |
1325 | end | |
1326 | wait(3) | |
1327 | for i = 1, 40 do | |
1328 | fus.Transparency = fus.Transparency + 0.1 | |
1329 | f.Size = f.Size - (fus:GetMass()/3)/40 | |
1330 | wait(0.1) | |
1331 | end | |
1332 | wait() | |
1333 | fus.Transparency = 1 | |
1334 | f:remove() | |
1335 | fus:remove() | |
1336 | go = true | |
1337 | end)) | |
1338 | game:GetService("Debris"):AddItem(fus, 15) | |
1339 | elseif string.find(msg, "feim zii gron") then | |
1340 | p.Character.Humanoid.WalkSpeed = 30 | |
1341 | for a, b in pairs(p.Character:children()) do | |
1342 | if b.Name == "Head" then | |
1343 | if b:findFirstChild("face") ~= nil then | |
1344 | coroutine.resume(coroutine.create(function() | |
1345 | for i = 1, 110 do | |
1346 | b.face.Transparency = b.face.Transparency + 0.01 | |
1347 | wait(0.01) | |
1348 | end | |
1349 | b.face.Transparency = 1 | |
1350 | end)) | |
1351 | end | |
1352 | end | |
1353 | if b.className == "Part" then | |
1354 | coroutine.resume(coroutine.create(function() | |
1355 | for i = 1, 110 do | |
1356 | b.Transparency = b.Transparency + 0.01 | |
1357 | wait(0.01) | |
1358 | end | |
1359 | b.Transparency = 1 | |
1360 | end)) | |
1361 | elseif b.className == "Hat" then | |
1362 | coroutine.resume(coroutine.create(function() | |
1363 | for i = 1, 110 do | |
1364 | b.Handle.Transparency = b.Handle.Transparency + 0.01 | |
1365 | wait(0.01) | |
1366 | end | |
1367 | b.Handle.Transparency = 1 | |
1368 | end)) | |
1369 | end | |
1370 | end | |
1371 | wait(15) | |
1372 | p.Character.Humanoid.WalkSpeed = 16 | |
1373 | for a, b in pairs(p.Character:children()) do | |
1374 | if b.Name == "Head" then | |
1375 | if b:findFirstChild("face") ~= nil then | |
1376 | coroutine.resume(coroutine.create(function() | |
1377 | for i = 1, 110 do | |
1378 | b.face.Transparency = b.face.Transparency - 0.01 | |
1379 | wait(0.01) | |
1380 | end | |
1381 | b.face.Transparency = 0 | |
1382 | end)) | |
1383 | end | |
1384 | end | |
1385 | if b.className == "Part" then | |
1386 | coroutine.resume(coroutine.create(function() | |
1387 | for i = 1, 110 do | |
1388 | b.Transparency = b.Trans0arency - 0.01 | |
1389 | wait(0.01) | |
1390 | end | |
1391 | b.Transparency = 0 | |
1392 | end)) | |
1393 | elseif b.className == "Hat" then | |
1394 | coroutine.resume(coroutine.create(function() | |
1395 | for i = 1, 110 do | |
1396 | b.Handle.Transparency = b.Handle.Transparency - 0.01 | |
1397 | wait(0.01) | |
1398 | end | |
1399 | b.Handle.Transparency = 0 | |
1400 | end)) | |
1401 | end | |
1402 | end | |
1403 | elseif string.find(msg, "strun bah qo") and skygo == true then | |
1404 | skygo = false | |
1405 | local clouds = {} | |
1406 | function lightning(cl) | |
1407 | local lights = {} | |
1408 | for i = 1, 15 do | |
1409 | local l = Instance.new("Part") | |
1410 | l.Name = "FusLightning" | |
1411 | table.insert(lights, l) | |
1412 | game:GetService("Debris"):AddItem(l, 15) | |
1413 | l.formFactor = "Custom" | |
1414 | l.Size = Vector3.new(1, math.random(50, 75), 1) | |
1415 | l.BrickColor = BrickColor.new("Institutional white") | |
1416 | l.Transparency = 0.45 | |
1417 | l.Reflectance = 0.5 | |
1418 | l.Anchored = true | |
1419 | l.CanCollide = false | |
1420 | local xnum = 6 | |
1421 | local znum = 6 | |
1422 | if i == 1 then | |
1423 | l.CFrame = cl.CFrame * CFrame.Angles(math.random(-(math.pi/xnum), math.pi/xnum), 0, math.random(-(math.pi/znum), math.pi/znum)) * CFrame.new(0, -1 * (l.Size.Y/2), 0) | |
1424 | elseif i > 1 then | |
1425 | local llight = lights[i - 1] | |
1426 | l.CFrame = llight.CFrame * CFrame.Angles(math.random(-(math.pi/xnum), math.pi/xnum), 0, math.random(-(math.pi/znum), math.pi/znum)) * CFrame.new(0, -1 * (l.Size.Y/2), 0) | |
1427 | end | |
1428 | l.Parent = workspace | |
1429 | l.Touched:connect(function(part) struned(part, l) end) | |
1430 | coroutine.resume(coroutine.create(function() | |
1431 | repeat | |
1432 | l.Transparency = l.Transparency + 0.02 | |
1433 | wait() | |
1434 | until l.Transparency >= 1 | |
1435 | l:remove() | |
1436 | end)) | |
1437 | end | |
1438 | end | |
1439 | for i = 1, 100 do | |
1440 | game.Lighting.Brightness = game.Lighting.Brightness - 0.01 | |
1441 | wait(0.05) | |
1442 | end | |
1443 | game.Lighting.Brightness = 0 | |
1444 | local cloud = Instance.new("Part") | |
1445 | cloud.Name = "StrunCloud" | |
1446 | cloud.Size = Vector3.new(1, 1, 1) | |
1447 | cloud.Anchored = true | |
1448 | cloud.CanCollide = false | |
1449 | cloud.BrickColor = BrickColor.new("Black") | |
1450 | cloud.Transparency = 1 | |
1451 | local mesh = Instance.new("SpecialMesh") | |
1452 | mesh.MeshType = "FileMesh" | |
1453 | mesh.Scale = Vector3.new(math.random(100, 150), math.random(50, 100), math.random(100, 150)) | |
1454 | mesh.MeshId = "www.roblox.com/asset/?id=1095708" | |
1455 | mesh.Parent = cloud | |
1456 | for i = 1, (math.random(4, 8)) do | |
1457 | local newc = cloud:clone() | |
1458 | newc.Parent = workspace | |
1459 | game:GetService("Debris"):AddItem(newc, 300) | |
1460 | table.insert(clouds, newc) | |
1461 | newc.CFrame = CFrame.new(p.Character.Torso.Position + Vector3.new(math.random(-250, 250), math.random(150, 200), math.random(-250, 250))) | |
1462 | coroutine.resume(coroutine.create(function() | |
1463 | repeat | |
1464 | newc.Transparency = newc.Transparency - 0.01 | |
1465 | wait() | |
1466 | until newc.Transparency <= 0.2 | |
1467 | newc.Transparency = 0.2 | |
1468 | end)) | |
1469 | end | |
1470 | for i = 1, (math.random(7, 15)) do | |
1471 | if skygo == true then break end | |
1472 | local s = Instance.new("Sound") | |
1473 | game:GetService("Debris"):AddItem(s, 5) | |
1474 | s.Name = "Lighting" | |
1475 | s.SoundId = "rbxasset://sounds/HalloweenLightning.wav" | |
1476 | s.Pitch = (math.random(10, 15) * 0.1) | |
1477 | s.PlayOnRemove = true | |
1478 | s.Looped = false | |
1479 | s.Parent = workspace | |
1480 | wait(0.5) | |
1481 | s:play() | |
1482 | for i = 1, #clouds do | |
1483 | lightning(clouds[i]) | |
1484 | end | |
1485 | game.Lighting.Brightness = 1 | |
1486 | wait(0.001) | |
1487 | game.Lighting.Brightness = 0 | |
1488 | s:remove() | |
1489 | wait(math.random(3, 6)) | |
1490 | end | |
1491 | wait(2) | |
1492 | for i = 1, #clouds do | |
1493 | coroutine.resume(coroutine.create(function() | |
1494 | repeat | |
1495 | clouds[i].Transparency = clouds[i].Transparency + 0.01 | |
1496 | wait(0.05) | |
1497 | until clouds[i].Transparency >= 1 | |
1498 | clouds[i]:remove() | |
1499 | end)) | |
1500 | end | |
1501 | for i = 1, 110 do | |
1502 | game.Lighting.Brightness = game.Lighting.Brightness + 0.01 | |
1503 | wait(0.01) | |
1504 | end | |
1505 | skygo = true | |
1506 | game.Lighting.Brightness = 1 | |
1507 | elseif string.find(msg, "fo krah diin") and go == true then | |
1508 | go = false | |
1509 | for i = 1, 50 do | |
1510 | fus = Instance.new("Part") | |
1511 | fus.formFactor = "Custom" | |
1512 | fus.Size = Vector3.new(0.5, 0.5, 0.5) | |
1513 | fus.TopSurface = "Smooth" | |
1514 | fus.BottomSurface = "Smooth" | |
1515 | fus.Anchored = false | |
1516 | fus.CanCollide = false | |
1517 | fus.BrickColor = BrickColor.new("Institutional white") | |
1518 | fus.Transparency = 0.6 | |
1519 | fus.Reflectance = 0.5 | |
1520 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(math.random(-15, 15)*0.1, math.random(-15, 15)*0.1, -4) | |
1521 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1522 | local f = Instance.new("Fire") | |
1523 | f.Name = "FusFire" | |
1524 | f.Size = fus:GetMass() | |
1525 | f.Heat = 0 | |
1526 | f.Color = Color3.new(1, 1, 1) | |
1527 | f.SecondaryColor = Color3.new(1, 1, 1) | |
1528 | f.Parent = fus | |
1529 | local mesh = Instance.new("SpecialMesh") | |
1530 | mesh.MeshType = "Sphere" | |
1531 | mesh.Parent = fus | |
1532 | local bp = Instance.new("BodyPosition") | |
1533 | bp.position = fus.Position | |
1534 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1535 | bp.Parent = fus | |
1536 | fus.Parent = workspace | |
1537 | fus.Touched:connect(function(part) foed(part, fus) end) | |
1538 | game:Ge4Service("Debris"):AddItem(fus, 15) | |
1539 | end | |
1540 | go = true | |
1541 | elseif string.find(msg, "laas yah nir") then | |
1542 | for i = 1, 30 do | |
1543 | for a, b in pairs(game.Players:children()) do | |
1544 | if b.Character ~= nil then | |
1545 | if (p.Character.Torso.Position - b.Character.Torso.Position).magnitude <= 100 and b ~= p then | |
1546 | if b.Character.Torso:findFirstChild("LaasFire") == nil then | |
1547 | local f = Instance.new("Fire", b.Character.Torso) | |
1548 | f.Name = "LaasFire" | |
1549 | f.Size = b.Character.Torso:GetMass()*2 | |
1550 | f.Color = Color3.new(0, 0, 0) | |
1551 | f.SecondaryColor = Color3.new(1, 1, 1) | |
1552 | end | |
1553 | elseif (p.Character.Torso.Position - b.Character.Torso.Position).magnitude > 100 then | |
1554 | if b.Character.Torso:findFirstChild("LaasFire") ~= nil then | |
1555 | b.Character.Torso.LaasFire:remove() | |
1556 | end | |
1557 | end | |
1558 | end | |
1559 | end | |
1560 | wait(1) | |
1561 | end | |
1562 | for a, b in pairs(game.Players:children()) do | |
1563 | if b.Character.Torso:findFirstChild("LaasFire") ~= nil then | |
1564 | b.Character.Torso.LaasFire:remove() | |
1565 | end | |
1566 | end | |
1567 | elseif string.find(msg, "zun haal viik") and go == true then | |
1568 | go = false | |
1569 | fus = Instance.new("Part") | |
1570 | fus.formFactor = "Custom" | |
1571 | fus.Size = Vector3.new(1, 1, 4) | |
1572 | fus.TopSurface = "Smooth" | |
1573 | fus.BottomSurface = "Smooth" | |
1574 | fus.Anchored = false | |
1575 | fus.CanCollide = false | |
1576 | fus.BrickColor = BrickColor.new("Lime green") | |
1577 | fus.Transparency = 0.6 | |
1578 | fus.Reflectance = 0.5 | |
1579 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1580 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -200 | |
1581 | local f = Instance.new("Fire") | |
1582 | f.Name = "FusFire" | |
1583 | f.Size = fus:GetMass() | |
1584 | f.Heat = 0 | |
1585 | f.Color = Color3.new(1, 1, 1) | |
1586 | f.SecondaryColor = Color3.new(1, 1, 1) | |
1587 | f.Parent = fus | |
1588 | local mesh = In3tance.new("SpecialMesh") | |
1589 | mesh.MeshType = "Sphere" | |
1590 | mesh.Parent = fus | |
1591 | local bp = Instance.new("BodyPosition") | |
1592 | bp.position = p.Character.Head.Position | |
1593 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1594 | bp.Parent = fus | |
1595 | fus.Paren4 = workspace | |
1596 | fus.Touched:connect(function(part) zuned(part, fus) end) | |
1597 | coroutine.resume(coroutine.create(function() | |
1598 | wait(0.5) | |
1599 | for i = 1, 9 do | |
1600 | wait(0.01) | |
1601 | local cf = fus.CFrame | |
1602 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1603 | f.Size = fus:GetMass()/2 | |
1604 | fus.CFrame = cf | |
1605 | end | |
1606 | wait(3) | |
1607 | for i = 1, 40 do | |
1608 | fus.Transparency = fus.Transparency + 0.1 | |
1609 | f.Size = f.Size - (fus:GetMass()/40) | |
1610 | wait(0.1) | |
1611 | end | |
1612 | wait() | |
1613 | fus.Transparency = 1 | |
1614 | f:remove() | |
1615 | fus:remove() | |
1616 | go = true | |
1617 | end)) | |
1618 | game:GetService("Debris"):AddItem(fus, 15) | |
1619 | elseif string.find(msg, "krii lun aus") and go == true then | |
1620 | go = false | |
1621 | fus = Instance.new("Part") | |
1622 | fus.formFactor = "Custom" | |
1623 | fus.Size = Vector3.new(1, 1, 4) | |
1624 | fus.TopSurface = "Smooth" | |
1625 | fus.BottomSurface = "Smooth" | |
1626 | fus.Anchored = false | |
1627 | fus.CanCollide = false | |
1628 | fus.BrickColor = BrickColor.new("Bright purple") | |
1629 | fus.Transparency = 0.6 | |
1630 | fus.Reflectance = 0.5 | |
1631 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1632 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1633 | local f = Instance.new("Fire") | |
1634 | f.Name = "FusFire" | |
1635 | f.Size = fus:GetMass() | |
1636 | f.Heat = 0 | |
1637 | f.Color = Color3.new(0, 0, 0) | |
1638 | f.SecondaryColor = Color3.new(0, 0, 0) | |
1639 | f.Parent = fus | |
1640 | local mesh = Instance.new("SpecialMesh") | |
1641 | mesh.MeshType = "Sphere" | |
1642 | mesh.Parent = fus | |
1643 | local bp = Instance.new("BodyPosition") | |
1644 | bp.position = p.Character.Head.Position | |
1645 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1646 | bp.Parent = fus | |
1647 | fus.Parent = workspace | |
1648 | fus.Touched:connect(function(part) kriied(part, fus) end) | |
1649 | coroutine.resume(coroutine.create(function() | |
1650 | wait(0.5) | |
1651 | for i = 1, 19 do | |
1652 | wait(0.01) | |
1653 | local cf = fus.CFrame | |
1654 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1655 | f.Size = fus:GetMass()/2 | |
1656 | fus.CFrame = cf | |
1657 | end | |
1658 | wait(3) | |
1659 | for i = 1, 40 do | |
1660 | fus.Transparency = fus.Transparency + 0.1 | |
1661 | f.Size = f.Size - (fus:GetMass()/40) | |
1662 | wait(0.1) | |
1663 | end | |
1664 | wait() | |
1665 | fus.Transparency = 1 | |
1666 | f:remove() | |
1667 | fus:remove() | |
1668 | go = true | |
1669 | end)) | |
1670 | game:GetService("Debris"):AddItem(fus, 15) | |
1671 | elseif string.find(msg, "tiid klo ul") then | |
1672 | for a, b in pairs(game.Players:children()) do | |
1673 | if b.Character ~= nil and b ~= p then | |
1674 | for c, d in pairs(b.Character:children()) do | |
1675 | if d.className == "Part" then | |
1676 | if d.Anchored == false then | |
1677 | local cf = nil | |
1678 | if d.Name == "Torso" then | |
1679 | cf = d.CFrame | |
1680 | end | |
1681 | d.Anchored = true | |
1682 | coroutine.resume(coroutine.create(function() | |
1683 | wait(10) | |
1684 | if d ~= nil then | |
1685 | d.Anchored = false | |
1686 | d.CFrame = cf | |
1687 | end | |
1688 | end)) | |
1689 | end | |
1690 | elseif d.className == "Hat" then | |
1691 | if d.Handle.Anchored == false then | |
1692 | d.Handle.Anchored = true | |
1693 | coroutine.resume(coroutine.create(function() | |
1694 | wait(10) | |
1695 | if d ~= nil then | |
1696 | if d.Handle ~= nil then | |
1697 | d.Handle.Anchored = false | |
1698 | end | |
1699 | end | |
1700 | end)) | |
1701 | end | |
1702 | end | |
1703 | end | |
1704 | end | |
1705 | end | |
1706 | elseif string.find(msg, "faas ru maar") and go == true then | |
1707 | go = false | |
1708 | fus = Instance.new("Part") | |
1709 | fus.formFactor = "Custom" | |
1710 | fus.Size = Vector3.new(1, 1, 4) | |
1711 | fus.TopSurface = "Smooth" | |
1712 | fus.BottomSurface = "Smooth" | |
1713 | fus.Anchored = false | |
1714 | fus.CanCollide = false | |
1715 | fus.BrickColor = BrickColor.new("Really black") | |
1716 | fus.Transparency = 0.6 | |
1717 | fus.Reflectance = 0.5 | |
1718 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1719 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1720 | local f = Instance.new("Fire") | |
1721 | f.Name = "FusFire" | |
1722 | f.Size = fus:GetMass() | |
1723 | f.Heat = 0 | |
1724 | f.Color = Color3.new(0, 0, 0) | |
1725 | f.SecondaryColor = Color3.new(0, 0, 0) | |
1726 | f.Parent = fus | |
1727 | local mesh = Instance.new("SpecialMesh") | |
1728 | mesh.MeshType = "Sphere" | |
1729 | mesh.Parent = fus | |
1730 | local bp = Instance.new("BodyPosition") | |
1731 | bp.position = p.Character.Head.Position | |
1732 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1733 | bp.Parent = fus | |
1734 | fus.Parent = workspace | |
1735 | fus.Touched:connect(function(part) faased(part) end) | |
1736 | coroutine.resume(coroutine.create(function() | |
1737 | wait(0.5) | |
1738 | for i = 1, 19 do | |
1739 | wait(0.01) | |
1740 | local cf = fus.CFrame | |
1741 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1742 | f.Size = fus:GetMass()/2 | |
1743 | fus.CFrame = cf | |
1744 | end | |
1745 | wait(3) | |
1746 | for i = 1, 40 do | |
1747 | fus.Transparency = fus.Transparency + 0.1 | |
1748 | f.Size = f.Size - (fus:GetMass()/40) | |
1749 | wait(0.1) | |
1750 | end | |
1751 | wait() | |
1752 | fus.Transparency = 1 | |
1753 | f:remove() | |
1754 | fus:remove() | |
1755 | go = true | |
1756 | end)) | |
1757 | game:GetService("Debris"):AddItem(fus, 15) | |
1758 | elseif string.find(msg, "toor bah yol") and skygo == true then | |
1759 | skygo = false | |
1760 | local clouds = {} | |
1761 | function meteor(cloud) | |
1762 | local cf = CFrame.new(cloud.Position + Vector3.new(math.random(-10, 10), 20, math.random(-10, 10))) | |
1763 | local m = Instance.new("Part") | |
1764 | m.Name = "FusRock" | |
1765 | m.Shape = "Ball" | |
1766 | m.formFactor = "Symmetric" | |
1767 | m.Anchored = false | |
1768 | m.CanCollide = false | |
1769 | m.TopSurface = "Smooth" | |
1770 | m.BottomSurface = "Smooth" | |
1771 | local size = math.random(10, 20) | |
1772 | m.Size = Vector3.new(size, size, size) | |
1773 | m.BrickColor = BrickColor.new("Bright red") | |
1774 | m.Reflectance = 0.4 | |
1775 | m.CFrame = cf | |
1776 | Instance.new("Fire", m).Size = m:GetMass() | |
1777 | m.Velocity = Vector3.new(0, -50, 0) | |
1778 | m.Parent = workspace | |
1779 | game:GetService("Debris"):AddItem(m, 30) | |
1780 | m.Touched:connect(function(part) toored(part, m) end) | |
1781 | end | |
1782 | for i = 1, 100 do | |
1783 | game.Lighting.Brightness = game.Lighting.Brightness - 0.01 | |
1784 | wait(0.05) | |
1785 | end | |
1786 | game.Lighting.Brightness = 0 | |
1787 | local cloud = Instance.new("Part") | |
1788 | cloud.Name = "ToorCloud" | |
1789 | cloud.Size = Vector3.new(1, 1, 1) | |
1790 | cloud.Anchored = true | |
1791 | cloud.CanCollide = false | |
1792 | cloud.BrickColor = BrickColor.new("Black") | |
1793 | cloud.Transparency = 1 | |
1794 | local mesh = Instance.new("SpecialMesh") | |
1795 | mesh.MeshType = "FileMesh" | |
1796 | mesh.Scale = Vector3.new(math.random(100, 150), math.random(50, 100), math.random(100, 150)) | |
1797 | mesh.MeshId = "www.roblox.com/asset/?id=1095708" | |
1798 | mesh.Parent = cloud | |
1799 | for i = 1, (math.random(4, 8)) do | |
1800 | local newc = cloud:clone() | |
1801 | newc.Parent = workspace | |
1802 | game:GetService("Debris"):AddItem(newc, 180) | |
1803 | table.insert(clouds, newc) | |
1804 | newc.CFrame = CFrame.new(p.Character.Torso.Position + Vector3.new(math.random(-250, 250), math.random(150, 200), math.random(-250, 250))) | |
1805 | coroutine.resume(coroutine.create(function() | |
1806 | repeat | |
1807 | newc.Transparency = newc.Transparency - 0.01 | |
1808 | wait() | |
1809 | until newc.Transparency <= 0.2 | |
1810 | newc.Transparency = 0.2 | |
1811 | end)) | |
1812 | end | |
1813 | for launch = 1, math.random(20, 30) do | |
1814 | if skygo == true then break end | |
1815 | wait(math.random(2, 4)) | |
1816 | meteor(clouds[math.random(1, #clouds)]) | |
1817 | end | |
1818 | wait(1) | |
1819 | for c = 1, #clouds do | |
1820 | coroutine.resume(coroutine.create(function() | |
1821 | repeat | |
1822 | clouds[c].Transparency = clouds[c].Transparency + 0.01 | |
1823 | wait() | |
1824 | until clouds[c].Transparency >= 1 | |
1825 | clouds[c].Transparency = 1 | |
1826 | clouds[c]:remove() | |
1827 | end)) | |
1828 | end | |
1829 | repeat | |
1830 | game.Lighting.Brightness = game.Lighting.Brightness + 0.01 | |
1831 | wait(0.01) | |
1832 | until game.Lighting.Brightness >= 1 | |
1833 | game.Lighting.Brightness = 1 | |
1834 | skygo = true | |
1835 | elseif string.find(msg, "joor zah frul") and go == true then | |
1836 | go = false | |
1837 | fus = Instance.new("Part") | |
1838 | fus.formFactor = "Custom" | |
1839 | fus.Size = Vector3.new(1, 1, 4) | |
1840 | fus.TopSurface = "Smooth" | |
1841 | fus.BottomSurface = "Smooth" | |
1842 | fus.Anchored = false | |
1843 | fus.CanCollide = false | |
1844 | fus.BrickColor = BrickColor.new("Bright yellow") | |
1845 | fus.Transparency = 0.7 | |
1846 | fus.Reflectance = 0.5 | |
1847 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1848 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1849 | local f = Instance.new("Sparkles") | |
1850 | f.Name = "FusSparkles" | |
1851 | f.SparkleColor = Color3.new(0, 0, 0) | |
1852 | f.Parent = fus | |
1853 | local mesh = Instance.new("SpecialMesh") | |
1854 | mesh.MeshType = "Sphere" | |
1855 | mesh.Parent = fus | |
1856 | local bp = Instance.new("BodyPosition") | |
1857 | bp.position = p.Character.Head.Position | |
1858 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1859 | bp.Parent = fus | |
1860 | fus.Parent = workspace | |
1861 | fus.Touched:connect(function(part) joored(part, fus) end) | |
1862 | coroutine.resume(coroutine.create(function() | |
1863 | wait(0.5) | |
1864 | for i = 1, 19 do | |
1865 | wait(0.01) | |
1866 | local cf = fus.CFrame | |
1867 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1868 | fus.CFrame = cf | |
1869 | end | |
1870 | wait(3) | |
1871 | for i = 1, 40 do | |
1872 | fus.Transparency = fus.Transparency + 0.1 | |
1873 | wait(0.1) | |
1874 | end | |
1875 | wait() | |
1876 | fus.Transparency = 1 | |
1877 | f:remove() | |
1878 | fus:remove() | |
1879 | go = true | |
1880 | end)) | |
1881 | game:GetService("Debris"):AddItem(fus, 15) | |
1882 | elseif string.find(msg, "kaan drem ov") and go == true then | |
1883 | go = false | |
1884 | fus = Instance.new("Part") | |
1885 | fus.formFactor = "Custom" | |
1886 | fus.Size = Vector3.new(1, 1, 4) | |
1887 | fus.TopSurface = "Smooth" | |
1888 | fus.BottomSurface = "Smooth" | |
1889 | fus.Anchored = false | |
1890 | fus.CanCollide = false | |
1891 | fus.BrickColor = BrickColor.new("White") | |
1892 | fus.Transparency = 0.7 | |
1893 | fus.Reflectance = 0.5 | |
1894 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1895 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1896 | local f = Instance.new("Sparkles") | |
1897 | f.Name = "FusSparkles" | |
1898 | f.SparkleColor = Color3.new(1, 1, 1) | |
1899 | f.Parent = fus | |
1900 | local mesh = Instance.new("SpecialMesh") | |
1901 | mesh.MeshType = "Sphere" | |
1902 | mesh.Parent = fus | |
1903 | local bp = Instance.new("BodyPosition") | |
1904 | bp.position = p.Character.Head.Position | |
1905 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
1906 | bp.Parent = fus | |
1907 | fus.Parent = workspace | |
1908 | fus.Touched:connect(function(part) kaaned(part) end) | |
1909 | coroutine.resume(coroutine.create(function() | |
1910 | wait(0.5) | |
1911 | for i = 1, 19 do | |
1912 | wait(0.01) | |
1913 | local cf = fus.CFrame | |
1914 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
1915 | fus.CFrame = cf | |
1916 | end | |
1917 | wait(3) | |
1918 | for i = 1, 40 do | |
1919 | fus.Transparency = fus.Transparency + 0.1 | |
1920 | wait(0.1) | |
1921 | end | |
1922 | wait() | |
1923 | fus.Transparency = 1 | |
1924 | f:remove() | |
1925 | fus:remove() | |
1926 | go = true | |
1927 | end)) | |
1928 | game:GetService("Debris"):AddItem(fus, 15) | |
1929 | elseif string.find(msg, "ven mul riik") and skygo == true then | |
1930 | skygo = false | |
1931 | local l = game.Lighting | |
1932 | l.FogEnd = 1000 | |
1933 | coroutine.resume(coroutine.create(function() | |
1934 | repeat | |
1935 | l.FogEnd = l.FogEnd - 3 | |
1936 | wait() | |
1937 | until l.FogEnd < 50 | |
1938 | wait(10) | |
1939 | repeat | |
1940 | l.FogEnd = l.FogEnd + 5 | |
1941 | wait() | |
1942 | until l.FogEnd > 5000 | |
1943 | l.FogEnd = 10000 | |
1944 | skygo = true | |
1945 | end)) | |
1946 | elseif string.find(msg, "lok vah koor") and skygo == false and go == true then | |
1947 | skygo = true | |
1948 | --Not changing go because this is an instantaneous reaction. | |
1949 | coroutine.resume(coroutine.create(function() | |
1950 | local b = Instance.new("Part") | |
1951 | b.Shape = "Ball" | |
1952 | b.formFactor = "Symmetric" | |
1953 | b.Size = Vector3.new(1, 1, 1) | |
1954 | b.CFrame = p.Character.Torso.CFrame | |
1955 | b.TopSurface = "Smooth" | |
1956 | b.BottomSurface = "Smooth" | |
1957 | b.Anchored = true | |
1958 | b.CanCollide = false | |
1959 | b.Name = "LokBall" | |
1960 | b.BrickColor = BrickColor.new("White") | |
1961 | b.Parent = p.Character | |
1962 | game:GetService("Debris"):AddItem(b, 20) | |
1963 | repeat | |
1964 | b.Size = b.Size + Vector3.new(1, 1, 1) | |
1965 | b.CFrame = p.Character.Torso.CFrame | |
1966 | b.Transparency = b.Transparency + 1/29 | |
1967 | wait() | |
1968 | until b.Size.x == 30 | |
1969 | b:remove() | |
1970 | end)) | |
1971 | local l = game.Lighting | |
1972 | coroutine.resume(coroutine.create(function() | |
1973 | repeat | |
1974 | l.FogEnd = l.FogEnd + 5 | |
1975 | wait() | |
1976 | until l.FogEnd > 5000 | |
1977 | l.FogEnd = 10000 | |
1978 | end)) | |
1979 | elseif string.find(msg, "nahl daal vus") and go == true then | |
1980 | go = false | |
1981 | fus = Instance.new("Part") | |
1982 | fus.formFactor = "Custom" | |
1983 | fus.Size = Vector3.new(2, 2, 4) | |
1984 | fus.TopSurface = "Smooth" | |
1985 | fus.BottomSurface = "Smooth" | |
1986 | fus.Anchored = false | |
1987 | fus.CanCollide = false | |
1988 | fus.BrickColor = BrickColor.new("Bright green") | |
1989 | fus.Transparency = 0.7 | |
1990 | fus.Reflectance = 0.5 | |
1991 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
1992 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
1993 | local f = Instance.new("Sparkles") | |
1994 | f.Name = "FusSparkles" | |
1995 | f.SparkleColor = Color3.new(1, 1, 1) | |
1996 | f.Parent = fus | |
1997 | local mesh = Instance.new("SpecialMesh") | |
1998 | mesh.MeshType = "Sphere" | |
1999 | mesh.Parent = fus | |
2000 | local bp = Instance.new("BodyPosition") | |
2001 | bp.position = p.Character.Head.Position | |
2002 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
2003 | bp.Parent = fus | |
2004 | fus.Parent = workspace | |
2005 | fus.Touched:connect(function(part) nahled(part) end) | |
2006 | coroutine.resume(coroutine.create(function() | |
2007 | wait(0.5) | |
2008 | for i = 1, 19 do | |
2009 | wait(0.01) | |
2010 | local cf = fus.CFrame | |
2011 | fus.Size = fus.Size + Vector3.new(1, 1, -1) | |
2012 | fus.CFrame = cf | |
2013 | end | |
2014 | wait(3) | |
2015 | for i = 1, 40 do | |
2016 | fus.Transparency = fus.Transparency + 0.1 | |
2017 | wait(0.1) | |
2018 | end | |
2019 | wait() | |
2020 | fus.Transparency = 1 | |
2021 | f:remove() | |
2022 | fus:remove() | |
2023 | go = true | |
2024 | end)) | |
2025 | game:GetService("Debris"):AddItem(fus, 15) | |
2026 | elseif string.find(msg, "bex") and go == true then | |
2027 | go = false | |
2028 | fus = Instance.new("Part") | |
2029 | fus.formFactor = "Custom" | |
2030 | fus.Size = Vector3.new(1, 1, 4) | |
2031 | fus.TopSurface = "Smooth" | |
2032 | fus.BottomSurface = "Smooth" | |
2033 | fus.Anchored = false | |
2034 | fus.CanCollide = false | |
2035 | fus.BrickColor = BrickColor.new("White") | |
2036 | fus.Transparency = 0.7 | |
2037 | fus.Reflectance = 0.5 | |
2038 | fus.CFrame = p.Character.Head.CFrame * CFrame.new(0, 0, -4) | |
2039 | fus.Velocity = (p.Character.Head.Position - fus.Position).unit * -150 | |
2040 | local mesh = Instance.new("SpecialMesh") | |
2041 | mesh.MeshType = "Sphere" | |
2042 | mesh.Parent = fus | |
2043 | local bp = Instance.new("BodyPosition") | |
2044 | bp.position = p.Character.Head.Position | |
2045 | bp.maxForce = Vector3.new(0, math.huge, 0) | |
2046 | bp.Parent = fus | |
2047 | fus.Parent = workspace | |
2048 | fus.Touched:connect(function(part) bexed(part) end) | |
2049 | coroutine.resume(coroutine.create(function() | |
2050 | wait(1) | |
2051 | for i = 1, 40 do | |
2052 | fus.Transparency = fus.Transparency + 0.1 | |
2053 | wait(0.1) | |
2054 | end | |
2055 | wait() | |
2056 | fus.Transparency = 1 | |
2057 | fus:remove() | |
2058 | go = true | |
2059 | end)) | |
2060 | game:GetService("Debris"):AddItem(fus, 15) | |
2061 | end | |
2062 | end) | |
2063 | function bexed(part) | |
2064 | if part.Parent then | |
2065 | if part.Name == "Door" then | |
2066 | local d = part:clone() | |
2067 | coroutine.resume(coroutine.create(function() | |
2068 | repeat | |
2069 | part.Transparency = part.Transparency + 0.05 | |
2070 | wait() | |
2071 | until part.Transparency >= 1 | |
2072 | part.Anchored = true | |
2073 | part.CanCollide = false | |
2074 | wait(3) | |
2075 | repeat | |
2076 | part.Transparency = part.Transparency - 0.05 | |
2077 | wait() | |
2078 | until part.Transparency <= d.Transparency | |
2079 | part.Transparency = d.Transparency | |
2080 | if d.CanCollide == true then | |
2081 | part.CanCollide = true | |
2082 | end | |
2083 | if d.Anchored == true then | |
2084 | part.Anchored = d.Anchored | |
2085 | end | |
2086 | end)) | |
2087 | end | |
2088 | end | |
2089 | end | |
2090 | function nahled(part) | |
2091 | if workspace:findFirstChild("Base") ~= nil then | |
2092 | if part.Parent then | |
2093 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil and part.Parent ~= p.Character then | |
2094 | part.Parent.Torso.CFrame = workspace.Base.CFrame * CFrame.new(0, 5, 0) | |
2095 | end | |
2096 | end | |
2097 | end | |
2098 | end | |
2099 | function kaaned(part) | |
2100 | if part.Parent then | |
2101 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil and part.Parent ~= p.Character then | |
2102 | if part.Parent:findFirstChild("Kaaned") == nil then | |
2103 | local k = Instance.new("IntValue", part.Parent) | |
2104 | k.Name = "Kaaned" | |
2105 | game:GetService("Debris"):AddItem(k, 2) | |
2106 | local hum = part.Parent.Humanoid | |
2107 | local speed = hum.WalkSpeed | |
2108 | coroutine.resume(coroutine.create(function() | |
2109 | hum.WalkSpeed = 0 | |
2110 | wait(10) | |
2111 | hum.WalkSpeed = speed | |
2112 | end)) | |
2113 | end | |
2114 | end | |
2115 | end | |
2116 | end | |
2117 | function joored(part, shout) | |
2118 | shout.Anchored = false | |
2119 | shout.CanCollide = false | |
2120 | if part.Parent then | |
2121 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil and part.Parent ~= p.Character then | |
2122 | if part.Parent:findFirstChild("Joored") == nil then | |
2123 | local j = Instance.new("IntValue", part.Parent) | |
2124 | j.Name = "Joored" | |
2125 | game:GetService("Debris"):AddItem(j, 2) | |
2126 | local hum = part.Parent.Humanoid | |
2127 | tag(hum) | |
2128 | hum.Parent:BreakJoints() | |
2129 | for a, b in pairs(hum.Parent:children()) do | |
2130 | if b.className == "Part" then | |
2131 | b.Velocity = (p.Character.Torso.Position - b.Position).unit * -50 | |
2132 | local f = Instance.new("Fire", b) | |
2133 | f.Color = Color3.new(0, 0, 0) | |
2134 | f.SecondaryColor = Color3.new(0, 0, 0) | |
2135 | f.Heat = 0 | |
2136 | f.Size = ":GetMass()" | |
2137 | local bf = Instance.new("BodyVelocity") | |
2138 | bf.Parent = b | |
2139 | bf.P = 196*b:GetMass() | |
2140 | bf.maxForce = Vector3.new(0, 196*b:GetMass(), 0) | |
2141 | bf.velocity = Vector3.new(0, 196*b:GetMass(), 0) | |
2142 | elseif b.className == "Hat" then | |
2143 | local b = b.Handle | |
2144 | b.Velocity = (p.Character.Torso.Position - b.Position).unit * -50 | |
2145 | local f = Instance.new("Fire", b) | |
2146 | f.Color = Color3.new(0, 0, 0) | |
2147 | f.SecondaryColor = Color3.new(0, 0, 0) | |
2148 | f.Heat = 0 | |
2149 | f.Size = 3 | |
2150 | local bf = Instance.new("BodyVelocity") | |
2151 | bf.Parent = b | |
2152 | bf.P = 196*b:GetMass() | |
2153 | bf.maxForce = Vector3.new(0, 196*b:GetMass(), 0) | |
2154 | bf.velocity = Vector3.new(0, 196*b:GetMass(), 0) | |
2155 | elseif b.className == "ForceField" then | |
2156 | b:remove() | |
2157 | local e = Instance.new("Explosion", hum.Parent.Torso) | |
2158 | e.BlastRadius = 1 | |
2159 | e.BlastPressure = 1 | |
2160 | e.position = hum.Parent.Torso.Position | |
2161 | end | |
2162 | end | |
2163 | end | |
2164 | end | |
2165 | end | |
2166 | end | |
2167 | function toored(part, m) | |
2168 | if part.Name ~= "FusRock" and part.Name ~= "ToorCloud" and part.CanCollide == true then | |
2169 | m.Anchored = true | |
2170 | m.CanCollide = true | |
2171 | if m:findFirstChild("Touched") == nil then | |
2172 | Instance.new("IntValue", m).Name = "Touched" | |
2173 | m.CFrame = CFrame.new(m.Position.x, part.Position.y, m.Position.z) | |
2174 | end | |
2175 | local e = Instance.new("Explosion") | |
2176 | e.BlastPressure = 50000 | |
2177 | e.BlastRadius = 15 | |
2178 | e.Position = m.Position | |
2179 | e.Parent = m | |
2180 | e.Hit:connect(function(hit) | |
2181 | if hit.Parent then | |
2182 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2183 | tag(hit.Parent.Humanoid) | |
2184 | end | |
2185 | end | |
2186 | end) | |
2187 | end | |
2188 | end | |
2189 | function faased(part) | |
2190 | if part.Parent then | |
2191 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild("Torso") ~= nil then | |
2192 | if part.Parent:findFirstChild("Faased") == nil then | |
2193 | local f = Instance.new("IntValue", part.Parent) | |
2194 | f.Name = "Faased" | |
2195 | game:GetService("Debris"):AddItem(f, 2) | |
2196 | local hum = part.Parent.Humanoid | |
2197 | local speed = hum.WalkSpeed --Speed prior to fleeing | |
2198 | hum.WalkSpeed = speed * -1 | |
2199 | game:GetService("Chat"):Chat(hum.Parent.Head, "Ahh!!!", "Red") | |
2200 | for i = 1, 10 do | |
2201 | hum:MoveTo(hum.Parent.Torso.Position + Vector3.new(math.random(-30, 30), 0, math.random(-30, 20)), hum.Parent.Torso) | |
2202 | wait(math.random(1, 2)) | |
2203 | end | |
2204 | hum.WalkSpeed = speed | |
2205 | hum:MoveTo(hum.Parent.Torso.Position, hum.Parent.Torso) | |
2206 | end | |
2207 | end | |
2208 | end | |
2209 | end | |
2210 | function struned(part, lightning) | |
2211 | if part.Parent then | |
2212 | if part.Parent:findFirstChild("Humanoid") ~= nil then | |
2213 | local hum = part.Parent.Humanoid | |
2214 | tag(part.Parent.Humanoid) | |
2215 | local e = Instance.new("Explosion") | |
2216 | e.position = part.Position | |
2217 | e.BlastPressure = 35000 | |
2218 | e.BlastRadius = 2 | |
2219 | e.Parent = part | |
2220 | hum:TakeDamage(math.huge) | |
2221 | for a, b in pairs(hum.Parent:children()) do | |
2222 | if b.className == "Part" then | |
2223 | Instance.new("Fire", part).Size = part:GetMass() | |
2224 | end | |
2225 | end | |
2226 | end | |
2227 | end | |
2228 | end | |
2229 | function kriied(part, shout) | |
2230 | if part.Parent then | |
2231 | if part.Parent == p.Character then return end | |
2232 | if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent:findFirstChild(p.Name.. "Kriied") == nil then | |
2233 | Instance.new("IntValue", part.Parent).Name = p.Name.. "Kriied" | |
2234 | local hum = part.Parent.Humanoid | |
2235 | hum.MaxHealth = hum.MaxHealth - 75 | |
2236 | hum.Health = hum.MaxHealth | |
2237 | for i = 1, 60 do | |
2238 | tag(part.Parent.Humanoid) | |
2239 | hum:TakeDamage(1.5) | |
2240 | wait(1) | |
2241 | end | |
2242 | hum.MaxHealth = hum.MaxHealth + 75 | |
2243 | end | |
2244 | end | |
2245 | end | |
2246 | function zuned(part, shout) | |
2247 | if part.Parent == p.Character then return end | |
2248 | if part.Parent then | |
2249 | if part.Parent:findFirstChild("Humanoid") ~= nil then | |
2250 | for a, b in pairs(part.Parent:children()) do | |
2251 | if b.className == "Tool" then | |
2252 | if b:findFirstChild("Handle") ~= nil then | |
2253 | b.Parent = workspace | |
2254 | wait() | |
2255 | b.Handle.Velocity = (b.Handle.Position - p.Character.Torso.Position).unit * -100 | |
2256 | repeat | |
2257 | shout.Size = shout.Size - Vector3.new(1, 1, 1) | |
2258 | wait(0.1) | |
2259 | until shout.Shout.Size == Vector3.new(1, 1, 1) | |
2260 | shout:remove() | |
2261 | end | |
2262 | end | |
2263 | end | |
2264 | end | |
2265 | end | |
2266 | end | |
2267 | function foed(part, shout) | |
2268 | if part.Parent == p.Character then return end | |
2269 | if part.Parent:findFirstChild("Humanoid") ~= nil then | |
2270 | local hum = part.Parent.Humanoid | |
2271 | hum.Sit = true | |
2272 | hum:TakeDamage(7.5) | |
2273 | if hum.Parent:findFirstChild(p.Name.. "Foed") == nil then | |
2274 | hum.WalkSpeed = 8 | |
2275 | local foer = Instance.new("IntValue", workspace) | |
2276 | foer.Name = p.Name.. "Foed" | |
2277 | game:GetService("Debris"):AddItem(foer, 2) | |
2278 | wait(5) | |
2279 | hum.WalkSpeed = 16 | |
2280 | hum.Sit = false | |
2281 | end | |
2282 | shout:remove() | |
2283 | end | |
2284 | end | |
2285 | function yoled(part) | |
2286 | if part.Parent == p.Character then return end | |
2287 | if part.Parent:findFirstChild("Humanoid") ~= nil then | |
2288 | local f = Instance.new("Fire", part) | |
2289 | f.Size = part:GetMass() | |
2290 | f.Heat = 100 | |
2291 | game:GetService("Debris"):AddItem(f, 10) | |
2292 | if part:findFirstChild(p.Name.. "Yoled") == nil then | |
2293 | local tag = Instance.new("IntValue") | |
2294 | tag.Name = p.Name.. "Yoled" | |
2295 | tag.Parent = part | |
2296 | game:GetService("Debris"):AddItem(tag, 2) | |
2297 | end | |
2298 | tag(part.Parent.Humanoid) | |
2299 | part.Parent.Humanoid:TakeDamage(7.5) | |
2300 | end | |
2301 | end | |
2302 | function lized(part) | |
2303 | if part.Parent then | |
2304 | if part.Parent == p.Character then return end | |
2305 | if part.Parent:findFirstChild("Humanoid") ~= nil then | |
2306 | if part.Parent:findFirstChild("Lized") ~= nil then return end | |
2307 | local Lizvictim = Instance.new("IntValue") | |
2308 | Lizvictim.Name = "Lized" | |
2309 | Lizvictim.Parent = part.Parent | |
2310 | game:GetService("Debris"):AddItem(Lizvictim, 10) | |
2311 | part.Parent.Animate.Disabled = true | |
2312 | part.Parent.Humanoid.PlatformStand = true | |
2313 | local speed = part.Parent.Humanoid.WalkSpeed | |
2314 | part.Parent.Humanoid.WalkSpeed = 0 | |
2315 | wait(0.01) | |
2316 | part.Parent.Torso.Velocity = (fus.Position - part.Parent.Torso.Position).unt * -50 | |
2317 | tag(part.Parent.Humanoid) | |
2318 | part.Parent.Humanoid:TakeDamage(part.Parent.Humanoid.MaxHealth/2) | |
2319 | for a, b in pairs(part.Parent:children()) do | |
2320 | if b:findFirstChild("Fire") ~= nil then | |
2321 | b.Fire:remove() | |
2322 | end | |
2323 | local frost = Instance.new("Part") | |
2324 | frost.Name = "Frost" | |
2325 | frost.formFactor = "Custom" | |
2326 | frost.BrickColor = BrickColor.new("Pastel blue-green") | |
2327 | frost.Reflectance = 0.5 | |
2328 | frost.Transparency = 0.6 | |
2329 | frost.Anchored = false | |
2330 | frost.CanCollide = true | |
2331 | if b.className == "Part" then | |
2332 | frost.Size = b.Size + Vector3.new(0.5, 0.5, 0.5) | |
2333 | local w = Instance.new("Weld") | |
2334 | w.Part0 = b | |
2335 | w.Part1 = frost | |
2336 | w.Parent = frost | |
2337 | frost.Parent = part.Parent | |
2338 | game:GetService("Debris"):AddItem(frost, 10) | |
2339 | end | |
2340 | end | |
2341 | wait(10) | |
2342 | part.Parent.Humanoid.PlatformStand = false | |
2343 | part.Parent.Animate.Disabled = false | |
2344 | part.Parent.Humanoid.WalkSpeed = speed | |
2345 | end | |
2346 | end | |
2347 | end | |
2348 | function fused(part) | |
2349 | if part.Parent then | |
2350 | if part.Parent == p.Character then return end | |
2351 | if part.Parent:findFirstChild("Humanoid") ~= nil then | |
2352 | if part.Parent:findFirstChild(p.Name.. "Fused") ~= nil then return end | |
2353 | local fusvictim = Instance.new("IntValue") | |
2354 | fusvictim.Name = p.Name.. "Fused" | |
2355 | fusvictim.Parent = part.Parent | |
2356 | game:GetService("Debris"):AddItem(fusvictim, 2) | |
2357 | part.Parent.Humanoid.Sit = true | |
2358 | tag(part.Parent.Humanoid) | |
2359 | part.Parent.Humanoid:TakeDamage(part.Parent.Humanoid.MaxHealth/4) | |
2360 | for a, b in pairs(part.Parent:children()) do | |
2361 | if b.className == "Part" then | |
2362 | b.Velocity = fus.Velocity | |
2363 | elseif b.className == "Hat" then | |
2364 | b.Handle.Velocity = fus.Velocity | |
2365 | end | |
2366 | end | |
2367 | wait(2) | |
2368 | part.Parent.Humanoid.Sit = false | |
2369 | elseif part.Anchored == false and part.Parent:findFirstChild("Humanoid") == nil then | |
2370 | part.Velocity = fus.Velocity | |
2371 | end | |
2372 | end | |
2373 | end | |
2374 | function tag(victim) | |
2375 | local creator_tag = Instance.new("ObjectValue") | |
2376 | creator_tag.Value = p | |
2377 | creator_tag.Name = "creator" | |
2378 | creator_tag.Parent = victim | |
2379 | game:GetService("Debris"):AddItem(creator_tag, 1) | |
2380 | end | |
2381 | --[Skyrim Shouting Rules.]]-- |