· 8 years ago · Aug 03, 2018, 12:38 PM
1if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2local Player,game,owner = owner,game
3local RealPlayer = Player
4do
5 print("FE Compatibility code by Mokiros")
6 local rp = RealPlayer
7 script.Parent = rp.Character
8
9 --RemoteEvent for communicating
10 local Event = Instance.new("RemoteEvent")
11 Event.Name = "UserInput_Event"
12
13 --Fake event to make stuff like Mouse.KeyDown work
14 local function fakeEvent()
15 local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
16 t.connect = t.Connect
17 return t
18 end
19
20 --Creating fake input objects with fake variables
21 local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
22 local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
23 local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
24 CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
25 end}
26 --Merged 2 functions into one by checking amount of arguments
27 CAS.UnbindAction = CAS.BindAction
28
29 --This function will trigger the events that have been :Connect()'ed
30 local function te(self,ev,...)
31 local t = m[ev]
32 if t and t._fakeEvent then
33 for _,f in pairs(t.Functions) do
34 f(...)
35 end
36 end
37 end
38 m.TrigEvent = te
39 UIS.TrigEvent = te
40
41 Event.OnServerEvent:Connect(function(plr,io)
42 if plr~=rp then return end
43 m.Target = io.Target
44 m.Hit = io.Hit
45 if not io.isMouse then
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 Mouse = Player:GetMouse()
66 local UIS = game:GetService("UserInputService")
67 local input = function(io,a)
68 if a then return end
69 --Since InputObject is a client-side instance, we create and pass table instead
70 Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
71 end
72 UIS.InputBegan:Connect(input)
73 UIS.InputEnded:Connect(input)
74
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
85 ----Sandboxed game object that allows the usage of client-side methods and services
86 --Real game object
87 local _rg = game
88
89 --Metatable for fake service
90 local fsmt = {
91 __index = function(self,k)
92 local s = rawget(self,"_RealService")
93 if s then return s[k] end
94 end,
95 __newindex = function(self,k,v)
96 local s = rawget(self,"_RealService")
97 if s then s[k]=v end
98 end,
99 __call = function(self,...)
100 local s = rawget(self,"_RealService")
101 if s then return s(...) end
102 end
103 }
104 local function FakeService(t,RealService)
105 t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
106 return setmetatable(t,fsmt)
107 end
108
109 --Fake game object
110 local g = {
111 GetService = function(self,s)
112 return self[s]
113 end,
114 Players = FakeService({
115 LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
116 },"Players"),
117 UserInputService = FakeService(UIS,"UserInputService"),
118 ContextActionService = FakeService(CAS,"ContextActionService"),
119 }
120 rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
121 g.service = g.GetService
122
123 g.RunService = FakeService({
124 RenderStepped = _rg:GetService("RunService").Heartbeat,
125 BindToRenderStep = function(self,name,_,fun)
126 self._btrs[name] = self.Heartbeat:Connect(fun)
127 end,
128 UnbindFromRenderStep = function(self,name)
129 self._btrs[name]:Disconnect()
130 end,
131 },"RunService")
132
133 setmetatable(g,{
134 __index=function(self,s)
135 return _rg:GetService(s) or typeof(_rg[s])=="function"
136 and function(_,...)return _rg[s](_rg,...)end or _rg[s]
137 end,
138 __newindex = fsmt.__newindex,
139 __call = fsmt.__call
140 })
141 --Changing owner to fake player object to support owner:GetMouse()
142 game,owner = g,g.Players.LocalPlayer
143end
144
145------------------------------------Quicksilver by bannaboy43---------------------------------------------
146--───────────────────────────
147--────────────────────░███░
148--───────────────────░█░░░█░
149--──────────────────░█░░░░░█░
150--─────────────────░█░░░░░█░
151--──────────░░░───░█░░░░░░█░
152--─────────░███░──░█░░░░░█░
153--───────░██░░░██░█░░░░░█░
154--──────░█░░█░░░░██░░░░░█░
155--────░██░░█░░░░░░█░░░░█░
156--───░█░░░█░░░░░░░██░░░█░
157--──░█░░░░█░░░░░░░░█░░░█░
158--──░█░░░░░█░░░░░░░░█░░░█░
159--──░█░░█░░░█░░░░░░░░█░░█░
160--─░█░░░█░░░░██░░░░░░█░░█░
161--─░█░░░░█░░░░░██░░░█░░░█░
162--─░█░█░░░█░░░░░░███░░░░█░
163--░█░░░█░░░██░░░░░█░░░░░█░
164--░█░░░░█░░░░█████░░░░░█░
165--░█░░░░░█░░░░░░░█░░░░░█░
166--░█░█░░░░██░░░░█░░░░░█░
167--─░█░█░░░░░████░░░░██░
168--─░█░░█░░░░░░░█░░██░█░
169--──░█░░██░░░██░░█░░░█░
170--───░██░░███░░██░█░░█░
171--────░██░░░███░░░█░░░█░
172----──────░███░░░░░░█░░░█░
173--──────░█░░░░░░░░█░░░█░
174--──────░█░░░░░░░░░░░░█░
175--──────░█░░░░░░░░░░░░░█░
176----──────░█░░░░░░░░░░░░░█░
177--████──░█░████░░░░░░░░█░
178--█──█──████──████░░░░░█░
179--█──█──█──█──█──████████
180--█──█──████──█──█──────█
181--█──█──█──█────██──██──█
182--█──████──█──█──█──────█
183--█─────█──█──█──█──█████
184--███████──████──█──────█
185--──────████──██████████
186
187Player=game:GetService("Players").LocalPlayer
188Character=Player.Character
189PlayerGui=Player.PlayerGui
190Backpack=Player.Backpack
191Torso=Character.Torso
192Head=Character.Head
193Humanoid=Character.Humanoid
194m=Instance.new('Model',Character)
195LeftArm=Character["Left Arm"]
196LeftLeg=Character["Left Leg"]
197RightArm=Character["Right Arm"]
198RightLeg=Character["Right Leg"]
199LS=Torso["Left Shoulder"]
200LH=Torso["Left Hip"]
201RS=Torso["Right Shoulder"]
202RH=Torso["Right Hip"]
203Face = Head.face
204Neck=Torso.Neck
205it=Instance.new
206attacktype=1
207vt=Vector3.new
208cf=CFrame.new
209euler=CFrame.fromEulerAnglesXYZ
210angles=CFrame.Angles
211cloaked=false
212necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
213necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
214LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
215LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
216RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
217RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
218RootPart=Character.HumanoidRootPart
219RootJoint=RootPart.RootJoint
220RootCF=euler(-1.57,0,3.14)
221attack = false
222attackdebounce = false
223deb=false
224equipped=true
225hand=false
226MMouse=nil
227combo=0
228mana=0
229trispeed=1
230pathtrans=.7
231attackmode='none'
232local idle=0
233local Anim="Idle"
234local Effects={}
235local gun=false
236local shoot=false
237player=nil
238cloak=false
239lightcolor='Bright blue'
240
241local Color1=Torso.BrickColor
242
243
244mouse=Player:GetMouse()
245--save shoulders
246RSH, LSH=nil, nil
247--welds
248RW, LW=Instance.new("Weld"), Instance.new("Weld")
249RW.Name="Right Shoulder" LW.Name="Left Shoulder"
250LH=Torso["Left Hip"]
251RH=Torso["Right Hip"]
252TorsoColor=Torso.BrickColor
253function NoOutline(Part)
254Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
255end
256--------------------------------------Speed---------------------------
257--[[
258 ______ __ __ ____ __ ______
259 / _/ _/ / \/ \ / __/___ __ _______/ /_ / / /
260 / // / / /\/ /\ \ __/ /_/ __ \/ / / / ___/ __ \ / // /
261 / // / / / /_/ \ \/_ __/ /_/ / /_/ / / / /_/ / / // /
262 / // / /_/ \_\/_/ \____/\__,_/_/ /_.___/ _/ // /
263 /__/__/ /__/__/
264
265--]]
266
267wait()
268Player = game.Players.LocalPlayer
269Object = Player.Character.HumanoidRootPart
270Arm1 = Player.Character["Right Arm"]
271PreviousA1 = Arm1.CFrame.p
272Arm2 = Player.Character["Left Arm"]
273PreviousA2 = Arm2.CFrame.p
274
275Leg1 = Player.Character["Right Leg"]
276PreviousL1 = Leg1.CFrame.p
277Leg2 = Player.Character["Left Leg"]
278PreviousL2 = Leg2.CFrame.p
279
280Run = game["Run Service"]
281
282PreviousP = Object.CFrame.p
283Running = false
284Phase = false
285PhaseActive = false
286Morph = false
287MorphActive = false
288Tornado = false
289TornadoRadius = 50
290TornadoActive = false
291Portal = false
292PortalEnd = false
293MaxZ = 0
294MinZ = 0
295LightMaxX =0
296LightMinX = 0
297LightMaxX2 = 0
298LightMinX2 = 0
299LightMaxY =0
300LightMinY = 0
301Rotation = 0
302Length = 5
303Color = BrickColor.Gray()
304PColor = Color3.new(128,128,128)
305PrevPoint1 = nil
306PrevPoint2 = nil
307PrevPoint3 = nil
308PrevPoint4 = nil
309PrevPoint5 = nil
310PrevPoint6 = nil
311PrevPoint7 = nil
312PrevPoint8 = nil
313PrevPoint9 = nil
314PrevPoint10 = nil
315PrevPoint11 = nil
316PrevPoint12 = nil
317angle = 0
318Mouse = Player:GetMouse()
319Player.Character.Humanoid.WalkSpeed = 20
320
321Nil = function()
322 PrevPoint1 = "Empty"
323 PrevPoint2 = "Empty"
324 PrevPoint3 = "Empty"
325 PrevPoint4 = "Empty"
326 PrevPoint5 = "Empty"
327 PrevPoint6 = "Empty"
328 PrevPoint7 = "Empty"
329 PrevPoint8 = "Empty"
330 PrevPoint9 = "Empty"
331 PrevPoint10 = "Empty"
332 PrevPoint11 = "Empty"
333 PrevPoint12 = "Empty"
334end
335
336 local Lightning = coroutine.wrap(function()
337while wait() do
338 if Portal == false then
339 angle = angle + 0.6
340 local Model = Instance.new("Model",workspace)
341 Model.Name = "Lightning"
342 local Point1 = Instance.new("Part",Model)
343 Point1.Transparency = 1
344 Point1.Size = Vector3.new(0.2,0.2,0.2)
345 Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
346 Point1.Anchored = true
347 Point1.CanCollide = false
348 Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
349
350 local Point2 = Instance.new("Part",Model)
351 Point2.Transparency = 1
352 Point2.Size = Vector3.new(0.2,0.2,0.2)
353 Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
354 Point2.Anchored = true
355 Point2.CanCollide = false
356 Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
357
358 local Point3 = Instance.new("Part",Model)
359 Point3.Transparency = 1
360 Point3.Size = Vector3.new(0.2,0.2,0.2)
361 Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
362 Point3.Anchored = true
363 Point3.CanCollide = false
364 Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
365
366 local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
367 local Light = Instance.new("Part",Model)
368 local PointLight = Instance.new("PointLight",Light)
369 PointLight.Range = 5
370 PointLight.Color = PColor
371 Light.Transparency = 0.5
372 Light.BrickColor = Color
373 Light.Material = "Neon"
374 Light.Size = Vector3.new(0.25,0.25,distance)
375 Light.Anchored = true
376 Light.CanCollide = false
377 Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
378
379 local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
380 local Light = Instance.new("Part",Model)
381 local PointLight = Instance.new("PointLight",Light)
382 PointLight.Range = 5
383 PointLight.Color = PColor
384 Light.Transparency = 0.5
385 Light.BrickColor = Color
386 Light.Material = "Neon"
387 Light.Size = Vector3.new(0.25,0.25,distance2)
388 Light.Anchored = true
389 Light.CanCollide = false
390 Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
391
392 local Point1 = Instance.new("Part",Model)
393 Point1.Transparency = 1
394 Point1.Size = Vector3.new(0.2,0.2,0.2)
395 Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
396 Point1.Anchored = true
397 Point1.CanCollide = false
398 Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
399
400 local Point2 = Instance.new("Part",Model)
401 Point2.Transparency = 1
402 Point2.Size = Vector3.new(0.2,0.2,0.2)
403 Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
404 Point2.Anchored = true
405 Point2.CanCollide = false
406 Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
407
408 local Point3 = Instance.new("Part",Model)
409 Point3.Transparency = 1
410 Point3.Size = Vector3.new(0.2,0.2,0.2)
411 Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
412 Point3.Anchored = true
413 Point3.CanCollide = false
414 Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
415
416 local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
417 local Light = Instance.new("Part",Model)
418 local PointLight = Instance.new("PointLight",Light)
419 PointLight.Range = 5
420 PointLight.Color = PColor
421 Light.Transparency = 0.5
422 Light.BrickColor = Color
423 Light.Material = "Neon"
424 Light.Size = Vector3.new(0.25,0.25,distance)
425 Light.Anchored = true
426 Light.CanCollide = false
427 Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
428
429 local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
430 local Light = Instance.new("Part",Model)
431 local PointLight = Instance.new("PointLight",Light)
432 PointLight.Range = 5
433 PointLight.Color = PColor
434 Light.Transparency = 0.5
435 Light.BrickColor = Color
436 Light.Material = "Neon"
437 Light.Size = Vector3.new(0.3,0.3,distance2)
438 Light.Anchored = true
439 Light.CanCollide = false
440 Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
441
442 local Point1 = Instance.new("Part",Model)
443 Point1.Transparency = 1
444 Point1.Size = Vector3.new(0.2,0.2,0.2)
445 Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
446 Point1.Anchored = true
447 Point1.CanCollide = false
448 Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
449
450 local Point2 = Instance.new("Part",Model)
451 Point2.Transparency = 1
452 Point2.Size = Vector3.new(0.2,0.2,0.2)
453 Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
454 Point2.Anchored = true
455 Point2.CanCollide = false
456 Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
457
458 local Point3 = Instance.new("Part",Model)
459 Point3.Transparency = 1
460 Point3.Size = Vector3.new(0.2,0.2,0.2)
461 Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
462 Point3.Anchored = true
463 Point3.CanCollide = false
464 Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
465
466 local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
467 local Light = Instance.new("Part",Model)
468 local PointLight = Instance.new("PointLight",Light)
469 PointLight.Range = 5
470 PointLight.Color = PColor
471 Light.Transparency = 0.5
472 Light.BrickColor = Color
473 Light.Material = "Neon"
474 Light.Size = Vector3.new(0.25,0.25,distance)
475 Light.Anchored = true
476 Light.CanCollide = false
477 Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
478
479 local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
480 local Light = Instance.new("Part",Model)
481 local PointLight = Instance.new("PointLight",Light)
482 PointLight.Range = 5
483 PointLight.Color = PColor
484 Light.Transparency = 0.5
485 Light.BrickColor = Color
486 Light.Material = "Neon"
487 Light.Size = Vector3.new(0.25,0.25,distance2)
488 Light.Anchored = true
489 Light.CanCollide = false
490 Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
491
492 local Point1 = Instance.new("Part",Model)
493 Point1.Transparency = 1
494 Point1.Size = Vector3.new(0.2,0.2,0.2)
495 Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
496 Point1.Anchored = true
497 Point1.CanCollide = false
498 Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
499
500 local Point2 = Instance.new("Part",Model)
501 Point2.Transparency = 1
502 Point2.Size = Vector3.new(0.2,0.2,0.2)
503 Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
504 Point2.Anchored = true
505 Point2.CanCollide = false
506 Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
507
508 local Point3 = Instance.new("Part",Model)
509 Point3.Transparency = 1
510 Point3.Size = Vector3.new(0.2,0.2,0.2)
511 Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
512 Point3.Anchored = true
513 Point3.CanCollide = false
514 Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
515
516 local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
517 local Light = Instance.new("Part",Model)
518 local PointLight = Instance.new("PointLight",Light)
519 PointLight.Range = 5
520 PointLight.Color = PColor
521 Light.Transparency = 0.5
522 Light.BrickColor = Color
523 Light.Material = "Neon"
524 Light.Size = Vector3.new(0.25,0.25,distance)
525 Light.Anchored = true
526 Light.CanCollide = false
527 Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
528
529 local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
530 local Light = Instance.new("Part",Model)
531 local PointLight = Instance.new("PointLight",Light)
532 PointLight.Range = 5
533 PointLight.Color = PColor
534 Light.Transparency = 0.5
535 Light.BrickColor = Color
536 Light.Material = "Neon"
537 Light.Size = Vector3.new(0.25,0.25,distance2)
538 Light.Anchored = true
539 Light.CanCollide = false
540 Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
541
542 local Children = Model:GetChildren()
543 wait(0.1)
544 for i = 1,#Children do
545 if Children[i]:IsA("Part") then
546 Children[i].Transparency = 1
547 end
548 game.Debris:AddItem(Children[i],0)
549 end
550
551 end
552 end
553 end)
554Lightning()
555
556TornadoFunction = function()
557 local TornadoModel = Instance.new("Model",workspace)
558 local Center = Instance.new("Part",TornadoModel)
559 Center.Anchored = true
560 Center.CanCollide = false
561 Center.Transparency = 1
562 Center.Size = Vector3.new(2,2,2)
563 Center.CFrame = Object.CFrame * CFrame.new(0,0,-20)
564 local Death = Instance.new("Part",TornadoModel)
565 Death.Anchored = true
566 Death.CanCollide = false
567 Death.Transparency = 1
568 Death.Size = Vector3.new(TornadoRadius+10,TornadoRadius+10,TornadoRadius+10)
569 Death.CFrame = Center.CFrame
570 Death.Touched:connect(function(Touch)
571 if Touch.Parent:FindFirstChild("Humanoid") ~= nil and Touch.Parent.Name ~= Player.Name then
572 Touch.Parent.Humanoid.Health = 0
573 end
574 end)
575 local TornadoFunc = function()
576 local Tornanimation = coroutine.wrap(function()
577 while Run.Stepped:wait() do
578 if Tornado == false then Death:Destroy() break end
579 angle = angle + 0.1
580 Object.Anchored = false
581 Object.CFrame = Center.CFrame * CFrame.Angles(0,angle,0) * CFrame.new(0,0,TornadoRadius)
582 Object.CFrame = Object.CFrame * CFrame.Angles(0,-math.rad(90),0)
583 end
584 end)
585 Tornanimation()
586 end
587 TornadoFunc()
588end
589
590PhaseFunction = function()
591 local Phase = coroutine.wrap(function()
592 while wait() do
593 if Phase == false then break end
594 if Player.Character.Humanoid.WalkSpeed > 50 and Phase == true then
595 Object.CFrame = Object.CFrame * CFrame.new(0,0,-Player.Character.Humanoid.WalkSpeed/20)
596 end
597 end
598 end)
599 Phase()
600end
601
602
603PortalFunction = function()
604 local PortalBlock = Instance.new("Part",workspace)
605 PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,-100)
606 PortalBlock.Transparency = 1
607 PortalBlock.Anchored = true
608 PortalBlock.CanCollide = false
609 PortalBlock.Size = Vector3.new(20,20,0.2)
610 PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
611 local Gui = Instance.new("SurfaceGui",PortalBlock)
612 local Img = Instance.new("ImageLabel",Gui)
613 Img.Size = UDim2.new(2,0,2,0)
614 Img.Position = UDim2.new(-0.5,0,-0.5,0)
615 Img.Transparency = 1
616 Img.Image = "http://www.roblox.com/asset/?id=21315275"
617 local Gui = Instance.new("SurfaceGui",PortalBlock)
618 Gui.Face = "Back"
619 local Img = Instance.new("ImageLabel",Gui)
620 Img.Size = UDim2.new(2,0,2,0)
621 Img.Position = UDim2.new(-0.5,0,-0.5,0)
622 Img.Transparency = 1
623 Img.Image = "http://www.roblox.com/asset/?id=21315275"
624 Object.CFrame = PortalBlock.CFrame
625 local Face = Object.Parent.Head.face.Texture
626 local ObjectC = Object.Parent:GetChildren()
627 for i = 1,#ObjectC do
628 if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
629 ObjectC[i].Transparency = 1
630 elseif ObjectC[i]:IsA("Hat") then
631 ObjectC[i].Handle.Transparency = 1
632 end
633 if ObjectC[i].Name == "Head" then
634 ObjectC[i].face.Texture = ""
635 end
636 end
637
638 local PortalR = coroutine.wrap(function()
639 wait(0.1)
640 Portal = true
641 PortalEnd = true
642 while wait(0.001) do
643 if Portal == false then
644 break
645 end
646 Nil()
647 PortalBlock.CFrame = PortalBlock.CFrame * CFrame.Angles(0,0,-0.1)
648 wait(0.01)
649 end
650 PortalBlock:Destroy()
651 for i = 1,#ObjectC do
652 if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
653 ObjectC[i].Transparency = 0
654 elseif ObjectC[i]:IsA("Hat") then
655 ObjectC[i].Handle.Transparency = 0
656 end
657 if ObjectC[i].Name == "Head" then
658 ObjectC[i].face.Texture = Face
659 end
660 end
661 game.Players.LocalPlayer.Character.Part.Transparency = 1
662 local PortalBlock = Instance.new("Part",workspace)
663 PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,0)
664 PortalBlock.Transparency = 1
665 PortalBlock.Anchored = true
666 PortalBlock.CanCollide = false
667 PortalBlock.Size = Vector3.new(20,20,0.2)
668 PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
669 local Gui = Instance.new("SurfaceGui",PortalBlock)
670 local Img = Instance.new("ImageLabel",Gui)
671 Img.Size = UDim2.new(2,0,2,0)
672 Img.Position = UDim2.new(-0.5,0,-0.5,0)
673 Img.Transparency = 1
674 Img.Image = "http://www.roblox.com/asset/?id=21315275"
675 local Gui = Instance.new("SurfaceGui",PortalBlock)
676 Gui.Face = "Back"
677 local Img = Instance.new("ImageLabel",Gui)
678 Img.Size = UDim2.new(2,0,2,0)
679 Img.Position = UDim2.new(-0.5,0,-0.5,0)
680 Img.Transparency = 1
681 Img.Image = "http://www.roblox.com/asset/?id=21315275"
682 Object.CFrame = PortalBlock.CFrame
683 PreviousA1 = Arm1.CFrame.p
684 PreviousA2 = Arm2.CFrame.p
685 PreviousL1 = Leg1.CFrame.p
686 PreviousL2 = Leg2.CFrame.p
687 PreviousP = Object.CFrame.p
688 PortalEnd = false
689 wait(2)
690 PortalBlock:Destroy()
691 end)
692 PortalR()
693end
694
695MorphFunction = function()
696 local MaxX = 100
697 local MinX = -100
698 local MaxY = 100
699 local MinY = -100
700 local MaxZ = 100
701 local MinZ = -100
702 local Morph = coroutine.wrap(function()
703 while Run.Stepped:wait(0.1) do
704 if Morph == false then break end
705 local Model = Instance.new("Model",workspace)
706 if Player.Character:FindFirstChild("Shirt") then
707 local Shirt = Player.Character.Shirt:Clone()
708 Shirt.Parent = Model
709 end
710 if Player.Character:FindFirstChild("Pants") then
711 local Pants = Player.Character.Pants:Clone()
712 Pants.Parent = Model
713 end
714 local Humanoid = Instance.new("Humanoid",Model)
715 local LeftArm = Player.Character["Left Arm"]:Clone()
716 LeftArm.Parent = Model
717 LeftArm.Transparency = 0.4
718 LeftArm.Anchored = true
719 LeftArm.CFrame = Player.Character["Left Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
720 local RightArm = Player.Character["Right Arm"]:Clone()
721 RightArm.Parent = Model
722 RightArm.Transparency = 0.4
723 RightArm.Anchored = true
724 RightArm.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
725 local LeftLeg = Player.Character["Left Leg"]:Clone()
726 LeftLeg.Parent = Model
727 LeftLeg.Transparency = 0.4
728 LeftLeg.Anchored = true
729 LeftLeg.CFrame = Player.Character["Left Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
730 local RightLeg = Player.Character["Right Leg"]:Clone()
731 RightLeg.Parent = Model
732 RightLeg.Transparency = 0.4
733 RightLeg.Anchored = true
734 RightLeg.CFrame = Player.Character["Right Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
735 local Children = Model:GetChildren()
736 wait(0.01)
737 for i = 1,#Children do
738 if Children[i]:IsA("Part") then
739 Children[i].Transparency = 1
740 end
741 game.Debris:AddItem(Children[i],0)
742 end
743 end
744 end)
745 Morph()
746end
747
748local Guis = coroutine.wrap(function()
749 local Gui = Instance.new("ScreenGui",Player.PlayerGui)
750
751 local Radius = Instance.new("TextBox",Gui)
752 Radius.Text = "Tornado Radius"
753 Radius.BackgroundColor3 = Color3.new(119, 136, 153)
754 Radius.BorderColor3 = Color3.new(128, 128, 128)
755 Radius.Size = UDim2.new(.2,1,0.08,1)
756 Radius.Position = UDim2.new(0, 0,0.5, 0)
757 Radius.FocusLost:connect(function(EnterPressed)
758 if EnterPressed then
759 TornadoRadius = Radius.Text
760 end
761 end)
762 Mouse.KeyDown:connect(function(Key)
763 if Key == "f" then
764 if Portal == false then
765 PortalFunction()
766 Nil()
767 else
768 Portal = false
769 end
770 end
771
772 if Key == "t" then
773 if Tornado == false then
774 Tornado = true
775 TornadoFunction()
776 else
777 Tornado = false
778 end
779 end
780 if Key == "y" then
781 if Morph == false then
782 Morph = true
783 MorphFunction()
784 else
785 Morph = false
786 end
787 end
788 end)
789end)
790Guis()
791
792Run.RenderStepped:connect(function()
793 if (Object.CFrame.p - PreviousP).magnitude > 7 and Player.Character.Humanoid.WalkSpeed > 25 and Portal == false and PortalEnd == false then
794 local Model = Instance.new("Model",workspace)
795 Model.Name = "Ray"
796 local Humanoid = Instance.new("Humanoid",Model)
797 if Player.Character:FindFirstChild("Shirt") ~= nil then
798 Player.Character.Shirt:Clone().Parent = Model
799 end
800 if Player.Character:FindFirstChild("Pants") ~= nil then
801 Player.Character.Pants:Clone().Parent = Model
802 end
803 local distance = (Object.CFrame.p - PreviousP).magnitude
804 local Light = Instance.new("Part",Model)
805 Light.Anchored = true
806 Light.CanCollide = false
807 Light.TopSurface = "SmoothNoOutlines"
808 Light.BottomSurface = "SmoothNoOutlines"
809 Light.BackSurface = "SmoothNoOutlines"
810 Light.FrontSurface = "SmoothNoOutlines"
811 Light.LeftSurface = "SmoothNoOutlines"
812 Light.RightSurface = "SmoothNoOutlines"
813 Light.Transparency = 1
814 Light.BrickColor = BrickColor.Black()
815 Light.Size = Vector3.new(2,2,distance)
816 Light.CFrame = CFrame.new(Object.CFrame.p , PreviousP) * CFrame.new(0,0,-distance/2)
817
818 local PointLight = Instance.new("PointLight",Light)
819 PointLight.Range = 15
820 PointLight.Brightness = 100
821 PointLight.Color = PColor
822
823 local distance = (Arm1.CFrame.p - PreviousA1).magnitude
824
825 local Arm1Light = Instance.new("Part",Model)
826 Arm1Light.Name = "Right Arm"
827 Arm1Light.Anchored = true
828 Arm1Light.CanCollide = false
829 Arm1Light.TopSurface = "SmoothNoOutlines"
830 Arm1Light.BottomSurface = "SmoothNoOutlines"
831 Arm1Light.BackSurface = "SmoothNoOutlines"
832 Arm1Light.FrontSurface = "SmoothNoOutlines"
833 Arm1Light.LeftSurface = "SmoothNoOutlines"
834 Arm1Light.RightSurface = "SmoothNoOutlines"
835 Arm1Light.Transparency = 0.7
836 Arm1Light.BrickColor = BrickColor.Black()
837 Arm1Light.Size = Vector3.new(1,2,distance)
838 Arm1Light.CFrame = CFrame.new(Arm1.CFrame.p , PreviousA1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
839
840 local distance = (Arm2.CFrame.p - PreviousA2).magnitude
841
842 local Arm2Light = Instance.new("Part",Model)
843 Arm2Light.Name = "Left Arm"
844 Arm2Light.Anchored = true
845 Arm2Light.CanCollide = false
846 Arm2Light.TopSurface = "SmoothNoOutlines"
847 Arm2Light.BottomSurface = "SmoothNoOutlines"
848 Arm2Light.BackSurface = "SmoothNoOutlines"
849 Arm2Light.FrontSurface = "SmoothNoOutlines"
850 Arm2Light.LeftSurface = "SmoothNoOutlines"
851 Arm2Light.RightSurface = "SmoothNoOutlines"
852 Arm2Light.Transparency = 0.7
853 Arm2Light.BrickColor = BrickColor.Black()
854 Arm2Light.Size = Vector3.new(1,2,distance)
855 Arm2Light.CFrame = CFrame.new(Arm2.CFrame.p , PreviousA2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
856
857 local distance = (Leg1.CFrame.p - PreviousL1).magnitude
858
859 local Leg1Light = Instance.new("Part",Model)
860 Leg1Light.Name = "Right Leg"
861 Leg1Light.Anchored = true
862 Leg1Light.CanCollide = false
863 Leg1Light.TopSurface = "SmoothNoOutlines"
864 Leg1Light.BottomSurface = "SmoothNoOutlines"
865 Leg1Light.BackSurface = "SmoothNoOutlines"
866 Leg1Light.FrontSurface = "SmoothNoOutlines"
867 Leg1Light.LeftSurface = "SmoothNoOutlines"
868 Leg1Light.RightSurface = "SmoothNoOutlines"
869 Leg1Light.Transparency = 0.5
870 Leg1Light.BrickColor = BrickColor.Black()
871 Leg1Light.Size = Vector3.new(1,2,distance)
872 Leg1Light.CFrame = CFrame.new(Leg1.CFrame.p , PreviousL1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
873
874 local distance = (Leg2.CFrame.p - PreviousL2).magnitude
875
876 local Leg1Light = Instance.new("Part",Model)
877 Leg1Light.Name = "Left Leg"
878 Leg1Light.Anchored = true
879 Leg1Light.CanCollide = false
880 Leg1Light.TopSurface = "SmoothNoOutlines"
881 Leg1Light.BottomSurface = "SmoothNoOutlines"
882 Leg1Light.BackSurface = "SmoothNoOutlines"
883 Leg1Light.FrontSurface = "SmoothNoOutlines"
884 Leg1Light.LeftSurface = "SmoothNoOutlines"
885 Leg1Light.RightSurface = "SmoothNoOutlines"
886 Leg1Light.Transparency = 0.5
887 Leg1Light.BrickColor = BrickColor.Black()
888 Leg1Light.Size = Vector3.new(1,2,distance)
889 Leg1Light.CFrame = CFrame.new(Leg2.CFrame.p , PreviousL2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
890
891 local Point1 = Instance.new("Part",Model)
892 Point1.Transparency = 1
893 Point1.Anchored = true
894 Point1.CanCollide = false
895 Point1.Size = Vector3.new(0.2,0.2,0.2)
896 Point1.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
897 * CFrame.new(Light.Size.X/2 ,0 ,0)
898 * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
899 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
900
901 local Point2 = Instance.new("Part",Model)
902 Point2.Transparency = 1
903 Point2.Anchored = true
904 Point2.CanCollide = false
905 Point2.Size = Vector3.new(0.2,0.2,0.2)
906 Point2.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
907 * CFrame.new(Light.Size.X/2 ,0 ,0)
908 * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
909 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
910
911 local Point5 = Instance.new("Part",Model)
912 Point5.Transparency = 1
913 Point5.Anchored = true
914 Point5.CanCollide = false
915 Point5.Size = Vector3.new(0.2,0.2,0.2)
916 Point5.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
917 * CFrame.new(Light.Size.X/2 ,0 ,0)
918 * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
919 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
920
921 local Point6 = Instance.new("Part",Model)
922 Point6.Transparency = 1
923 Point6.Anchored = true
924 Point6.CanCollide = false
925 Point6.Size = Vector3.new(0.2,0.2,0.2)
926 Point6.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
927 * CFrame.new(Light.Size.X/2 ,0 ,0)
928 * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
929 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
930
931 local Point3 = Instance.new("Part",Model)
932 Point3.Transparency = 1
933 Point3.Anchored = true
934 Point3.CanCollide = false
935 Point3.Size = Vector3.new(0.2,0.2,0.2)
936 Point3.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
937 * CFrame.new(-Light.Size.X/2 ,0 ,0)
938 * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
939 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
940
941 local Point4 = Instance.new("Part",Model)
942 Point4.Transparency = 1
943 Point4.Anchored = true
944 Point4.CanCollide = false
945 Point4.Size = Vector3.new(0.2,0.2,0.2)
946 Point4.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
947 * CFrame.new(-Light.Size.X/2 ,0 ,0)
948 * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
949 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
950
951 local Point7 = Instance.new("Part",Model)
952 Point7.Transparency = 1
953 Point7.Anchored = true
954 Point7.CanCollide = false
955 Point7.Size = Vector3.new(0.2,0.2,0.2)
956 Point7.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
957 * CFrame.new(-Light.Size.X/2 ,0 ,0)
958 * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
959 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
960
961 local Point8 = Instance.new("Part",Model)
962 Point8.Transparency = 1
963 Point8.Anchored = true
964 Point8.CanCollide = false
965 Point8.Size = Vector3.new(0.2,0.2,0.2)
966 Point8.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
967 * CFrame.new(-Light.Size.X/2 ,0 ,0)
968 * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
969 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
970
971 local Point9 = Instance.new("Part",Model)
972 Point9.Transparency = 1
973 Point9.Anchored = true
974 Point9.CanCollide = false
975 Point9.Size = Vector3.new(0.2,0.2,0.2)
976 Point9.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
977 * CFrame.new(Light.Size.X/2 ,-2 ,0)
978 * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
979 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
980
981 local Point10 = Instance.new("Part",Model)
982 Point10.Transparency = 1
983 Point10.Anchored = true
984 Point10.CanCollide = false
985 Point10.Size = Vector3.new(0.2,0.2,0.2)
986 Point10.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
987 * CFrame.new(Light.Size.X/2 ,0 ,0)
988 * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
989 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
990
991 local Point11 = Instance.new("Part",Model)
992 Point11.Transparency = 1
993 Point11.Anchored = true
994 Point11.CanCollide = false
995 Point11.Size = Vector3.new(0.2,0.2,0.2)
996 Point11.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
997 * CFrame.new(Light.Size.X/2 ,-2 ,0)
998 * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
999 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
1000
1001 local Point12 = Instance.new("Part",Model)
1002 Point12.Transparency = 1
1003 Point12.Anchored = true
1004 Point12.CanCollide = false
1005 Point12.Size = Vector3.new(0.2,0.2,0.2)
1006 Point12.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
1007 * CFrame.new(Light.Size.X/2 ,-2 ,0)
1008 * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
1009 * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
1010
1011if PrevPoint2 == nil or PrevPoint2 == "Empty" then
1012 local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
1013 local Light = Instance.new("Part",Model)
1014 Light.Anchored = true
1015 Light.CanCollide = false
1016 Light.TopSurface = "SmoothNoOutlines"
1017 Light.BottomSurface = "SmoothNoOutlines"
1018 Light.BackSurface = "SmoothNoOutlines"
1019 Light.FrontSurface = "SmoothNoOutlines"
1020 Light.LeftSurface = "SmoothNoOutlines"
1021 Light.RightSurface = "SmoothNoOutlines"
1022 Light.Transparency = 0
1023 Light.Size = Vector3.new(0.4,0.4,distance)
1024 Light.Material = "Neon"
1025 Light.BrickColor = Color
1026 Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
1027 elseif PrevPoint2 ~= nil then
1028 local distance = (Point2.CFrame.p - PrevPoint2).magnitude
1029 local Light = Instance.new("Part",Model)
1030 Light.Anchored = true
1031 Light.CanCollide = false
1032 Light.TopSurface = "SmoothNoOutlines"
1033 Light.BottomSurface = "SmoothNoOutlines"
1034 Light.BackSurface = "SmoothNoOutlines"
1035 Light.FrontSurface = "SmoothNoOutlines"
1036 Light.LeftSurface = "SmoothNoOutlines"
1037 Light.RightSurface = "SmoothNoOutlines"
1038 Light.Transparency = 0
1039 Light.Size = Vector3.new(0.4,0.4,distance)
1040 Light.Material = "Neon"
1041 Light.BrickColor = Color
1042 Light.CFrame = CFrame.new(Point2.CFrame.p , PrevPoint2) * CFrame.new(0,0,-distance/2)
1043 end
1044
1045if PrevPoint4 == nil or PrevPoint4 == "Empty" then
1046 local distance = (Point4.CFrame.p - Point3.CFrame.p).magnitude
1047 local Light = Instance.new("Part",Model)
1048 Light.Anchored = true
1049 Light.CanCollide = false
1050 Light.TopSurface = "SmoothNoOutlines"
1051 Light.BottomSurface = "SmoothNoOutlines"
1052 Light.BackSurface = "SmoothNoOutlines"
1053 Light.FrontSurface = "SmoothNoOutlines"
1054 Light.LeftSurface = "SmoothNoOutlines"
1055 Light.RightSurface = "SmoothNoOutlines"
1056 Light.Transparency = 0
1057 Light.Size = Vector3.new(0.4,0.4,distance)
1058 Light.Material = "Neon"
1059 Light.BrickColor = Color
1060 Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance/2)
1061 elseif PrevPoint4 ~= nil then
1062 local distance = (Point4.CFrame.p - PrevPoint4).magnitude
1063 local Light = Instance.new("Part",Model)
1064 Light.Anchored = true
1065 Light.CanCollide = false
1066 Light.TopSurface = "SmoothNoOutlines"
1067 Light.BottomSurface = "SmoothNoOutlines"
1068 Light.BackSurface = "SmoothNoOutlines"
1069 Light.FrontSurface = "SmoothNoOutlines"
1070 Light.LeftSurface = "SmoothNoOutlines"
1071 Light.RightSurface = "SmoothNoOutlines"
1072 Light.Transparency = 0
1073 Light.Size = Vector3.new(0.4,0.4,distance)
1074 Light.Material = "Neon"
1075 Light.BrickColor = Color
1076 Light.CFrame = CFrame.new(Point4.CFrame.p , PrevPoint4) * CFrame.new(0,0,-distance/2)
1077 end
1078
1079
1080if PrevPoint6 == nil or PrevPoint6 == "Empty" then
1081 local distance = (Point6.CFrame.p - Point5.CFrame.p).magnitude
1082 local Light = Instance.new("Part",Model)
1083 Light.Anchored = true
1084 Light.CanCollide = false
1085 Light.TopSurface = "SmoothNoOutlines"
1086 Light.BottomSurface = "SmoothNoOutlines"
1087 Light.BackSurface = "SmoothNoOutlines"
1088 Light.FrontSurface = "SmoothNoOutlines"
1089 Light.LeftSurface = "SmoothNoOutlines"
1090 Light.RightSurface = "SmoothNoOutlines"
1091 Light.Transparency = 0
1092 Light.Size = Vector3.new(0.4,0.4,distance)
1093 Light.Material = "Neon"
1094 Light.BrickColor = Color
1095 Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance/2)
1096 elseif PrevPoint6 ~= nil then
1097 local distance = (Point6.CFrame.p - PrevPoint6).magnitude
1098 local Light = Instance.new("Part",Model)
1099 Light.Anchored = true
1100 Light.CanCollide = false
1101 Light.TopSurface = "SmoothNoOutlines"
1102 Light.BottomSurface = "SmoothNoOutlines"
1103 Light.BackSurface = "SmoothNoOutlines"
1104 Light.FrontSurface = "SmoothNoOutlines"
1105 Light.LeftSurface = "SmoothNoOutlines"
1106 Light.RightSurface = "SmoothNoOutlines"
1107 Light.Transparency = 0
1108 Light.Size = Vector3.new(0.4,0.4,distance)
1109 Light.Material = "Neon"
1110 Light.BrickColor = Color
1111 Light.CFrame = CFrame.new(Point6.CFrame.p , PrevPoint6) * CFrame.new(0,0,-distance/2)
1112 end
1113
1114if PrevPoint8 == nil or PrevPoint8 == "Empty" then
1115 local distance = (Point8.CFrame.p - Point7.CFrame.p).magnitude
1116 local Light = Instance.new("Part",Model)
1117 Light.Anchored = true
1118 Light.CanCollide = false
1119 Light.TopSurface = "SmoothNoOutlines"
1120 Light.BottomSurface = "SmoothNoOutlines"
1121 Light.BackSurface = "SmoothNoOutlines"
1122 Light.FrontSurface = "SmoothNoOutlines"
1123 Light.LeftSurface = "SmoothNoOutlines"
1124 Light.RightSurface = "SmoothNoOutlines"
1125 Light.Transparency = 0
1126 Light.Size = Vector3.new(0.4,0.4,distance)
1127 Light.Material = "Neon"
1128 Light.BrickColor = Color
1129 Light.CFrame = CFrame.new(Point8.CFrame.p , Point7.CFrame.p) * CFrame.new(0,0,-distance/2)
1130 elseif PrevPoint8 ~= nil then
1131 local distance = (Point8.CFrame.p - PrevPoint8).magnitude
1132 local Light = Instance.new("Part",Model)
1133 Light.Anchored = true
1134 Light.CanCollide = false
1135 Light.TopSurface = "SmoothNoOutlines"
1136 Light.BottomSurface = "SmoothNoOutlines"
1137 Light.BackSurface = "SmoothNoOutlines"
1138 Light.FrontSurface = "SmoothNoOutlines"
1139 Light.LeftSurface = "SmoothNoOutlines"
1140 Light.RightSurface = "SmoothNoOutlines"
1141 Light.Transparency = 0
1142 Light.Size = Vector3.new(0.4,0.4,distance)
1143 Light.Material = "Neon"
1144 Light.BrickColor = Color
1145 Light.CFrame = CFrame.new(Point8.CFrame.p , PrevPoint8) * CFrame.new(0,0,-distance/2)
1146 end
1147
1148if PrevPoint10 == nil or PrevPoint10 == "Empty" then
1149 local distance = (Point10.CFrame.p - Point9.CFrame.p).magnitude
1150 local Light = Instance.new("Part",Model)
1151 Light.Anchored = true
1152 Light.CanCollide = false
1153 Light.TopSurface = "SmoothNoOutlines"
1154 Light.BottomSurface = "SmoothNoOutlines"
1155 Light.BackSurface = "SmoothNoOutlines"
1156 Light.FrontSurface = "SmoothNoOutlines"
1157 Light.LeftSurface = "SmoothNoOutlines"
1158 Light.RightSurface = "SmoothNoOutlines"
1159 Light.Transparency = 0
1160 Light.Size = Vector3.new(0.4,0.4,distance)
1161 Light.Material = "Neon"
1162 Light.BrickColor = Color
1163 Light.CFrame = CFrame.new(Point10.CFrame.p , Point9.CFrame.p) * CFrame.new(0,0,-distance/2)
1164elseif PrevPoint10 ~= nil then
1165 local distance = (Point10.CFrame.p - PrevPoint10).magnitude
1166 local Light = Instance.new("Part",Model)
1167 Light.Anchored = true
1168 Light.CanCollide = false
1169 Light.TopSurface = "SmoothNoOutlines"
1170 Light.BottomSurface = "SmoothNoOutlines"
1171 Light.BackSurface = "SmoothNoOutlines"
1172 Light.FrontSurface = "SmoothNoOutlines"
1173 Light.LeftSurface = "SmoothNoOutlines"
1174 Light.RightSurface = "SmoothNoOutlines"
1175 Light.Transparency = 0
1176 Light.Size = Vector3.new(0.4,0.4,distance)
1177 Light.Material = "Neon"
1178 Light.BrickColor = Color
1179 Light.CFrame = CFrame.new(Point10.CFrame.p , PrevPoint10) * CFrame.new(0,0,-distance/2)
1180 end
1181
1182
1183if PrevPoint12 == nil or PrevPoint12 == "Empty" then
1184 local distance = (Point12.CFrame.p - Point11.CFrame.p).magnitude
1185 local Light = Instance.new("Part",Model)
1186 Light.Anchored = true
1187 Light.CanCollide = false
1188 Light.TopSurface = "SmoothNoOutlines"
1189 Light.BottomSurface = "SmoothNoOutlines"
1190 Light.BackSurface = "SmoothNoOutlines"
1191 Light.FrontSurface = "SmoothNoOutlines"
1192 Light.LeftSurface = "SmoothNoOutlines"
1193 Light.RightSurface = "SmoothNoOutlines"
1194 Light.Transparency = 0
1195 Light.Size = Vector3.new(0.4,0.4,distance)
1196 Light.Material = "Neon"
1197 Light.BrickColor = Color
1198 Light.CFrame = CFrame.new(Point12.CFrame.p , Point11.CFrame.p) * CFrame.new(0,0,-distance/2)
1199 elseif PrevPoint12 ~= nil then
1200 local distance = (Point12.CFrame.p - PrevPoint12).magnitude
1201 local Light = Instance.new("Part",Model)
1202 Light.Anchored = true
1203 Light.CanCollide = false
1204 Light.TopSurface = "SmoothNoOutlines"
1205 Light.BottomSurface = "SmoothNoOutlines"
1206 Light.BackSurface = "SmoothNoOutlines"
1207 Light.FrontSurface = "SmoothNoOutlines"
1208 Light.LeftSurface = "SmoothNoOutlines"
1209 Light.RightSurface = "SmoothNoOutlines"
1210 Light.Transparency = 0
1211 Light.Size = Vector3.new(0.4,0.4,distance)
1212 Light.Material = "Neon"
1213 Light.BrickColor = Color
1214 Light.CFrame = CFrame.new(Point12.CFrame.p , PrevPoint12) * CFrame.new(0,0,-distance/2)
1215 end
1216 PreviousP = Object.CFrame.p
1217 PreviousA1 = Arm1.CFrame.p
1218 PreviousA2 = Arm2.CFrame.p
1219 PreviousL1 = Leg1.CFrame.p
1220 PreviousL2 = Leg2.CFrame.p
1221 PrevPoint1 = Point1.CFrame.p
1222 PrevPoint2 = Point2.CFrame.p
1223 PrevPoint3 = Point3.CFrame.p
1224 PrevPoint4 = Point4.CFrame.p
1225 PrevPoint5 = Point5.CFrame.p
1226 PrevPoint6 = Point6.CFrame.p
1227 PrevPoint7 = Point7.CFrame.p
1228 PrevPoint8 = Point8.CFrame.p
1229 PrevPoint9 = Point9.CFrame.p
1230 PrevPoint10 = Point10.CFrame.p
1231 PrevPoint11 = Point11.CFrame.p
1232 PrevPoint12 = Point12.CFrame.p
1233 local Children = Model:GetChildren()
1234 wait(0.05)
1235 for i = 1,10 do
1236 local Remove = coroutine.wrap(function()
1237 for i = 1,#Children do
1238 if Children[i]:IsA("Part") then
1239 Children[i].Transparency = Children[i].Transparency + 0.1
1240 if Children[i].Transparency >= 1 and Children[i] ~= Light and Children[i] ~= Point1 and Children[i] ~= Point2 and Children[i] ~= Point3
1241 and Children[i] ~= Point4 and Children[i] ~= Point5 and Children[i] ~= Point6 and Children[i] ~= Point7 and Children[i] ~= Point8
1242 and Children[i] ~= Point9 and Children[i] ~= Point10 and Children[i] ~= Point11 and Children[i] ~= Point12 then
1243 game.Debris:AddItem(Children[i],0)
1244 end
1245 end
1246 if Children[i].ClassName ~= "Part" then
1247 game.Debris:AddItem(Children[i],0)
1248 end
1249 end
1250 end)
1251 Remove()
1252 wait(0.01)
1253 end
1254 game.Debris:AddItem(Light,0)
1255 game.Debris:AddItem(Point1,0)
1256 game.Debris:AddItem(Point2,0)
1257 game.Debris:AddItem(Point3,0)
1258 game.Debris:AddItem(Point4,0)
1259 game.Debris:AddItem(Point5,0)
1260 game.Debris:AddItem(Point6,0)
1261 game.Debris:AddItem(Point7,0)
1262 game.Debris:AddItem(Point8,0)
1263 game.Debris:AddItem(Point9,0)
1264 game.Debris:AddItem(Point10,0)
1265 game.Debris:AddItem(Point11,0)
1266 game.Debris:AddItem(Point12,0)
1267end
1268end)
1269----------------------------------sprint------------------------------------------
1270local mouse = game.Players.LocalPlayer:GetMouse()
1271local running = false
1272
1273function getTool()
1274 for _, kid in ipairs(script.Parent:GetChildren()) do
1275 if kid.className == "Tool" then return kid end
1276 end
1277 return nil
1278end
1279
1280
1281mouse.KeyDown:connect(function (key) -- Run function
1282 key = string.lower(key)
1283 if string.byte(key) == 48 then
1284 running = true
1285 local keyConnection = mouse.KeyUp:connect(function (key)
1286 if string.byte(key) == 48 then
1287 running = false
1288 end
1289 end)
1290 for i = 1,5 do
1291 game.Workspace.CurrentCamera.FieldOfView = (70+(i*2))
1292 wait()
1293 end
1294 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 170
1295 repeat wait () until running == false
1296 keyConnection:disconnect()
1297 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 20
1298 for i = 1,5 do
1299 game.Workspace.CurrentCamera.FieldOfView = (90-(i*2))
1300 wait()
1301 end
1302 end
1303end)
1304
1305-------------------------------------Morph----------------------------------------
1306--[AOU Quicksilver edit by Bannaboy43 (only make edits cant stcipt ihml if this gets leaked tell people to send me scripts to make edits)
1307wait(1 / 60)
1308p = game.Players.LocalPlayer
1309char = p.Character
1310torso = char.Torso
1311neck = char.Torso.Neck
1312hum = char.Humanoid
1313hum.MaxHealth = 75000
1314wait()
1315hum.Health =hum.MaxHealth
1316char.Head.face.Texture = "rbxassetid://220843127"
1317
1318function startup()
1319 coroutine.resume(coroutine.create(function()
1320 local m = Instance.new("Model", char)
1321 m.Name = "* C"
1322 local chat = Instance.new("Part", m)
1323 chat.TopSurface = "Smooth"
1324 chat.BottomSurface = "Smooth"
1325 chat.Name = "Head"
1326 chat.FormFactor = "Custom"
1327 chat.Size = Vector3.new(0.05, 0.05, 0.1)
1328 chat.Transparency = 0.9
1329 chat.CanCollide = false
1330 local Weld7 = Instance.new("Weld", char)
1331 Weld7.Part0 = char.Head
1332 Weld7.Part1 = chat
1333 Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
1334 local cy7 = Instance.new("BlockMesh", chat)
1335 local h = Instance.new("Humanoid", m)
1336 h.MaxHealth = 0
1337 m.Name = "Quicksilver"
1338 end))
1339end
1340
1341z = Instance.new("Sound", torso)
1342z.SoundId = "rbxassetid://184110105" -- Put Music ID Here.
1343z.Looped = true
1344z.Volume = 3
1345wait(.1)
1346z:Play()
1347
1348char["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
1349char["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
1350char["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
1351char["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
1352char["Body Colors"].LeftLegColor = BrickColor.new("Pastel brown")
1353char["Body Colors"].RightLegColor = BrickColor.new("Pastel brown")
1354
1355shirt = Instance.new("Shirt", char)
1356shirt.Name = "Shirt"
1357pants = Instance.new("Pants", char)
1358pants.Name = "Pants"
1359char.Shirt.ShirtTemplate = "rbxassetid://185052466"
1360char.Pants.PantsTemplate = "rbxassetid://185052575"
1361
1362Hat = Instance.new("Model")
1363Hat.Parent = char
1364Hat.Name = "Hat"
1365rh = Instance.new("Part")
1366rh.Parent = Hat
1367rh.BrickColor = BrickColor.new("Grey")
1368rh.Locked = true
1369rh.CanCollide = false
1370mesh = Instance.new("SpecialMesh")
1371rh.formFactor = "Symmetric"
1372mesh.MeshType = "FileMesh"
1373mesh.MeshId = "rbxassetid://167549828"
1374mesh.Parent = rh
1375local weld = Instance.new("Weld")
1376weld.Parent = rh
1377weld.Part0 = rh
1378weld.Part1 =char.Head
1379weld.C0 = CFrame.new(0,-.25,0)*CFrame.Angles(0, 0, 0)
1380mesh.Scale = Vector3.new(1,1,1)
1381-----------------------------------------------------------------------------
1382
1383
1384
1385function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1386local fp=it("Part")
1387fp.formFactor=formfactor
1388fp.Parent=parent
1389fp.Reflectance=reflectance
1390fp.Transparency=transparency
1391fp.CanCollide=false
1392fp.Locked=true
1393fp.BrickColor=brickcolor
1394fp.Name=name
1395fp.Size=size
1396fp.Position=Torso.Position
1397NoOutline(fp)
1398fp.Material="SmoothPlastic"
1399fp:BreakJoints()
1400return fp
1401end
1402
1403
1404
1405function weld(parent,part0,part1,c0)
1406local weld=it("Weld")
1407weld.Parent=parent
1408weld.Part0=part0
1409weld.Part1=part1
1410weld.C0=c0
1411return weld
1412end
1413
1414local Color1=Torso.BrickColor
1415
1416
1417
1418
1419
1420 Player=game:GetService('Players').LocalPlayer
1421 Character=Player.Character
1422 Mouse=Player:GetMouse()
1423 m=Instance.new('Model',Character)
1424
1425
1426 local function weldBetween(a, b)
1427 local weldd = Instance.new("ManualWeld")
1428 weldd.Part0 = a
1429 weldd.Part1 = b
1430 weldd.C0 = CFrame.new()
1431 weldd.C1 = b.CFrame:inverse() * a.CFrame
1432 weldd.Parent = a
1433 return weldd
1434 end
1435
1436 it=Instance.new
1437
1438 function nooutline(part)
1439 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
1440 end
1441
1442 function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
1443 local fp=it("Part")
1444 fp.formFactor=formfactor
1445 fp.Parent=parent
1446 fp.Reflectance=reflectance
1447 fp.Transparency=transparency
1448 fp.CanCollide=false
1449 fp.Locked=true
1450 fp.BrickColor=BrickColor.new(tostring(brickcolor))
1451 fp.Name=name
1452 fp.Size=size
1453 fp.Position=Character.Torso.Position
1454 nooutline(fp)
1455 fp.Material=material
1456 fp:BreakJoints()
1457 return fp
1458 end
1459
1460 function mesh(Mesh,part,meshtype,meshid,offset,scale)
1461 local mesh=it(Mesh)
1462 mesh.Parent=part
1463 if Mesh=="SpecialMesh" then
1464 mesh.MeshType=meshtype
1465 mesh.MeshId=meshid
1466 end
1467 mesh.Offset=offset
1468 mesh.Scale=scale
1469 return mesh
1470 end
1471
1472 function weld(parent,part0,part1,c0,c1)
1473 local weld=it("Weld")
1474 weld.Parent=parent
1475 weld.Part0=part0
1476 weld.Part1=part1
1477 weld.C0=c0
1478 weld.C1=c1
1479 return weld
1480 end
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490--------------------------------
1491local p = game.Players.LocalPlayer
1492local char = p.Character
1493local mouse = p:GetMouse()
1494local larm = char["Left Arm"]
1495local rarm = char["Right Arm"]
1496local lleg = char["Left Leg"]
1497local rleg = char["Right Leg"]
1498local hed = char.Head
1499local torso = char.Torso
1500local hum = char.Humanoid
1501local cam = game.Workspace.CurrentCamera
1502local root = char.HumanoidRootPart
1503local deb = false
1504local shot = 0
1505local debris=game:service"Debris"
1506local l = game:GetService("Lighting")
1507local rs = game:GetService("RunService").RenderStepped
1508ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
1509math.randomseed(os.time())
1510for i,v in pairs(char:children()) do
1511 if v:IsA("Hat") then
1512 v:Destroy()
1513 end
1514end
1515for i,v in pairs (hed:GetChildren()) do
1516 if v:IsA("Sound") then
1517 v:Destroy()
1518 end
1519end
1520----------------------------------------------------
1521z = Instance.new("Sound", torso)
1522z.SoundId = "rbxassetid://506033751" -- Put Music ID Here.
1523z.Looped = true
1524z.Volume = 1
1525wait(.1)
1526z:Play()
1527-----------------------------------------------------
1528Debounces = {
1529CanAttack = true;
1530NoIdl = false;
1531Slashing = false;
1532Slashed = false;
1533RPunch = false;
1534RPunched = false;
1535LPunch = false;
1536LPunched = false;
1537}
1538local Touche = {char.Name, }
1539----------------------------------------------------h
1540----------------------------------------------------
1541local LocalPlayer = game:GetService("Players").LocalPlayer
1542local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
1543
1544
1545---------------------
1546local LocalPlayer = game:GetService("Players").LocalPlayer
1547local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
1548
1549
1550----------------------------------------
1551local p = game.Players.LocalPlayer
1552local char = p.Character
1553local mouse = p:GetMouse()
1554local larm = char["Left Arm"]
1555local rarm = char["Right Arm"]
1556local lleg = char["Left Leg"]
1557local rleg = char["Right Leg"]
1558local hed = char.Head
1559local torso = char.Torso
1560local hum = char.Humanoid
1561local cam = game.Workspace.CurrentCamera
1562local root = char.HumanoidRootPart
1563local rj = root.RootJoint
1564local deb = false
1565local shot = 0
1566local stanceToggle = "Idle1"
1567local l = game:GetService("Lighting")
1568local rs = game:GetService("RunService").RenderStepped
1569local hb = game:GetService("RunService").Heartbeat
1570local Stepped = game:GetService("RunService").Stepped
1571math.randomseed(os.time())
1572hum.JumpPower = 50
1573
1574----------------------------------------------------
1575fat = Instance.new("BindableEvent",script)
1576fat.Name = "Heartbeat"
1577
1578script:WaitForChild("Heartbeat")
1579
1580frame = 1/30
1581tf = 0
1582allowframeloss = false --if set to true will fire every frame it possibly can. This will result in multiple events happening at the same time whenever delta returns frame*2 or greater.
1583tossremainder = false --if set to true t will be set to 0 after Fire()-ing.
1584lastframe = tick()
1585script.Heartbeat:Fire() --ayy lmao
1586
1587game:GetService("RunService").Heartbeat:connect(function(s,p) --herp derp
1588 tf = tf + s
1589 if tf >= frame then
1590 if allowframeloss then
1591 script.Heartbeat:Fire()
1592 lastframe=tick()
1593 else
1594 --print("FIRED "..math.floor(t/frame).." FRAME(S)","REMAINDER "..(t - frame*(math.floor(t/frame))))
1595 for i=1, math.floor(tf/frame) do
1596 script.Heartbeat:Fire()
1597 end
1598 lastframe=tick()
1599 end
1600 if tossremainder then
1601 tf = 0
1602 else
1603 tf = tf - frame * math.floor(tf/frame)
1604 end
1605 end
1606end)
1607----------------------------------------------------
1608for i,v in pairs(char:children()) do
1609 if v:IsA("Hat") then
1610 v:Destroy()
1611 end
1612end
1613for i,v in pairs (hed:GetChildren()) do
1614 if v:IsA("Sound") then
1615 v:Destroy()
1616 end
1617end
1618----------------------------------------------------
1619Debounces = {
1620CanAttack = true;
1621CanJoke = true;
1622NoIdl = false;
1623Slashing = false;
1624Slashed = false;
1625ks = false;
1626}
1627----------------------------------------------------
1628function weld5(part0, part1, c0, c1)
1629 weeld=Instance.new("Weld", part0)
1630 weeld.Part0=part0
1631 weeld.Part1=part1
1632 weeld.C0=c0
1633 weeld.C1=c1
1634 return weeld
1635end
1636----------------------------------------------------
1637function NewPart(prnt,siz,cf,trans,anc,mat,col)
1638 local prt=Instance.new("Part")
1639 prt.Parent=prnt
1640 prt.Name="Part"
1641 prt.Size=siz
1642 prt.CanCollide=false
1643 prt.Anchored=anc
1644 prt.Locked=true
1645 prt.Transparency = trans
1646 prt.TopSurface=10
1647 prt.BottomSurface=10
1648 prt.FrontSurface=10
1649 prt.BackSurface=10
1650 prt.LeftSurface=10
1651 prt.RightSurface=10
1652 prt:BreakJoints()
1653 prt.CFrame=cf or CFrame.new(30,10,30)
1654 prt.Material=mat
1655 prt.BrickColor=BrickColor.new(col)
1656 m=Instance.new("SpecialMesh",prt)
1657 m.MeshType=6
1658 return prt
1659end
1660----------------------------------------------------
1661function lerp(a, b, t) -- Linear interpolation
1662 return a + (b - a)*t
1663end
1664
1665function slerp(a, b, t) --Spherical interpolation
1666 dot = a:Dot(b)
1667 if dot > 0.99999 or dot < -0.99999 then
1668 return t <= 0.5 and a or b
1669 else
1670 r = math.acos(dot)
1671 return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
1672 end
1673end
1674
1675function matrixInterpolate(a, b, t)
1676 local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
1677 local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
1678 local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
1679 local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
1680 local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
1681 local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
1682 local t = v1:Dot(v2)
1683 if not (t < 0 or t == 0 or t > 0) then -- Failsafe
1684 return CFrame.new()
1685 end
1686 return CFrame.new(
1687 v0.x, v0.y, v0.z,
1688 v1.x, v1.y, v1.z,
1689 v2.x, v2.y, v2.z,
1690 v3.x, v3.y, v3.z)
1691end
1692----------------------------------------------------
1693function genWeld(a,b)
1694 local w = Instance.new("Weld",a)
1695 w.Part0 = a
1696 w.Part1 = b
1697 return w
1698end
1699function weld(a, b)
1700 local weld = Instance.new("Weld")
1701 weld.Name = "W"
1702 weld.Part0 = a
1703 weld.Part1 = b
1704 weld.C0 = a.CFrame:inverse() * b.CFrame
1705 weld.Parent = a
1706 return weld;
1707end
1708----------------------------------------------------
1709function Lerp(c1,c2,al)
1710 local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
1711 local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
1712 for i,v in pairs(com1) do
1713 com1[i] = v+(com2[i]-v)*al
1714 end
1715 return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
1716end
1717----------------------------------------------------
1718newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
1719 local wld = Instance.new("Weld", wp1)
1720 wld.Part0 = wp0
1721 wld.Part1 = wp1
1722 wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
1723end
1724----------------------------------------------------
1725newWeld(torso, larm, -1.5, 0.5, 0)
1726larm.Weld.C1 = CFrame.new(0, 0.5, 0)
1727newWeld(torso, rarm, 1.5, 0.5, 0)
1728rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
1729newWeld(torso, hed, 0, 1.5, 0)
1730newWeld(torso, lleg, -0.5, -1, 0)
1731lleg.Weld.C1 = CFrame.new(0, 1, 0)
1732newWeld(torso, rleg, 0.5, -1, 0)
1733rleg.Weld.C1 = CFrame.new(0, 1, 0)
1734newWeld(root, torso, 0, -1, 0)
1735torso.Weld.C1 = CFrame.new(0, -1, 0)
1736----------------------------------------------------
1737z = Instance.new("Sound",char) --Smile: print("�?�?�?�??�?�? â�?��?��?�?â�?� �?¢â�??¬â�??¢�?�?�?�??�?¢â�??¬ �?�?�?¢�?¢â�?�š�?¬�?¢â�?�ž�?¢�?�?�?�??�?�? â�?��?��?�?�?¢�?¢â�?�š�?¬�?�?��?¡�?�?�?�??�?¢â�??¬�?¡�?�?â�?�š�?�??�?¢?�?�?�?�??�?�? â�?��?��?�?â�?� �?¢â�??¬â�??¢�?�?�?�??�?�??�?¢�?�?�?¢�?¢â�??¬�?¡�?�??�?¬�?�?â�?�¦�?�??�?¡�?�?�?�??�?�? â�?��?��?�?�?¢�?¢â�?�š�?¬�?�?��?¡�?�?�?�??�?¢â�??¬�?¡�?�?â�?�š�?�??�?º")
1738z.SoundId = "rbxassetid://0"--410761150, 411368002
1739z.Looped = true
1740z.Pitch = 1
1741z.Volume = 1
1742wait(0.1)
1743z:Play()
1744----------------------------------------------------
1745New = function(Object, Parent, Name, Data)
1746 local Object = Instance.new(Object)
1747 for Index, Value in pairs(Data or {}) do
1748 Object[Index] = Value
1749 end
1750 Object.Parent = Parent
1751 Object.Name = Name
1752 return Object
1753end
1754----------------------------------------------------
1755--Left Arm
1756m = Instance.new("Model")
1757m.Name = "LeftArm"
1758
1759p4 = Instance.new("Part", m)
1760p4.BrickColor = BrickColor.new("Really black")
1761p4.Material = Enum.Material.SmoothPlastic
1762p4.Name = "LeftArmPlate"
1763p4.Size = Vector3.new(1, 2, 1)
1764p4.Transparency = 1
1765p4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1766p4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1767p4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1768p4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1769p4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1770p4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1771b4 = Instance.new("SpecialMesh", p4)
1772b4.MeshType = Enum.MeshType.Brick
1773b4.Name = "Mesh"
1774b4.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
1775
1776
1777
1778
1779
1780w1 = Instance.new("Weld", p1)
1781w1.Name = "Part_Weld"
1782w1.Part0 = p1
1783w1.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1784w1.Part1 = p2
1785w1.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1786w2 = Instance.new("Weld", p2)
1787w2.Name = "Part_Weld"
1788w2.Part0 = p2
1789w2.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1790w2.Part1 = p3
1791w2.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1792w3 = Instance.new("Weld", p3)
1793w3.Name = "LeftArmPlate_Weld"
1794w3.Part0 = p3
1795w3.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1796w3.Part1 = p4
1797w3.C1 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1798w4 = Instance.new("Weld", p4)
1799w4.Name = "Part_Weld"
1800w4.Part0 = p4
1801w4.C0 = CFrame.new(1.5, -18.1000156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1802w4.Part1 = p5
1803w4.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1804w5 = Instance.new("Weld", p5)
1805w5.Name = "Part_Weld"
1806w5.Part0 = p5
1807w5.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1808w5.Part1 = p6
1809w5.C1 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1810w6 = Instance.new("Weld", p6)
1811w6.Name = "Part_Weld"
1812w6.Part0 = p6
1813w6.C0 = CFrame.new(1.5, -17.9000149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1814w6.Part1 = p7
1815w6.C1 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1816w7 = Instance.new("Weld", p7)
1817w7.Name = "Part_Weld"
1818w7.Part0 = p7
1819w7.C0 = CFrame.new(1.5, -18.2000179, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1820w7.Part1 = p8
1821w7.C1 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1822w8 = Instance.new("Weld", p8)
1823w8.Name = "Part_Weld"
1824w8.Part0 = p8
1825w8.C0 = CFrame.new(1.5, -18.5000172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1826w8.Part1 = p9
1827w8.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1828w9 = Instance.new("Weld", p9)
1829w9.Name = "Part_Weld"
1830w9.Part0 = p9
1831w9.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1832w9.Part1 = p10
1833w9.C1 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1834w10 = Instance.new("Weld", p10)
1835w10.Name = "Part_Weld"
1836w10.Part0 = p10
1837w10.C0 = CFrame.new(1.5, -18.950016, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1838w10.Part1 = p11
1839w10.C1 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1840w11 = Instance.new("Weld", p11)
1841w11.Name = "Part_Weld"
1842w11.Part0 = p11
1843w11.C0 = CFrame.new(1.5, -18.6500149, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1844w11.Part1 = p12
1845w11.C1 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1846w12 = Instance.new("Weld", p12)
1847w12.Name = "Part_Weld"
1848w12.Part0 = p12
1849w12.C0 = CFrame.new(1.5, -18.3500156, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1850w12.Part1 = p13
1851w12.C1 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1852w13 = Instance.new("Weld", p13)
1853w13.Name = "Part_Weld"
1854w13.Part0 = p13
1855w13.C0 = CFrame.new(1.5, -18.0500126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1856w13.Part1 = p14
1857w13.C1 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1858w14 = Instance.new("Weld", p14)
1859w14.Name = "Part_Weld"
1860w14.Part0 = p14
1861w14.C0 = CFrame.new(1.5, -17.7500172, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1862w14.Part1 = p15
1863w14.C1 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1864w15 = Instance.new("Weld", p15)
1865w15.Name = "Part_Weld"
1866w15.Part0 = p15
1867w15.C0 = CFrame.new(1.5, -18.8000126, -22.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1868w15.Part1 = p16
1869w15.C1 = CFrame.new(1.49142683, -27.338007, 3.81166649, 1, -2.04123751e-007, -6.57511308e-008, 1.67448022e-007, 0.500000119, 0.866025329, -1.06342185e-007, -0.866025269, 0.5)
1870
1871m.Parent = larm
1872m:MakeJoints()
1873----------------------------------------------------
1874local cor = Instance.new("Part", larm.LeftArm)
1875cor.Name = "Thingy"
1876cor.Locked = true
1877cor.BottomSurface = 0
1878cor.CanCollide = false
1879cor.Size = Vector3.new(1, 1, 1)
1880cor.Transparency = 1
1881cor.TopSurface = 0
1882corw = Instance.new("Weld", cor)
1883corw.Part0 = larm
1884corw.Part1 = cor
1885corw.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1886corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1887weld1 = Instance.new("Weld", larm.LeftArm)
1888weld1.Part0 = cor
1889weld1.Part1 = larm.LeftArm.LeftArmPlate
1890weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1891--Right Arm
1892m2 = Instance.new("Model")
1893m2.Name = "RightArm"
1894
1895p7 = Instance.new("Part", m2)
1896p7.BrickColor = BrickColor.new("Institutional white")
1897p7.Material = Enum.Material.SmoothPlastic
1898p7.Transparency = 1
1899p7.Name = "RightArmPlate"
1900p7.CFrame = CFrame.new(3.5, -9.54201603, -5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1901p7.FormFactor = Enum.FormFactor.Symmetric
1902p7.Size = Vector3.new(1, 2, 1)
1903p7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1904p7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1905p7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1906p7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1907p7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1908p7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1909b7 = Instance.new("SpecialMesh", p7)
1910b7.MeshType = Enum.MeshType.Brick
1911b7.Name = "Mesh"
1912b7.Scale = Vector3.new(1.01999998, 1.01999998, 1.01999998)
1913
1914
1915w1 = Instance.new("Weld", p1)
1916w1.Name = "Part_Weld"
1917w1.Part0 = p1
1918w1.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1919w1.Part1 = p2
1920w1.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1921w2 = Instance.new("Weld", p2)
1922w2.Name = "Part_Weld"
1923w2.Part0 = p2
1924w2.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1925w2.Part1 = p3
1926w2.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1927w3 = Instance.new("Weld", p3)
1928w3.Name = "Part_Weld"
1929w3.Part0 = p3
1930w3.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1931w3.Part1 = p4
1932w3.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1933w4 = Instance.new("Weld", p4)
1934w4.Name = "Part_Weld"
1935w4.Part0 = p4
1936w4.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1937w4.Part1 = p5
1938w4.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1939w5 = Instance.new("Weld", p5)
1940w5.Name = "Part_Weld"
1941w5.Part0 = p5
1942w5.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1943w5.Part1 = p6
1944w5.C1 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1945w6 = Instance.new("Weld", p6)
1946w6.Name = "RightArmPlate_Weld"
1947w6.Part0 = p6
1948w6.C0 = CFrame.new(-3.5, -4.80001688, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1949w6.Part1 = p7
1950w6.C1 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1951w7 = Instance.new("Weld", p7)
1952w7.Name = "Part_Weld"
1953w7.Part0 = p7
1954w7.C0 = CFrame.new(-3.5, -4.10001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1955w7.Part1 = p8
1956w7.C1 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1957w8 = Instance.new("Weld", p8)
1958w8.Name = "Part_Weld"
1959w8.Part0 = p8
1960w8.C0 = CFrame.new(-3.5, -4.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1961w8.Part1 = p9
1962w8.C1 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1963w9 = Instance.new("Weld", p9)
1964w9.Name = "Part_Weld"
1965w9.Part0 = p9
1966w9.C0 = CFrame.new(-3.5, -4.95002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1967w9.Part1 = p10
1968w9.C1 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1969w10 = Instance.new("Weld", p10)
1970w10.Name = "Part_Weld"
1971w10.Part0 = p10
1972w10.C0 = CFrame.new(-3.5, -4.65001678, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1973w10.Part1 = p11
1974w10.C1 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1975w11 = Instance.new("Weld", p11)
1976w11.Name = "Part_Weld"
1977w11.Part0 = p11
1978w11.C0 = CFrame.new(-3.5, -4.35001707, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1979w11.Part1 = p12
1980w11.C1 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1981w12 = Instance.new("Weld", p12)
1982w12.Name = "Part_Weld"
1983w12.Part0 = p12
1984w12.C0 = CFrame.new(-3.5, -4.05001783, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1985w12.Part1 = p13
1986w12.C1 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1987w13 = Instance.new("Weld", p13)
1988w13.Name = "Part_Weld"
1989w13.Part0 = p13
1990w13.C0 = CFrame.new(-3.5, -4.20002079, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1991w13.Part1 = p14
1992w13.C1 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1993w14 = Instance.new("Weld", p14)
1994w14.Name = "Part_Weld"
1995w14.Part0 = p14
1996w14.C0 = CFrame.new(-3.5, -3.75002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1997w14.Part1 = p15
1998w14.C1 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1999w15 = Instance.new("Weld", p15)
2000w15.Name = "Part_Weld"
2001w15.Part0 = p15
2002w15.C0 = CFrame.new(-3.5, -3.90001893, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2003w15.Part1 = p16
2004w15.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2005w16 = Instance.new("Weld", p16)
2006w16.Name = "Part_Weld"
2007w16.Part0 = p16
2008w16.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2009w16.Part1 = p17
2010w16.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2011w17 = Instance.new("Weld", p17)
2012w17.Name = "Part_Weld"
2013w17.Part0 = p17
2014w17.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2015w17.Part1 = p18
2016w17.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2017w18 = Instance.new("Weld", p18)
2018w18.Name = "Part_Weld"
2019w18.Part0 = p18
2020w18.C0 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2021w18.Part1 = p19
2022w18.C1 = CFrame.new(-3.5, -3.50002098, 5.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2023m2.Parent = rarm
2024m2:MakeJoints()
2025----------------------------------------------------
2026local cor2 = Instance.new("Part", rarm.RightArm)
2027cor2.Name = "Thingy"
2028cor2.Locked = true
2029cor2.BottomSurface = 0
2030cor2.CanCollide = false
2031cor2.Size = Vector3.new(1, 1, 1)
2032cor2.Transparency = 1
2033cor2.TopSurface = 0
2034corw2 = Instance.new("Weld", cor2)
2035corw2.Part0 = rarm
2036corw2.Part1 = cor2
2037corw2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2038corw2.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2039weld2 = Instance.new("Weld", rarm.RightArm)
2040weld2.Part0 = cor2
2041weld2.Part1 = rarm.RightArm.RightArmPlate
2042weld2.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2043
2044
2045--Zyrodoxa
2046m8 = Instance.new("Model")
2047m8.Name = "Zyrodoxa"
2048
2049p16 = Instance.new("Part", m8)
2050p16.BrickColor = BrickColor.new("Instutional white")
2051p16.Material = Enum.Material.Metal
2052p16.Name = "Handle"
2053p16.CFrame = CFrame.new(2.7e-005, -11.8500671, -1.1215378, 1, -4.08902174e-008, -5.95266769e-008, -5.95264673e-008, 4.47054163e-008, -1.00000322, 4.08900469e-008, 1.00000393, 3.27827877e-007)
2054p16.CanCollide = false
2055p16.Locked = true
2056p16.FormFactor = Enum.FormFactor.Custom
2057p16.Size = Vector3.new(0, 0, 0)
2058p16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2059p16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2060p16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2061p16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2062p16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2063p16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2064b16 = Instance.new("BlockMesh", p16)
2065b16.Name = "Mesh"
2066b16.Scale = Vector3.new(0, 0, 0)
2067
2068w16 = Instance.new("Weld", p16)
2069w16.Name = "Block_Weld"
2070w16.Part0 = p16
2071w16.C0 = CFrame.new(-2.69356715e-005, 1.12153399, 0.310250998, 1, -5.9526446e-008, 4.08900576e-008, -4.08900576e-008, 0, 1, -5.95264495e-008, -1, -2.43403981e-015)
2072w16.Part1 = p17
2073w16.C1 = CFrame.new(-2.69897973e-005, 0.238820702, 1.16951191, 1, -3.32849588e-008, -1.92696081e-009, -3.32849588e-008, -1, -5.96046448e-007, -1.92694105e-009, 5.96046448e-007, -1)
2074
2075m8.Parent = rarm
2076m8:MakeJoints()
2077----------------------------------------------------
2078local cor8 = Instance.new("Part", rarm.Zyrodoxa)
2079cor8.Name = "Thingy"
2080cor8.Locked = true
2081cor8.BottomSurface = 0
2082cor8.CanCollide = false
2083cor8.Size = Vector3.new(1, 1, 1)
2084cor8.Transparency = 1
2085cor8.TopSurface = 0
2086corw8 = Instance.new("Weld", cor8)
2087corw8.Part0 = rarm
2088corw8.Part1 = cor8
2089corw8.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180))
2090corw8.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2091weld8 = Instance.new("Weld", rarm.Zyrodoxa)
2092weld8.Part0 = cor8
2093weld8.Part1 = rarm.Zyrodoxa.Handle
2094weld8.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2095----------------------------------------------------
2096models = {m,m2,m3,m4,m5,m6,m7,m8}
2097parts = {}
2098Stepped:connect(function()
2099 for i,v in pairs(models) do
2100 for _, a in pairs(v:GetChildren()) do
2101 if v:IsA("Part") and v.Name ~= "Thingy" then
2102 table.insert(parts, a)
2103 for i,v in pairs(parts) do
2104 v.CanCollide = false
2105 end
2106 end
2107 end
2108 end
2109end)
2110----------------------------------------------------
2111local animpose = "Idle1"
2112local lastanimpose = "Idle1"
2113local grab = false
2114local Smooth = 1
2115local sine = 0
2116local change = 1
2117local val = 0
2118local ffing = false
2119----------------------------------------------------
2120--[[local hitbox = rarm.Zyrodoxa.Hitbox--Zyrodoxa is the name of the dagger k
2121
2122function FindHumanoids()
2123 local function c_region(Position, Size)
2124 local SizeOffset = Size/2
2125 local Point1 = Position - SizeOffset
2126 local Point2 = Position + SizeOffset
2127 local a = Instance.new("Part", workspace)
2128 a.Anchored = true
2129 a.Size = Size
2130 a.Position = Position
2131 print("Hey!, I'm making a part!")
2132 return Region3.new(Point1, Point2)
2133 end
2134
2135 local a = c_region((hitbox.CFrame * CFrame.new(0, -1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
2136 local b = c_region((hitbox.CFrame * CFrame.new(0, -0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
2137 local c = c_region((hitbox.CFrame * CFrame.new(0, 0.6425, 0)), Vector3.new(0.22, 0.6425, 1.22))
2138 local d = c_region((hitbox.CFrame * CFrame.new(0, 1.285, 0)), Vector3.new(0.22, 0.6425, 1.22))
2139
2140 local regions = {a, b, c, d}
2141
2142 local found_humanoids = {}
2143 local already_found = {char.Name}
2144
2145 for _, region in pairs(regions) do
2146 for _, part in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(region, rarm.Zyrodoxa:GetChildren(), 100)) do
2147 print(part, part.Parent, part.Name) ---nope
2148 if part.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
2149 local humanoid = part.Parent:FindFirstChild("Humanoid")
2150 local name = humanoid.Parent.Name
2151 local exists = false
2152 for _, n in pairs(already_found) do
2153 if n == name then
2154 exists = true
2155 end
2156 end
2157 if not exists then
2158 table.insert(already_found, name)
2159 table.insert(found_humanoids, humanoid)
2160 end
2161 elseif part.Parent.Parent:FindFirstChild("Humanoid") ~= nil and part.Parent.Parent.ClassName == "Model" and not part:isDescendantOf(char) then
2162 local humanoid = part.Parent.Parent:FindFirstChild("Humanoid")
2163 local name = humanoid.Parent.Parent.Name
2164 local exists = false
2165 for _, n in pairs(already_found) do
2166 if n == name then
2167 exists = true
2168 end
2169 end
2170 if not exists then
2171 table.insert(already_found, name)
2172 table.insert(found_humanoids, humanoid)
2173 end
2174 end
2175 end
2176 end
2177 return found_humanoids
2178end
2179
2180local humanoids = FindHumanoids()
2181if #humanoids == 0 then
2182 for i, v in pairs(humanoids) do
2183 print(v.Parent.Name)
2184 if Debounces.Slashing == true then
2185 v:TakeDamage(math.random(10,20) * math.random(1,3)) --max 60 damage?
2186 elseif Debounces.Slashing == false then
2187 wait()
2188 end
2189 end
2190 wait(0.3)
2191end]]--
2192----------------------------------------------------
2193--[[mouse.KeyDown:connect(function(key)
2194 if key == "f" then
2195 if Debounces.CanAttack == true then
2196 Debounces.CanAttack = false
2197 Debounces.NoIdl = true
2198 Debounces.on = true
2199 for i = 1, 20 do
2200 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2201 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2202 CR.Joint.C1 = Lerp(CR.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(-4),0,0),0.1)
2203 CR2.Joint.C1 = Lerp(CR2.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2204 CR3.Joint.C1 = Lerp(CR3.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2205 CR4.Joint.C1 = Lerp(CR4.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2206 CR5.Joint.C1 = Lerp(CR5.Joint.C1, CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),0.1)
2207 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6,0.6,-0.2)*CFrame.Angles(math.rad(8),math.rad(22),math.rad(15)), 0.8)
2208 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2209 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6,0.6,0.2)*CFrame.Angles(math.rad(-8),math.rad(12),math.rad(-12)), 0.8)
2210 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2211 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)), 0.5)
2212 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.5)
2213 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(0), 0), 0.1)
2214 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20), 0), 0.1)
2215 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), 0.1)
2216 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10), math.rad(5)), 0.1)
2217 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(0)), 0.1)
2218 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10), math.rad(-5)), 0.1)
2219 if Debounces.on == false then
2220 break
2221 end
2222 fat.Event:wait()
2223 end
2224 end
2225 end
2226end)]]--
2227----------------------------------------------------
2228mod4 = Instance.new("Model",char)
2229
2230ptez = {0.7, 0.8, 0.9, 1}
2231
2232function FindNearestTorso(Position,Distance,SinglePlayer)
2233 if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
2234 local List = {}
2235 for i,v in pairs(workspace:GetChildren())do
2236 if v:IsA("Model")then
2237 if v:findFirstChild("Torso")then
2238 if v ~= char then
2239 if(v.Torso.Position -Position).magnitude <= Distance then
2240 table.insert(List,v)
2241 end
2242 end
2243 end
2244 end
2245 end
2246 return List
2247end
2248
2249function Slam()
2250 local part=Instance.new('Part',mod4)
2251 part.Anchored=true
2252 part.CanCollide=false
2253 part.FormFactor='Custom'
2254 part.Size=Vector3.new(.2,.2,.2)
2255 part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
2256 part.Transparency=.7
2257 part.BrickColor=BrickColor.new('Really black')
2258 mesh=Instance.new('SpecialMesh',part)
2259 mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
2260 mesh.Scale=Vector3.new(3,3,3)
2261 local part2=Instance.new('Part',mod4)
2262 part2.Anchored=true
2263 part2.CanCollide=false
2264 part2.FormFactor='Custom'
2265 part2.Size=Vector3.new(.2,.2,.2)
2266 part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
2267 part2.Transparency=.7
2268 part2.BrickColor=BrickColor.new('Institutional white')
2269 mesh2=Instance.new('SpecialMesh',part2)
2270 mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
2271 mesh2.Scale=Vector3.new(3,1.5,3)
2272 x = Instance.new("Sound",larm)
2273 x.SoundId = "http://www.roblox.com/asset/?id=142070127"
2274 x.Pitch = ptez[math.random(1,#ptez)]
2275 x.Volume = 1
2276 wait(.1)
2277 x1 = Instance.new("Sound",larm)
2278 x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
2279 x1.Pitch = ptez[math.random(1,#ptez)]
2280 x1.Volume = 1
2281 wait(.1)
2282 x:Play()
2283 x1:Play()
2284 for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
2285 if v:FindFirstChild('Humanoid') then
2286 v.Humanoid:TakeDamage(math.random(300,450))
2287 end
2288 end
2289 coroutine.resume(coroutine.create(function()
2290 for i=0,0.62,0.13 do
2291 wait()
2292 part.CFrame=part.CFrame
2293 part.Transparency=i
2294 mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
2295 part2.CFrame=part2.CFrame
2296 part2.Transparency=i
2297 mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
2298 end
2299 part.Parent=nil
2300 part2.Parent=nil
2301 x:Destroy()
2302 end))
2303end
2304----------------------------------------------------
2305wPart = function(x,y,z,color,tr,cc,an,parent)
2306 local wp = Instance.new('WedgePart',parent or Weapon)
2307 wp.formFactor = 'Custom'
2308 wp.Size = Vector3.new(x,y,z)
2309 wp.BrickColor = BrickColor.new(color)
2310 wp.CanCollide = cc
2311 wp.Transparency = tr
2312 wp.Anchored = an
2313 wp.TopSurface,wp.BottomSurface = 0,0
2314 return wp
2315end
2316
2317Mesh = function(par,num,x,y,z)
2318 local msh = _
2319 if num == 1 then
2320 msh = Instance.new("CylinderMesh",par)
2321 elseif num == 2 then
2322 msh = Instance.new("SpecialMesh",par)
2323 msh.MeshType = 3
2324 elseif num == 3 then
2325 msh = Instance.new("BlockMesh",par)
2326 elseif num == 4 then
2327 msh = Instance.new("SpecialMesh",par)
2328 msh.MeshType = "Torso"
2329 elseif type(num) == 'string' then
2330 msh = Instance.new("SpecialMesh",par)
2331 msh.MeshId = num
2332 end
2333 msh.Scale = Vector3.new(x,y,z)
2334 return msh
2335end
2336
2337local function CFrameFromTopBack(at, top, back)
2338 local right = top:Cross(back)
2339 return CFrame.new(at.x, at.y, at.z,
2340 right.x, top.x, back.x,
2341 right.y, top.y, back.y,
2342 right.z, top.z, back.z)
2343end
2344
2345function Triangle(a, b, c)
2346 local edg1 = (c-a):Dot((b-a).unit)
2347 local edg2 = (a-b):Dot((c-b).unit)
2348 local edg3 = (b-c):Dot((a-c).unit)
2349 if edg1 <= (b-a).magnitude and edg1 >= 0 then
2350 a, b, c = a, b, c
2351 elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
2352 a, b, c = b, c, a
2353 elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
2354 a, b, c = c, a, b
2355 else
2356 print("unreachable")
2357 end
2358 local len1 = (c-a):Dot((b-a).unit)
2359 local len2 = (b-a).magnitude - len1
2360 local width = (a + (b-a).unit*len1 - c).magnitude
2361 local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
2362 local list = {}
2363 if len1 > 0.01 then
2364 local w1 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
2365 local sz = Vector3.new(0.2, width, len1)
2366 w1.Size = sz
2367 local sp = Mesh(w1,2,0,0,0)
2368 sp.MeshType='Wedge'
2369 sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
2370 w1:BreakJoints()
2371 w1.Anchored = true
2372 w1.Transparency = 0.7
2373 Spawn(function()
2374 for i=0,1,0.1 do
2375 fat.Event:wait()
2376 w1.Transparency=w1.Transparency+0.03
2377 end
2378 end)
2379 w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
2380 table.insert(list,w1)
2381 end
2382 if len2 > 0.01 then
2383 local w2 = wPart(0,0,0,'Institutional white',0.5,false,true,char)
2384 local sz = Vector3.new(0.2, width, len2)
2385 w2.Size = sz
2386 local sp = Mesh(w2,2,0,0,0)
2387 sp.MeshType='Wedge'
2388 sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
2389 w2:BreakJoints()
2390 w2.Anchored = true
2391 w2.Transparency = 0.7
2392 Spawn(function()
2393 for i=0,1,0.1 do
2394 fat.Event:wait()
2395 w2.Transparency=w2.Transparency+0.03
2396 end
2397 end)
2398 w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
2399 table.insert(list,w2)
2400 end
2401 return unpack(list)
2402end
2403
2404function trail(p,t,h)
2405 Spawn(function()
2406 local blcf = p.CFrame
2407 local scfr = blcf
2408 for i=1,t do
2409 local blcf = p.CFrame
2410 if scfr and (p.Position-scfr.p).magnitude > .1 then
2411 local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
2412 if a then game.Debris:AddItem(a,1) end
2413 if b then game.Debris:AddItem(b,1) end
2414 local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
2415 if a then game.Debris:AddItem(a,1) end
2416 if b then game.Debris:AddItem(b,1) end
2417 scfr = blcf
2418 elseif not scfr then
2419 scfr = blcf
2420 end
2421 fat.Event:wait()
2422 end
2423 scfr=nil
2424 end)
2425end
2426--trail(char.Sword.Blade,1e1000,5)
2427----------------------------------------------------
2428function Dmg()
2429 local partofdeath = rarm.Zyrodoxa.Hitbox
2430 local function CreateRegion3FromLocAndSize(Position, Size)
2431 local SizeOffset = Size/2
2432 local Point1 = Position - SizeOffset
2433 local Point2 = Position + SizeOffset
2434 return Region3.new(Point1, Point2)
2435 end
2436 local reg = CreateRegion3FromLocAndSize(partofdeath.Position, partofdeath.Size)
2437 for i, v in pairs(game.Workspace:FindPartsInRegion3WithIgnoreList(reg, char:GetChildren(), 100)) do
2438 Spawn(function()
2439 if Debounces.Slashing == true and Debounces.Slashed == false then
2440 Debounces.Slashed = true
2441 ypcall(function()
2442 local humanoid = v.Parent:FindFirstChild("Humanoid") or v.Parent.Parent:FindFirstChild("Humanoid")
2443 humanoid:TakeDamage(math.random(10,50))
2444 end)
2445 wait(.4)
2446 Debounces.Slashed = false
2447 end
2448 end)
2449 end
2450end
2451----------------------------------------------------
2452pts = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
2453ptz = {0.7, 0.8, 0.9, 1}
2454idz = {"161006212", "161006195"}
2455function attackone()
2456 for i = 1, 13 do
2457 corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.3, -1, -0.3) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
2458 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), math.rad(30), math.rad(0)), 0.8)
2459 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -0.3)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(-10)), 0.3)
2460 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
2461 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0.4)*CFrame.Angles(math.rad(-30),math.rad(0),math.rad(-10)), 0.5)
2462 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(-40),math.rad(0)), 0.5)
2463 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(-50),0), 0.5)
2464 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.5)
2465 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(50), 0), 0.7)
2466 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(18), math.rad(0), math.rad(15)), 0.7)
2467 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.4, -1.3, 0) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
2468 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(15)), 0.5)
2469 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
2470 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.5)
2471 if Debounces.on == false then
2472 break
2473 end
2474 fat.Event:wait()
2475 end
2476 trail(rarm.Zyrodoxa.Hitbox,20,2)
2477 Debounces.Slashing = true
2478 wait(0.2)
2479 --[[z = Instance.new("Sound", hed)
2480 z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
2481 z.Pitch = ptz[math.random(1,#ptz)]
2482 z.Volume = 1
2483 wait(.01)
2484 z:Play()]]--
2485 for i = 1, 14 do
2486 Dmg()
2487 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(90)), 0.8)
2488 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(30), math.rad(0)), 0.8)
2489 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0.4)*CFrame.Angles(math.rad(30),math.rad(0),math.rad(100)), 0.4)
2490 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.4)
2491 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, -0.3)*CFrame.Angles(math.rad(100),math.rad(0),math.rad(-20)), 0.4)
2492 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(20),math.rad(0)), 0.4)
2493 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(0),math.rad(40),0), 0.7)
2494 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
2495 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(-10), math.rad(-40), 0), 0.4)
2496 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2497 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.7, -0.9, -0.4) * CFrame.Angles(math.rad(0), math.rad(40), math.rad(0)), 0.5)
2498 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-14), math.rad(0), math.rad(15)), 0.5)
2499 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.5)
2500 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(-10)), 0.5)
2501 if Debounces.on == false then break end
2502 rs:wait()
2503 end
2504 Debounces.Slashing = false
2505end
2506function attacktwo()
2507 Debounces.Slashing = true
2508 for i = 1, 14 do
2509 Dmg()
2510 corw8.C0 = Lerp(corw8.C0, CFrame.new(-0.37, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), 0.4)
2511 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.4)
2512 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(80)), 0.7)
2513 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
2514 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad (-70)), 0.5)
2515 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.4)
2516 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-90), math.rad(0)), 0.5)
2517 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
2518 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -2) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.5)
2519 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2520 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.5)
2521 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
2522 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.5)
2523 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
2524 if Debounces.on == false then
2525 break
2526 end
2527 rs:wait()
2528 end
2529end
2530----------------------------------------------------
2531
2532----------------------------------------------------
2533definition = 5
2534bc = {}
2535bezierparts = {}
2536function NoOutline(Part)
2537 Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
2538end
2539function draw(p,d)
2540 for i=1,d do
2541 local t = i/d
2542 bc[i] = p[1]*(1-t)^2+2*p[2]*(1-t)*t+p[3]*t^2
2543 end
2544
2545 Spawn(function() fat.Event:wait()
2546 for i,v in pairs(bezierparts) do
2547 v.Transparency = 1
2548 end
2549 end)
2550end
2551--local points = {larm.Position,rarn.Position,invisipart.Position}
2552--draw(points,definition)
2553
2554 fat.Event:wait()
2555
2556 rpart = Instance.new("Part",rarm)
2557 NoOutline(rpart)
2558 rpart.Anchored = false
2559 rpart.Size = Vector3.new(1,1,1)
2560 rpart.CFrame = rarm.CFrame * CFrame.new(0,-1,0)
2561 rpart.Transparency = 1
2562 newWeld(rarm, rpart, 0, 0, 0)
2563 rpart.Weld.C1 = CFrame.new(0, 1.1, 0)
2564 lpart = Instance.new("Part",larm)
2565 NoOutline(lpart)
2566 lpart.Anchored = false
2567 lpart.Size = Vector3.new(1,1,1)
2568 lpart.CFrame = larm.CFrame * CFrame.new(0,-1,0)
2569 lpart.Transparency = 1
2570 newWeld(larm, lpart, 0, 0, 0)
2571 lpart.Weld.C1 = CFrame.new(0, 1.1, 0)
2572 invisipart = Instance.new("Part",torso)
2573 NoOutline(invisipart)
2574 invisipart.Anchored = false
2575 invisipart.Size = Vector3.new(1,1,1)
2576 invisipart.Transparency = 1
2577 invisipart.CFrame = torso.CFrame
2578 newWeld(torso, invisipart, 0, 0, 0)
2579 invisipart.Weld.C1 = CFrame.new(0, 0, 6)
2580 table.insert(bezierparts, rpart)
2581 table.insert(bezierparts, lpart)
2582 table.insert(bezierparts, invisipart)
2583 for i = 1, 40 do
2584 local points = {lpart.Position,invisipart.Position,rpart.Position}
2585 draw(points,definition)
2586 --invisipart.Weld.C1 = invisipart.Weld.C1 + Vector3.new(0,0,0.6)
2587 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.1)
2588 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
2589 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-90)), 0.1)
2590 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
2591 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.2)
2592 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.7)
2593 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
2594 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2595 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(-10)), 0.2)
2596 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
2597 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(0), 0, math.rad(10)), 0.2)
2598 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.5)
2599 if Debounces.on == false then
2600 break
2601 end
2602 fat.Event:wait()
2603 end
2604 for i,v in pairs(bezierparts) do
2605 v:Destroy()
2606 end
2607 --draw(points,definition)
2608 if Debounces.CanAttack == false then
2609 Debounces.CanAttack = true
2610 Debounces.NoIdl = false
2611 Debounces.on = false
2612 end
2613
2614----------------------------------------------------
2615----------------------------------------------------
2616
2617----------------------------------------------------
2618----------------------------------------------------
2619mouse.KeyDown:connect(function(key)
2620 if key == "j" then
2621 if Debounces.CanJoke == true then
2622 Debounces.CanJoke = false
2623 z = Instance.new("Sound",hed)
2624 z.SoundId = "rbxassetid://415859013"
2625 z.Pitch = pitches[math.random(1,#pitches)]
2626 z.Volume = 1
2627 wait()
2628 z:Play()
2629 wait(2)
2630 z:Destroy()
2631 if Debounces.CanJoke == false then
2632 Debounces.CanJoke = true
2633 end
2634 end
2635 end
2636end)
2637
2638----------------------------------------------------
2639Grab = false
2640mouse.KeyDown:connect(function(key)
2641 if key == "r" then
2642 Debounces.on = true
2643 Debounces.NoIdl = true
2644 Debounces.ks = true
2645 if Grab == false then
2646 gp = nil
2647 for i = 1, 20 do
2648 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
2649 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2650 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-80)), 0.2)
2651 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2652 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
2653 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2654 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
2655 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2656 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(30), math.rad(-20)), 0.2)
2657 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2658 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(-15), math.rad(20)), 0.2)
2659 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2660 if Debounces.on == false then break end
2661 fat.Event:wait()
2662 end
2663 con1=larm.LeftArm.LeftArmPlate.Touched:connect(function(hit)
2664 ht = hit.Parent
2665 for i,v in pairs(ht:GetChildren()) do
2666 if v:IsA("Part") then
2667 v.CanCollide = false
2668 v.CustomPhysicalProperties = PhysicalProperties.new(0.001,0.001,0.001,0.001,0.001)
2669 end
2670 end
2671 hum1=ht:FindFirstChild('Humanoid')
2672 if hum1 ~= nil then
2673 if Debounces.ks==true then
2674 z = Instance.new("Sound",hed)
2675 z.SoundId = "rbxassetid://169380525"
2676 z.Volume = 1
2677 z:Play()
2678 Debounces.ks=false
2679 end
2680 hum1.PlatformStand=true
2681 hum1:ChangeState'Physics'
2682 gp = ht
2683 Grab = true
2684 asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,0.6),CFrame.new(0,0,0))
2685 asd.Parent = larm
2686 asd.Name = "asd"
2687 asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
2688 stanceToggle = "Grabbed"
2689 --[[elseif hum1 == nil then
2690 con1:disconnect()
2691 wait() return]]--
2692 end
2693 end)
2694 for i = 1, 20 do
2695 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(20)), 0.2)
2696 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2697 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.4,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
2698 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2699 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(50),0), 0.2)
2700 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2701 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
2702 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2703 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2)
2704 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2705 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.2)
2706 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2707 if Debounces.on == false then break end
2708 fat.Event:wait()
2709 end
2710 con1:disconnect()
2711 Debounces.on = false
2712 Debounces.NoIdl = false
2713 elseif Grab == true then
2714 Grab = false
2715 --[[for i = 1, 16 do
2716 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(60)), 0.3)
2717 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.5)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(-60)), 0.3)
2718 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
2719 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
2720 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
2721 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
2722 cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
2723 if Debounces.on == false then end
2724 rs:wait()
2725 end]]--
2726 for i = 1, 16 do
2727 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)), 0.3)
2728 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20)), 0.5)
2729 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(0)), 0.3)
2730 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(60)), 0.5)
2731 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
2732 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2733 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.3)
2734 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2735 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
2736 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
2737 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
2738 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2739 if Debounces.on == false then end
2740 rs:wait()
2741 end
2742 for i = 1, 12 do
2743 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.6)
2744 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2745 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.3,-0.1)*CFrame.Angles(math.rad(45),math.rad(0),math.rad(-32)), 0.6)
2746 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2747 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(40), math.rad(14)),0.6)
2748 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2749 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.6, 0) * CFrame.Angles(math.rad(-50), math.rad(0), math.rad(0)), 0.6)
2750 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0,-1,0)*CFrame.Angles(math.rad(0),math.rad(40),math.rad(0)), 0.5)
2751 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.6)
2752 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(40)), 0.4)
2753 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.4, .2, -0.8) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), 0.6)
2754 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(20), math.rad(0)), 0.4)
2755 if Debounces.on == false then end
2756 rs:wait()
2757 end
2758 Slam()
2759 if gp ~= nil then
2760 for i,v in pairs(larm:GetChildren()) do
2761 if v.Name == "asd" and v:IsA("Weld") then
2762 v:Remove()
2763 end
2764 if v:IsA("Part") then
2765 v.CanCollide = true
2766 v.CustomPhysicalProperties = PhysicalProperties.new(1,1,1,1,1)
2767 end
2768 end
2769 end
2770 stanceToggle = "Idle1"
2771 --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
2772 bv.maxForce = Vector3.new(400000, 400000, 400000)
2773 bv.P = 125000
2774 bv.velocity = char.Head.CFrame.lookVector * 200]]--
2775 ht=nil
2776 Debounces.on = false
2777 Debounces.NoIdl = false
2778 elseif ht == nil then wait()
2779 Grab = false
2780 Debounces.on = false
2781 Debounces.NoIdl = false
2782 end
2783 end
2784end)
2785----------------------------------------------------
2786Change = false
2787mouse.KeyDown:connect(function(key)
2788 if key == "n" then
2789 if Change == false then
2790 Change = true
2791 stanceToggle = "Idle2"
2792 elseif Change == true then
2793 Change = false
2794 stanceToggle = "Idle1"
2795 end
2796 end
2797end)
2798----------------------------------------------------
2799mouse.KeyDown:connect(function(key)
2800 if string.byte(key) == 52 then
2801 Swing = 2
2802 char.Humanoid.WalkSpeed = 28
2803 end
2804end)
2805mouse.KeyUp:connect(function(key)
2806 if string.byte(key) == 52 then
2807 Swing = 1
2808 char.Humanoid.WalkSpeed = 20
2809 end
2810end)
2811----------------------------------------------------
2812
2813jump = false
2814rs:connect(function()
2815 if char.Humanoid.Jump == true then
2816 jump = true
2817 else
2818 jump = false
2819 end
2820 char.Humanoid.FreeFalling:connect(function(f)
2821 if f then
2822 ffing = true
2823 else
2824 ffing = false
2825 end
2826 end)
2827 sine = sine + change
2828 if jump == true then
2829 animpose = "Jumping"
2830 elseif ffing == true then
2831 animpose = "Freefalling"
2832 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
2833 animpose = "Idle"
2834 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
2835 animpose = "Walking"
2836 elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
2837 animpose = "Running"
2838 end
2839 RightLeg = CFrame.new(0.5,-1,0)
2840 LeftLeg = CFrame.new(-0.5,-1,0)
2841
2842 lefth = (torso.CFrame*LeftLeg)
2843 righth = (torso.CFrame*RightLeg)
2844
2845 speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
2846
2847 TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
2848
2849 local AngleThetaR = (righth-righth.p):vectorToObjectSpace(speed/100)
2850 local AngleThetaL = (lefth-lefth.p):vectorToObjectSpace(speed/100)
2851 if animpose ~= lastanimpose then
2852 sine = 0
2853 if Debounces.NoIdl == false then
2854 if stanceToggle == "Idle1" then
2855 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-12-4*math.cos(sine/22)),math.rad(-12-2*math.cos(sine/22)),math.rad(12+2*math.cos(sine/22))), 0.3)
2856 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6,-0.2)*CFrame.Angles(math.rad(20+4*math.cos(sine/22)),math.rad(-22-2*math.cos(sine/22)),math.rad(-15-2*math.cos(sine/22))), 0.3)
2857 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-12+2.5*math.cos(sine/22)),math.rad(0),math.rad(0)), 0.2)
2858 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-2+2*math.cos(sine/22)), math.rad(0), 0), 0.2)
2859 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(5), math.rad(-5)), 0.2)
2860 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(0-2*math.cos(sine/22)), math.rad(-5), math.rad(5)), 0.2)
2861 elseif stanceToggle == "Idle2" then
2862 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.6,0.2)*CFrame.Angles(math.rad(-22-4*math.cos(sine/12)),math.rad(-40-2*math.cos(sine/12)),math.rad(24+2*math.cos(sine/12))), 0.3)
2863 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,0.6,-0.6)*CFrame.Angles(math.rad(90+4*math.cos(sine/12)),math.rad(0),math.rad(50-2*math.cos(sine/12))), 0.3)
2864 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-6+2.5*math.cos(sine/12)),math.rad(0),math.rad(0)), 0.2)
2865 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-20+2*math.cos(sine/12)), math.rad(0), 0), 0.2)
2866 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.4, -1) * CFrame.Angles(math.rad(-7-2*math.cos(sine/12)), math.rad(7), math.rad(-5)), 0.2)
2867 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.8, -0.2) * CFrame.Angles(math.rad(-30-2*math.cos(sine/12)), math.rad(-9), math.rad(5)), 0.2)
2868 end
2869 fat.Event:wait()
2870 end
2871 else
2872 end
2873 lastanimpose = animpose
2874 if Debounces.NoIdl == false then
2875 if animpose == "Idle" then
2876 change = 0.5
2877 if stanceToggle == "Idle1" then
2878 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1.05+0.03*math.cos(sine/5), 0-0.1*math.cos(sine/10)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2879 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0+8*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.3)
2880
2881 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.6+0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),-0.2-0.1*math.cos(sine/10))*CFrame.Angles(math.rad(8+2.5*math.cos(sine/10)),math.rad(22+7*math.cos(sine/10)),math.rad(15+2*math.cos(sine/10))), 0.8)
2882 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2883 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.6-0.05*math.cos(sine/10),0.6+0.1*math.cos(sine/10),0.2+0.1*math.cos(sine/10))*CFrame.Angles(math.rad(-8-2.5*math.cos(sine/10)),math.rad(12+5*math.cos(sine/10)),math.rad(-12-3*math.cos(sine/10))), 0.8)
2884 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2885 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.05*math.cos(sine/10))*CFrame.Angles(math.rad(-15+3*math.cos(sine/10)),math.rad(0),math.rad(0)), 0.5)
2886 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(20-3*math.cos(sine/10)),math.rad(0)), 0.5)
2887 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-6+3*math.cos(sine/10)), math.rad(0), 0), 0.1)
2888 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0-0.08*math.cos(sine/10), -1, 0) * CFrame.Angles(math.rad(0), math.rad(-20+3*math.cos(sine/10)), 0), 0.1)
2889 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0.14+0.06*math.cos(sine/10)) * CFrame.Angles(math.rad(-3-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
2890 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-10-3*math.cos(sine/10)), math.rad(5+3*math.cos(sine/10))), 0.1)
2891 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.06) * CFrame.Angles(math.rad(8-3*math.cos(sine/10)), math.rad(0), math.rad(0)), 0.1)
2892 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(10-3*math.cos(sine/10)), math.rad(-5+3*math.cos(sine/10))), 0.1)
2893 elseif stanceToggle == "Idle2" then
2894
2895 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2896 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65-0.1*math.cos(sine/3),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20-2*math.cos(sine/3))), 0.1)
2897 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
2898 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.23, 0.5, -.56) * CFrame.Angles(math.rad(88+4*math.cos(sine/3)), 0, math.rad(45)), 0.6)
2899 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.2)
2900 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(-10+2*math.cos(sine/6)), 0, 0), 0.8)
2901 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
2902 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
2903 --hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-5-10*math.cos(sine/18)), math.sin(sine/36)/3, 0), 0.3)
2904 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2905 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1.15) * CFrame.Angles(math.rad(-9-2*math.cos(sine/6)), 0, 0), 0.8)
2906 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1-0.1*math.cos(sine/3), 0+0.04*math.cos(sine/6)) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(5)), 0.8)
2907 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56-2*math.cos(sine/6)), 0, 0), 0.8)
2908 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1-0.05*math.cos(sine/3), 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5)), 0.8)
2909 elseif stanceToggle == "Grabbed" then
2910 grab = true
2911 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2912 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2913 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2)
2914 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
2915 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(90+4*math.cos(sine/14)),math.rad(0),math.rad(-80+4*math.cos(sine/14))), 0.3)
2916 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
2917 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14+2*math.cos(sine/14)),math.rad(70-4*math.cos(sine/14)),0), 0.3)
2918 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2919 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
2920 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.1)
2921 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.3)
2922 lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
2923 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-15), math.rad(20)), 0.3)
2924 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
2925 end
2926 elseif animpose == "Walking" then
2927 if stanceToggle == "Grabbed" then
2928 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2929 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2930 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
2931 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
2932 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120+4*math.cos(sine/2)),math.rad(0),math.rad(-30+4*math.cos(sine/4))), 0.3)
2933 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0,0.5, 0)*CFrame.Angles(math.rad(0), math.rad(0),math.rad(0)), 0.2)
2934 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
2935 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
2936 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
2937 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
2938 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
2939 lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
2940 lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
2941 rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
2942 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
2943 elseif stanceToggle ~= "Grabbed" then
2944 change = 1
2945 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2946 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2947
2948 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/2), math.sin(sine/4)/4) * CFrame.Angles(-math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(10+7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
2949 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
2950 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/2), -math.sin(sine/4)/4)*CFrame.Angles(math.sin(sine/4)/2.8, -math.sin(sine/4)/3, (math.rad(-10-7*math.cos(sine/2))+root.RotVelocity.Y/30)), 0.4)
2951 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.7)
2952 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-0.1+0.1*math.cos(sine/2))*CFrame.Angles(math.rad(-10+4*math.cos(sine/2)), math.rad(0-8*math.cos(sine/4)/2.3), math.rad(0)),0.4)
2953 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.7)
2954 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.12*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/2)), math.rad(0+10*math.cos(sine/4)/2.3)+root.RotVelocity.Y/30, math.rad(0)+root.RotVelocity.Y/30), 0.4)
2955 --rj.C0 = rj.C0:lerp(CFrame.Angles(math.rad(-90)+TiltOnAxis.Z,TiltOnAxis.X,math.rad(180)+-TiltOnAxis.X),.1)
2956 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.8)
2957 --lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.9-0.24*math.cos(sine/4)/2.8, -0.05 + math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)-math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
2958 lleg.Weld.C0 = lleg.Weld.C0:lerp(CFrame.new(-0.5,-1-math.cos(sine/4)*.3,0+math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*AngleThetaL.Z,AngleThetaL.X,(math.sin(sine/4)*3*-AngleThetaL.X)-root.RotVelocity.Y/20),0.8)
2959 lleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
2960 --rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.9+0.24*math.cos(sine/4)/2.8, -0.05 + -math.sin(sine/4)/3.4) * CFrame.Angles(math.rad(-5)+math.sin(sine/4)/2.1, math.rad(0-10*math.cos(sine/4)/2.3), 0-root.RotVelocity.Y/20), .4)
2961 rleg.Weld.C0 = rleg.Weld.C0:lerp(CFrame.new(0.5,-1+math.cos(sine/4)*.3,0-math.sin(sine/4)*.1)*CFrame.Angles(math.sin(sine/4)*3*-AngleThetaR.Z,AngleThetaR.X,(math.sin(sine/4)*3*AngleThetaR.X)-root.RotVelocity.Y/20),0.8)
2962 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.8)
2963 end
2964 elseif animpose == "Running" then
2965 change = 1
2966 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2967 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2968
2969 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.24+.6*math.cos(sine/4)/1.4, 0.54, 0+0.8*math.cos(sine/4)) * CFrame.Angles(math.rad(6-140*math.cos(sine/4)/1.2), math.rad(0), math.rad(-20+70*math.cos(sine/4))), 0.2)
2970 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
2971 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.24+.6*math.cos(sine/4)/1.4, 0.54, 0-0.8*math.cos(sine/4))*CFrame.Angles(math.rad(6+140*math.cos(sine/4)/1.2), math.rad(0), math.rad(20+70*math.cos(sine/4))), 0.2)
2972 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2973 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-8+12*math.cos(sine/2)/1.5), math.rad(0+12*math.cos(sine/4)), math.rad(0)),0.2)
2974 hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0)-root.RotVelocity.Y/10,math.rad(0)), 0.5)
2975 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.2*math.cos(sine/2)/1.7, 0) * CFrame.Angles(math.rad(-14+10*math.cos(sine/2)/1.5), math.rad(0-12*math.cos(sine/4))-root.RotVelocity.Y/10, math.rad(0)+root.RotVelocity.Y/20), 0.2)
2976 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
2977 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.8-0.4*math.cos(sine/4)/2, math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + -math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
2978 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2979 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8+0.4*math.cos(sine/4)/2, -math.sin(sine/4)/2) * CFrame.Angles(math.rad(-10) + math.sin(sine/4)/1.2, math.rad(0+12*math.cos(sine/4))+root.RotVelocity.Y/10, 0), .8)
2980 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2981 elseif animpose == "Jumping" then
2982
2983 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2984 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
2985 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(20)), 0.2)
2986 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
2987 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), 0.2)
2988 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
2989 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(30),math.rad(0),0), 0.2)
2990 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(0), 0), 0.2)
2991 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
2992 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
2993 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2994 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1.1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
2995 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2996 elseif animpose == "Freefalling" then
2997
2998 corw8.C0 = Lerp(corw8.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(180)), 0.3)
2999 corw8.C1 = Lerp(corw8.C1, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
3000 rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0)*CFrame.Angles(math.rad(-40),math.rad(20),math.rad(50)), 0.2)
3001 rarm.Weld.C1 = Lerp(rarm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.36)
3002 larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.6, 0)*CFrame.Angles(math.rad(110),math.rad(-20),math.rad(-30)), 0.2)
3003 larm.Weld.C1 = Lerp(larm.Weld.C1, CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.5)
3004 hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(10),math.rad(0),0), 0.2)
3005 torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-30), math.rad(0), 0), 0.2)
3006 torso.Weld.C1 = Lerp(torso.Weld.C1, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.4)
3007 lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.5, 0.2) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)), 0.2)
3008 lleg.Weld.C1 = Lerp(lleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
3009 rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.5, -0.6) * CFrame.Angles(math.rad(40), math.rad(0), math.rad(0)), 0.2)
3010 rleg.Weld.C1 = Lerp(rleg.Weld.C1, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
3011 end
3012 end
3013end)
3014hum.MaxHealth = math.huge
3015wait(3)
3016hum.Health = math.huge