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