SHOW:
|
|
- or go back to the newest paste.
1 | This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | --------------------------- | |
87 | --/ \-- | |
88 | -- Script By: 123jl123 -- | |
89 | --\ /-- | |
90 | --------------------------- | |
91 | --local remote = NS ([=[ | |
92 | ||
93 | local TweenService = game:GetService("TweenService") | |
94 | local RbxUtility = LoadLibrary("RbxUtility") | |
95 | local Create = RbxUtility.Create | |
96 | ||
97 | ||
98 | ||
99 | local Player = game:GetService("Players"):WaitForChild(script.PlayerName.Value) | |
100 | if Player.Character == nil then | |
101 | while Player.Character == nil do wait() | |
102 | ||
103 | end end | |
104 | ||
105 | EffectPack = script.Extras:Clone() | |
106 | script.Extras:Destroy() | |
107 | ||
108 | ZTfade=false | |
109 | ZT=false | |
110 | OverClocking = false | |
111 | local Jets = false | |
112 | MHIT = Vector3.new() | |
113 | Character= Player.Character | |
114 | Torso = Character.Torso | |
115 | Head = Character.Head | |
116 | Humanoid = Character.Humanoid | |
117 | LeftArm = Character["Left Arm"] | |
118 | LeftLeg = Character["Left Leg"] | |
119 | RightArm = Character["Right Arm"] | |
120 | RightLeg = Character["Right Leg"] | |
121 | RootPart = Character["HumanoidRootPart"] | |
122 | local Anim="Idle" | |
123 | local inairvel=0 | |
124 | local WalkAnimStep = 0 | |
125 | local sine = 0 | |
126 | local change = 1 | |
127 | Animstep = 0 | |
128 | WalkAnimMove=0.1 | |
129 | Combo = 0 | |
130 | local attack=false | |
131 | local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint") | |
132 | local Neck = Character.Torso:FindFirstChild("Neck") | |
133 | local visn = 0 | |
134 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
135 | local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
136 | IsXray = false | |
137 | ||
138 | local forWFB = 0 | |
139 | local forWRL = 0 | |
140 | FF = Instance.new("ForceField",Character) | |
141 | FF.Visible = false | |
142 | FF.Name = "FatForce" | |
143 | Effects=Instance.new("Folder",Character) | |
144 | Effects.Name="Effects" | |
145 | it=Instance.new | |
146 | vt=Vector3.new | |
147 | cf=CFrame.new | |
148 | euler=CFrame.fromEulerAnglesXYZ | |
149 | angles=CFrame.Angles | |
150 | local cn = CFrame.new | |
151 | mr=math.rad | |
152 | mememode=false | |
153 | IT = Instance.new | |
154 | CF = CFrame.new | |
155 | VT = Vector3.new | |
156 | RAD = math.rad | |
157 | C3 = Color3.new | |
158 | UD2 = UDim2.new | |
159 | BRICKC = BrickColor.new | |
160 | ANGLES = CFrame.Angles | |
161 | EULER = CFrame.fromEulerAnglesXYZ | |
162 | COS = math.cos | |
163 | ACOS = math.acos | |
164 | SIN = math.sin | |
165 | ASIN = math.asin | |
166 | ABS = math.abs | |
167 | MRANDOM = math.random | |
168 | FLOOR = math.floor | |
169 | ||
170 | local lastid= "http://www.roblox.com/asset/?id=146364977" | |
171 | local s2=it("Sound",Torso) | |
172 | local CurId = 1 | |
173 | s2.EmitterSize = 30 | |
174 | local s2c=s2:Clone() | |
175 | ||
176 | playsong = true | |
177 | ||
178 | s2.SoundId = lastid | |
179 | if playsong == true then | |
180 | s2:play() | |
181 | elseif playsong == false then | |
182 | s2:stop() | |
183 | end | |
184 | lastsongpos= 0 | |
185 | ||
186 | crosshair = Instance.new("BillboardGui",Character) | |
187 | crosshair.Size = UDim2.new(10,0,10,0) | |
188 | crosshair.Enabled = false | |
189 | imgl = Instance.new("ImageLabel",crosshair) | |
190 | imgl.Position = UDim2.new(0,0,0,0) | |
191 | imgl.Size = UDim2.new(1,0,1,0) | |
192 | imgl.Image = "rbxassetid://578065407" | |
193 | imgl.BackgroundTransparency = 1 | |
194 | imgl.ImageTransparency = .7 | |
195 | imgl.ImageColor3 = Color3.new(1,1,1) | |
196 | crosshair.StudsOffset = Vector3.new(0,0,-1) | |
197 | ||
198 | --//=================================\\ | |
199 | --|| LOCAL IDS | |
200 | --\\=================================// | |
201 | ||
202 | local GROWL = 1544355717 | |
203 | local ROAR = 528589382 | |
204 | local ECHOBLAST = 376976397 | |
205 | local CAST = 459523898 | |
206 | local ALCHEMY = 424195979 | |
207 | local BUILDUP = 698824317 | |
208 | local BIGBUILDUP = 874376217 | |
209 | local IMPACT = 231917744 | |
210 | local LARGE_EXPLOSION = 168513088 | |
211 | local TURNUP = 299058146 | |
212 | ||
213 | if Character:FindFirstChild("Animate")then | |
214 | Character.Animate:Destroy() | |
215 | end | |
216 | ||
217 | function RemoveOutlines(part) | |
218 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
219 | end | |
220 | ||
221 | ||
222 | ||
223 | ||
224 | CFuncs = { | |
225 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
226 | ||
227 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
228 | RemoveOutlines(Part) | |
229 | return Part | |
230 | end | |
231 | } | |
232 | , | |
233 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
234 | ||
235 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
236 | if Mesh == "SpecialMesh" then | |
237 | Msh.MeshType = MeshType | |
238 | Msh.MeshId = MeshId | |
239 | end | |
240 | return Msh | |
241 | end | |
242 | } | |
243 | , | |
244 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
245 | ||
246 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
247 | if Mesh == "SpecialMesh" then | |
248 | Msh.MeshType = MeshType | |
249 | Msh.MeshId = MeshId | |
250 | end | |
251 | return Msh | |
252 | end | |
253 | } | |
254 | , | |
255 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
256 | ||
257 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
258 | return Weld | |
259 | end | |
260 | } | |
261 | , | |
262 | Sound = {Create = function(id, par, vol, pit) | |
263 | ||
264 | coroutine.resume(coroutine.create(function() | |
265 | ||
266 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace}) | |
267 | wait() | |
268 | S:play() | |
269 | game:GetService("Debris"):AddItem(S, 6) | |
270 | end | |
271 | )) | |
272 | end | |
273 | } | |
274 | , | |
275 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
276 | ||
277 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) | |
278 | return fp | |
279 | end | |
280 | } | |
281 | } | |
282 | ||
283 | ||
284 | ||
285 | ||
286 | ||
287 | coroutine.resume(coroutine.create(function() | |
288 | if Head:FindFirstChildOfClass("Decal") then | |
289 | local face = Head:FindFirstChildOfClass("Decal") | |
290 | face:Destroy() | |
291 | end | |
292 | ||
293 | end)) | |
294 | ||
295 | ||
296 | ||
297 | ||
298 | ||
299 | ||
300 | ||
301 | for i, v in pairs(Character:GetDescendants()) do | |
302 | if v:IsA("Accessory") or v:IsA("Sound") then | |
303 | v:Destroy() | |
304 | end | |
305 | end | |
306 | coroutine.resume(coroutine.create(function() | |
307 | Character:WaitForChild("Sound"):Destroy() | |
308 | end)) | |
309 | ||
310 | ||
311 | --139248234 | |
312 | --//=================================\\ | |
313 | --|| SAZERENOS ARTIFICIAL HEARTBEAT | |
314 | --\\=================================// | |
315 | Frame_Speed = 1 / 30 | |
316 | ArtificialHB = Instance.new("BindableEvent", script) | |
317 | ArtificialHB.Name = "ArtificialHB" | |
318 | ||
319 | script:WaitForChild("ArtificialHB") | |
320 | ||
321 | frame = Frame_Speed | |
322 | tf = 0 | |
323 | allowframeloss = false | |
324 | tossremainder = false | |
325 | lastframe = tick() | |
326 | script.ArtificialHB:Fire() | |
327 | ||
328 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
329 | tf = tf + s | |
330 | if tf >= frame then | |
331 | if allowframeloss then | |
332 | script.ArtificialHB:Fire() | |
333 | lastframe = tick() | |
334 | else | |
335 | for i = 1, math.floor(tf / frame) do | |
336 | script.ArtificialHB:Fire() | |
337 | end | |
338 | lastframe = tick() | |
339 | end | |
340 | if tossremainder then | |
341 | tf = 0 | |
342 | else | |
343 | tf = tf - frame * math.floor(tf / frame) | |
344 | end | |
345 | end | |
346 | end) | |
347 | ||
348 | --//=================================\\ | |
349 | --\\=================================// | |
350 | ||
351 | function Swait(NUMBER) | |
352 | if NUMBER == 0 or NUMBER == nil then | |
353 | ArtificialHB.Event:wait() | |
354 | else | |
355 | for i = 1, NUMBER do | |
356 | ArtificialHB.Event:wait() | |
357 | end | |
358 | end | |
359 | end | |
360 | ||
361 | ||
362 | --------------- | |
363 | --[Functions]-- | |
364 | --------------- | |
365 | so = function(id, par, vol, pit) | |
366 | ||
367 | CFuncs.Sound.Create(id, par, vol, pit) | |
368 | ||
369 | ||
370 | end | |
371 | ||
372 | function weld(parent,part0,part1,c0) | |
373 | local weld=it("Weld") | |
374 | weld.Parent=parent | |
375 | weld.Part0=part0 | |
376 | weld.Part1=part1 | |
377 | weld.C0=c0 | |
378 | return weld | |
379 | end | |
380 | function joint(parent,part0,part1,c0) | |
381 | local weld=it("Motor6D") | |
382 | weld.Parent=parent | |
383 | weld.Part0=part0 | |
384 | weld.Part1=part1 | |
385 | weld.C0=c0 | |
386 | return weld | |
387 | end | |
388 | ArmorParts = {} | |
389 | --ArmorParts = {} | |
390 | function WeldAllTo(Part1,Part2,scan,Extra) | |
391 | local EXCF = Part2.CFrame * Extra | |
392 | for i, v3 in pairs(scan:GetDescendants()) do | |
393 | if v3:isA("BasePart") then | |
394 | local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() ) | |
395 | v3.Anchored=false | |
396 | v3.Massless = true | |
397 | v3.CanCollide=false | |
398 | v3.Parent = Part1 | |
399 | v3.Locked = true | |
400 | if not v3:FindFirstChild("Destroy") then | |
401 | table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name }) | |
402 | else | |
403 | v3:Destroy() | |
404 | end | |
405 | end | |
406 | end | |
407 | Part1.Transparency=1 | |
408 | --Part2:Destroy() | |
409 | end | |
410 | ||
411 | ||
412 | ||
413 | function JointAllTo(Part1,Part2,scan,Extra) | |
414 | local EXCF = Part2.CFrame * Extra | |
415 | for i, v3 in pairs(scan:GetDescendants()) do | |
416 | if v3:isA("BasePart") then | |
417 | local STW=joint(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() ) | |
418 | v3.Anchored=false | |
419 | v3.Massless = true | |
420 | v3.CanCollide=false | |
421 | v3.Parent = Part1 | |
422 | v3.Locked = true | |
423 | if not v3:FindFirstChild("Destroy") then | |
424 | -- table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name }) | |
425 | else | |
426 | v3:Destroy() | |
427 | end | |
428 | end | |
429 | end | |
430 | Part1.Transparency=1 | |
431 | --Part2:Destroy() | |
432 | end | |
433 | ||
434 | ||
435 | ||
436 | ||
437 | ||
438 | ||
439 | ||
440 | --------------------------------------------H1a | |
441 | local ChestPart = EffectPack.Part:Clone() | |
442 | ChestPart.Parent = Character | |
443 | ChestPart.Name = "H1a" | |
444 | H1a=weld(Torso,Torso,ChestPart,cf(0,.5,-.4)) | |
445 | ||
446 | --------------------------------------------MissileBox | |
447 | local MissileBox = EffectPack.Part:Clone() | |
448 | MissileBox.Parent = Character | |
449 | MissileBox.Name = "MissileBox" | |
450 | MX1w=weld(Torso,Torso,MissileBox,cf(0,-.7,-.25)) | |
451 | --------------------------------------------FlameThrower | |
452 | ||
453 | local FlameThrower = EffectPack.Part:Clone() | |
454 | FlameThrower.Parent = Character | |
455 | FlameThrower.Name = "FlameThrower" | |
456 | FlameW=weld(RightArm,RightArm,FlameThrower,cf(0,0,0)) | |
457 | --------------------------------------------Hand | |
458 | local Finger1 = EffectPack.Part:Clone() | |
459 | Finger1.Parent = Character | |
460 | Finger1.Name = "RightLow1" | |
461 | Fg1=weld(RightArm,RightArm,Finger1,cf(0,0,0)) | |
462 | --------------------------------------------Hand | |
463 | local Finger2 = EffectPack.Part:Clone() | |
464 | Finger2.Parent = Character | |
465 | Finger2.Name = "RightLow2" | |
466 | Fg2=weld(RightArm,RightArm,Finger2,cf(0,0,0)) | |
467 | --------------------------------------------Hand | |
468 | local Finger3 = EffectPack.Part:Clone() | |
469 | Finger3.Parent = Character | |
470 | Finger3.Name = "RightLow3" | |
471 | Fg3=weld(RightArm,RightArm,Finger3,cf(0,0,0)) | |
472 | --------------------------------------------Hand | |
473 | local Finger4 = EffectPack.Part:Clone() | |
474 | Finger4.Parent = Character | |
475 | Finger4.Name = "RightLow4" | |
476 | Fg4=weld(RightArm,RightArm,Finger4,cf(0,0,0)) | |
477 | --------------------------------------------Boot | |
478 | local Boot1 = EffectPack.Part:Clone() | |
479 | Boot1.Parent = Character | |
480 | Boot1.Name = "RightFrontBoot" | |
481 | RB1=weld(RightLeg,RightLeg,Boot1,cf(0,0,0)) | |
482 | --------------------------------------------Boot | |
483 | local Boot2 = EffectPack.Part:Clone() | |
484 | Boot2.Parent = Character | |
485 | Boot2.Name = "RightBackBoot" | |
486 | RB2=weld(RightLeg,RightLeg,Boot2,cf(0,0,0)) | |
487 | --------------------------------------------Boot | |
488 | local Boot3 = EffectPack.Part:Clone() | |
489 | Boot3.Parent = Character | |
490 | Boot3.Name = "LeftFrontBoot" | |
491 | LB1=weld(LeftLeg,LeftLeg,Boot3,cf(0,0,0)) | |
492 | --------------------------------------------Boot | |
493 | local Boot4 = EffectPack.Part:Clone() | |
494 | Boot4.Parent = Character | |
495 | Boot4.Name = "LeftBackBoot" | |
496 | LB2=weld(LeftLeg,LeftLeg,Boot4,cf(0,0,0)) | |
497 | --------------------------------------------LeftHand | |
498 | local LHP = EffectPack.Part:Clone() | |
499 | LHP.Parent = Character | |
500 | LHP.Name = "LeftHand" | |
501 | LHP2=weld(LeftArm,LeftArm,LHP,cf(0,0,0)) | |
502 | --------------------------------------------end | |
503 | ||
504 | ||
505 | for _,v in pairs(script.Armor:children()) do | |
506 | if v:IsA("Model") then | |
507 | ||
508 | if Character:FindFirstChild(""..v.Name) then | |
509 | local Part1=Character:FindFirstChild(""..v.Name) | |
510 | local Part2=v.Handle | |
511 | ||
512 | WeldAllTo(Part1,Part2,v,CFrame.new(0,0,0)) | |
513 | ||
514 | end | |
515 | ||
516 | ||
517 | end | |
518 | end | |
519 | ||
520 | rayCast = function(Pos, Dir, Max, Ignore) | |
521 | ||
522 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
523 | end | |
524 | ||
525 | function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime) | |
526 | local MoveStyle = Enum.EasingStyle[MoveStyle2] | |
527 | local outorin = Enum.EasingDirection[outorin2] | |
528 | ||
529 | ||
530 | local dahspeed=1 | |
531 | if attack == true and mememode == true then | |
532 | dahspeed=5 | |
533 | end | |
534 | ||
535 | if SPart.Name=="Bullet" then | |
536 | dahspeed=1 | |
537 | end | |
538 | ||
539 | local tweeningInformation = TweenInfo.new( | |
540 | AnimTime/dahspeed, | |
541 | MoveStyle, | |
542 | outorin, | |
543 | 0, | |
544 | false, | |
545 | 0 | |
546 | ) | |
547 | local MoveCF = CFr | |
548 | local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF) | |
549 | tweenanim:Play() | |
550 | end | |
551 | ||
552 | function GatherAllInstances(Parent,ig) | |
553 | local Instances = {} | |
554 | local Ignore=nil | |
555 | if ig ~= nil then | |
556 | Ignore = ig | |
557 | end | |
558 | ||
559 | local function GatherInstances(Parent,Ignore) | |
560 | for i, v in pairs(Parent:GetChildren()) do | |
561 | ||
562 | if v ~= Ignore then | |
563 | GatherInstances(v,Ignore) | |
564 | table.insert(Instances, v) end | |
565 | end | |
566 | end | |
567 | GatherInstances(Parent,Ignore) | |
568 | return Instances | |
569 | end | |
570 | ||
571 | ||
572 | ||
573 | ||
574 | ||
575 | ||
576 | ||
577 | ||
578 | ||
579 | function WeldAllTo(Part1,Part2,Extra) | |
580 | ||
581 | local EXCF = Part2.CFrame * Extra | |
582 | ||
583 | for i, v3 in pairs(GatherAllInstances(Part2)) do | |
584 | if v3:isA("BasePart") then | |
585 | ||
586 | ||
587 | local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() ) | |
588 | ||
589 | ||
590 | v3.Anchored=false | |
591 | --v3.Transparency=0 | |
592 | v3.CanCollide=false | |
593 | ||
594 | v3.Parent = Part1 | |
595 | ||
596 | end | |
597 | end | |
598 | ||
599 | ||
600 | Part2:Destroy() | |
601 | ||
602 | end | |
603 | local SToneTexture = Create("Texture")({ | |
604 | ||
605 | ||
606 | Texture = "http://www.roblox.com/asset/?id=1693385655", | |
607 | Color3 = Color3.new(17/255, 17/255, 17/255), | |
608 | ||
609 | }) | |
610 | ||
611 | function AddStoneTexture(part) | |
612 | coroutine.resume(coroutine.create(function() | |
613 | for i = 0,6,1 do | |
614 | local Tx = SToneTexture:Clone() | |
615 | Tx.Face = i | |
616 | Tx.Parent=part | |
617 | end | |
618 | end)) | |
619 | end | |
620 | ||
621 | New = function(Object, Parent, Name, Data) | |
622 | local Object = Instance.new(Object) | |
623 | for Index, Value in pairs(Data or {}) do | |
624 | Object[Index] = Value | |
625 | end | |
626 | Object.Parent = Parent | |
627 | Object.Name = Name | |
628 | return Object | |
629 | end | |
630 | ||
631 | ||
632 | ||
633 | function Tran(Num) | |
634 | local GivenLeter = "" | |
635 | if Num == "1" then | |
636 | GivenLeter = "a" | |
637 | elseif Num == "2" then | |
638 | GivenLeter = "b" | |
639 | elseif Num == "3" then | |
640 | GivenLeter = "c" | |
641 | elseif Num == "4" then | |
642 | GivenLeter = "d" | |
643 | elseif Num == "5" then | |
644 | GivenLeter = "e" | |
645 | elseif Num == "6" then | |
646 | GivenLeter = "f" | |
647 | elseif Num == "7" then | |
648 | GivenLeter = "g" | |
649 | elseif Num == "8" then | |
650 | GivenLeter = "h" | |
651 | elseif Num == "9" then | |
652 | GivenLeter = "i" | |
653 | elseif Num == "10" then | |
654 | GivenLeter = "j" | |
655 | elseif Num == "11" then | |
656 | GivenLeter = "k" | |
657 | elseif Num == "12" then | |
658 | GivenLeter = "l" | |
659 | elseif Num == "13" then | |
660 | GivenLeter = "m" | |
661 | elseif Num == "14" then | |
662 | GivenLeter = "n" | |
663 | elseif Num == "15" then | |
664 | GivenLeter = "o" | |
665 | elseif Num == "16" then | |
666 | GivenLeter = "p" | |
667 | elseif Num == "17" then | |
668 | GivenLeter = "q" | |
669 | elseif Num == "18" then | |
670 | GivenLeter = "r" | |
671 | elseif Num == "19" then | |
672 | GivenLeter = "s" | |
673 | elseif Num == "20" then | |
674 | GivenLeter = "t" | |
675 | elseif Num == "21" then | |
676 | GivenLeter = "u" | |
677 | elseif Num == "22" then | |
678 | GivenLeter = "v" | |
679 | elseif Num == "23" then | |
680 | GivenLeter = "w" | |
681 | elseif Num == "24" then | |
682 | GivenLeter = "x" | |
683 | elseif Num == "25" then | |
684 | GivenLeter = "y" | |
685 | elseif Num == "26" then | |
686 | GivenLeter = "z" | |
687 | elseif Num == "27" then | |
688 | GivenLeter = "_" | |
689 | elseif Num == "28" then | |
690 | GivenLeter = "0" | |
691 | elseif Num == "29" then | |
692 | GivenLeter = "1" | |
693 | elseif Num == "30" then | |
694 | GivenLeter = "2" | |
695 | elseif Num == "31" then | |
696 | GivenLeter = "3" | |
697 | elseif Num == "32" then | |
698 | GivenLeter = "4" | |
699 | elseif Num == "33" then | |
700 | GivenLeter = "5" | |
701 | elseif Num == "34" then | |
702 | GivenLeter = "6" | |
703 | elseif Num == "35" then | |
704 | GivenLeter = "7" | |
705 | elseif Num == "36" then | |
706 | GivenLeter = "8" | |
707 | elseif Num == "37" then | |
708 | GivenLeter = "9" | |
709 | end | |
710 | return GivenLeter | |
711 | ||
712 | end | |
713 | ||
714 | function MaybeOk(Mode,Extra) | |
715 | local ReturningValue = "" | |
716 | if Mode == 1 then | |
717 | ||
718 | ||
719 | ||
720 | -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
721 | ||
722 | --print(v.C0) | |
723 | local GivenText = "" | |
724 | local msg = Extra | |
725 | local Txt = "" | |
726 | local FoundTime=0 | |
727 | local LastFound = 0 | |
728 | delay(wait(0),function() | |
729 | for v3 = 1, #msg do | |
730 | ||
731 | if string.sub(msg,0+v3,v3) == "," then | |
732 | ||
733 | local TheN = string.sub(msg,LastFound,v3-1) | |
734 | ||
735 | ||
736 | local NumTranslate = Tran(string.sub(msg,LastFound,v3-1)) | |
737 | ||
738 | ||
739 | ||
740 | FoundTime = FoundTime + 1 | |
741 | ||
742 | ||
743 | GivenText = GivenText..NumTranslate | |
744 | ||
745 | LastFound=v3+1 | |
746 | Txt="" | |
747 | end | |
748 | Txt=string.sub(msg,1,v3) | |
749 | ||
750 | ||
751 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
752 | ||
753 | ||
754 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
755 | wait() | |
756 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
757 | end; | |
758 | ||
759 | ReturningValue=GivenText | |
760 | for v3 = 1, #Txt do | |
761 | Txt=string.sub(msg,-1,v3) | |
762 | ||
763 | ||
764 | ||
765 | ||
766 | ||
767 | ||
768 | ||
769 | end; | |
770 | -- Gui:remove() | |
771 | end) | |
772 | ||
773 | ||
774 | elseif Mode == 2 then | |
775 | ||
776 | print("fat") | |
777 | end | |
778 | ||
779 | ||
780 | ||
781 | while ReturningValue == "" do wait() end | |
782 | return ReturningValue | |
783 | ||
784 | end | |
785 | ||
786 | function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
787 | local NEWMESH = IT(MESH) | |
788 | if MESH == "SpecialMesh" then | |
789 | NEWMESH.MeshType = MESHTYPE | |
790 | if MESHID ~= "nil" and MESHID ~= "" then | |
791 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
792 | end | |
793 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
794 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
795 | end | |
796 | end | |
797 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
798 | NEWMESH.Scale = SCALE | |
799 | NEWMESH.Parent = PARENT | |
800 | return NEWMESH | |
801 | end | |
802 | ||
803 | function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
804 | local NEWPART = IT("Part") | |
805 | NEWPART.formFactor = FORMFACTOR | |
806 | NEWPART.Reflectance = REFLECTANCE | |
807 | NEWPART.Transparency = TRANSPARENCY | |
808 | NEWPART.CanCollide = false | |
809 | NEWPART.Locked = true | |
810 | NEWPART.Anchored = true | |
811 | if ANCHOR == false then | |
812 | NEWPART.Anchored = false | |
813 | end | |
814 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
815 | NEWPART.Name = NAME | |
816 | NEWPART.Size = SIZE | |
817 | NEWPART.Position = Torso.Position | |
818 | NEWPART.Material = MATERIAL | |
819 | NEWPART:BreakJoints() | |
820 | NEWPART.Parent = PARENT | |
821 | return NEWPART | |
822 | end | |
823 | ||
824 | local S = IT("Sound") | |
825 | function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
826 | local NEWSOUND = nil | |
827 | coroutine.resume(coroutine.create(function() | |
828 | NEWSOUND = S:Clone() | |
829 | NEWSOUND.Parent = PARENT | |
830 | NEWSOUND.Volume = VOLUME | |
831 | NEWSOUND.Pitch = PITCH | |
832 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
833 | NEWSOUND:play() | |
834 | if DOESLOOP == true then | |
835 | NEWSOUND.Looped = true | |
836 | else | |
837 | repeat wait(1) until NEWSOUND.Playing == false | |
838 | NEWSOUND:remove() | |
839 | end | |
840 | end)) | |
841 | return NEWSOUND | |
842 | end | |
843 | ||
844 | ||
845 | function WACKYEFFECT(Table) | |
846 | local TYPE = (Table.EffectType or "Sphere") | |
847 | local SIZE = (Table.Size or VT(1,1,1)) | |
848 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
849 | local TRANSPARENCY = (Table.Transparency or 0) | |
850 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
851 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
852 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
853 | local ROTATION1 = (Table.RotationX or 0) | |
854 | local ROTATION2 = (Table.RotationY or 0) | |
855 | local ROTATION3 = (Table.RotationZ or 0) | |
856 | local MATERIAL = (Table.Material or "Neon") | |
857 | local COLOR = (Table.Color or C3(1,1,1)) | |
858 | local TIME = (Table.Time or 45) | |
859 | local SOUNDID = (Table.SoundID or nil) | |
860 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
861 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
862 | coroutine.resume(coroutine.create(function() | |
863 | local PLAYSSOUND = false | |
864 | local SOUND = nil | |
865 | local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
866 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
867 | PLAYSSOUND = true | |
868 | SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
869 | end | |
870 | EFFECT.Color = COLOR | |
871 | local MSH = nil | |
872 | if TYPE == "Sphere" then | |
873 | MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
874 | elseif TYPE == "Cylinder" then | |
875 | MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0)) | |
876 | elseif TYPE == "Block" then | |
877 | MSH = IT("BlockMesh",EFFECT) | |
878 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
879 | elseif TYPE == "Cube" then | |
880 | MSH = IT("BlockMesh",EFFECT) | |
881 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
882 | ||
883 | elseif TYPE == "Wave" then | |
884 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
885 | elseif TYPE == "Ring" then | |
886 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
887 | elseif TYPE == "Slash" then | |
888 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
889 | elseif TYPE == "Round Slash" then | |
890 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
891 | elseif TYPE == "Swirl" then | |
892 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
893 | elseif TYPE == "Skull" then | |
894 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
895 | elseif TYPE == "Crystal" then | |
896 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
897 | elseif TYPE == "Crown" then | |
898 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0)) | |
899 | end | |
900 | if MSH ~= nil then | |
901 | local MOVESPEED = nil | |
902 | if MOVEDIRECTION ~= nil then | |
903 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
904 | end | |
905 | local GROWTH = SIZE - ENDSIZE | |
906 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
907 | if TYPE == "Block" then | |
908 | ||
909 | SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60) | |
910 | else | |
911 | ||
912 | SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0) | |
913 | ||
914 | end | |
915 | ||
916 | ||
917 | ||
918 | wait() | |
919 | ||
920 | SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60) | |
921 | ||
922 | if TYPE == "Block" then | |
923 | ||
924 | SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0) | |
925 | else | |
926 | ||
927 | SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0) | |
928 | ||
929 | end | |
930 | if MOVEDIRECTION ~= nil then | |
931 | local ORI = EFFECT.Orientation | |
932 | ||
933 | SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60) | |
934 | SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60) | |
935 | ||
936 | ||
937 | end | |
938 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
939 | SetTween(MSH,{Scale=ENDSIZE},"Linear","InOut",TIME/60) | |
940 | if TYPE == "Wave" then | |
941 | ||
942 | SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Linear","InOut",TIME/60) | |
943 | end | |
944 | for LOOP = 1, TIME+1 do | |
945 | wait(.05) | |
946 | ||
947 | --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0) | |
948 | ||
949 | ||
950 | if TYPE == "Block" then | |
951 | ||
952 | -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0) | |
953 | else | |
954 | ||
955 | -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0) | |
956 | ||
957 | end | |
958 | if MOVEDIRECTION ~= nil then | |
959 | local ORI = EFFECT.Orientation | |
960 | ||
961 | -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0) | |
962 | -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0) | |
963 | ||
964 | ||
965 | end | |
966 | end | |
967 | game:GetService("Debris"):AddItem(EFFECT, 15) | |
968 | if PLAYSSOUND == false then | |
969 | EFFECT:remove() | |
970 | else | |
971 | SOUND.Stopped:Connect(function() | |
972 | EFFECT:remove() | |
973 | end) | |
974 | end | |
975 | else | |
976 | if PLAYSSOUND == false then | |
977 | EFFECT:remove() | |
978 | else | |
979 | repeat wait() until SOUND.Playing == false | |
980 | EFFECT:remove() | |
981 | end | |
982 | end | |
983 | end)) | |
984 | end | |
985 | ---------------------- | |
986 | --[End Of Functions]-- | |
987 | ---------------------- | |
988 | ||
989 | ||
990 | ||
991 | ||
992 | ||
993 | ||
994 | ------------------ | |
995 | --[Gun]-- | |
996 | ------------------ | |
997 | ||
998 | ||
999 | ||
1000 | ||
1001 | ||
1002 | ||
1003 | ||
1004 | ||
1005 | ||
1006 | ||
1007 | ||
1008 | ||
1009 | function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1010 | local Part = Create("Part"){ | |
1011 | ||
1012 | Parent = Parent, | |
1013 | Reflectance = Reflectance, | |
1014 | Transparency = Transparency, | |
1015 | CanCollide = false, | |
1016 | Locked = true, | |
1017 | BrickColor = BrickColor.new(tostring(BColor)), | |
1018 | Name = Name, | |
1019 | Size = Size, | |
1020 | Material = Material, | |
1021 | } | |
1022 | RemoveOutlines(Part) | |
1023 | return Part | |
1024 | end | |
1025 | ||
1026 | ------------------ | |
1027 | --[End of Gun]-- | |
1028 | ------------------ | |
1029 | ||
1030 | --------------- | |
1031 | --[Particles]-- | |
1032 | --------------- | |
1033 | ||
1034 | ||
1035 | local Particle2_1 = Create("ParticleEmitter"){ | |
1036 | Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)), | |
1037 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}), | |
1038 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}), | |
1039 | Texture = "rbxassetid://241922778", | |
1040 | Lifetime = NumberRange.new(0.55,0.95), | |
1041 | Rate = 100, | |
1042 | VelocitySpread = 180, | |
1043 | Rotation = NumberRange.new(0), | |
1044 | RotSpeed = NumberRange.new(-200,200), | |
1045 | Speed = NumberRange.new(8.0), | |
1046 | LightEmission = 1, | |
1047 | LockedToPart = false, | |
1048 | Acceleration = Vector3.new(0, 0, 0), | |
1049 | EmissionDirection = "Top", | |
1050 | Drag = 4, | |
1051 | Enabled = false | |
1052 | } | |
1053 | ||
1054 | ||
1055 | local BEGONE_Particle = Create("ParticleEmitter"){ | |
1056 | Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)), | |
1057 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}), | |
1058 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}), | |
1059 | Texture = "rbxassetid://936193661", | |
1060 | Lifetime = NumberRange.new(1.5), | |
1061 | Rate = 100, | |
1062 | VelocitySpread = 0, | |
1063 | Rotation = NumberRange.new(0), | |
1064 | RotSpeed = NumberRange.new(-10,10), | |
1065 | Speed = NumberRange.new(0), | |
1066 | LightEmission = .25, | |
1067 | LockedToPart = true, | |
1068 | Acceleration = Vector3.new(0, -0, 0), | |
1069 | EmissionDirection = "Top", | |
1070 | Drag = 4, | |
1071 | ZOffset = 1, | |
1072 | Enabled = false | |
1073 | } | |
1074 | ||
1075 | ||
1076 | ---------------------- | |
1077 | --[End Of Particles]-- | |
1078 | ---------------------- | |
1079 | ||
1080 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans,SizeAdd,Time,Dely) -- Lightning module | |
1081 | --[[Part0 = Vector3 (Start pos) | |
1082 | Part1 = Vector3 (End pos) | |
1083 | Times = number (Amount of lightning parts) | |
1084 | Offset = number (Offset) | |
1085 | Color = color (brickcolor value) | |
1086 | Thickness = number (thickness) | |
1087 | Trans = number (transparency) | |
1088 | ]]-- | |
1089 | coroutine.resume(coroutine.create(function() | |
1090 | local magz = (Part0 - Part1).magnitude | |
1091 | local curpos = Part0 | |
1092 | local trz = {-Offset,Offset} | |
1093 | local Time2 = 0.07 | |
1094 | if Time ~= nil then | |
1095 | Time2 = Time | |
1096 | end | |
1097 | for i=1,Times do | |
1098 | local li = Instance.new("Part", Torso) | |
1099 | li.Name = "Lightning" | |
1100 | li.TopSurface =0 | |
1101 | li.Material = "Neon" | |
1102 | li.BottomSurface = 0 | |
1103 | li.Anchored = true | |
1104 | li.Locked = true | |
1105 | li.Transparency = Trans or 0 | |
1106 | li.BrickColor = Color | |
1107 | li.formFactor = "Custom" | |
1108 | li.CanCollide = false | |
1109 | -- MakeForm(li,"Ball") | |
1110 | li.Size = Vector3.new(0,0,magz/Times) | |
1111 | local Offzet = Vector3.new(trz[(math.random(1,2)*100)/100],trz[(math.random(1,2)*100)/100],trz[(math.random(1,2)*100)/100]) | |
1112 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
1113 | if Times == i then | |
1114 | local magz2 = (curpos - Part1).magnitude | |
1115 | li.Size = Vector3.new(0,0,magz2) | |
1116 | SetTween(li,{Size = VT(Thickness*(1-(i/Times+.1)),Thickness*(1-(i/Times+.1)),magz2),Transparency=1},"Back","Out",Time) | |
1117 | ||
1118 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
1119 | else | |
1120 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
1121 | SetTween(li,{Size = VT(Thickness*(1-(i/Times)),Thickness*(1-(i/Times)),magz/Times),Transparency=1},"Back","Out",Time) | |
1122 | ||
1123 | end | |
1124 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
1125 | coroutine.resume(coroutine.create(function() | |
1126 | wait(Time) | |
1127 | li:Destroy() | |
1128 | end)) | |
1129 | --game.Debris:AddItem(li,Time) | |
1130 | ||
1131 | if Dely ~= nil then | |
1132 | Swait(Dely) | |
1133 | end | |
1134 | ||
1135 | ||
1136 | --BlockEffect(Color, li.CFrame, li.Size.X*20, li.Size.Y*20, li.Size.Z*20, SizeAdd, SizeAdd, 0, Time2,2) | |
1137 | end | |
1138 | end)) | |
1139 | end | |
1140 | ||
1141 | ||
1142 | function MakeForm(PART,TYPE) | |
1143 | if TYPE == "Cyl" then | |
1144 | local MSH = IT("CylinderMesh",PART) | |
1145 | elseif TYPE == "Ball" then | |
1146 | local MSH = IT("SpecialMesh",PART) | |
1147 | MSH.MeshType = "Sphere" | |
1148 | elseif TYPE == "Wedge" then | |
1149 | local MSH = IT("SpecialMesh",PART) | |
1150 | MSH.MeshType = "Wedge" | |
1151 | end | |
1152 | end | |
1153 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
1154 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
1155 | end | |
1156 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
1157 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
1158 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
1159 | end | |
1160 | Debris = game:GetService("Debris") | |
1161 | ||
1162 | ----------------- | |
1163 | ||
1164 | ||
1165 | ||
1166 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1167 | ||
1168 | if hit.Parent == nil then | |
1169 | return | |
1170 | end | |
1171 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1172 | for _,v in pairs(hit.Parent:children()) do | |
1173 | if v:IsA("Humanoid") then | |
1174 | if h.Health > 0.0001 then | |
1175 | h = v else end | |
1176 | end | |
1177 | end | |
1178 | ||
1179 | if h == nil then | |
1180 | return | |
1181 | elseif h ~= nil and h.Health < 0.001 then | |
1182 | return | |
1183 | elseif h ~= nil and h.Parent:FindFirstChild("Fly away") then | |
1184 | return | |
1185 | end | |
1186 | ||
1187 | ||
1188 | --gg | |
1189 | ||
1190 | --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1191 | coroutine.resume(coroutine.create(function() | |
1192 | if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then | |
1193 | ||
1194 | ||
1195 | local FATag = Instance.new("Model",h.Parent) | |
1196 | ||
1197 | FATag.Name = "Fly away" | |
1198 | game:GetService("Debris"):AddItem(FATag, 2.5) | |
1199 | ||
1200 | ||
1201 | for _,v in pairs(h.Parent:children()) do | |
1202 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1203 | v.Anchored=true | |
1204 | end | |
1205 | end | |
1206 | ||
1207 | wait(.25) | |
1208 | ||
1209 | if h.Parent:FindFirstChildOfClass("Body Colors")then | |
1210 | h.Parent:FindFirstChildOfClass("Body Colors"):Destroy() | |
1211 | end | |
1212 | ||
1213 | ||
1214 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso") | |
1215 | ||
1216 | coroutine.resume(coroutine.create(function() | |
1217 | ||
1218 | ||
1219 | local YourGone = Instance.new("Part") | |
1220 | YourGone.Reflectance = 0 | |
1221 | YourGone.Transparency = 1 | |
1222 | YourGone.CanCollide = false | |
1223 | YourGone.Locked = true | |
1224 | YourGone.Anchored=true | |
1225 | YourGone.BrickColor = BrickColor.new("Really blue") | |
1226 | YourGone.Name = "YourGone" | |
1227 | YourGone.Size = Vector3.new() | |
1228 | YourGone.Material = "SmoothPlastic" | |
1229 | YourGone:BreakJoints() | |
1230 | YourGone.Parent = FoundTorso | |
1231 | YourGone.CFrame = FoundTorso.CFrame | |
1232 | ||
1233 | local NewParticle = Instance.new("ParticleEmitter") | |
1234 | NewParticle.Parent = YourGone | |
1235 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
1236 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)}) | |
1237 | NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0)) | |
1238 | NewParticle.Lifetime = NumberRange.new(0.55,0.95) | |
1239 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)}) | |
1240 | NewParticle.Speed = NumberRange.new(0,0.0) | |
1241 | NewParticle.ZOffset = 2 | |
1242 | NewParticle.Texture = "rbxassetid://243660364" | |
1243 | NewParticle.RotSpeed = NumberRange.new(-0,0) | |
1244 | NewParticle.Rotation = NumberRange.new(-180,180) | |
1245 | NewParticle.Enabled = false | |
1246 | - | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) |
1246 | + | |
1247 | for i = 0,2,1 do | |
1248 | NewParticle:Emit(1) | |
1249 | so("1448044156", FoundTorso,2, 1) | |
1250 | h.Parent:BreakJoints() | |
1251 | YourGone.CFrame = FoundTorso.CFrame | |
1252 | for _,v in pairs(h.Parent:children()) do | |
1253 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1254 | v.Anchored=false | |
1255 | -- v.Material = "Neon" | |
1256 | --v.BrickColor = BrickColor.new("Really red") | |
1257 | if v:FindFirstChildOfClass("SpecialMesh")then | |
1258 | --v:Destroy() | |
1259 | end | |
1260 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
1261 | -- v:Destroy() | |
1262 | end | |
1263 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
1264 | ||
1265 | vp.Parent = v | |
1266 | game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000) | |
1267 | ||
1268 | ||
1269 | end | |
1270 | ||
1271 | ||
1272 | ||
1273 | end | |
1274 | ||
1275 | ||
1276 | ||
1277 | wait(.2) | |
1278 | end | |
1279 | wait(.1) | |
1280 | NewParticle:Emit(3) | |
1281 | so("1448044156", FoundTorso,2, .8) | |
1282 | h.Parent:BreakJoints() | |
1283 | YourGone.CFrame = FoundTorso.CFrame | |
1284 | for _,v in pairs(h.Parent:children()) do | |
1285 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1286 | v.Anchored=false | |
1287 | -- v.Material = "Neon" | |
1288 | --v.BrickColor = BrickColor.new("Really red") | |
1289 | if v:FindFirstChildOfClass("SpecialMesh")then | |
1290 | --v:Destroy() | |
1291 | end | |
1292 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
1293 | -- v:Destroy() | |
1294 | end | |
1295 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
1296 | ||
1297 | vp.Parent = v | |
1298 | game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000) | |
1299 | ||
1300 | ||
1301 | end | |
1302 | ||
1303 | ||
1304 | ||
1305 | end | |
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | end)) | |
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | wait(.1) | |
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | end | |
1324 | ||
1325 | ||
1326 | end)) | |
1327 | if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1328 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1329 | return | |
1330 | end | |
1331 | local c = owner | |
1332 | game:GetService("Debris"):AddItem(c, 0.5) | |
1333 | if HitSound ~= nil and HitPitch ~= nil then | |
1334 | so(HitSound, hit, 1, HitPitch) | |
1335 | end | |
1336 | local Damage = math.random(minim, maxim) | |
1337 | local blocked = false | |
1338 | local block = hit.Parent:findFirstChild("Block") | |
1339 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1340 | blocked = true | |
1341 | block.Value = block.Value - 1 | |
1342 | print(block.Value) | |
1343 | end | |
1344 | if blocked == false then | |
1345 | h.Health = h.Health - Damage | |
1346 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Color3.new(0,0,0)) | |
1347 | else | |
1348 | h.Health = h.Health - Damage / 2 | |
1349 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Color3.new(0,0,0)) | |
1350 | ||
1351 | end | |
1352 | ||
1353 | if Type == "Knockdown" then | |
1354 | local hum = h | |
1355 | ||
1356 | hum.PlatformStand = true | |
1357 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1358 | ||
1359 | wait(.2) | |
1360 | HHumanoid.PlatformStand = false | |
1361 | end | |
1362 | ), hum) | |
1363 | ||
1364 | ||
1365 | ||
1366 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso") | |
1367 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1368 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit}) | |
1369 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
1370 | game:GetService("Debris"):AddItem(bodvol, .2) | |
1371 | game:GetService("Debris"):AddItem(rl, 0.2) | |
1372 | ||
1373 | ||
1374 | ||
1375 | elseif Type == "Knockdown2" then | |
1376 | local hum = h | |
1377 | ||
1378 | hum.PlatformStand = true | |
1379 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1380 | ||
1381 | ||
1382 | Combo = 1 wait(.2) | |
1383 | HHumanoid.PlatformStand = false | |
1384 | end | |
1385 | ), hum) | |
1386 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1387 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback}) | |
1388 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
1389 | game:GetService("Debris"):AddItem(bodvol, 0.2) | |
1390 | game:GetService("Debris"):AddItem(rl, 0.2) | |
1391 | ||
1392 | ||
1393 | ||
1394 | ||
1395 | ||
1396 | ||
1397 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart}) | |
1398 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.1) | |
1399 | ||
1400 | elseif Type == "Normal" then | |
1401 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback}) | |
1402 | if knockback > 0 then | |
1403 | ||
1404 | local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1405 | vp.Parent = HTorso | |
1406 | end | |
1407 | game:GetService("Debris"):AddItem(vp, 0.25) | |
1408 | ||
1409 | ||
1410 | ||
1411 | ||
1412 | ||
1413 | ||
1414 | ||
1415 | elseif Type== "Fire" then | |
1416 | local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1417 | ||
1418 | local tags = 0 | |
1419 | for _,v2 in next, HTorso:GetChildren() do | |
1420 | if v2:IsA("Folder") and v2.Name == "OnFire" then | |
1421 | tags=tags+1 | |
1422 | end | |
1423 | end | |
1424 | ||
1425 | if tags < 2 then | |
1426 | ||
1427 | local fireef = EffectPack.FireEffect:Clone() | |
1428 | ||
1429 | local tag = Instance.new("Folder",HTorso) | |
1430 | tag.Name = "OnFire" | |
1431 | game:GetService("Debris"):AddItem(tag, 4.5) | |
1432 | for _,v in next, fireef:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then game:GetService("Debris"):AddItem(v, 5) v.Parent = HTorso | |
1433 | coroutine.resume(coroutine.create(function() | |
1434 | for i = 1,35 do | |
1435 | coroutine.resume(coroutine.create(function() | |
1436 | v:Emit(2) end)) | |
1437 | coroutine.resume(coroutine.create(function() | |
1438 | Damagefunc(HTorso, HTorso, 4/2, 6/2, 0, "Normal", RootPart, 0.1, "1273118342", math.random(10,30)/10) | |
1439 | end)) | |
1440 | if HTorso.Parent:FindFirstChildOfClass("Humanoid") and HTorso.Parent:FindFirstChildOfClass("Humanoid").Health > .01 then | |
1441 | else for _,v2 in next, HTorso.Parent:GetDescendants() do if v2:isA("BasePart") then SetTween(v2,{Color=C3(0,0,0)},"Quad","Out",.5) end end break | |
1442 | end | |
1443 | wait(.1) | |
1444 | end | |
1445 | end)) | |
1446 | ||
1447 | end end | |
1448 | ||
1449 | ||
1450 | fireef:Destroy() | |
1451 | else-- print("Hit Max") | |
1452 | end | |
1453 | elseif Type== "Instakill" then | |
1454 | coroutine.resume(coroutine.create(function() | |
1455 | if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then | |
1456 | ||
1457 | ||
1458 | local FATag = Instance.new("Model",h.Parent) | |
1459 | ||
1460 | FATag.Name = "Fly away" | |
1461 | game:GetService("Debris"):AddItem(FATag, 2.5) | |
1462 | ||
1463 | ||
1464 | for _,v in pairs(h.Parent:children()) do | |
1465 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1466 | v.Anchored=true | |
1467 | end | |
1468 | end | |
1469 | ||
1470 | wait(.25) | |
1471 | ||
1472 | if h.Parent:FindFirstChildOfClass("Body Colors")then | |
1473 | h.Parent:FindFirstChildOfClass("Body Colors"):Destroy() | |
1474 | end | |
1475 | ||
1476 | ||
1477 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso") | |
1478 | ||
1479 | coroutine.resume(coroutine.create(function() | |
1480 | ||
1481 | ||
1482 | local YourGone = Instance.new("Part") | |
1483 | YourGone.Reflectance = 0 | |
1484 | YourGone.Transparency = 1 | |
1485 | YourGone.CanCollide = false | |
1486 | YourGone.Locked = true | |
1487 | YourGone.Anchored=true | |
1488 | YourGone.BrickColor = BrickColor.new("Really blue") | |
1489 | YourGone.Name = "YourGone" | |
1490 | YourGone.Size = Vector3.new() | |
1491 | YourGone.Material = "SmoothPlastic" | |
1492 | YourGone:BreakJoints() | |
1493 | YourGone.Parent = FoundTorso | |
1494 | YourGone.CFrame = FoundTorso.CFrame | |
1495 | ||
1496 | local NewParticle = Instance.new("ParticleEmitter") | |
1497 | NewParticle.Parent = YourGone | |
1498 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
1499 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)}) | |
1500 | NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0)) | |
1501 | NewParticle.Lifetime = NumberRange.new(0.55,0.95) | |
1502 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)}) | |
1503 | NewParticle.Speed = NumberRange.new(0,0.0) | |
1504 | NewParticle.ZOffset = 2 | |
1505 | NewParticle.Texture = "rbxassetid://243660364" | |
1506 | NewParticle.RotSpeed = NumberRange.new(-0,0) | |
1507 | NewParticle.Rotation = NumberRange.new(-180,180) | |
1508 | NewParticle.Enabled = false | |
1509 | game:GetService("Debris"):AddItem(YourGone, 3) | |
1510 | for i = 0,2,1 do | |
1511 | NewParticle:Emit(1) | |
1512 | so("1448044156", FoundTorso,2, 1) | |
1513 | h.Parent:BreakJoints() | |
1514 | YourGone.CFrame = FoundTorso.CFrame | |
1515 | for _,v in pairs(h.Parent:children()) do | |
1516 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1517 | v.Anchored=false | |
1518 | -- v.Material = "Neon" | |
1519 | --v.BrickColor = BrickColor.new("Really red") | |
1520 | if v:FindFirstChildOfClass("SpecialMesh")then | |
1521 | --v:Destroy() | |
1522 | end | |
1523 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
1524 | -- v:Destroy() | |
1525 | end | |
1526 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
1527 | ||
1528 | vp.Parent = v | |
1529 | game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000) | |
1530 | ||
1531 | ||
1532 | end | |
1533 | ||
1534 | ||
1535 | ||
1536 | end | |
1537 | ||
1538 | ||
1539 | ||
1540 | wait(.2) | |
1541 | end | |
1542 | wait(.1) | |
1543 | NewParticle:Emit(3) | |
1544 | so("1448044156", FoundTorso,2, .8) | |
1545 | h.Parent:BreakJoints() | |
1546 | YourGone.CFrame = FoundTorso.CFrame | |
1547 | for _,v in pairs(h.Parent:children()) do | |
1548 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1549 | v.Anchored=false | |
1550 | -- v.Material = "Neon" | |
1551 | --v.BrickColor = BrickColor.new("Really red") | |
1552 | if v:FindFirstChildOfClass("SpecialMesh")then | |
1553 | --v:Destroy() | |
1554 | end | |
1555 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
1556 | -- v:Destroy() | |
1557 | end | |
1558 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
1559 | ||
1560 | vp.Parent = v | |
1561 | game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000) | |
1562 | ||
1563 | ||
1564 | end | |
1565 | ||
1566 | ||
1567 | ||
1568 | end | |
1569 | ||
1570 | ||
1571 | ||
1572 | ||
1573 | end)) | |
1574 | ||
1575 | ||
1576 | ||
1577 | ||
1578 | wait(.1) | |
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | ||
1585 | ||
1586 | end | |
1587 | ||
1588 | ||
1589 | end)) | |
1590 | ||
1591 | ||
1592 | elseif Type == "HPSteal" then | |
1593 | Humanoid.Health = Humanoid.Health + Damage | |
1594 | local hum = h | |
1595 | ||
1596 | hum.PlatformStand = true | |
1597 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1598 | ||
1599 | ||
1600 | Combo = 1 wait(.2) | |
1601 | HHumanoid.PlatformStand = false | |
1602 | end | |
1603 | ), hum) | |
1604 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1605 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback}) | |
1606 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
1607 | game:GetService("Debris"):AddItem(bodvol, 0.2) | |
1608 | game:GetService("Debris"):AddItem(rl, 0.2) | |
1609 | ||
1610 | ||
1611 | ||
1612 | ||
1613 | ||
1614 | ||
1615 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart}) | |
1616 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.1) | |
1617 | ||
1618 | ||
1619 | elseif Type == "Impale" then | |
1620 | ||
1621 | ||
1622 | ||
1623 | ||
1624 | ||
1625 | ||
1626 | ||
1627 | ||
1628 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2) | |
1629 | hit.Parent.Humanoid.PlatformStand = true | |
1630 | ||
1631 | ||
1632 | wait(1) | |
1633 | hit.Parent.Humanoid.PlatformStand = false | |
1634 | elseif Type == "IgnoreType" then | |
1635 | ||
1636 | ||
1637 | ||
1638 | ||
1639 | ||
1640 | elseif Type == "Up" then | |
1641 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
1642 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1) | |
1643 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
1644 | game:GetService("Debris"):AddItem(bodyVelocity, .1) | |
1645 | ||
1646 | ||
1647 | ||
1648 | ||
1649 | ||
1650 | ||
1651 | ||
1652 | elseif Type == "Snare" then | |
1653 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso"))}) | |
1654 | game:GetService("Debris"):AddItem(bp, 1) | |
1655 | ||
1656 | ||
1657 | ||
1658 | elseif Type == "Freeze2" then | |
1659 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
1660 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
1661 | hit.Parent.Torso.Anchored = true | |
1662 | coroutine.resume(coroutine.create(function(Part) | |
1663 | ||
1664 | wait(1.5) | |
1665 | Part.Anchored = false | |
1666 | end | |
1667 | ), hit.Parent.Torso) | |
1668 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1669 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1670 | end | |
1671 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
1672 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1673 | c = Instance.new("ObjectValue") | |
1674 | c.Name = "creator" | |
1675 | c.Value = Player | |
1676 | c.Parent = h | |
1677 | game:GetService("Debris"):AddItem(c, 0.5) | |
1678 | end | |
1679 | end | |
1680 | ||
1681 | ||
1682 | ||
1683 | ShowDamage = function(Pos, Text, Time, Color) | |
1684 | ||
1685 | local Rate = 0.033333333333333 | |
1686 | if not Pos then | |
1687 | local Pos = Vector3.new(0, 0, 0) | |
1688 | end | |
1689 | local Text = Text or "" | |
1690 | local Time = Time or 2 | |
1691 | if not Color then | |
1692 | local Color = Color3.new(1, 0, 1) | |
1693 | end | |
1694 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1695 | EffectPart.Anchored = true | |
1696 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart}) | |
1697 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
1698 | TextLabel.TextTransparency=1 | |
1699 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1700 | EffectPart.Parent = game:GetService("Workspace") | |
1701 | delay(0, function() | |
1702 | ||
1703 | local Frames = Time / Rate | |
1704 | ||
1705 | ||
1706 | ||
1707 | --print(Frames) | |
1708 | ||
1709 | EffectPart.CFrame=CFrame.new(Pos) | |
1710 | wait() TextLabel.TextTransparency=0 | |
1711 | SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60) | |
1712 | SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60) | |
1713 | SetTween(TextLabel,{TextColor3=Color3.new(1,0,0)},"Elastic","InOut",Frames/60) | |
1714 | ||
1715 | SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60) | |
1716 | ||
1717 | ||
1718 | wait(Frames/60) | |
1719 | ||
1720 | if EffectPart and EffectPart.Parent then | |
1721 | EffectPart:Destroy() | |
1722 | end | |
1723 | end | |
1724 | ) | |
1725 | end | |
1726 | ||
1727 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2) | |
1728 | ||
1729 | ||
1730 | ||
1731 | ||
1732 | local Type="" | |
1733 | ||
1734 | ||
1735 | ||
1736 | ||
1737 | if mememode == true then | |
1738 | ||
1739 | Type= "Instakill" | |
1740 | ||
1741 | else | |
1742 | Type=Type2 | |
1743 | end | |
1744 | if Type2 == "NormalKnockdown" then | |
1745 | Type= "Knockdown" | |
1746 | end | |
1747 | ||
1748 | for _,c in pairs(workspace:children()) do | |
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | local hum = c:FindFirstChild("Humanoid") | |
1755 | for _,v in pairs(c:children()) do | |
1756 | if v:IsA("Humanoid") then | |
1757 | hum = v | |
1758 | end | |
1759 | end | |
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | if hum ~= nil then | |
1765 | local head = c:findFirstChild("Head") | |
1766 | if head ~= nil then | |
1767 | local targ = head.Position - Part.Position | |
1768 | local mag = targ.magnitude | |
1769 | if mag <= magni and c.Name ~= Player.Name then | |
1770 | Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2) | |
1771 | end | |
1772 | end | |
1773 | end | |
1774 | end | |
1775 | end | |
1776 | ||
1777 | ||
1778 | function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type) | |
1779 | local DGP = Instance.new("Part") | |
1780 | ||
1781 | DGP.Parent = Character | |
1782 | DGP.Size = Vector3.new(0.05, 0.05, 0.05) | |
1783 | DGP.Transparency = 1 | |
1784 | DGP.CanCollide = false | |
1785 | DGP.Anchored = true | |
1786 | RemoveOutlines(DGP) | |
1787 | DGP.Position=DGP.Position + Vector3.new(0,-.1,0) | |
1788 | DGP.CFrame = HTCF | |
1789 | ||
1790 | coroutine.resume(coroutine.create(function() | |
1791 | MagniDamage(DGP, magni, mindam, maxdam, knock, Type) | |
1792 | end)) | |
1793 | game:GetService("Debris"):AddItem(DGP, .05) | |
1794 | ||
1795 | ||
1796 | DGP.Archivable = false | |
1797 | end | |
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ----------------- | |
1804 | function findNearestTorso(pos,dist1) | |
1805 | local list = game.Workspace:children() | |
1806 | local torso = nil | |
1807 | local dist = dist1 or 1000 | |
1808 | local temp = nil | |
1809 | local human = nil | |
1810 | local temp2 = nil | |
1811 | for x = 1, #list do | |
1812 | temp2 = list[x] | |
1813 | if (temp2.className == "Model") and (temp2 ~= Character) then | |
1814 | temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso")) | |
1815 | human = temp2:findFirstChildOfClass("Humanoid") | |
1816 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1817 | if (temp.Position - pos).magnitude < dist then | |
1818 | torso = temp | |
1819 | dist = (temp.Position - pos).magnitude | |
1820 | end | |
1821 | end | |
1822 | end | |
1823 | end | |
1824 | return torso | |
1825 | end | |
1826 | function BulletHitEffectSpawn(EffectCF,EffectName) | |
1827 | local MainEffectHolder=Instance.new("Part",Effects) | |
1828 | MainEffectHolder.Reflectance = 0 | |
1829 | MainEffectHolder.Transparency = 1 | |
1830 | MainEffectHolder.CanCollide = false | |
1831 | MainEffectHolder.Locked = true | |
1832 | MainEffectHolder.Anchored=true | |
1833 | MainEffectHolder.BrickColor = BrickColor.new("Bright green") | |
1834 | MainEffectHolder.Name = "Bullet" | |
1835 | MainEffectHolder.Size = Vector3.new(.05,.05,.05) | |
1836 | MainEffectHolder.Material = "Neon" | |
1837 | MainEffectHolder:BreakJoints() | |
1838 | MainEffectHolder.CFrame = EffectCF | |
1839 | local EffectAttach=Instance.new("Attachment",MainEffectHolder) | |
1840 | game:GetService("Debris"):AddItem(MainEffectHolder, 15) | |
1841 | ||
1842 | if EffectName == "Explode" then | |
1843 | EffectAttach.Orientation = Vector3.new(90,0,0) | |
1844 | ||
1845 | ||
1846 | ||
1847 | ||
1848 | local SpawnedParticle1 = EffectPack.Explode_Fire_Effect:Clone() | |
1849 | SpawnedParticle1.Parent = MainEffectHolder | |
1850 | SpawnedParticle1:Emit(150) | |
1851 | ||
1852 | ||
1853 | ||
1854 | local SpawnedParticle2 = EffectPack.Explode_Smoke2_Effect:Clone() | |
1855 | SpawnedParticle2.Parent = MainEffectHolder | |
1856 | SpawnedParticle2:Emit(25) | |
1857 | ||
1858 | ||
1859 | ||
1860 | local SpawnedParticle3 = EffectPack.Explode_Smoke_Effect:Clone() | |
1861 | SpawnedParticle3.Parent = MainEffectHolder | |
1862 | SpawnedParticle3:Emit(185) | |
1863 | game:GetService("Debris"):AddItem(MainEffectHolder, 2) | |
1864 | ||
1865 | ||
1866 | end | |
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | ||
1872 | ||
1873 | if EffectName == "Spark" then | |
1874 | ||
1875 | EffectAttach.Orientation = Vector3.new(90,0,0) | |
1876 | ||
1877 | ||
1878 | ||
1879 | ||
1880 | local SpawnedParticle1 = EffectPack.Spark:Clone() | |
1881 | SpawnedParticle1.Parent = MainEffectHolder | |
1882 | SpawnedParticle1:Emit(math.random(2,5)) | |
1883 | ||
1884 | ||
1885 | ||
1886 | ||
1887 | game:GetService("Debris"):AddItem(MainEffectHolder, 2) | |
1888 | ||
1889 | ||
1890 | end | |
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | ||
1896 | if EffectName == "Nuke" then | |
1897 | so(923073285,MainEffectHolder,8,2) | |
1898 | EffectAttach.Orientation = Vector3.new(0,0,0) | |
1899 | local EffectAttach2=Instance.new("Attachment",MainEffectHolder) | |
1900 | EffectAttach2.Orientation = Vector3.new(0,0,0) | |
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | local SpawnedParticle1 = EffectPack.Nuke_Flash:Clone() | |
1906 | SpawnedParticle1.Parent = EffectAttach | |
1907 | SpawnedParticle1:Emit(20) | |
1908 | ||
1909 | ||
1910 | ||
1911 | local SpawnedParticle2 = EffectPack.Nuke_Smoke:Clone() | |
1912 | SpawnedParticle2.Parent = EffectAttach2 | |
1913 | SpawnedParticle2.Enabled = true | |
1914 | coroutine.resume(coroutine.create(function() | |
1915 | ||
1916 | for i = 0,2,.025/1.5 do | |
1917 | ||
1918 | ||
1919 | SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.15,.5+(i/4)),NumberSequenceKeypoint.new(.95,.5+(i/4)),NumberSequenceKeypoint.new(1,1)}) | |
1920 | Swait() | |
1921 | end | |
1922 | SpawnedParticle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,1)}) | |
1923 | ||
1924 | SpawnedParticle2.Enabled = false | |
1925 | end)) | |
1926 | ||
1927 | ||
1928 | local SpawnedParticle3 = EffectPack.Nuke_Wave:Clone() | |
1929 | SpawnedParticle3.Parent = EffectAttach | |
1930 | SpawnedParticle3:Emit(185) | |
1931 | game:GetService("Debris"):AddItem(EffectAttach, 10) | |
1932 | ||
1933 | ||
1934 | end | |
1935 | ||
1936 | ||
1937 | ||
1938 | ||
1939 | ||
1940 | ||
1941 | ||
1942 | ||
1943 | ||
1944 | ||
1945 | ||
1946 | ||
1947 | end | |
1948 | ||
1949 | function ProjectileDmg(MinDmg1,MaxDmg1,Lookpos1,Lookray1,Aura1,Type,Partf) | |
1950 | ||
1951 | if Lookray1 ~= nil and Lookray1.Parent:FindFirstChildOfClass("Humanoid") then | |
1952 | coroutine.resume(coroutine.create(function() | |
1953 | Damagefunc(Partf, Lookray1, MinDmg1, MaxDmg1, MinDmg1, Type, RootPart, 0.1, "851453784", 1.2) end)) | |
1954 | else | |
1955 | CFMagniDamage(CF(Lookpos1),Aura1, MinDmg1, MaxDmg1, MinDmg1, Type) | |
1956 | end | |
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | end | |
1963 | ||
1964 | ||
1965 | function FireSoul(SpawnCF) | |
1966 | ||
1967 | ||
1968 | local GhostHolder = EffectPack.Missile:Clone() | |
1969 | GhostHolder.Parent = Effects | |
1970 | GhostHolder.CFrame = SpawnCF | |
1971 | ||
1972 | ||
1973 | local Missile = GhostHolder | |
1974 | for i, v3 in pairs(GatherAllInstances(Missile)) do | |
1975 | if v3:IsA("ParticleEmitter") then | |
1976 | v3.Enabled = true | |
1977 | end | |
1978 | end | |
1979 | ||
1980 | ||
1981 | ||
1982 | ||
1983 | coroutine.resume(coroutine.create(function() | |
1984 | Missile["Rocket Thrust Loop"]:Play() | |
1985 | end)) | |
1986 | ||
1987 | ||
1988 | so(771710614,Missile,1,1) | |
1989 | ||
1990 | wait() | |
1991 | ||
1992 | ||
1993 | game:GetService("Debris"):AddItem(GhostHolder, 60) | |
1994 | ||
1995 | coroutine.resume(coroutine.create(function() | |
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | GhostHolder.Transparency = 0 | |
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | end)) | |
2008 | ||
2009 | ||
2010 | ||
2011 | --GhostHolder.Touched:connect(onTouch) | |
2012 | ||
2013 | --GhostHolder:BreakJoints() | |
2014 | --GhostHolder.Anchored = false | |
2015 | ||
2016 | ||
2017 | --Acthing(GhostHolder,"1698327723",Vector3.new(1.41,1.42,1.41),BrickColor.new("Really black"),"Glass",0.0,cn(0,.0325,0)*angles(math.rad(0), math.rad(180), math.rad(0)),Color3.new(0,0,0),GhostHolder,2) | |
2018 | local GhostTarget=nil | |
2019 | ||
2020 | coroutine.resume(coroutine.create(function() | |
2021 | ||
2022 | ||
2023 | local lookdir=RootPart.CFrame.lookVector *15 | |
2024 | ||
2025 | while GhostHolder.Parent == Effects do | |
2026 | ||
2027 | ||
2028 | GhostTarget = findNearestTorso(GhostHolder.Position) | |
2029 | ||
2030 | ||
2031 | if GhostTarget ~=nil then | |
2032 | ||
2033 | ||
2034 | ||
2035 | ||
2036 | ||
2037 | ||
2038 | if OverClocking ==false then | |
2039 | SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*30 )-VT(math.random(-10,10),math.random(-15,15),math.random(-10,10)))},"Linear","Out",.2) | |
2040 | --GhostForce.velocity =GhostHolder.CFrame.lookVector *80 | |
2041 | else | |
2042 | SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.lookVector*20,(GhostTarget.Position+GhostHolder.CFrame.lookVector*21 ))},"Linear","Out",.1) | |
2043 | ||
2044 | end | |
2045 | ||
2046 | else | |
2047 | if OverClocking ==false then | |
2048 | SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2) | |
2049 | ||
2050 | else | |
2051 | SetTween(GhostHolder,{CFrame =CFrame.new(GhostHolder.Position+GhostHolder.CFrame.LookVector*20,GhostHolder.Position+VT(0,-1,0)+GhostHolder.CFrame.LookVector*30)},"Linear","Out",.2) | |
2052 | ||
2053 | ||
2054 | ||
2055 | end | |
2056 | end | |
2057 | local Lookray,Lookpos,test1 = rayCast(GhostHolder.Position, GhostHolder.CFrame.lookVector, 10, Character) | |
2058 | if Lookray ~= nil then | |
2059 | --onTouch(Lookray) | |
2060 | ||
2061 | ||
2062 | ||
2063 | ||
2064 | ||
2065 | so(2814355743,GhostHolder,3,2) | |
2066 | BulletHitEffectSpawn(CF(Lookpos,Lookpos+test1),"Explode") | |
2067 | ||
2068 | ProjectileDmg(30,45,Lookpos,nil,15,"Knockdown",GhostHolder) | |
2069 | ||
2070 | ||
2071 | ||
2072 | ||
2073 | ||
2074 | ||
2075 | coroutine.resume(coroutine.create(function() | |
2076 | GhostHolder["Rocket Thrust Loop"]:Stop() | |
2077 | end)) | |
2078 | ||
2079 | ||
2080 | ||
2081 | ||
2082 | for i, v3 in pairs(GatherAllInstances(GhostHolder)) do | |
2083 | if v3:IsA("ParticleEmitter") then | |
2084 | v3.Enabled = false | |
2085 | end | |
2086 | end | |
2087 | ||
2088 | ||
2089 | SetTween(GhostHolder,{Transparency=1},"Quad","Out",1) | |
2090 | game:GetService("Debris"):AddItem(GhostHolder, 2) | |
2091 | ||
2092 | ||
2093 | break | |
2094 | ||
2095 | ||
2096 | ||
2097 | end | |
2098 | --wait(1.35) | |
2099 | Swait() end | |
2100 | --GhostHolder:Destroy() | |
2101 | end)) | |
2102 | ||
2103 | ||
2104 | end | |
2105 | ||
2106 | ||
2107 | ||
2108 | ||
2109 | ||
2110 | ||
2111 | ||
2112 | ||
2113 | ||
2114 | ||
2115 | ||
2116 | --[[ | |
2117 | for i, v in pairs(C:GetChildren()) do | |
2118 | if v:IsA("Accessory")then | |
2119 | v:Destroy() | |
2120 | end | |
2121 | if v:IsA("BasePart")then | |
2122 | v.Transparency =1 | |
2123 | if v.Name == "Head" then | |
2124 | v:FindFirstChildOfClass("Decal"):Destroy() | |
2125 | end | |
2126 | end | |
2127 | end--]] | |
2128 | --[[ | |
2129 | ||
2130 | ||
2131 | ||
2132 | ||
2133 | ||
2134 | ||
2135 | ||
2136 | ||
2137 | ||
2138 | ||
2139 | ||
2140 | ||
2141 | ||
2142 | local tweeningInformation = TweenInfo.new( | |
2143 | 0.5, | |
2144 | Enum.EasingStyle.Back, | |
2145 | Enum.EasingDirection.Out, | |
2146 | 0, | |
2147 | false, | |
2148 | 0 | |
2149 | ) | |
2150 | --]] | |
2151 | ||
2152 | ||
2153 | local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0) | |
2154 | RJW.C1 = RJ.C1 | |
2155 | RJW.Name = RJ.Name | |
2156 | ||
2157 | local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0) | |
2158 | NeckW.C1 = Neck.C1 | |
2159 | NeckW.Name = Neck.Name | |
2160 | ||
2161 | ||
2162 | --print(WRJ.Parent.Name) | |
2163 | ||
2164 | local RW=weld(Torso,Torso,RightArm,cf(0,0,0)) | |
2165 | ||
2166 | local LW=weld(Torso,Torso,LeftArm,cf(0,0,0)) | |
2167 | ||
2168 | local RH=weld(Torso,Torso,RightLeg,cf(0,0,0)) | |
2169 | ||
2170 | local LH=weld(Torso,Torso,LeftLeg,cf(0,0,0)) | |
2171 | ||
2172 | ||
2173 | ||
2174 | RW.C1 = cn(0, 0.5, 0) | |
2175 | LW.C1 = cn(0, 0.5, 0) | |
2176 | RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2177 | LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2178 | ||
2179 | ||
2180 | ||
2181 | ||
2182 | ||
2183 | ||
2184 | -------- | |
2185 | --(#Torso) | |
2186 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1) | |
2187 | -------- | |
2188 | --(#Head) | |
2189 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1) | |
2190 | -------- | |
2191 | --(#Right Arm) | |
2192 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1) | |
2193 | -------- | |
2194 | --(#Left Arm) | |
2195 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1) | |
2196 | -------- | |
2197 | --(#Right Leg) | |
2198 | SetTween(RH,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1) | |
2199 | -------- | |
2200 | --(#Left Leg) | |
2201 | SetTween(LH,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1) | |
2202 | ||
2203 | ||
2204 | ||
2205 | --[[ | |
2206 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2207 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2208 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1) | |
2209 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1) | |
2210 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2211 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2212 | --]] | |
2213 | ||
2214 | ||
2215 | ||
2216 | Humanoid.MaxHealth = 99999 | |
2217 | ||
2218 | Humanoid.Health = 99999 | |
2219 | GainCharge = function() | |
2220 | Humanoid.MaxHealth = 99999 | |
2221 | Humanoid.Health = 99999 | |
2222 | end | |
2223 | ||
2224 | Humanoid.HealthChanged:connect(function() GainCharge(Humanoid) end) | |
2225 | ||
2226 | ||
2227 | function SpawnDrone(SPCF) | |
2228 | coroutine.resume(coroutine.create(function() | |
2229 | local DroneModel = nil --EffectPack.Drone:Clone() | |
2230 | if math.random(1,30) == 1 then | |
2231 | DroneModel = EffectPack.Toaster:Clone() | |
2232 | else | |
2233 | DroneModel = EffectPack.Drone:Clone() | |
2234 | ||
2235 | end | |
2236 | local Drone = EffectPack.Part:Clone() | |
2237 | Drone.Parent = Effects | |
2238 | Drone.Name = "Drone" | |
2239 | Drone.Anchored = true | |
2240 | ||
2241 | local Part1=Drone | |
2242 | local Part2=DroneModel.Handle | |
2243 | --game:GetService("Debris"):AddItem(Drone, 60) | |
2244 | coroutine.resume(coroutine.create(function() | |
2245 | wait(60) | |
2246 | Drone:Destroy() | |
2247 | end)) | |
2248 | Drone.CFrame = SPCF*CF(0,10,600) | |
2249 | JointAllTo(Part1,Part2,DroneModel,CFrame.new(0,0,0)) | |
2250 | SetTween(Drone,{CFrame=SPCF*CF(math.random(-100,100)/10,math.random(5,20),math.random(-10,10)/10)},"Quad","Out",1) | |
2251 | wait(1) | |
2252 | local v2 = findNearestTorso(Drone.Position,70) | |
2253 | if v2 ~= nil then | |
2254 | SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","InOut",.5) | |
2255 | end | |
2256 | Swait(0.15*30) | |
2257 | for i2 =1,16 do | |
2258 | for i = 1,2,1 do | |
2259 | local v = findNearestTorso(Drone.Position,70) | |
2260 | if v~=nil then | |
2261 | ||
2262 | SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)},"Quad","Out",.25) | |
2263 | ||
2264 | local lighth,lightp,test1 = rayCast(Drone["gun"..i].CFrame.p, CFrame.new(Drone["gun"..i].CFrame.p, v.CFrame.p).lookVector, 70, Character) | |
2265 | if DroneModel.Name ~= "Toaster" then | |
2266 | Lightning(Drone["gun"..i].CFrame.p,lightp , 5, .2, BrickColor.new("Persimmon"), .15, .5,-.25*2,.5,nil) | |
2267 | BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark") | |
2268 | coroutine.resume(coroutine.create(function() | |
2269 | so("168586621", Drone,1.6, math.random(120,220)/100) | |
2270 | ||
2271 | so("1225795839", Drone,2, math.random(120,220)/100) | |
2272 | CFMagniDamage(CF(lightp),10,5,10,10,"Knockdown") | |
2273 | ||
2274 | end))Swait(0.15*30) | |
2275 | else | |
2276 | ||
2277 | Lightning(Drone["gun"..i].CFrame.p,lightp , 15, 1, BrickColor.new("Persimmon"), 2, 0,-.25*2,1,nil) | |
2278 | BulletHitEffectSpawn(CF(lightp,lightp+test1),"Explode") | |
2279 | coroutine.resume(coroutine.create(function() | |
2280 | -- so("168586621", Drone,1.0, math.random(120,220)/100) | |
2281 | ||
2282 | so("1578823908", Drone,4, math.random(100,150)/100) | |
2283 | CFMagniDamage(CF(lightp),20,25,40,-50,"Knockdown") | |
2284 | ||
2285 | end)) | |
2286 | SetTween(Drone,{CFrame=CF(Drone.CFrame.p,v2.CFrame.p)*CF(0,5,-2.5)},"Quad","InOut",.45) | |
2287 | Swait(0.45*30) | |
2288 | end | |
2289 | ||
2290 | end | |
2291 | ||
2292 | end | |
2293 | ||
2294 | v2 = findNearestTorso(Drone.Position,70) | |
2295 | if v2~=nil then | |
2296 | ||
2297 | SetTween(Drone,{CFrame=CF((Drone.CFrame).p,v2.CFrame.p)},"Quad","InOut",.1) | |
2298 | ||
2299 | ||
2300 | --Swait(0.2*30) | |
2301 | end | |
2302 | ||
2303 | ||
2304 | end | |
2305 | SetTween(Drone,{CFrame=Drone.CFrame*CF(0,1000,100)},"Quad","InOut",6) | |
2306 | wait(6) | |
2307 | Drone:Destroy() | |
2308 | end)) | |
2309 | end | |
2310 | ||
2311 | ||
2312 | function Attack1() | |
2313 | attack = true | |
2314 | Humanoid.JumpPower = 0 | |
2315 | Humanoid.WalkSpeed = 0 | |
2316 | so("418302853", Torso,4, 2) | |
2317 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.3) | |
2318 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.3) | |
2319 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.3) | |
2320 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.3) | |
2321 | SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.3) | |
2322 | SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.3) | |
2323 | wait(.3) | |
2324 | for i2 = 1,2 do | |
2325 | for i = 1,3 do | |
2326 | FireSoul(CF(MissileBox["MissileSlot"..i].CFrame.p,MissileBox["MissileSlot"..i].CFrame.p+MissileBox["MissileSlot"..i].CFrame.RightVector)) | |
2327 | SetTween(MissileBox["MissileSlot"..i],{Color=C3(0,0,0)},"Quad","InOut",.05) | |
2328 | SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(40),0,0)},"Quad","Out",.1) | |
2329 | ||
2330 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.6)*angles(math.rad(0),math.rad(0),math.rad(0))},"Back","Out",0.1) | |
2331 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.1) | |
2332 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(35),math.rad(0),math.rad(20))},"Back","Out",0.1) | |
2333 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(10),math.rad(0),math.rad(-20))},"Back","Out",0.1) | |
2334 | SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.1) | |
2335 | SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-60),math.rad(0),math.rad(0))},"Back","Out",0.1) | |
2336 | ||
2337 | Swait(2) | |
2338 | SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","Out",.1) | |
2339 | SetTween(MissileBox["MissileSlot"..i],{Color=C3(255/255, 89/255, 89/255)},"Quad","InOut",.25) | |
2340 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-.25,-.55)*angles(math.rad(10),math.rad(0),math.rad(0))},"Back","Out",0.2) | |
2341 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Back","Out",0.2) | |
2342 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(45),math.rad(0),math.rad(10))},"Back","Out",0.2) | |
2343 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(20),math.rad(0),math.rad(-10))},"Back","Out",0.2) | |
2344 | SetTween(RH,{C0=CFrame.new(.5, -.7, -.2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Back","Out",0.2) | |
2345 | SetTween(LH,{C0=CFrame.new(-.5, -1.0, -.75)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Back","Out",0.2) | |
2346 | Swait(2) end | |
2347 | ||
2348 | ||
2349 | Swait(4) | |
2350 | end | |
2351 | ||
2352 | attack = false | |
2353 | ||
2354 | end | |
2355 | ||
2356 | eyehold=false | |
2357 | function Attack2() | |
2358 | ||
2359 | ||
2360 | ||
2361 | attack = true | |
2362 | Humanoid.JumpPower = 0 | |
2363 | Humanoid.WalkSpeed=0 | |
2364 | ||
2365 | ||
2366 | local eyeffect1 = EffectPack.Light:Clone() | |
2367 | ||
2368 | eyeffect1.Parent = Torso.TorsoLaser.Attachment | |
2369 | ||
2370 | ||
2371 | eyeffect1.Enabled = true | |
2372 | so("1841310110",Torso,3,1) | |
2373 | ||
2374 | for i = 1,3.5,.1 do | |
2375 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.3)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2376 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2377 | SetTween(RW,{C0=CFrame.new(1.2 , 0.5, -.2)*angles(math.rad(75+math.random(-5,5)),math.rad(0),math.rad(-40+math.random(-5,5)))},"Quad","Out",0.1) | |
2378 | SetTween(LW,{C0=CFrame.new(-1.2, 0.5, -.2)*angles(math.rad(75+math.random(-5,5)),math.rad(0),math.rad(40+math.random(-5,5)))},"Quad","Out",0.1) | |
2379 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2380 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(40),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2381 | Swait() end | |
2382 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 10, 0)+RootPart.CFrame.lookVector*30, P = 5000, maxForce = Vector3.new(800000, 800000 , 800000), Parent = RootPart}) | |
2383 | so("341301373",Torso,4,0.6) | |
2384 | ||
2385 | --wait(.5) | |
2386 | eyehold= true | |
2387 | ||
2388 | ||
2389 | local Beam1 = Instance.new("Beam",Torso.TorsoLaser) | |
2390 | ||
2391 | local WalkPart = Instance.new("Part",Effects) | |
2392 | WalkPart.Transparency = 1 | |
2393 | WalkPart.CanCollide = false | |
2394 | WalkPart.Anchored = true | |
2395 | WalkPart.CFrame = CFrame.new(0,0,0) | |
2396 | WalkPart.Size = Vector3.new(.1,.1,.1) | |
2397 | local Attach2 = Instance.new("Attachment",WalkPart) | |
2398 | ||
2399 | ||
2400 | ||
2401 | ||
2402 | ||
2403 | ||
2404 | ||
2405 | local NewParticle = Particle2_1:Clone() | |
2406 | NewParticle.Parent = Attach2 | |
2407 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
2408 | if OverClocking ==false then | |
2409 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2),NumberSequenceKeypoint.new(1,0)}) | |
2410 | ||
2411 | else | |
2412 | ||
2413 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50),NumberSequenceKeypoint.new(1,0)}) | |
2414 | ||
2415 | ||
2416 | end | |
2417 | NewParticle.Color = ColorSequence.new(Color3.new (151/255, 0/255, 0/255), Color3.new (1, .2, .2)) | |
2418 | NewParticle.Lifetime = NumberRange.new(.2,.3) | |
2419 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,0),NumberSequenceKeypoint.new(1,1)}) | |
2420 | NewParticle.Speed = NumberRange.new(0) | |
2421 | NewParticle.ZOffset = 6 | |
2422 | NewParticle.RotSpeed = NumberRange.new(-40,40) | |
2423 | NewParticle.Rotation = NumberRange.new(-180,180) | |
2424 | NewParticle.Texture = "rbxassetid://217245118" | |
2425 | NewParticle.Rate = 50 | |
2426 | --NewParticle.Enabled = true | |
2427 | ||
2428 | local NewParticle2 = NewParticle:Clone() | |
2429 | NewParticle2.LockedToPart = true | |
2430 | NewParticle2.Parent = Attach2 | |
2431 | ||
2432 | NewParticle.Speed = NumberRange.new(10) | |
2433 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.5),NumberSequenceKeypoint.new(1,1)}) | |
2434 | ||
2435 | NewParticle.Texture = "rbxassetid://445231898" | |
2436 | if OverClocking ==false then | |
2437 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,2)}) | |
2438 | else | |
2439 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5),NumberSequenceKeypoint.new(1,28)}) | |
2440 | ||
2441 | end | |
2442 | NewParticle.Lifetime = NumberRange.new(.3,.5) | |
2443 | NewParticle.ZOffset = 4 | |
2444 | NewParticle.Speed = NumberRange.new(1) | |
2445 | --NewParticle:Emit(2) | |
2446 | ||
2447 | ||
2448 | ||
2449 | ||
2450 | ||
2451 | coroutine.resume(coroutine.create(function() | |
2452 | if eyehold==true then | |
2453 | ||
2454 | ||
2455 | ||
2456 | ||
2457 | ||
2458 | coroutine.resume(coroutine.create(function() | |
2459 | ||
2460 | while eyehold==true do | |
2461 | wait(.5) | |
2462 | ||
2463 | so("2162238374",Torso.TorsoLaser,4,2.0) | |
2464 | ||
2465 | ||
2466 | end | |
2467 | for i = 1,10 do | |
2468 | for _,v in pairs(Torso.TorsoLaser:children()) do | |
2469 | if v:isA("Sound") then | |
2470 | v.Volume = v.Volume - .4 | |
2471 | end | |
2472 | end | |
2473 | Swait() | |
2474 | end | |
2475 | end)) | |
2476 | ||
2477 | ||
2478 | while eyehold == true do | |
2479 | Swait() | |
2480 | ||
2481 | ||
2482 | ||
2483 | Humanoid.JumpPower = 0 | |
2484 | change = .6 | |
2485 | ||
2486 | ||
2487 | ||
2488 | ||
2489 | ||
2490 | ||
2491 | ||
2492 | ||
2493 | ||
2494 | ||
2495 | ||
2496 | ||
2497 | Humanoid.WalkSpeed=2 | |
2498 | ||
2499 | ||
2500 | ||
2501 | coroutine.resume(coroutine.create(function() | |
2502 | local GunPart = Torso.TorsoLaser | |
2503 | ||
2504 | ||
2505 | --so("610359515",Head,1.5,.8,4) | |
2506 | for i = 1,1 do | |
2507 | ||
2508 | ||
2509 | ||
2510 | ||
2511 | ||
2512 | ||
2513 | coroutine.resume(coroutine.create(function() | |
2514 | ||
2515 | local Glow1 = Color3.new (255/255, 0/255, 0/255) | |
2516 | local Glow2 = Color3.new (255/255, 0/255, 0/255) | |
2517 | local hitray,pos,test1 = rayCast(GunPart.Position, GunPart.CFrame.lookVector, 500, Character) | |
2518 | ||
2519 | ||
2520 | ||
2521 | ||
2522 | ||
2523 | local mag=(Torso.TorsoLaser.Position-pos).magnitude | |
2524 | ||
2525 | ||
2526 | ||
2527 | Attach2.Position = pos | |
2528 | --Attach1.Position = Vector3.new(0,0,0) | |
2529 | NewParticle.Enabled = true | |
2530 | NewParticle2.Enabled = true | |
2531 | eyeffect1.Enabled = true | |
2532 | ||
2533 | ||
2534 | Beam1.Texture = "rbxassetid://1134824633" | |
2535 | ||
2536 | Beam1.FaceCamera = true | |
2537 | Beam1.Color = ColorSequence.new(Glow1,Glow2) | |
2538 | Beam1.Transparency = NumberSequence.new(0,0) | |
2539 | Beam1.TextureLength = .1*(mag) | |
2540 | Beam1.Attachment0 = Torso.TorsoLaser.Attachment | |
2541 | Beam1.Attachment1 = Attach2 | |
2542 | Beam1.TextureSpeed = 15 | |
2543 | Beam1.LightEmission = 1 | |
2544 | Beam1.Width0 = 2 | |
2545 | ||
2546 | if OverClocking ==false then | |
2547 | Beam1.Width1 = 3 | |
2548 | else | |
2549 | Beam1.Width1 = 20 | |
2550 | end | |
2551 | ||
2552 | ||
2553 | ||
2554 | ||
2555 | ||
2556 | if OverClocking ==false then | |
2557 | CFMagniDamage(CFrame.new(pos),5, 350, 500, 0, "Normal") | |
2558 | else | |
2559 | CFMagniDamage(CFrame.new(pos),30, 350, 500, 0, "Normal") | |
2560 | ||
2561 | end | |
2562 | coroutine.resume(coroutine.create(function() | |
2563 | if hitray~=nil then | |
2564 | for i = 1, 1 do | |
2565 | local Color = hitray.BrickColor | |
2566 | local Materials = hitray.Material | |
2567 | local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 200) / 200, math.random(50, 200) / 200, math.random(50, 200) / 200)) | |
2568 | groundpart.Anchored = false | |
2569 | groundpart.Material = Materials | |
2570 | groundpart.CanCollide = true | |
2571 | groundpart.Friction = 2 | |
2572 | groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50)) | |
2573 | groundpart.CFrame = CF(pos,pos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50))) | |
2574 | groundpart:SetNetworkOwner(Player) | |
2575 | game:GetService("Debris"):AddItem(groundpart, 1.0) | |
2576 | SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1) | |
2577 | ||
2578 | end | |
2579 | for i = 1, 0 do | |
2580 | local Color = hitray.BrickColor | |
2581 | local Materials = hitray.Material | |
2582 | local groundpart = CFuncs.Part.Create( Effects, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(25, 150) / 200, math.random(25, 150) / 200, math.random(25, 150) / 200)) | |
2583 | groundpart.Anchored = false | |
2584 | groundpart.Material = Materials | |
2585 | groundpart.CanCollide = true | |
2586 | groundpart.Friction = 2 | |
2587 | groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50)) | |
2588 | groundpart.CFrame = CF(pos,pos+test1) * cn(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.Angles(math.rad(math.random(-50, 50)), math.rad(math.random(-50, 50)),math.rad( math.random(-50, 50))) | |
2589 | groundpart:SetNetworkOwner(Player) | |
2590 | game:GetService("Debris"):AddItem(groundpart, 1.0) | |
2591 | SetTween(groundpart,{Size = VT(),Transparency=1},"Quad","In",1) | |
2592 | ||
2593 | ||
2594 | --game:GetService("Debris"):AddItem(WalkPart2, .4) | |
2595 | ||
2596 | end | |
2597 | ||
2598 | end | |
2599 | ||
2600 | end)) | |
2601 | coroutine.resume(coroutine.create(function() | |
2602 | if hitray ~= nil then | |
2603 | ||
2604 | ||
2605 | ||
2606 | ||
2607 | ||
2608 | ||
2609 | ||
2610 | ||
2611 | ||
2612 | ||
2613 | ||
2614 | -- MakeBeamWaveEffect(Effects,Color3.new(1, 0, 0),HitEffectPart.Position- Vector3.new(0, 0, 0),2.0,0,0.06,15,0,10,CFrame.new(((RootPart.Velocity * Vector3.new(1, 0, 1))/40)+Vector3.new(0, 0, 0))*angles(math.rad(math.random(-6,6)),math.rad(math.random(-6,6)),math.rad(math.random(-6,6)))) | |
2615 | ||
2616 | ||
2617 | else | |
2618 | --Beam1.Transparency = NumberSequence.new(0,1) | |
2619 | end | |
2620 | ||
2621 | ||
2622 | ||
2623 | --GunPart.Transparency = i*1.5 | |
2624 | --GunPart.Size = Vector3.new(0.85-i,.85-i,.05) | |
2625 | ||
2626 | ||
2627 | ||
2628 | ||
2629 | ||
2630 | ||
2631 | ||
2632 | --game:GetService("Debris"):AddItem(WalkPart2, .4) | |
2633 | --game:GetService("Debris"):AddItem(WalkPart, .4) | |
2634 | --game:GetService("Debris"):AddItem(Attach1, .4) | |
2635 | --game:GetService("Debris"):AddItem(Attach2, .4) | |
2636 | ||
2637 | end)) | |
2638 | ||
2639 | ||
2640 | ||
2641 | ||
2642 | ||
2643 | ||
2644 | ||
2645 | ||
2646 | end)) | |
2647 | ||
2648 | ||
2649 | ||
2650 | ||
2651 | end | |
2652 | ||
2653 | ||
2654 | ||
2655 | end)) | |
2656 | ||
2657 | ||
2658 | ||
2659 | end | |
2660 | end | |
2661 | ||
2662 | ||
2663 | ||
2664 | ||
2665 | coroutine.resume(coroutine.create(function() | |
2666 | ||
2667 | for i = 0,4,0.3 do Swait() | |
2668 | Beam1.Transparency = NumberSequence.new(i,(i)/2) | |
2669 | ||
2670 | end | |
2671 | end)) | |
2672 | ||
2673 | NewParticle.Enabled = false | |
2674 | NewParticle2.Enabled = false | |
2675 | eyeffect1.Enabled = false | |
2676 | ||
2677 | game:GetService("Debris"):AddItem(WalkPart, 1) | |
2678 | --game:GetService("Debris"):AddItem(Attach1, .4) | |
2679 | game:GetService("Debris"):AddItem(Attach2, 1) | |
2680 | game:GetService("Debris"):AddItem(Beam1, 1) | |
2681 | ||
2682 | game:GetService("Debris"):AddItem(NewParticle, 1) | |
2683 | game:GetService("Debris"):AddItem(NewParticle2, 1) | |
2684 | game:GetService("Debris"):AddItem(eyeffect1, 1) | |
2685 | ||
2686 | so("1229184354",Torso,5,2) | |
2687 | end)) | |
2688 | ||
2689 | for i = 1,4,.075 do | |
2690 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(40-10*i),math.rad(0),math.rad(0))},"Linear","InOut",0.1) | |
2691 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2692 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)+(45/2)*i ))},"Quad","Out",0.1) | |
2693 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90+math.random(-5,5)),math.rad(0),math.rad(math.random(-5,5)-(45/2)*i))},"Quad","Out",0.1) | |
2694 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad((45/2)*(i)),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2695 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad((45/2)*(i)),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2696 | bodyVelocity.velocity = Vector3.new(0, 1, 0)+Torso.CFrame.lookVector*-40 Swait() end | |
2697 | eyehold = false | |
2698 | Swait() | |
2699 | bodyVelocity.velocity = Vector3.new(0, 0, 0) | |
2700 | bodyVelocity.maxForce = Vector3.new(8000000, 0 , 8000000) | |
2701 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2702 | for i = 1,11,.7 do | |
2703 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(-36*i),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2704 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2705 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-90),math.rad(0),math.rad(90))},"Quad","Out",0.1) | |
2706 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-90),math.rad(0),math.rad(-90))},"Quad","Out",0.1) | |
2707 | SetTween(RH,{C0=CFrame.new(.5, -.5, -.25)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2708 | SetTween(LH,{C0=CFrame.new(-.5, -.5, -.25)*angles(math.rad(-50),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2709 | ||
2710 | ||
2711 | Swait() end | |
2712 | ||
2713 | ||
2714 | ||
2715 | ||
2716 | ||
2717 | attack = false | |
2718 | end | |
2719 | dancing = false | |
2720 | ||
2721 | function Tuant2() | |
2722 | attack = true | |
2723 | ||
2724 | dancing = true | |
2725 | while dancing == true do | |
2726 | local dahspeed=.5+visn/100 | |
2727 | change = (0.60*1)*dahspeed | |
2728 | Humanoid.JumpPower = 0 | |
2729 | Humanoid.WalkSpeed=2 | |
2730 | local speed = 1 + visn/1000 | |
2731 | SetTween(RJW,{C0=RootCF*CFrame.new(0+(.75*math.cos(sine/8)),0+(.2*math.sin(sine/16)),-.25+(-.1*math.cos(sine/4)))*angles(math.rad(-10-10*math.sin(sine/16)),math.rad(0),math.rad(0+(20*math.sin(sine/8))))},"Quad","InOut",0.1/speed) | |
2732 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(20*math.sin(sine/16)),math.rad(0),math.rad(0-(20*math.sin(sine/32))))},"Quad","InOut",0.1/speed) | |
2733 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(120+(-20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(25+(25*math.cos(sine/8)) ))},"Quad","Out",0.1/speed) | |
2734 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(120+(20*math.cos(sine/8))+(-20*math.sin(sine/16))),math.rad(0),math.rad(-25+(25*math.cos(sine/8))))},"Quad","Out",0.1/speed) | |
2735 | SetTween(RH,{C0=CFrame.new(.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))-(5*math.sin(sine/8)) ),math.rad(-20+(-20*math.sin(sine/8))),math.rad(10+(20*math.cos(sine/8))))},"Quad","InOut",0.1/speed) | |
2736 | SetTween(LH,{C0=CFrame.new(-.5, -.9+.1*math.cos(sine/4), -.1-.1*math.cos(sine/4))*angles(math.rad(-10-(10*math.sin(sine/16))+(5*math.sin(sine/8)) ),math.rad(20+(-20*math.sin(sine/8))),math.rad(-10+(20*math.cos(sine/8))))},"Quad","InOut",0.1/speed) | |
2737 | ||
2738 | Swait() | |
2739 | end | |
2740 | Humanoid.JumpPower = 60 | |
2741 | Humanoid.WalkSpeed=16 | |
2742 | attack = false | |
2743 | end | |
2744 | ||
2745 | function UpdateJets() | |
2746 | if Jets == true then | |
2747 | -- Jets=true | |
2748 | SetTween(RB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5) | |
2749 | SetTween(RB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5) | |
2750 | SetTween(LB1,{C0=CF(0,.25,-.05)*ANGLES(mr(25),0,0)},"Back","Out",.5) | |
2751 | SetTween(LB2,{C0=CF(0,.25,.05)*ANGLES(mr(-25),0,0)},"Back","Out",.5) | |
2752 | for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = true end end | |
2753 | ||
2754 | for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = true end end | |
2755 | ||
2756 | else | |
2757 | -- Jets=false | |
2758 | SetTween(RB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5) | |
2759 | SetTween(RB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5) | |
2760 | SetTween(LB1,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5) | |
2761 | SetTween(LB2,{C0=CF(0,-0,0)*ANGLES(0,0,0)},"Back","Out",.5) | |
2762 | for _,v in next, RightLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = false end end | |
2763 | ||
2764 | for _,v in next, LeftLeg:GetDescendants() do if v:IsA("ParticleEmitter") then v.Enabled = false end end | |
2765 | ||
2766 | end | |
2767 | end | |
2768 | ||
2769 | ||
2770 | ||
2771 | function DroneSwarm() | |
2772 | attack = true | |
2773 | --[ | |
2774 | local randomtuant = math.random(1,4) | |
2775 | if randomtuant == 1 then | |
2776 | so("159972582", Head,2, 1) | |
2777 | elseif randomtuant == 2 then | |
2778 | so("159882410", Head,2, 1) | |
2779 | elseif randomtuant == 3 then | |
2780 | so("159882578", Head,2, 1) | |
2781 | elseif randomtuant == 4 then | |
2782 | so("159882417", Head,2, 1) | |
2783 | end | |
2784 | for _,v in pairs(Head:children()) do | |
2785 | if v:isA("Sound") then | |
2786 | EffectPack.Echo2:Clone().Parent = v | |
2787 | EffectPack.PT:Clone().Parent = v | |
2788 | end | |
2789 | end | |
2790 | local fatsavecf = MHIT | |
2791 | coroutine.resume(coroutine.create(function() | |
2792 | for i = 1,math.random(2,4) do Swait(math.random(1,10)) SpawnDrone(fatsavecf) | |
2793 | end end)) | |
2794 | --]] | |
2795 | ||
2796 | for i = 0,1,0.1 do | |
2797 | ||
2798 | ||
2799 | change = (0.60*5) | |
2800 | Humanoid.JumpPower = 10 | |
2801 | Humanoid.WalkSpeed=0 | |
2802 | ||
2803 | local speed = 1 | |
2804 | ||
2805 | ||
2806 | if weps == false then | |
2807 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed) | |
2808 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
2809 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
2810 | else | |
2811 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed) | |
2812 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
2813 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(40 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
2814 | ||
2815 | ||
2816 | end | |
2817 | SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(170 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed) | |
2818 | SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
2819 | SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
2820 | ||
2821 | ||
2822 | Swait() | |
2823 | end | |
2824 | ||
2825 | for i = 0,3,0.1 do | |
2826 | ||
2827 | ||
2828 | change = (0.60*5) | |
2829 | Humanoid.JumpPower = 10 | |
2830 | Humanoid.WalkSpeed=0 | |
2831 | ||
2832 | local speed = 1 | |
2833 | ||
2834 | ||
2835 | if weps == false then | |
2836 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1/speed) | |
2837 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5-20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(-20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
2838 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
2839 | else | |
2840 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1/speed) | |
2841 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(-20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
2842 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
2843 | ||
2844 | ||
2845 | end | |
2846 | SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(170 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed) | |
2847 | SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
2848 | SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
2849 | ||
2850 | ||
2851 | Swait() | |
2852 | end | |
2853 | attack = false | |
2854 | end | |
2855 | ||
2856 | ||
2857 | ---------------------------------------------------------------------------------------------------- | |
2858 | flying = false | |
2859 | ||
2860 | function FlyMove() | |
2861 | attack = true | |
2862 | local NextAnimSpeed=0.1 | |
2863 | local dahspeed=1 | |
2864 | flying = true | |
2865 | so(2157448269,Torso,2,1) | |
2866 | Jets = true | |
2867 | UpdateJets() | |
2868 | local bg2 = Instance.new("BodyGyro", RootPart) | |
2869 | for i = 0,1,NextAnimSpeed do Swait() | |
2870 | local inairvel2 = 0 | |
2871 | ||
2872 | Humanoid.PlatformStand = false | |
2873 | change = (0.60*2)*dahspeed | |
2874 | Humanoid.JumpPower = 0 | |
2875 | Humanoid.WalkSpeed=0 | |
2876 | ||
2877 | coroutine.resume(coroutine.create(function() | |
2878 | ||
2879 | bg2.D = 300 | |
2880 | bg2.P = 9999 | |
2881 | bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge | |
2882 | bg2.CFrame = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z)) | |
2883 | ||
2884 | end)) | |
2885 | ||
2886 | ||
2887 | local ADNum = 0 | |
2888 | SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), 1.5 + .4 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(45 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.1) | |
2889 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(23.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1) | |
2890 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 + 4 * math.sin(sine / 8)))},"Quad","Out",0.1) | |
2891 | SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.1) | |
2892 | SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(45.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1) | |
2893 | SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1) | |
2894 | ||
2895 | ||
2896 | ||
2897 | --CGPT:Emit(1) | |
2898 | end | |
2899 | if flying==true then | |
2900 | ||
2901 | ||
2902 | ||
2903 | ||
2904 | ||
2905 | ||
2906 | coroutine.resume(coroutine.create(function() | |
2907 | while true do | |
2908 | ||
2909 | so("169572883",Torso,3,1.0) | |
2910 | wait(.5) | |
2911 | if flying == false then | |
2912 | break | |
2913 | end | |
2914 | ||
2915 | end | |
2916 | end)) end | |
2917 | if flying == true then | |
2918 | ||
2919 | ||
2920 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*60, P = 5000, maxForce = Vector3.new(80000, 80000, 80000), Parent = RootPart}) | |
2921 | ||
2922 | ||
2923 | ||
2924 | for i = 1,40,.25 do if flying == true then Swait() end | |
2925 | local inairvel2 = 0 | |
2926 | ||
2927 | Humanoid.PlatformStand = true | |
2928 | change = (0.60*3)*dahspeed | |
2929 | Humanoid.JumpPower = 0 | |
2930 | Humanoid.WalkSpeed=0 | |
2931 | coroutine.resume(coroutine.create(function() | |
2932 | ||
2933 | bg2.D = 300 | |
2934 | bg2.P = 9999 | |
2935 | bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge | |
2936 | bg2.CFrame = CFrame.new(RootPart.Position,MHIT.p) | |
2937 | ||
2938 | end)) | |
2939 | if OverClocking == false then | |
2940 | bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*100 | |
2941 | else | |
2942 | bodyVelocity.velocity=Vector3.new(0, .1, 0)+RootPart.CFrame.lookVector*200 | |
2943 | end | |
2944 | if OverClocking == true and flying == true then | |
2945 | Lightning((RootPart.CFrame*CF(math.random(-2,2),math.random(-1,1),-0)).p,(RootPart.CFrame*CF(math.random(-36,36),math.random(-36,36),70)).p, 10, 0.6, BrickColor.new("Persimmon"), 1.5, .9,-.25*2,.55,1) | |
2946 | end | |
2947 | local ADNum = 0 | |
2948 | SetTween(RJW,{C0=RootCF*cn(0, 1, 0) * angles(math.rad(60 - 6.5 * math.cos(sine / 8)), math.rad(0), math.rad(0))},"Quad","InOut",0.08) | |
2949 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-13.5 - 5.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(0 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1) | |
2950 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 4 * math.cos(sine / 8 )), math.rad(-5), math.rad(28 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2) | |
2951 | SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 4 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2) | |
2952 | SetTween(RH,{C0=CFrame.new(.5, -0.85+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.1) * CFrame.Angles(math.rad(-11.5+ 5 * math.sin(sine / 8)),math.rad(-15),math.rad(12.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1) | |
2953 | SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(sine / 8)),math.rad(15),math.rad(-12.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1) | |
2954 | ||
2955 | ||
2956 | ||
2957 | --CGPT:Emit(1) | |
2958 | ||
2959 | ||
2960 | end coroutine.resume(coroutine.create(function() | |
2961 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1) end)) | |
2962 | end | |
2963 | so(1053625322,LeftLeg,2,0.5) | |
2964 | so(1053625322,RightLeg,2,0.5) | |
2965 | for i = 0,1.0,.15 do Swait() | |
2966 | Humanoid.PlatformStand = false | |
2967 | ||
2968 | local inairvel2 = 0 | |
2969 | ||
2970 | ||
2971 | change = (0.60*2)*dahspeed | |
2972 | Humanoid.JumpPower = 0 | |
2973 | Humanoid.WalkSpeed=0 | |
2974 | ||
2975 | ||
2976 | ||
2977 | local ADNum = 0 | |
2978 | SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), 1.5 + .4 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(-20 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.12) | |
2979 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(43.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.2) | |
2980 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(0 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2) | |
2981 | SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2) | |
2982 | SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(21.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1) | |
2983 | SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.1) | |
2984 | ||
2985 | ||
2986 | ||
2987 | coroutine.resume(coroutine.create(function() | |
2988 | ||
2989 | bg2.D = 300 | |
2990 | bg2.P = 9999 | |
2991 | bg2.maxTorque = Vector3.new(1e+005,1e+000,1e+005)*math.huge | |
2992 | bg2.CFrame = CFrame.new(RootPart.Position,Vector3.new(MHIT.p.x,RootPart.Position.y,MHIT.p.z)) | |
2993 | ||
2994 | end)) | |
2995 | end | |
2996 | wait(.1) | |
2997 | coroutine.resume(coroutine.create(function() | |
2998 | ||
2999 | bg2:Destroy() | |
3000 | ||
3001 | end)) | |
3002 | ||
3003 | coroutine.resume(coroutine.create(function() | |
3004 | ||
3005 | for i = 1,10 do | |
3006 | for _,v in pairs(Torso:children()) do | |
3007 | if v:isA("Sound") then | |
3008 | v.Volume = v.Volume - .2 | |
3009 | end | |
3010 | end | |
3011 | Swait() | |
3012 | end | |
3013 | end)) | |
3014 | flying = false | |
3015 | Jets = false | |
3016 | UpdateJets() | |
3017 | for i = 0,0.75,.10 do Swait() | |
3018 | Humanoid.PlatformStand = false | |
3019 | ||
3020 | local inairvel2 = 0 | |
3021 | ||
3022 | ||
3023 | change = (0.60*2)*dahspeed | |
3024 | Humanoid.JumpPower = 0 | |
3025 | Humanoid.WalkSpeed=0 | |
3026 | ||
3027 | ||
3028 | ||
3029 | local ADNum = 0 | |
3030 | SetTween(RJW,{C0=RootCF*cn(0, 0+ .25 * math.cos(sine / 8), -0.2 + .1 * math.sin(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(-20 - 2.5 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(20))},"Quad","InOut",0.08) | |
3031 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(43.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(2.5-5.5 * math.cos(sine / 16)), math.rad(-20 - 0.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.08) | |
3032 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(-5), math.rad(0 + 4 * math.sin(sine / 8)))},"Quad","Out",0.2) | |
3033 | SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + .05 * math.sin(sine / 8), .0) * angles(math.rad(-20 + 5 * math.cos(sine / 8 )), math.rad(5), math.rad(-28 - 4 * math.sin(sine / 8 )))},"Quad","Out",0.2) | |
3034 | SetTween(RH,{C0=CFrame.new(.5, -0.45+ .1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -0.3) * CFrame.Angles(math.rad(-21.5+ 10 * math.sin(sine / 8)),math.rad(-25),math.rad(2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.08) | |
3035 | SetTween(LH,{C0=CFrame.new(-.5, -0.85+.1 * math.sin(sine / 8 +ADNum* math.sin(sine / 8*2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(sine / 8)),math.rad(25),math.rad(-2.5- 0.0 * math.sin(sine / 8)))},"Quad","InOut",0.08) | |
3036 | ||
3037 | ||
3038 | ||
3039 | ||
3040 | end | |
3041 | ||
3042 | Humanoid.JumpPower = 20 | |
3043 | Humanoid.WalkSpeed=10 | |
3044 | attack = false | |
3045 | end | |
3046 | ||
3047 | ||
3048 | function Tesla() | |
3049 | attack=true | |
3050 | local dahspeed=1 | |
3051 | if attack == true and mememode == true then | |
3052 | dahspeed=3 --speedstuff --5 | |
3053 | end --/dahspeed | |
3054 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed) | |
3055 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed) | |
3056 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed) | |
3057 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(-30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed) | |
3058 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed) | |
3059 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed) | |
3060 | ||
3061 | --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3) | |
3062 | SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1) | |
3063 | if OverClocking ==true then | |
3064 | ||
3065 | SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1) | |
3066 | ||
3067 | end | |
3068 | ||
3069 | wait(.3/dahspeed) | |
3070 | --DGT() | |
3071 | ||
3072 | ||
3073 | coroutine.resume(coroutine.create(function() | |
3074 | so("348663022", RightArm,4, 1.2) | |
3075 | wait(.1/dahspeed) | |
3076 | ||
3077 | ||
3078 | CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown") | |
3079 | ||
3080 | ||
3081 | end)) | |
3082 | ||
3083 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-0),math.rad(-20))},"Back","Out",.3/dahspeed) | |
3084 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(30),math.rad(-0),math.rad(20))},"Back","Out",.3/dahspeed) | |
3085 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(-10),math.rad(0),math.rad(10))},"Back","Out",.3/dahspeed) | |
3086 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(150),math.rad(-0),math.rad(-20))},"Back","Out",.4/dahspeed) | |
3087 | SetTween(RH,{C0=CFrame.new(.5, -.8, -.1)*angles(math.rad(-20),math.rad(0),math.rad(20))},"Back","Out",.3/dahspeed) | |
3088 | SetTween(LH,{C0=CFrame.new(-.5, -.8, -.1)*angles(math.rad(30),math.rad(40),math.rad(-20))},"Back","Out",.3/dahspeed) | |
3089 | ||
3090 | --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15) | |
3091 | ||
3092 | SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05) | |
3093 | ||
3094 | if OverClocking ==true then | |
3095 | ||
3096 | SetTween(LHP.Glow,{Transparency = .15},"Quad","InOut",0.05) | |
3097 | ||
3098 | end | |
3099 | for i = 1,50 do Swait(1) | |
3100 | for i = 1,math.random(1,3) do | |
3101 | local lighth,lightp,test1 = rayCast(LHP.Glow.CFrame.p, CF(VT(0,0,0),VT(math.random(-100,100),math.random(-100,100),math.random(-100,100))).lookVector, 50, Character) | |
3102 | ||
3103 | if lighth~=nil then | |
3104 | BulletHitEffectSpawn(CF(lightp,lightp+test1),"Spark") | |
3105 | Lightning(LHP.Glow.CFrame.p,lightp , 5, 2.6, BrickColor.new("Persimmon"), 2, .5,-.25*2,.5,nil) end | |
3106 | end | |
3107 | ||
3108 | local v = findNearestTorso(LHP.Glow.Position,50) | |
3109 | ||
3110 | if v ~= nil then | |
3111 | local lighth2,lightp2,test12 = rayCast(LHP.Glow.CFrame.p, CF(LHP.Glow.CFrame.p,v.Position).lookVector, 50, Character) | |
3112 | ||
3113 | Lightning(LHP.Glow.CFrame.p,lightp2 , 5, 2.6, BrickColor.new("Persimmon"), 2, .5,-.25*2,.5,nil) | |
3114 | BulletHitEffectSpawn(CF(lightp2,lightp2+test12),"Spark") | |
3115 | ||
3116 | CFMagniDamage(CF(lightp2),10,45,80,20,"Knockdown") | |
3117 | ||
3118 | end | |
3119 | ||
3120 | end | |
3121 | ||
3122 | ||
3123 | ||
3124 | ||
3125 | ||
3126 | ||
3127 | ||
3128 | SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25) | |
3129 | SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25) | |
3130 | attack = false | |
3131 | end | |
3132 | ||
3133 | ||
3134 | ||
3135 | ||
3136 | function AT1() | |
3137 | attack=true | |
3138 | local dahspeed=1 | |
3139 | if attack == true and mememode == true then | |
3140 | dahspeed=3 --speedstuff --5 | |
3141 | end --/dahspeed | |
3142 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50))},"Quad","InOut",.3/dahspeed) | |
3143 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-50))},"Quad","InOut",.3/dahspeed) | |
3144 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Quad","InOut",.3/dahspeed) | |
3145 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(60),math.rad(0),math.rad(-0))},"Quad","InOut",.3/dahspeed) | |
3146 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed) | |
3147 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3/dahspeed) | |
3148 | ||
3149 | --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(-30+90),math.rad(-90),math.rad(0))},"Quad","InOut",.3) | |
3150 | SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.1) | |
3151 | if OverClocking ==true then | |
3152 | ||
3153 | SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.1) | |
3154 | ||
3155 | end | |
3156 | ||
3157 | wait(.3/dahspeed) | |
3158 | --DGT() | |
3159 | ||
3160 | ||
3161 | coroutine.resume(coroutine.create(function() | |
3162 | so("1428541279", RightArm,1.6, math.random(120,220)/100) | |
3163 | wait(.1/dahspeed) | |
3164 | ||
3165 | if OverClocking ==false then | |
3166 | CFMagniDamage(LeftArm.CFrame,5,40,60,math.random(500,1000)/10,"Knockdown") | |
3167 | ||
3168 | else | |
3169 | ||
3170 | local v = findNearestTorso(LHP.Glow.Position,20) | |
3171 | ||
3172 | if v ~= nil then | |
3173 | ||
3174 | Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Persimmon"), .5, .5,-.25*2,.5,nil) | |
3175 | Lightning(LHP.Glow.CFrame.p,v.Position, 10, 0.6, BrickColor.new("Persimmon"), .5, .5,-.25*2,.5,nil) | |
3176 | ||
3177 | CFMagniDamage(LHP.Glow.CFrame,20,45,80,math.random(320,520)/10,"Knockdown") | |
3178 | ||
3179 | end | |
3180 | ||
3181 | end | |
3182 | end)) | |
3183 | ||
3184 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,-.4)*angles(math.rad(0),math.rad(-40),math.rad(-60))},"Back","Out",.1/dahspeed) | |
3185 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(60))},"Back","Out",.1/dahspeed) | |
3186 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-40))},"Back","Out",.1/dahspeed) | |
3187 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(-45),math.rad(-30))},"Back","Out",.1/dahspeed) | |
3188 | SetTween(RH,{C0=CFrame.new(.5, -.8, -.6)*angles(math.rad(-20),math.rad(0),math.rad(40))},"Back","Out",.1/dahspeed) | |
3189 | SetTween(LH,{C0=CFrame.new(-.5, -.8, -.5)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.1/dahspeed) | |
3190 | ||
3191 | --SetTween(SwordW,{C0=CFrame.new(0,-1,0)*angles(math.rad(120),math.rad(-90),math.rad(0))},"Back","Out",.15) | |
3192 | ||
3193 | SetTween(LHP2,{C0=CF(0,-.85,0)},"Quad","InOut",0.05) | |
3194 | ||
3195 | if OverClocking ==true then | |
3196 | ||
3197 | SetTween(LHP.Glow,{Transparency = .75},"Quad","InOut",0.05) | |
3198 | ||
3199 | end | |
3200 | ||
3201 | ||
3202 | wait(.15/dahspeed) | |
3203 | ||
3204 | SetTween(LHP2,{C0=CF(0,0,0)},"Quad","InOut",.25) | |
3205 | SetTween(LHP.Glow,{Transparency = 1},"Quad","InOut",0.25) | |
3206 | attack = false | |
3207 | end | |
3208 | ||
3209 | gui = Instance.new("ScreenGui",Player.PlayerGui) | |
3210 | gui.Name = "Xgui" | |
3211 | guifat = Instance.new("Frame",gui) | |
3212 | guifat.Size = UDim2.new(1, 0, 1, 0) | |
3213 | guifat.Name = "FAT" | |
3214 | guifat.BackgroundTransparency = 1 | |
3215 | viewport = Instance.new("ViewportFrame",guifat) | |
3216 | viewport.Size = UDim2.new(1, 0, 1, 0) | |
3217 | viewport.BackgroundTransparency = 1 | |
3218 | viewport.BackgroundColor3 = C3(1,1,1) | |
3219 | function Attack6() | |
3220 | SetTween(viewport,{BackgroundTransparency=.15,BackgroundColor3 = C3(0,0,0)},"Bounce","InOut",.25) | |
3221 | IsXray = true | |
3222 | ||
3223 | ||
3224 | print("ran") | |
3225 | for _,v in next, workspace:GetDescendants() do if v:IsA("Humanoid")and v~=Humanoid then | |
3226 | print(""..v.Parent.Name) | |
3227 | for _,v2 in next, v.Parent:GetDescendants() do | |
3228 | if v2:IsA("BasePart") then | |
3229 | -- print(""..v2.Name) | |
3230 | local Xpart = EffectPack.Part:Clone() | |
3231 | Xpart.Parent = viewport | |
3232 | Xpart.Name = "Xray" | |
3233 | Xpart.Size = v2.Size+VT(0.05,0.05,0.05) | |
3234 | Xpart.Material = "ForceField" | |
3235 | Xpart.Transparency = 0 | |
3236 | Xpart.CFrame = v2.CFrame | |
3237 | if v2:FindFirstChildOfClass("SpecialMesh") then | |
3238 | coroutine.resume(coroutine.create(function() | |
3239 | v2:FindFirstChildOfClass("SpecialMesh").Archivable = false | |
3240 | ||
3241 | local clone = v2:FindFirstChildOfClass("SpecialMesh").Clone() | |
3242 | clone.Parent = Xpart end)) | |
3243 | end | |
3244 | ||
3245 | local value = Instance.new("ObjectValue",Xpart) | |
3246 | value.Value = v2 | |
3247 | value.Name = "val" | |
3248 | Xpart.BrickColor = BrickColor.new("Really red") | |
3249 | --local Xweld=weld(Xpart,v2,Xpart,cf(0,0,0)) | |
3250 | end | |
3251 | ||
3252 | end | |
3253 | ||
3254 | ||
3255 | end end | |
3256 | ||
3257 | while IsXray == true do Swait(5) end | |
3258 | ||
3259 | ||
3260 | SetTween(viewport,{BackgroundTransparency=1,BackgroundColor3 = C3(1,1,1)},"Bounce","InOut",.5) | |
3261 | for _,v in next, viewport:GetDescendants() do | |
3262 | v:Destroy() | |
3263 | end | |
3264 | ||
3265 | ||
3266 | end | |
3267 | ||
3268 | function ClickCombo() | |
3269 | if Anim == "Fall" or Anim == "Jump" then | |
3270 | if Combo == 0 then | |
3271 | --DownAT() | |
3272 | end | |
3273 | else | |
3274 | if Combo == 0 then | |
3275 | AT1() | |
3276 | Combo = 0 | |
3277 | elseif Combo == 1 then | |
3278 | AT2() | |
3279 | Combo = 0 | |
3280 | elseif Combo == 2 then | |
3281 | AT3() | |
3282 | Combo = 0 | |
3283 | end | |
3284 | end | |
3285 | end | |
3286 | ||
3287 | ||
3288 | ||
3289 | local Hold = false | |
3290 | local weps = false | |
3291 | ||
3292 | Button1DownF=function() | |
3293 | Hold = true | |
3294 | if weps and attack == false then | |
3295 | for _,v in next, FlameThrower.Thrower:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then v.Enabled = true end end | |
3296 | while Hold == true do coroutine.resume(coroutine.create(function() for i = 1,6 do CFMagniDamage(RightArm.CFrame*CF(0,2-2*i,0),2.5*(i/2.5), 10/2, 25/2, 0, "Fire") end end)) so("1273118342", RightArm,2, math.random(10,20)/10) Swait(2) end | |
3297 | ||
3298 | end | |
3299 | ||
3300 | if weps == false and attack == false then | |
3301 | ||
3302 | ClickCombo() | |
3303 | end | |
3304 | ||
3305 | ||
3306 | end | |
3307 | ||
3308 | ||
3309 | ||
3310 | Button1UpF=function() | |
3311 | ||
3312 | if Hold==true then | |
3313 | ||
3314 | Hold = false | |
3315 | for _,v in next, FlameThrower.Thrower:GetDescendants() do if v:IsA("ParticleEmitter") or v:IsA("SpotLight") then v.Enabled = false end end | |
3316 | ||
3317 | end | |
3318 | ||
3319 | end | |
3320 | ||
3321 | so("420194643", Head,1, 1) | |
3322 | ||
3323 | ||
3324 | KeyUpF=function(key) | |
3325 | ||
3326 | if key == "e" then | |
3327 | if flying == true then | |
3328 | flying=false | |
3329 | end | |
3330 | ||
3331 | end | |
3332 | ||
3333 | end | |
3334 | ||
3335 | KeyDownF=function(key) | |
3336 | if key == "f" and attack == false and (weps == false or Hold == false) then | |
3337 | ||
3338 | if weps == false then | |
3339 | weps = true else weps = false | |
3340 | end | |
3341 | if weps == true then | |
3342 | so("420194643", Head.Handle,1, .8) | |
3343 | so("420997245", Head.Handle,5, 0.7) | |
3344 | for _,v in pairs(Head.Handle:children()) do | |
3345 | if v:isA("Sound") then | |
3346 | EffectPack.Echo:Clone().Parent = v | |
3347 | end | |
3348 | end | |
3349 | coroutine.resume(coroutine.create(function() | |
3350 | FlameThrower.Lighter.Fire.Enabled = true end)) | |
3351 | SetTween(FlameW,{C0=CF(0,-.5,0)},"Back","Out",1) | |
3352 | SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","In",1) | |
3353 | ||
3354 | --SetTween(RightArm.Lower,{Transparency = 1},"Quad","Out",0.8) | |
3355 | ||
3356 | SetTween(Fg1,{C0=CF(-.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(-15))},"Back","Out",.5) | |
3357 | SetTween(Fg2,{C0=CF(.0,.25,-.0)*ANGLES(mr(25),mr(0),mr(15))},"Back","Out",.5) | |
3358 | SetTween(Fg3,{C0=CF(.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(15))},"Back","Out",.5) | |
3359 | SetTween(Fg4,{C0=CF(-.0,.25,.0)*ANGLES(mr(-25),mr(0),mr(-15))},"Back","Out",.5) | |
3360 | ||
3361 | ||
3362 | SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2) | |
3363 | ||
3364 | wait(.25) | |
3365 | ||
3366 | SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Back","Out",.25) | |
3367 | else | |
3368 | so("420194643", Head.Handle,1, 1) | |
3369 | so("332757260", Head.Handle,3, 1.75) | |
3370 | ||
3371 | for _,v in pairs(Head.Handle:children()) do | |
3372 | if v:isA("Sound") then | |
3373 | EffectPack.Echo:Clone().Parent = v | |
3374 | end | |
3375 | end | |
3376 | coroutine.resume(coroutine.create(function() | |
3377 | FlameThrower.Lighter.Fire.Enabled = false end)) | |
3378 | SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(0,0,0)},"Quad","Out",.5) | |
3379 | SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",.5) | |
3380 | ||
3381 | --SetTween(RightArm.Lower,{Transparency = 0},"Quad","In",1) | |
3382 | ||
3383 | SetTween(Fg1,{C0=CF(0,-0,0)},"Quad","In",.5) | |
3384 | SetTween(Fg2,{C0=CF(0,-0,0)},"Quad","In",.5) | |
3385 | SetTween(Fg3,{C0=CF(0,-0,0)},"Quad","In",.5) | |
3386 | SetTween(Fg4,{C0=CF(0,-0,0)},"Quad","In",.5) | |
3387 | ||
3388 | SetTween(MX1w,{C0=CF(0,0,.15)*ANGLES(mr(90),0,0)},"Back","Out",1/2) | |
3389 | ||
3390 | wait(.25) | |
3391 | SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",.25) | |
3392 | end | |
3393 | ||
3394 | end | |
3395 | if key == "z" and attack == false and weps == true then | |
3396 | Attack1() | |
3397 | end | |
3398 | if key == "x" and attack == false and weps == false and OverClocking == true then | |
3399 | Tesla() | |
3400 | end | |
3401 | ||
3402 | if key == "x" and attack == false and weps == true then | |
3403 | Attack2() | |
3404 | end | |
3405 | if key == "e" and attack == false then | |
3406 | FlyMove() | |
3407 | end | |
3408 | if key == "y" then | |
3409 | if dancing == false and attack == false then | |
3410 | Tuant2() | |
3411 | elseif dancing == true and attack == true then | |
3412 | dancing = false | |
3413 | end | |
3414 | ||
3415 | ||
3416 | end | |
3417 | if key == "v" and attack == false and weps == true then | |
3418 | ||
3419 | DroneSwarm() | |
3420 | ||
3421 | end | |
3422 | ||
3423 | ||
3424 | ||
3425 | if key == "q" and attack == false then | |
3426 | if OverClocking == false then | |
3427 | CurId=CurId-1 | |
3428 | OverClocking = true | |
3429 | for i = 1,4 do | |
3430 | for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and v.Name == "OverClock"..i then v.Enabled = true end end | |
3431 | end | |
3432 | lastid= "http://www.roblox.com/asset/?id=1534958855" | |
3433 | ||
3434 | lastsongpos = 0 | |
3435 | s2.TimePosition = lastsongpos | |
3436 | ||
3437 | so(254873067,Torso,2,1) | |
3438 | so(1567217295,Torso,3,.8) | |
3439 | so(147060085,Torso,5,1) | |
3440 | ||
3441 | else | |
3442 | OverClocking = false | |
3443 | for i = 1,4 do | |
3444 | for _,v in next, Character:GetDescendants() do if v:IsA("ParticleEmitter") and v.Name == "OverClock"..i then v.Enabled = false end end | |
3445 | end | |
3446 | ||
3447 | end | |
3448 | ||
3449 | ||
3450 | ||
3451 | KeyDownF("n") | |
3452 | ||
3453 | end | |
3454 | ||
3455 | ||
3456 | ||
3457 | ||
3458 | ||
3459 | if key == "k" and attack == false then | |
3460 | --Attack5() | |
3461 | end | |
3462 | if key == "g" and attack == false then | |
3463 | if IsXray == false then | |
3464 | Attack6() | |
3465 | else | |
3466 | IsXray = false | |
3467 | end | |
3468 | end | |
3469 | if key == "t" and attack == false then | |
3470 | --Tuant() | |
3471 | attack = true | |
3472 | so("137473066", Head,2, 1.2) | |
3473 | for _,v in pairs(Head:children()) do | |
3474 | if v:isA("Sound") then | |
3475 | EffectPack.Echo2:Clone().Parent = v | |
3476 | EffectPack.PT:Clone().Parent = v | |
3477 | end | |
3478 | end | |
3479 | ||
3480 | for i = 0,2,0.1 do | |
3481 | ||
3482 | ||
3483 | change = (0.60*5) | |
3484 | Humanoid.JumpPower = 10 | |
3485 | Humanoid.WalkSpeed=0 | |
3486 | ||
3487 | local speed = 1 | |
3488 | ||
3489 | ||
3490 | if weps == false then | |
3491 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed) | |
3492 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
3493 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
3494 | else | |
3495 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-20))},"Quad","InOut",0.1/speed) | |
3496 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad(10+(math.random(-5,5)*1)), math.rad(20 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
3497 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(40 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
3498 | ||
3499 | ||
3500 | end | |
3501 | SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(0 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed) | |
3502 | SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
3503 | SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
3504 | ||
3505 | ||
3506 | Swait() | |
3507 | end | |
3508 | ||
3509 | for i = 0,4,0.1 do | |
3510 | ||
3511 | ||
3512 | change = (0.60*5) | |
3513 | Humanoid.JumpPower = 10 | |
3514 | Humanoid.WalkSpeed=0 | |
3515 | ||
3516 | local speed = 1 | |
3517 | ||
3518 | ||
3519 | if weps == false then | |
3520 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed) | |
3521 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5-20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(60 - -0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
3522 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
3523 | else | |
3524 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.3 + 0.05 * math.cos(sine / 8 )) * angles(math.rad(-5 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-60))},"Quad","InOut",0.1/speed) | |
3525 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+20.5*1 - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-5,5)*1)), math.rad(60 - 0+(math.random(-5,5)*1) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
3526 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,5)*1) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
3527 | ||
3528 | ||
3529 | end | |
3530 | SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,5)*1) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed) | |
3531 | SetTween(RH,{C0=CFrame.new(.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(-5),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
3532 | SetTween(LH,{C0=CFrame.new(-.5, -0.9- .1 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(-5.5 - 0 * math.cos(sine / 8)),math.rad(5),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
3533 | ||
3534 | ||
3535 | Swait() | |
3536 | end | |
3537 | attack = false | |
3538 | end | |
3539 | if key == "p" and attack == false and Player.Name=="123jl123" then | |
3540 | if mememode == false then | |
3541 | mememode=true | |
3542 | ||
3543 | --so("1499015636", Character,3, 1) | |
3544 | lastid= "http://www.roblox.com/asset/?id=319658286" | |
3545 | ||
3546 | ||
3547 | ||
3548 | ||
3549 | ||
3550 | ||
3551 | ||
3552 | ||
3553 | ||
3554 | ||
3555 | ||
3556 | lastsongpos = 0 | |
3557 | s2.TimePosition = lastsongpos | |
3558 | ||
3559 | ||
3560 | else | |
3561 | mememode=false | |
3562 | CurId=CurId-1 | |
3563 | KeyDownF("n") | |
3564 | ||
3565 | end | |
3566 | end | |
3567 | ||
3568 | ||
3569 | if key == "0" then | |
3570 | if isruning == false then | |
3571 | isruning=true | |
3572 | end | |
3573 | end | |
3574 | ||
3575 | ||
3576 | ||
3577 | ||
3578 | ||
3579 | ||
3580 | if key == "m" then | |
3581 | ||
3582 | if playsong == true then | |
3583 | playsong = false | |
3584 | s2:stop() | |
3585 | elseif playsong == false then | |
3586 | playsong = true | |
3587 | ||
3588 | ||
3589 | s2:play() | |
3590 | end | |
3591 | ||
3592 | end | |
3593 | ||
3594 | ||
3595 | ||
3596 | if key == "n" and not (mememode == true or OverClocking == true) then | |
3597 | ||
3598 | ||
3599 | ||
3600 | ||
3601 | ||
3602 | ||
3603 | CurId = CurId + 1 | |
3604 | ||
3605 | if CurId > 18 then | |
3606 | CurId = 1 | |
3607 | ||
3608 | end | |
3609 | warn("now playing song Nr"..CurId) | |
3610 | if CurId == 1 then | |
3611 | lastid= "http://www.roblox.com/asset/?id=146364977" | |
3612 | elseif CurId == 2 then | |
3613 | lastid= "http://www.roblox.com/asset/?id=340902917" | |
3614 | elseif CurId == 3 then | |
3615 | lastid= "http://www.roblox.com/asset/?id=287794839" | |
3616 | elseif CurId == 4 then | |
3617 | lastid= "http://www.roblox.com/asset/?id=628579255" | |
3618 | elseif CurId == 5 then | |
3619 | lastid= "http://www.roblox.com/asset/?id=273857798" | |
3620 | elseif CurId == 6 then | |
3621 | lastid= "http://www.roblox.com/asset/?id=273837018" | |
3622 | elseif CurId == 7 then | |
3623 | lastid= "http://www.roblox.com/asset/?id=571227431" | |
3624 | elseif CurId == 8 then | |
3625 | lastid= "http://www.roblox.com/asset/?id=172576479" | |
3626 | elseif CurId == 9 then | |
3627 | lastid= "http://www.roblox.com/asset/?id=2808524036" | |
3628 | elseif CurId == 10 then | |
3629 | lastid= "http://www.roblox.com/asset/?id=1646375621" | |
3630 | ||
3631 | elseif CurId == 11 then | |
3632 | lastid= "http://www.roblox.com/asset/?id=1349958157" | |
3633 | elseif CurId == 12 then | |
3634 | lastid= "http://www.roblox.com/asset/?id=1755770760" | |
3635 | elseif CurId == 13 then | |
3636 | lastid= "http://www.roblox.com/asset/?id=2577867501" | |
3637 | elseif CurId == 14 then | |
3638 | lastid= "http://www.roblox.com/asset/?id=340265439" | |
3639 | elseif CurId == 15 then | |
3640 | lastid= "http://www.roblox.com/asset/?id=2441582257" | |
3641 | elseif CurId == 16 then | |
3642 | lastid= "http://www.roblox.com/asset/?id=2496523226" | |
3643 | elseif CurId == 17 then | |
3644 | lastid= "http://www.roblox.com/asset/?id=283208073" | |
3645 | elseif CurId == 18 then | |
3646 | lastid= "http://www.roblox.com/asset/?id=2279798034" | |
3647 | ||
3648 | end | |
3649 | ||
3650 | ||
3651 | lastsongpos = 0 | |
3652 | s2.TimePosition = lastsongpos | |
3653 | ||
3654 | ||
3655 | end | |
3656 | ||
3657 | ||
3658 | end | |
3659 | ||
3660 | local OverClockEffect1 = EffectPack.OverClock1:Clone() | |
3661 | OverClockEffect1.Parent = Torso | |
3662 | OverClockEffect1.Enabled = false | |
3663 | local OverClockEffect2 = EffectPack.OverClock2:Clone() | |
3664 | OverClockEffect2.Parent = Torso | |
3665 | OverClockEffect2.Enabled = false | |
3666 | local OverClockEffect3 = EffectPack.OverClock3:Clone() | |
3667 | OverClockEffect3.Parent = Torso | |
3668 | OverClockEffect3.Enabled = false | |
3669 | ||
3670 | coroutine.resume(coroutine.create(function() | |
3671 | local OverClockEffect4 = EffectPack.OverClock4:Clone() | |
3672 | OverClockEffect4.Enabled = false | |
3673 | OverClockEffect4.Parent = Torso | |
3674 | OverClockEffect4:Clone().Parent = Head | |
3675 | OverClockEffect4:Clone().Parent = RightArm | |
3676 | OverClockEffect4:Clone().Parent = LeftArm | |
3677 | OverClockEffect4:Clone().Parent = RightLeg | |
3678 | OverClockEffect4:Clone().Parent = LeftLeg | |
3679 | ||
3680 | end)) | |
3681 | coroutine.resume(coroutine.create(function() | |
3682 | while Humanoid.Health>0.001 do | |
3683 | sine = sine + change | |
3684 | hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
3685 | ||
3686 | local torvel = (Humanoid.MoveDirection * Vector3.new(1, 0, 1)).magnitude | |
3687 | local velderp = RootPart.Velocity.y | |
3688 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
3689 | Anim = "Jump" | |
3690 | ||
3691 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
3692 | Anim = "Fall" | |
3693 | elseif Humanoid.Sit == true then | |
3694 | Anim = "Sit" | |
3695 | elseif torvel < .5 and hitfloor ~= nil then | |
3696 | Anim = "Idle" | |
3697 | elseif torvel > .5 and hitfloor ~= nil then | |
3698 | ||
3699 | Anim = "Walk" | |
3700 | ||
3701 | ||
3702 | ||
3703 | ||
3704 | else | |
3705 | Anim = "" | |
3706 | ||
3707 | end | |
3708 | ||
3709 | ||
3710 | local Ccf=Torso.CFrame | |
3711 | --warn(Humanoid.MoveDirection*RootPart.CFrame.lookVector) | |
3712 | local Walktest1 = Humanoid.MoveDirection*Ccf.LookVector | |
3713 | local Walktest2 = Humanoid.MoveDirection*Ccf.RightVector | |
3714 | --warn(Walktest1.Z.."/"..Walktest1.X) | |
3715 | --warn(Walktest2.Z.."/"..Walktest2.X) | |
3716 | forWFB = Walktest1.X+Walktest1.Z | |
3717 | forWRL = Walktest2.X+Walktest2.Z | |
3718 | ||
3719 | ||
3720 | ||
3721 | ||
3722 | ||
3723 | --print(Humanoid.MoveDirection) | |
3724 | --warn(Torso.CFrame.lookVector) | |
3725 | ||
3726 | ||
3727 | ||
3728 | coroutine.resume(coroutine.create(function() | |
3729 | ||
3730 | ||
3731 | if s2.Parent == nil or s2 == nil then | |
3732 | ||
3733 | s2 = s2c:Clone() | |
3734 | s2.Parent = Torso | |
3735 | s2.Name = "BGMusic" | |
3736 | -- s2.SoundId = lastid | |
3737 | s2.Pitch = 1 | |
3738 | s2.Volume = 1.5 | |
3739 | s2.Looped = true | |
3740 | s2.archivable = false | |
3741 | s2.TimePosition = lastsongpos | |
3742 | if playsong == true then | |
3743 | s2:play() | |
3744 | elseif playsong == false then | |
3745 | s2:stop() | |
3746 | end | |
3747 | ||
3748 | ||
3749 | else | |
3750 | lastsongpos=s2.TimePosition | |
3751 | s2.Pitch = 1 | |
3752 | ||
3753 | s2.Volume = 1.5 | |
3754 | s2.Name = "BGMusic" | |
3755 | s2.Looped = true | |
3756 | s2.SoundId = lastid | |
3757 | s2.EmitterSize = 30 | |
3758 | end | |
3759 | ||
3760 | ||
3761 | ||
3762 | end)) | |
3763 | ||
3764 | ||
3765 | ||
3766 | ||
3767 | inairvel=torvel*1 | |
3768 | ||
3769 | --forWRL | |
3770 | if inairvel > 30 then | |
3771 | inairvel=30 | |
3772 | end | |
3773 | inairvel=inairvel/50*2 | |
3774 | ||
3775 | ||
3776 | ||
3777 | if attack == false then | |
3778 | if Anim == "Jump" then | |
3779 | change = 0.60*2 | |
3780 | SetTween(RJW,{C0=RootCF* cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(sine / 8))+(inairvel*forWFB)/2, math.rad(0)-(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.25) | |
3781 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25) | |
3782 | SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(8 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2) | |
3783 | SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(140 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-8 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2) | |
3784 | SetTween(RH,{C0=CFrame.new(.5, -0.85+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075) | |
3785 | SetTween(LH,{C0=CFrame.new(-.5, -0.35+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075) | |
3786 | ||
3787 | ||
3788 | ||
3789 | elseif Anim == "Fall" then | |
3790 | change = 0.60*2 | |
3791 | SetTween(RJW,{C0=RootCF*cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.5 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-(inairvel*forWFB)/2, math.rad(0)+(inairvel*forWRL)/2, math.rad(0))},"Quad","Out",0.35) | |
3792 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25) | |
3793 | SetTween(RW,{C0=cf(1.4 + .05 * math.cos(sine / 8) , 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(-15), math.rad(80 + 4 * math.cos(sine / 8)))},"Quad","Out",0.2) | |
3794 | SetTween(LW,{C0=cf(-1.4 + .05 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), .0) * angles(math.rad(105 - 2 * math.cos(sine / 8 )), math.rad(15), math.rad(-80 - 4 * math.cos(sine / 8 )))},"Quad","Out",0.2) | |
3795 | SetTween(RH,{C0=CFrame.new(.5, -0.15+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3796 | SetTween(LH,{C0=CFrame.new(-.5, -0.55+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3797 | ||
3798 | ||
3799 | ||
3800 | elseif Anim == "Idle" then | |
3801 | ||
3802 | local dahspeed=0+visn/100 | |
3803 | ||
3804 | ||
3805 | change = (0.60*1)*dahspeed | |
3806 | Humanoid.JumpPower = 60 | |
3807 | Humanoid.WalkSpeed=16 | |
3808 | ||
3809 | local speed = .5 + visn/1000 | |
3810 | ||
3811 | local ADNum = 1 | |
3812 | if weps == false then | |
3813 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(-30))},"Quad","InOut",0.1/speed) | |
3814 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-25,25)*(visn/1000))), math.rad(0 - -30+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.1/speed) | |
3815 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(10 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
3816 | else | |
3817 | SetTween(RJW,{C0=RootCF*cn(0, 0, -0.1 + 0.0395 * math.cos(sine / 8 )) * angles(math.rad(10 - 0 * math.cos(sine / 8)), math.rad((0 + 0* math.cos(sine / 8)/20)), math.rad(30))},"Quad","InOut",0.1/speed) | |
3818 | SetTween(NeckW,{C0=NeckCF*angles(math.rad(-5+40.5*(visn/1000) - 4.5 * math.cos(sine / 8 )), math.rad(2.5-5.5 * math.cos(sine / 16))+math.rad((math.random(-25,25)*(visn/1000))), math.rad(0 - 30+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20))))},"Linear","InOut",0.075/speed) | |
3819 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.55 + .05 * math.cos(sine / 8), 0) * angles(math.rad(90 - 2 * math.cos(sine / 8 )), math.rad(-5), math.rad(30 +( math.random(0,15)*(visn/1000)) * math.cos(sine / 8)))},"Linear","Out",0.1/speed) | |
3820 | ||
3821 | ||
3822 | end | |
3823 | SetTween(LW,{C0=cf(-1.46 + .0 * math.cos(sine / 8), 0.5 + .05 * math.cos(sine / 8), 0) * angles(math.rad(20 - 2 * math.cos(sine / 8 )), math.rad(5), math.rad(-18 - (math.random(0,15)*(visn/1000)) * math.cos(sine / 8 )))},"Linear","Out",0.1/speed) | |
3824 | SetTween(RH,{C0=CFrame.new(.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(-20),math.rad(6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
3825 | SetTween(LH,{C0=CFrame.new(-.5, -0.95- .04 * math.cos(sine / 8 ), 0) * CFrame.Angles(math.rad(10.5 - 0 * math.cos(sine / 8)),math.rad(20),math.rad(-6.5- 0.0 * math.cos(sine / 8)))},"Quad","InOut",0.15/speed) | |
3826 | ||
3827 | ||
3828 | --SetTween(FlameW,{C0=CF(0,0,0)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1) | |
3829 | --SetTween(H1a,{C0=CF(0,.5,-.4)},"Quad","InOut",0.1) | |
3830 | -- SetTween(MX1w,{C0=CF(0,-.7,-.25)},"Quad","InOut",0.1) | |
3831 | --SetTween(FlameW,{C0=CF(0,-.5,0)},"Quad","InOut",0.1) | |
3832 | --SetTween(H1a,{C0=CF(0,-.5,-.4)},"Quad","InOut",0.1) | |
3833 | --SetTween(MX1w,{C0=CF(0,.1,.30)*ANGLES(mr(20),0,0)},"Quad","InOut",0.1) | |
3834 | ||
3835 | ||
3836 | ||
3837 | elseif Anim == "Walk" then | |
3838 | local speed=0.7 | |
3839 | ||
3840 | if OverClocking ==false then | |
3841 | speed = speed+0.75*(visn/1000) | |
3842 | else | |
3843 | speed = speed+1.75*(visn/1000) | |
3844 | end | |
3845 | if mememode == true then | |
3846 | speed=4 | |
3847 | end | |
3848 | ||
3849 | ||
3850 | change = 2.6*speed | |
3851 | Humanoid.JumpPower = 60*speed | |
3852 | Humanoid.WalkSpeed=16*speed | |
3853 | ||
3854 | ||
3855 | local RH2 = cf(-forWRL/7 * math.cos(sine / 8 ),0,forWFB/7 * math.cos(sine / 8 ))*angles(math.sin(-forWFB) * math.cos(sine / 8 ),0,math.sin(-forWRL) * math.cos(sine / 8 )) | |
3856 | local LH2 = cf(forWRL/7 * math.cos(sine / 8 ),0,-forWFB/7 * math.cos(sine / 8 ))*angles(math.sin(forWFB) * math.cos(sine / 8 ),0,math.sin(forWRL) * math.cos(sine / 8 )) | |
3857 | ||
3858 | if weps == false then | |
3859 | SetTween(RJW,{C0=RootCF*CFrame.new(0, 0 , -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad((forWFB*2 - forWFB * math.cos(sine / 4))*10), math.rad((-forWRL - -forWRL * math.cos(sine / 4))*5) , math.rad(8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
3860 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad((-forWFB*2 - -forWFB * math.cos(sine / 4))*8))+math.rad(math.random(-10,20)*(visn/500)), math.rad((forWRL - forWRL * math.cos(sine / 4))*5)+math.rad(math.random(-20,20)*(visn/500)), math.rad((0+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20)))-forWRL*45+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
3861 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0) * angles(math.rad(0 + forWFB*25 * math.cos(sine / 8 )), math.rad(0), math.rad(8 + forWRL*5 * math.cos(sine / 8)))},"Quad","Out",WalkAnimMove/speed) | |
3862 | else | |
3863 | ||
3864 | ||
3865 | SetTween(RJW,{C0=RootCF*CFrame.new(0, 0 , -0.185 + 0.055 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad((forWFB*2 - forWFB * math.cos(sine / 4))*10), math.rad((-forWRL - -forWRL * math.cos(sine / 4))*5) , math.rad(10+8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
3866 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 0, 0 + 0.025 * math.cos(sine / 4)) * angles((math.rad((-forWFB*2 - -forWFB * math.cos(sine / 4))*8))+math.rad(math.random(-10,20)*(visn/500)), math.rad((forWRL - forWRL * math.cos(sine / 4))*5)+math.rad(math.random(-20,20)*(visn/500)), math.rad(-0+(0+(math.random(-25,25)*(visn/1000)) * math.cos(sine / 15 +.4* math.cos(sine / 20)))-forWRL*45+-8 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
3867 | ||
3868 | SetTween(RW,{C0=cf(1.45 + .0 * math.cos(sine / 8) , 0.5 + forWRL/50* math.cos(sine / 8), 0) * angles(math.rad((75 + forWFB*20)+ forWFB*5 * math.sin(sine / 8 ) ), math.rad(0), math.rad(10 + forWRL*5 * math.cos(sine / 8)))},"Quad","Out",.1) | |
3869 | ||
3870 | end | |
3871 | SetTween(LW,{C0=cf(-1.45 + .0 * math.cos(sine / 8), 0.5 + forWRL/50 * math.cos(sine / 8), 0) * angles(math.rad(0 - forWFB*25 * math.cos(sine / 8 )), math.rad(0), math.rad(-8 - forWRL*5 * math.cos(sine / 8 )))},"Quad","Out",WalkAnimMove/speed) | |
3872 | SetTween(RH,{C0=CFrame.new(.5, -0.75+ .35 * math.sin(sine / 8 ), -.25+.15* math.cos(sine / 8 ))*RH2 * CFrame.Angles(math.rad(0 - 5 * math.cos(sine / 8)),math.rad(0),math.rad(2.5- 0.0 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
3873 | SetTween(LH,{C0=CFrame.new(-.5, -0.75- .35 * math.sin(sine / 8 ), -.25-.15* math.cos(sine / 8 ))*LH2 * CFrame.Angles(math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0),math.rad(-2.5- 0.0 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
3874 | ||
3875 | ||
3876 | ||
3877 | elseif Anim == "Sit" then | |
3878 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3879 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3880 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1) | |
3881 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1) | |
3882 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3883 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3884 | Humanoid.JumpPower = 60 | |
3885 | end | |
3886 | end | |
3887 | ||
3888 | Swait(Animstep) | |
3889 | end | |
3890 | end)) | |
3891 | coroutine.resume(coroutine.create(function() | |
3892 | local remote = Instance.new 'RemoteFunction'; | |
3893 | remote.Parent = Character; | |
3894 | remote.OnServerInvoke = function (player, request, ...) | |
3895 | if (player ~= Player) then | |
3896 | return error ('You cannot invoke this remote', 0); | |
3897 | end; | |
3898 | ||
3899 | ||
3900 | ||
3901 | if (request == 1) then | |
3902 | local k = ...; | |
3903 | ||
3904 | KeyDownF(k) | |
3905 | ||
3906 | ||
3907 | ||
3908 | end; | |
3909 | if (request == 2) then | |
3910 | local k = ...; | |
3911 | ||
3912 | KeyUpF(k) | |
3913 | ||
3914 | ||
3915 | ||
3916 | end; | |
3917 | if (request == 3) then | |
3918 | local k = ...; | |
3919 | if k == "Down" then | |
3920 | Button1DownF(k) | |
3921 | elseif k == "Up" then | |
3922 | Button1UpF(k) | |
3923 | end | |
3924 | end; | |
3925 | ||
3926 | ||
3927 | if (request == 4) then | |
3928 | local k=...; | |
3929 | --MTARGET=k | |
3930 | end | |
3931 | if (request == 5) then | |
3932 | local k=...; | |
3933 | MHIT=k | |
3934 | ||
3935 | end | |
3936 | if (request == 6) then | |
3937 | local k=...; | |
3938 | visn=k | |
3939 | -- print(visn) | |
3940 | ||
3941 | end | |
3942 | ||
3943 | ||
3944 | ||
3945 | ||
3946 | ||
3947 | end; | |
3948 | ||
3949 | ||
3950 | ||
3951 | ||
3952 | ||
3953 | ||
3954 | ||
3955 | ||
3956 | ||
3957 | ||
3958 | ||
3959 | ||
3960 | ||
3961 | remote.Name = 'ServerRemote'; | |
3962 | --local remote = NLS ([=[ | |
3963 | local localscript = script.Keys | |
3964 | localscript.Name = Player.Name | |
3965 | localscript.Parent = Character | |
3966 | ||
3967 | --]=], Player.Character) | |
3968 | end)) |