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