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