Ban43_GodOfEdits

testing flashj

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