Advertisement
ghostteen14

Untitled

Jun 10th, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.83 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,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152. local p = game.Players.LocalPlayer
  153. local char = p.Character
  154. local mouse = p:GetMouse()
  155. local larm = char["Left Arm"]
  156. local rarm = char["Right Arm"]
  157. local lleg = char["Left Leg"]
  158. local rleg = char["Right Leg"]
  159. local hed = char.Head
  160. local torso = char.Torso
  161. local hum = char.Humanoid
  162. local cam = game.Workspace.CurrentCamera
  163. local root = char.HumanoidRootPart
  164. local deb = false
  165. local shot = 0
  166. local stanceToggle = "Normal"
  167. local l = game:GetService("Lighting")
  168. local rs = game:GetService("RunService").RenderStepped
  169. math.randomseed(os.time())
  170. hum.MaxHealth = 9001
  171. wait(1)
  172. hum.Health = 9001
  173. for i,v in pairs(char:children()) do
  174. if v:IsA("Hat") then
  175. v:Destroy()
  176. end
  177. end
  178. for i,v in pairs (hed:GetChildren()) do
  179. if v:IsA("Sound") then
  180. v:Destroy()
  181. end
  182. end
  183. ----------------------------------------------------
  184. Debounces = {
  185. CanAttack = true;
  186. CanJoke = true;
  187. NoIdl = false;
  188. Slashing = false;
  189. Slashed = false;
  190. Slapping = false;
  191. Slapped = false;
  192. ks = false;
  193. }
  194. ----------------------------------------------------
  195. function weld5(part0, part1, c0, c1)
  196. weeld=Instance.new("Weld", part0)
  197. weeld.Part0=part0
  198. weeld.Part1=part1
  199. weeld.C0=c0
  200. weeld.C1=c1
  201. return weeld
  202. end
  203. ----------------------------------------------------
  204. mod=Instance.new('Model',char)
  205.  
  206. function Burst()
  207. part=Instance.new('Part',mod)
  208. part.Anchored=true
  209. part.CanCollide=false
  210. part.FormFactor='Custom'
  211. part.Size=Vector3.new(.2,.2,.2)
  212. part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0)
  213. part.Transparency=.7
  214. part.BrickColor=BrickColor.new('Really black')
  215. mesh=Instance.new('SpecialMesh',part)
  216. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  217. mesh.Scale=Vector3.new(10,5,10)
  218. part2=part:clone()
  219. part2.Parent=mod
  220. part2.BrickColor=BrickColor.new("Royal purple")
  221. mesh2=mesh:clone()
  222. mesh2.Parent=part2
  223. mesh2.Scale=Vector3.new(5,2.5,5)
  224. coroutine.resume(coroutine.create(function()
  225. for i=0,1,0.1 do
  226. wait()
  227. part.CFrame=part.CFrame
  228. part.Transparency=i
  229. mesh.Scale=mesh.Scale+Vector3.new(1,1,1)
  230. part2.CFrame=part2.CFrame
  231. part2.Transparency=i
  232. mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
  233. end
  234. part.Parent=nil
  235. part2.Parent=nil
  236. end))
  237. end
  238. ----------------------------------------------------
  239. mod4 = Instance.new("Model",char)
  240.  
  241. ptez = {0.7, 0.8, 0.9, 1}
  242.  
  243. function FindNearestTorso(Position,Distance,SinglePlayer)
  244. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  245. local List = {}
  246. for i,v in pairs(workspace:GetChildren())do
  247. if v:IsA("Model")then
  248. if v:findFirstChild("Torso")then
  249. if v ~= char then
  250. if(v.Torso.Position -Position).magnitude <= Distance then
  251. table.insert(List,v)
  252. end
  253. end
  254. end
  255. end
  256. end
  257. return List
  258. end
  259.  
  260. function Slam()
  261. part=Instance.new('Part',mod4)
  262. part.Anchored=true
  263. part.CanCollide=false
  264. part.FormFactor='Custom'
  265. part.Size=Vector3.new(.2,.2,.2)
  266. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  267. part.Transparency=.7
  268. part.Material = "Neon"
  269. part.BrickColor=BrickColor.new('Really black')
  270. mesh=Instance.new('SpecialMesh',part)
  271. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  272. mesh.Scale=Vector3.new(3,3,3)
  273. part2=Instance.new('Part',mod4)
  274. part2.Anchored=true
  275. part2.CanCollide=false
  276. part2.FormFactor='Custom'
  277. part2.Size=Vector3.new(.2,.2,.2)
  278. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  279. part2.Transparency=.7
  280. part2.Material = "Neon"
  281. part2.BrickColor=BrickColor.new('Royal purple')
  282. mesh2=Instance.new('SpecialMesh',part2)
  283. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  284. mesh2.Scale=Vector3.new(3,1.5,3)
  285. x = Instance.new("Sound",char)
  286. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  287. x.Pitch = ptez[math.random(1,#ptez)]
  288. x.Volume = 1
  289. wait(.1)
  290. x1 = Instance.new("Sound",char)
  291. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  292. x1.Pitch = ptez[math.random(1,#ptez)]
  293. x1.Volume = 1
  294. wait(.1)
  295. x:Play()
  296. x1:Play()
  297. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  298. if v:FindFirstChild('Humanoid') then
  299. v.Humanoid:TakeDamage(math.random(30,45))
  300. end
  301. end
  302. coroutine.resume(coroutine.create(function()
  303. for i=0,0.62,0.13 do
  304. wait()
  305. part.CFrame=part.CFrame
  306. part.Transparency=i
  307. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  308. part2.CFrame=part2.CFrame
  309. part2.Transparency=i
  310. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  311. end
  312. part.Parent=nil
  313. part2.Parent=nil
  314. x:Destroy()
  315. end))
  316. end
  317. ----------------------------------------------------
  318. GroundWave = function()
  319. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  320. local Colors = {"Royal purple", "Really black"}
  321. local wave = Instance.new("Part", torso)
  322. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  323. wave.Anchored = true
  324. wave.CanCollide = false
  325. wave.Locked = true
  326. wave.Size = Vector3.new(1, 1, 1)
  327. wave.TopSurface = "Smooth"
  328. wave.BottomSurface = "Smooth"
  329. wave.Transparency = 0.35
  330. wave.CFrame = HandCF
  331. wm = Instance.new("SpecialMesh", wave)
  332. wm.MeshId = "rbxassetid://3270017"
  333. coroutine.wrap(function()
  334. for i = 1, 14, 1 do
  335. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  336. wave.Size = wm.Scale
  337. wave.CFrame = HandCF
  338. wave.Transparency = i/14
  339. wait()
  340. end
  341. wait()
  342. wave:Destroy()
  343. end)()
  344. end
  345. ----------------------------------------------------
  346. Magik = function()
  347. Spawn(function()
  348. local function lerp(a,b,c)
  349. return a+(b-a)*c
  350. end
  351. local function rndRange(rng)
  352. return math.random(-rng*1000,rng*1000)/1000
  353. end
  354. local magik = Instance.new("Part", larm)
  355. local Colors = {"Royal purple", "Really black"}
  356. magik.Anchored = true
  357. magik.Locked = true
  358. magik.FormFactor = "Custom"
  359. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  360. magik.TopSurface = "Smooth"
  361. magik.BottomSurface = "Smooth"
  362. magik.Transparency = 0
  363. magik.CanCollide = false
  364. magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  365. local mr = math.rad
  366. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  367. local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  368. magik.CFrame = cf
  369. for i = 0, 1, .05 do
  370. local newTrans = lerp(0.5, 1, i)
  371. local ns = lerp(1,1.2,i)
  372. magik.Transparency = newTrans
  373. magik.Size = Vector3.new(ns,ns,ns)
  374. magik.CFrame = cf
  375. rs:wait()
  376. end
  377. magik:Destroy()
  378. wait()
  379. end)
  380. end
  381. ----------------------------------------------------
  382. Magik2 = function()
  383. Spawn(function()
  384. if stanceToggle == "Melee" then
  385. local function lerp(a,b,c)
  386. return a+(b-a)*c
  387. end
  388. local function rndRange(rng)
  389. return math.random(-rng*1000,rng*1000)/1000
  390. end
  391. local magik2 = Instance.new("Part", rarm)
  392. local Colors = {"Royal purple", "Really black"}
  393. magik2.Anchored = true
  394. magik2.Locked = true
  395. magik2.FormFactor = "Custom"
  396. magik2.Size = Vector3.new(1.2, 1.2, 1.2)
  397. magik2.TopSurface = "Smooth"
  398. magik2.BottomSurface = "Smooth"
  399. magik2.Transparency = 0
  400. magik2.CanCollide = false
  401. magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  402. local mr = math.rad
  403. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  404. local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  405. magik2.CFrame = cf
  406. for i = 0, 1, .05 do
  407. local newTrans = lerp(0.5, 1, i)
  408. local ns = lerp(1,1.2,i)
  409. magik2.Transparency = newTrans
  410. magik2.Size = Vector3.new(ns,ns,ns)
  411. magik2.CFrame = cf
  412. rs:wait()
  413. end
  414. magik2:Destroy()
  415. elseif stanceToggle ~= "Melee" then
  416. wait()
  417. end
  418. end)
  419. end
  420. ----------------------------------------------------
  421. function lerp(a, b, t) -- Linear interpolation
  422. return a + (b - a)*t
  423. end
  424.  
  425. function slerp(a, b, t) --Spherical interpolation
  426. dot = a:Dot(b)
  427. if dot > 0.99999 or dot < -0.99999 then
  428. return t <= 0.5 and a or b
  429. else
  430. r = math.acos(dot)
  431. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  432. end
  433. end
  434.  
  435. function matrixInterpolate(a, b, t)
  436. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  437. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  438. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  439. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  440. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  441. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  442. local t = v1:Dot(v2)
  443. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  444. return CFrame.new()
  445. end
  446. return CFrame.new(
  447. v0.x, v0.y, v0.z,
  448. v1.x, v1.y, v1.z,
  449. v2.x, v2.y, v2.z,
  450. v3.x, v3.y, v3.z)
  451. end
  452. ----------------------------------------------------
  453. function genWeld(a,b)
  454. local w = Instance.new("Weld",a)
  455. w.Part0 = a
  456. w.Part1 = b
  457. return w
  458. end
  459. function weld(a, b)
  460. local weld = Instance.new("Weld")
  461. weld.Name = "W"
  462. weld.Part0 = a
  463. weld.Part1 = b
  464. weld.C0 = a.CFrame:inverse() * b.CFrame
  465. weld.Parent = a
  466. return weld;
  467. end
  468. ----------------------------------------------------
  469. function Lerp(c1,c2,al)
  470. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  471. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  472. for i,v in pairs(com1) do
  473. com1[i] = v+(com2[i]-v)*al
  474. end
  475. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  476. end
  477. ----------------------------------------------------
  478. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  479. local wld = Instance.new("Weld", wp1)
  480. wld.Part0 = wp0
  481. wld.Part1 = wp1
  482. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  483. end
  484. ----------------------------------------------------
  485. newWeld(torso, larm, -1.5, 0.5, 0)
  486. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  487. newWeld(torso, rarm, 1.5, 0.5, 0)
  488. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  489. newWeld(torso, hed, 0, 1.5, 0)
  490. newWeld(torso, lleg, -0.5, -1, 0)
  491. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  492. newWeld(torso, rleg, 0.5, -1, 0)
  493. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  494. newWeld(root, torso, 0, -1, 0)
  495. torso.Weld.C1 = CFrame.new(0, -1, 0)
  496. ----------------------------------------------------
  497. --local SIDz = {"167985102"}, 167161785, 148274436
  498. z = Instance.new("Sound",char)
  499. z.SoundId = "rbxassetid://148274436"--..SIDz[math.random(1,#SIDz)]
  500. z.Looped = true
  501. z.Volume = 1
  502. z.Pitch = .72
  503. wait(1)
  504. z:Play()
  505. hum.WalkSpeed = 16
  506. ----------------------------------------------------
  507. local m = Instance.new("Model")
  508. m.Name = "Genkadda"
  509. p1 = Instance.new("Part", m)
  510. p1.Material = "Metal"
  511. p1.BrickColor = BrickColor.new("Really black")
  512. p1.Name = "BladePart"
  513. p1.FormFactor = Enum.FormFactor.Symmetric
  514. p1.Size = Vector3.new(1, 1, 1)
  515. p1.CFrame = CFrame.new(103.003883, 10.755723, -7.61905956, 5.61699271e-005, -7.1823597e-006, 0.999998987, -0.984785616, -0.173714966, 3.55839729e-005, 0.173720747, -0.984761655, 5.9530139e-006)
  516. p1.CanCollide = false
  517. p1.Locked = true
  518. p1.Elasticity = 0
  519. p1.BottomSurface = Enum.SurfaceType.Smooth
  520. p1.TopSurface = Enum.SurfaceType.Smooth
  521. b1 = Instance.new("BlockMesh", p1)
  522. b1.Name = "Mesh"
  523. b1.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  524. p2 = Instance.new("Part", m)
  525. p2.Material = "Metal"
  526. p2.BrickColor = BrickColor.new("Really black")
  527. p2.FormFactor = Enum.FormFactor.Symmetric
  528. p2.Size = Vector3.new(1, 1, 1)
  529. p2.CFrame = CFrame.new(103.00399, 10.7255898, -6.52608919, 0.00135809346, 0.00169118668, -0.999996662, 0.965820193, 0.259168088, 0.0017684648, 0.259154975, -0.965800881, -0.00130418094)
  530. p2.CanCollide = false
  531. p2.Locked = true
  532. p2.Elasticity = 0
  533. p2.BottomSurface = Enum.SurfaceType.Smooth
  534. p2.TopSurface = Enum.SurfaceType.Smooth
  535. b2 = Instance.new("BlockMesh", p2)
  536. b2.Name = "Mesh"
  537. b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
  538. p3 = Instance.new("Part", m)
  539. p3.Material = "Metal"
  540. p3.BrickColor = BrickColor.new("Really black")
  541. p3.FormFactor = Enum.FormFactor.Symmetric
  542. p3.Size = Vector3.new(1, 2, 1)
  543. p3.CFrame = CFrame.new(103.004028, 11.1456547, -6.819067, 1.43263023e-005, -2.88564479e-006, 0.999998987, -0.882936299, -0.469471544, -7.18829688e-006, 0.469469696, -0.882911503, 1.35099981e-005)
  544. p3.CanCollide = false
  545. p3.Locked = true
  546. p3.Elasticity = 0
  547. p3.BottomSurface = Enum.SurfaceType.Smooth
  548. p3.TopSurface = Enum.SurfaceType.Smooth
  549. b3 = Instance.new("BlockMesh", p3)
  550. b3.Name = "Mesh"
  551. b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
  552. p4 = Instance.new("Part", m)
  553. p4.Material = "Metal"
  554. p4.BrickColor = BrickColor.new("Really black")
  555. p4.Name = "BladePart"
  556. p4.FormFactor = Enum.FormFactor.Symmetric
  557. p4.Size = Vector3.new(1, 1, 1)
  558. p4.CFrame = CFrame.new(103.003372, 10.965373, -6.66876507, 1.57370523e-005, -6.04354591e-006, 0.999996603, -0.965898931, -0.25886938, -7.14969246e-006, 0.258875549, -0.965874314, 1.58735529e-005)
  559. p4.CanCollide = false
  560. p4.Locked = true
  561. p4.Elasticity = 0
  562. p4.BottomSurface = Enum.SurfaceType.Smooth
  563. p4.TopSurface = Enum.SurfaceType.Smooth
  564. b4 = Instance.new("BlockMesh", p4)
  565. b4.Name = "Mesh"
  566. b4.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  567. p5 = Instance.new("Part", m)
  568. p5.Material = "Metal"
  569. p5.BrickColor = BrickColor.new("Really black")
  570. p5.Name = "Hilt"
  571. p5.FormFactor = Enum.FormFactor.Custom
  572. p5.Size = Vector3.new(1, 0.400000006, 1.60000014)
  573. p5.CFrame = CFrame.new(103.003395, 11.0653381, -6.1687479, -0.99999404, 5.54991711e-005, -0.000617815298, -0.000594727404, -0.000124425016, 0.999983907, 2.66434654e-005, 0.999962509, 0.000109782166)
  574. p5.CanCollide = false
  575. p5.Locked = true
  576. p5.BottomSurface = Enum.SurfaceType.Smooth
  577. p5.TopSurface = Enum.SurfaceType.Smooth
  578. b5 = Instance.new("BlockMesh", p5)
  579. b5.Name = "Mesh"
  580. b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952)
  581. p6 = Instance.new("Part", m)
  582. p6.Material = "Metal"
  583. p6.BrickColor = BrickColor.new("Really black")
  584. p6.Name = "Handle"
  585. p6.FormFactor = Enum.FormFactor.Custom
  586. p6.Size = Vector3.new(1.29999995, 1, 1)
  587. p6.CFrame = CFrame.new(103.000061, 11.0688219, -5.5480547, -1.23393656e-005, -1.36360759e-005, 0.999994218, 5.37017331e-006, 0.999984086, -9.45257489e-006, -0.999962509, -9.28580994e-006, 1.64470257e-005)
  588. p6.CanCollide = false
  589. p6.Locked = true
  590. p6.BottomSurface = Enum.SurfaceType.Smooth
  591. p6.TopSurface = Enum.SurfaceType.Smooth
  592. b6 = Instance.new("SpecialMesh", p6)
  593. b6.MeshType = Enum.MeshType.Cylinder
  594. b6.Name = "Mesh"
  595. b6.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  596. p7 = Instance.new("Part", m)
  597. p7.Material = "Metal"
  598. p7.BrickColor = BrickColor.new("Really black")
  599. p7.FormFactor = Enum.FormFactor.Symmetric
  600. p7.Size = Vector3.new(1, 1, 1)
  601. p7.CFrame = CFrame.new(103.000099, 11.0688391, -4.79808855, -0.000332629686, 0.00429873355, -0.99998492, -4.5920292e-006, 0.999974728, 0.00432178052, 0.999962449, -8.49941443e-006, -0.000361445156)
  602. p7.CanCollide = false
  603. p7.Locked = true
  604. b7 = Instance.new("SpecialMesh", p7)
  605. b7.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  606. b7.TextureId = ""
  607. b7.MeshType = Enum.MeshType.FileMesh
  608. b7.Name = "Mesh"
  609. b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  610. p8 = Instance.new("Part", m)
  611. p8.Material = "Metal"
  612. p8.BrickColor = BrickColor.new("Really black")
  613. p8.Name = "BladePart"
  614. p8.FormFactor = Enum.FormFactor.Symmetric
  615. p8.Size = Vector3.new(1, 1, 1)
  616. p8.CFrame = CFrame.new(103.003326, 10.6254845, -8.59870911, -2.92104669e-005, -1.10579058e-005, 0.999994218, -0.996175766, -0.0871899351, -5.3152442e-005, 0.0872026458, -0.996152997, 2.03179661e-005)
  617. p8.CanCollide = false
  618. p8.Locked = true
  619. p8.Elasticity = 0
  620. p8.BottomSurface = Enum.SurfaceType.Smooth
  621. p8.TopSurface = Enum.SurfaceType.Smooth
  622. b8 = Instance.new("BlockMesh", p8)
  623. b8.Name = "Mesh"
  624. b8.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  625. p9 = Instance.new("Part", m)
  626. p9.Material = "Metal"
  627. p9.BrickColor = BrickColor.new("Really black")
  628. p9.Name = "BladePart"
  629. p9.FormFactor = Enum.FormFactor.Symmetric
  630. p9.Size = Vector3.new(1, 1, 1)
  631. p9.CFrame = CFrame.new(103.003311, 10.625597, -9.51878738, -2.59891603e-005, -1.34348729e-005, 0.999994218, -0.996185422, 0.087079078, -4.78096408e-005, -0.0870626047, -0.996165276, 1.31400229e-005)
  632. p9.CanCollide = false
  633. p9.Locked = true
  634. p9.Elasticity = 0
  635. p9.BottomSurface = Enum.SurfaceType.Smooth
  636. p9.TopSurface = Enum.SurfaceType.Smooth
  637. b9 = Instance.new("BlockMesh", p9)
  638. b9.Name = "Mesh"
  639. b9.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  640. p10 = Instance.new("Part", m)
  641. p10.Material = "Metal"
  642. p10.BrickColor = BrickColor.new("Really black")
  643. p10.Name = "BladeTip"
  644. p10.FormFactor = Enum.FormFactor.Symmetric
  645. p10.Size = Vector3.new(1, 1, 2)
  646. p10.CFrame = CFrame.new(103.00309, 11.1081867, -11.6109829, -0.999994099, -0.000455793255, 4.643387e-005, 0.00045133481, -0.965918779, -0.25878337, 0.000134008093, -0.258763671, 0.965901971)
  647. p10.CanCollide = false
  648. p10.Locked = true
  649. p10.Elasticity = 0
  650. p10.BottomSurface = Enum.SurfaceType.Smooth
  651. p10.TopSurface = Enum.SurfaceType.Smooth
  652. b10 = Instance.new("SpecialMesh", p10)
  653. b10.MeshType = Enum.MeshType.Wedge
  654. b10.Name = "Mesh"
  655. b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928)
  656. p11 = Instance.new("Part", m)
  657. p11.Material = "Metal"
  658. p11.BrickColor = BrickColor.new("Really black")
  659. p11.Name = "BladePart"
  660. p11.FormFactor = Enum.FormFactor.Symmetric
  661. p11.Size = Vector3.new(1, 1, 1)
  662. p11.CFrame = CFrame.new(103.003296, 10.7956495, -10.4587727, 2.83485351e-005, -1.54050977e-005, 0.999994218, -0.96592474, 0.258761972, 8.27970416e-006, -0.258742362, -0.965907693, 2.1241216e-005)
  663. p11.CanCollide = false
  664. p11.Locked = true
  665. p11.Elasticity = 0
  666. p11.BottomSurface = Enum.SurfaceType.Smooth
  667. p11.TopSurface = Enum.SurfaceType.Smooth
  668. b11 = Instance.new("BlockMesh", p11)
  669. b11.Name = "Mesh"
  670. b11.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  671. p12 = Instance.new("Part", m)
  672. p12.Material = "Metal"
  673. p12.BrickColor = BrickColor.new("Really black")
  674. p12.Name = "BladeTip2"
  675. p12.FormFactor = Enum.FormFactor.Custom
  676. p12.Size = Vector3.new(1, 1, 2.4000001)
  677. p12.CFrame = CFrame.new(102.999977, 10.6319504, -10.4398403, -0.999994218, -5.5769262e-005, 6.55075928e-005, 4.61044419e-006, 0.882887006, 0.469551951, -0.000112806956, 0.469529003, -0.882874727)
  678. p12.CanCollide = false
  679. p12.Locked = true
  680. p12.Elasticity = 0
  681. p12.BottomSurface = Enum.SurfaceType.Smooth
  682. p12.TopSurface = Enum.SurfaceType.Smooth
  683. b12 = Instance.new("SpecialMesh", p12)
  684. b12.MeshType = Enum.MeshType.Wedge
  685. b12.Name = "Mesh"
  686. b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928)
  687. p13 = Instance.new("Part", m)
  688. p13.Material = "Metal"
  689. p13.BrickColor = BrickColor.new("Medium stone grey")
  690. p13.Transparency = 1
  691. p13.Name = "HitBox"
  692. p13.FormFactor = Enum.FormFactor.Custom
  693. p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999)
  694. p13.CFrame = CFrame.new(103.009995, 10.9988394, -9.2679081, 1.22519814e-005, -0.999994218, 1.36361559e-005, -5.27501106e-006, 9.45320426e-006, -0.999984264, 0.999962687, -1.65344682e-005, 9.20891762e-006)
  695. p13.CanCollide = false
  696. p13.Locked = true
  697. p13.BottomSurface = Enum.SurfaceType.Smooth
  698. p13.TopSurface = Enum.SurfaceType.Smooth
  699. w1 = Instance.new("Weld", p1)
  700. w1.Name = "Part_Weld"
  701. w1.Part0 = p1
  702. w1.C0 = CFrame.new(11.9124546, -5.63626003, -103.00383, 4.33940659e-005, -0.984795153, 0.173719674, 1.85460614e-009, -0.173719659, -0.984795094, 1, 4.27345876e-005, -7.53657105e-006)
  703. w1.Part1 = p2
  704. w1.C1 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159)
  705. w2 = Instance.new("Weld", p2)
  706. w2.Name = "Part_Weld"
  707. w2.Part0 = p2
  708. w2.C0 = CFrame.new(-8.80891991, -9.26009178, 102.975845, 0.00136663229, 0.965830803, 0.259170175, 0.00170310249, 0.25916782, -0.965830863, -0.999997616, 0.00176132878, -0.00129072159)
  709. w2.Part1 = p3
  710. w2.C1 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008)
  711. w3 = Instance.new("Weld", p3)
  712. w3.Name = "BladePart_Weld"
  713. w3.Part0 = p3
  714. w3.C0 = CFrame.new(13.0439634, -0.78926897, -103.003448, -4.37113883e-008, -0.88294369, 0.469478935, 0, -0.469478935, -0.88294369, 1, -3.85946954e-008, 2.05215755e-008)
  715. w3.Part1 = p4
  716. w3.C1 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006)
  717. w4 = Instance.new("Weld", p4)
  718. w4.Name = "Hilt_Weld"
  719. w4.Part0 = p4
  720. w4.C0 = CFrame.new(12.3193283, -3.60437131, -103.003067, 2.38418579e-006, -0.965907753, 0.258877277, 0, -0.258874893, -0.965907753, 0.999997616, 0, 2.38418579e-006)
  721. w4.Part1 = p5
  722. w4.C1 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243)
  723. w5 = Instance.new("Weld", p5)
  724. w5.Name = "Handle_Weld"
  725. w5.Part0 = p5
  726. w5.C0 = CFrame.new(103.010277, 6.16758585, -11.003541, -0.999999821, -0.00060418935, 4.31301851e-005, 4.32021443e-005, -0.000119086159, 1, -0.000604184228, 0.999999821, 0.000119112243)
  727. w5.Part1 = p6
  728. w5.C1 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008)
  729. w6 = Instance.new("Weld", p6)
  730. w6.Name = "Part_Weld"
  731. w6.Part0 = p6
  732. w6.C0 = CFrame.new(-5.54999733, -11.0699978, -103, -4.37113883e-008, 2.98366913e-008, -1, 0, 1, 2.98366913e-008, 1, 1.3042032e-015, -4.37113883e-008)
  733. w6.Part1 = p7
  734. w6.C1 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335)
  735. w7 = Instance.new("Weld", p7)
  736. w7.Name = "BladePart_Weld"
  737. w7.Part0 = p7
  738. w7.C0 = CFrame.new(4.83552647, -11.5140886, 102.949669, -0.000344927335, 7.4505806e-007, 0.99999994, 0.00431239465, 0.999990702, 7.4505806e-007, -0.999990642, 0.00431239465, -0.000344927335)
  739. w7.Part1 = p8
  740. w7.C1 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006)
  741. w8 = Instance.new("Weld", p8)
  742. w8.Name = "BladePart_Weld"
  743. w8.Part0 = p8
  744. w8.C0 = CFrame.new(11.3406382, -7.6414094, -103.0028, -4.38670977e-005, -0.996191144, 0.0871966407, 1.91451011e-009, -0.0871966407, -0.996191144, 1, -4.36998489e-005, 3.82696771e-006)
  745. w8.Part1 = p9
  746. w8.C1 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006)
  747. w9 = Instance.new("Weld", p9)
  748. w9.Name = "BladeTip_Weld"
  749. w9.Part0 = p9
  750. w9.C0 = CFrame.new(9.76131344, -10.4100504, -103.002922, -3.85031162e-005, -0.996201694, -0.0870751292, 1.47589729e-009, 0.0870751366, -0.996201754, 1, -3.83570004e-005, -3.35119148e-006)
  751. w9.Part1 = p10
  752. w9.C1 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647)
  753. w10 = Instance.new("Weld", p10)
  754. w10.Name = "BladePart_Weld"
  755. w10.Part0 = p10
  756. w10.C0 = CFrame.new(102.999939, 7.7735939, 14.0892649, -0.999999881, 0.000441889424, 0.000150508567, -0.000465785735, -0.965935588, -0.258782327, 3.10284122e-005, -0.258782327, 0.965935647)
  757. w10.Part1 = p11
  758. w10.C1 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006)
  759. w11 = Instance.new("Weld", p11)
  760. w11.Name = "BladeTip2_Weld"
  761. w11.Part0 = p11
  762. w11.C0 = CFrame.new(7.72030354, -12.8984127, -103.003448, 1.83585671e-005, -0.965941429, -0.258760989, 3.25545535e-010, 0.258760959, -0.96594137, 1, 1.77332167e-005, 4.7507956e-006)
  763. w11.Part1 = p12
  764. w11.C1 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397)
  765. w12 = Instance.new("Weld", p12)
  766. w12.Name = "HitBox_Weld"
  767. w12.Part0 = p12
  768. w12.C0 = CFrame.new(102.999031, -4.47981405, -14.2206001, -1, -4.84334305e-006, -9.63198472e-005, -4.95036402e-005, 0.882903397, 0.469554722, 8.27668991e-005, 0.469554722, -0.882903397)
  769. w12.Part1 = p13
  770. w12.C1 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008)
  771. w13 = Instance.new("Weld", p13)
  772. w13.Name = "Weld"
  773. w13.Part0 = p13
  774. w13.C0 = CFrame.new(9.27000427, 103.009995, 10.9999933, -4.37113883e-008, -4.37113883e-008, 1, -1, 1.91068547e-015, -4.37113883e-008, 0, -1, -4.37113883e-008)
  775. m.Parent = char
  776. m:MakeJoints()
  777. ----------------------------------------------------
  778. local cor = Instance.new("Part", char.Genkadda)
  779. cor.Name = "Thingy"
  780. cor.Locked = true
  781. cor.BottomSurface = 0
  782. cor.CanCollide = false
  783. cor.Size = Vector3.new(1, 9, 1)
  784. cor.Transparency = 1
  785. cor.TopSurface = 0
  786. corw = Instance.new("Weld", cor)
  787. corw.Part0 = rarm
  788. corw.Part1 = cor
  789. corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90))
  790. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  791. weld1 = Instance.new("Weld", char.Genkadda)
  792. weld1.Part0 = cor
  793. weld1.Part1 = p6
  794. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  795. ----------------------------------------------------
  796. function Vanish()
  797. for i = 1, 10 do wait()
  798. for i,v in pairs(char.Genkadda:GetChildren()) do
  799. if v:IsA("Part") or v:IsA("WedgePart") then
  800. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  801. v.Transparency = v.Transparency + 0.1
  802. end
  803. end
  804. end
  805. end
  806. end
  807. ----------------------------------------------------
  808. function Appear()
  809. for i = 1, 10 do wait()
  810. for i,v in pairs(char.Genkadda:GetChildren()) do
  811. if v:IsA("Part") or v:IsA("WedgePart") then
  812. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  813. v.Transparency = v.Transparency - 0.1
  814. end
  815. end
  816. end
  817. end
  818. end
  819. ----------------------------------------------------
  820. local player = game.Players.LocalPlayer
  821. local pchar = player.Character
  822. local mouse = player:GetMouse()
  823. local cam = workspace.CurrentCamera
  824.  
  825. local rad = math.rad
  826.  
  827. local keysDown = {}
  828. local flySpeed = 0
  829. local MAX_FLY_SPEED = 50
  830.  
  831. local canFly = false
  832. local flyToggled = false
  833.  
  834. local forward, side = 0, 0
  835. local lastForward, lastSide = 0, 0
  836.  
  837. local floatBP = Instance.new("BodyPosition")
  838. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  839. local flyBV = Instance.new("BodyVelocity")
  840. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  841. local turnBG = Instance.new("BodyGyro")
  842. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  843.  
  844. mouse.KeyDown:connect(function(key)
  845. keysDown[key] = true
  846.  
  847. if key == "f" then
  848. flyToggled = not flyToggled
  849.  
  850. if not flyToggled then
  851. stanceToggle = "Normal"
  852. floatBP.Parent = nil
  853. flyBV.Parent = nil
  854. turnBG.Parent = nil
  855. root.Velocity = Vector3.new()
  856. pchar.Humanoid.PlatformStand = false
  857. end
  858. end
  859.  
  860. end)
  861. mouse.KeyUp:connect(function(key)
  862. keysDown[key] = nil
  863. end)
  864.  
  865. local function updateFly()
  866.  
  867. if not flyToggled then return end
  868.  
  869. lastForward = forward
  870. lastSide = side
  871.  
  872. forward = 0
  873. side = 0
  874.  
  875. if keysDown.w then
  876. forward = forward + 1
  877. end
  878. if keysDown.s then
  879. forward = forward - 1
  880. end
  881. if keysDown.a then
  882. side = side - 1
  883. end
  884. if keysDown.d then
  885. side = side + 1
  886. end
  887.  
  888. canFly = (forward ~= 0 or side ~= 0)
  889.  
  890. if canFly then
  891. stanceToggle = "Floating"
  892. turnBG.Parent = root
  893. floatBP.Parent = nil
  894. flyBV.Parent = root
  895.  
  896. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  897. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  898. else
  899. floatBP.position = root.Position
  900. floatBP.Parent = root
  901.  
  902. flySpeed = flySpeed - 1
  903. if flySpeed < 0 then flySpeed = 0 end
  904. end
  905.  
  906. local camCF = cam.CoordinateFrame
  907. local in_forward = canFly and forward or lastForward
  908. local in_side = canFly and side or lastSide
  909.  
  910. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  911. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  912.  
  913. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  914. 0)
  915. end
  916.  
  917. game:service'RunService'.RenderStepped:connect(function()
  918. if flyToggled then
  919. pchar.Humanoid.PlatformStand = true
  920. end
  921. updateFly()
  922. end)
  923. ----------------------------------------------------
  924. p13.Touched:connect(function(ht)
  925. hit = ht.Parent
  926. if ht and hit:IsA("Model") then
  927. if hit:FindFirstChild("Humanoid") then
  928. if hit.Name ~= p.Name then
  929. if Debounces.Slashing == true and Debounces.Slashed == false then
  930. Debounces.Slashed = true
  931. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
  932. wait(.3)
  933. Debounces.Slashed = false
  934. end
  935. end
  936. end
  937. elseif ht and hit:IsA("Hat") then
  938. if hit.Parent.Name ~= p.Name then
  939. if hit.Parent:FindFirstChild("Humanoid") then
  940. if Debounces.Slashing == true and Debounces.Slashed == false then
  941. Debounces.Slashed = true
  942. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
  943. wait(.3)
  944. Debounces.Slashed = false
  945. end
  946. end
  947. end
  948. end
  949. end)
  950. ----------------------------------------------------
  951. ptz = {0.7, 0.8, 0.9, 1}
  952. idz = {"161006212", "161006195"}
  953. mouse.KeyDown:connect(function(key)
  954. if key == "q" then
  955. if Debounces.CanAttack == true then
  956. Debounces.CanAttack = false
  957. Debounces.NoIdl = true
  958. Debounces.on = true
  959. for i = 1, 20 do
  960. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (60),math.rad(70),math.rad(70)), 0.2)
  961. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2)
  962. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2)
  963. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2)
  964. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2)
  965. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2)
  966. if Debounces.on == false then break end
  967. rs:wait(2)
  968. end
  969. z = Instance.new("Sound", hed)
  970. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  971. z.Pitch = ptz[math.random(1,#ptz)]
  972. z.Volume = 1
  973. wait(.01)
  974. z:Play()
  975. Debounces.Slashing = true
  976. for i = 1, 20 do
  977. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3)
  978. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3)
  979. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3)
  980. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3)
  981. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3)
  982. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3)
  983. if Debounces.on == false then break end
  984. rs:wait(2)
  985. end
  986. z1 = Instance.new("Sound", hed)
  987. z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  988. z1.Pitch = ptz[math.random(1,#ptz)]
  989. z1.Volume = 1
  990. wait(.01)
  991. z1:Play()
  992. Debounces.Slashing = true
  993. for i = 1, 26 do
  994. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad (90),math.rad(-40),math.rad(80)), 0.35)
  995. 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.35)
  996. 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.35)
  997. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -1) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.35)
  998. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35)
  999. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35)
  1000. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles (math.rad(0), math.rad(-30), math.rad(0)), 0.35)
  1001. if Debounces.on == false then break end
  1002. rs:wait(2)
  1003. end
  1004. Debounces.Slashing = false
  1005. z:Destroy()
  1006. z1:Destroy()
  1007. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1008. if Debounces.CanAttack == false then
  1009. Debounces.CanAttack = true
  1010. Debounces.NoIdl = false
  1011. Debounces.on = false
  1012. end
  1013. end
  1014. end
  1015. end)
  1016. -------------------------------
  1017. pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4}
  1018. mouse.KeyDown:connect(function(key)
  1019. if key == "e" then
  1020. if Debounces.CanAttack == true then
  1021. Debounces.CanAttack = false
  1022. Debounces.NoIdl = true
  1023. Debounces.on = true
  1024. Debounces.ks = true
  1025. larm.Touched:connect(function(ht)
  1026. hit = ht.Parent
  1027. if ht and hit:IsA("Model") then
  1028. if hit:FindFirstChild("Humanoid") then
  1029. if hit.Name ~= p.Name then
  1030. if Debounces.Slapping == true and Debounces.Slapped == false then
  1031. Debounces.Slapped = true
  1032. if Debounces.ks==true then
  1033. z = Instance.new("Sound",hed)
  1034. z.SoundId = "rbxassetid://169380525"
  1035. z.Volume = 1
  1036. z:Play()
  1037. z1 = Instance.new("Sound",char)
  1038. z1.SoundId = "rbxassetid://261010715"
  1039. z1.Pitch = pts[math.random(1,#pts)]
  1040. z1.Volume = 1
  1041. z2 = Instance.new("Sound",char)
  1042. z2.SoundId = "rbxassetid://261010715"
  1043. z2.Pitch = z1.Pitch
  1044. z2.Volume = 1
  1045. z3 = Instance.new("Sound",char)
  1046. z3.SoundId = "rbxassetid://261010715"
  1047. z3.Pitch = z1.Pitch
  1048. z3.Volume = 1
  1049. z1:Play()
  1050. z2:Play()
  1051. z3:Play()
  1052. Debounces.ks=false
  1053. end
  1054. hit:FindFirstChild("Humanoid"):TakeDamage(10)
  1055. hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90
  1056. wait(.5)
  1057. Debounces.Slapped = false
  1058. z:Destroy()
  1059. z1:Destroy()
  1060. z2:Destroy()
  1061. z3:Destroy()
  1062. end
  1063. end
  1064. end
  1065. elseif ht and hit:IsA("Hat") then
  1066. if hit.Parent.Name ~= p.Name then
  1067. if hit.Parent:FindFirstChild("Humanoid") then
  1068. if Debounces.Slapping == true and Debounces.Slapped == false then
  1069. Debounces.Slapped = true
  1070. if Debounces.ks==true then
  1071. z = Instance.new("Sound",hed)
  1072. z.SoundId = "rbxassetid://169380525"
  1073. z.Volume = 1
  1074. z:Play()
  1075. z1 = Instance.new("Sound",char)
  1076. z1.SoundId = "rbxassetid://261010715"
  1077. z1.Pitch = pts[math.random(1,#pts)]
  1078. z1.Volume = 1
  1079. z2 = Instance.new("Sound",char)
  1080. z2.SoundId = "rbxassetid://261010715"
  1081. z2.Pitch = z1.Pitch
  1082. z2.Volume = 1
  1083. z3 = Instance.new("Sound",char)
  1084. z3.SoundId = "rbxassetid://261010715"
  1085. z3.Pitch = z1.Pitch
  1086. z3.Volume = 1
  1087. z1:Play()
  1088. z2:Play()
  1089. z3:Play()
  1090. Debounces.ks=false
  1091. end
  1092. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
  1093. wait(.5)
  1094. Debounces.Slapped = false
  1095. z:Destroy()
  1096. z1:Destroy()
  1097. z2:Destroy()
  1098. z3:Destroy()
  1099. end
  1100. end
  1101. end
  1102. end
  1103. end)
  1104. for i = 1, 14 do
  1105. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.5, -.3) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.5)
  1106. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.5)
  1107. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 0.5)
  1108. 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)
  1109. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
  1110. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
  1111. if Debounces.on==false then break end
  1112. rs:wait(2)
  1113. end
  1114. Debounces.Slapping = true
  1115. for i = 1, 20 do
  1116. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.7, .3) * CFrame.Angles(math.rad(50), 0, math.rad(-110)), 0.6)
  1117. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(40)), 0.6)
  1118. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.6)
  1119. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.6)
  1120. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  1121. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  1122. if Debounces.on==false then break end
  1123. rs:wait(2)
  1124. end
  1125. Debounces.Slapping = false
  1126. if Debounces.CanAttack == false then
  1127. Debounces.CanAttack = true
  1128. Debounces.NoIdl = false
  1129. Debounces.on = false
  1130. end
  1131. end
  1132. end
  1133. end)
  1134. -------------------------------
  1135. mouse.KeyDown:connect(function(key)
  1136. if key == "r" then
  1137. if Debounces.CanAttack == true then
  1138. Debounces.CanAttack = false
  1139. Debounces.NoIdl = true
  1140. Debounces.on = true
  1141. for i = 1, 20 do
  1142. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3)
  1143. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3)
  1144. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3)
  1145. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3)
  1146. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1147. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1148. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35)
  1149. if Debounces.on==false then break end
  1150. rs:wait(2)
  1151. end
  1152. Debounces.Slashing = true
  1153. z = Instance.new("Sound",hed)
  1154. z.SoundId = "rbxassetid://206083107"
  1155. z.Pitch = .75
  1156. z.Volume = .65
  1157. wait(0.1)
  1158. z:Play()
  1159. z1 = Instance.new("Sound", hed)
  1160. z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1161. z1.Pitch = ptz[math.random(1,#ptz)]
  1162. z1.Volume = 1
  1163. wait(.01)
  1164. z1:Play()
  1165. for i = 1, 20 do
  1166. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3)
  1167. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3)
  1168. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1169. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
  1170. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
  1171. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3)
  1172. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, -.2, 0) * CFrame.Angles (math.rad(40), math.rad(-20), math.rad(20)), 0.35)
  1173. if Debounces.on==false then break end
  1174. rs:wait(2)
  1175. end
  1176. Debounces.Slashing = false
  1177. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1178. if Debounces.CanAttack == false then
  1179. Debounces.CanAttack = true
  1180. Debounces.NoIdl = false
  1181. Debounces.on = false
  1182. end
  1183. end
  1184. end
  1185. end)
  1186. -------------------------------
  1187. mouse.KeyDown:connect(function(key)
  1188. if key == "t" then
  1189. if Debounces.CanAttack == true then
  1190. Debounces.CanAttack = false
  1191. Debounces.on = true
  1192. Debounces.NoIdl = true
  1193. for i = 1,20 do
  1194. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2)
  1195. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(130),math.rad(0),math.rad(0)), 0.2)
  1196. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2)
  1197. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2)
  1198. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.2)
  1199. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(10)), 0.2)
  1200. if Debounces.on==false then break end
  1201. rs:wait(2)
  1202. end
  1203. for i = 1,20 do
  1204. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2)
  1205. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-50),math.rad(0),math.rad(0)), 0.2)
  1206. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2)
  1207. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2)
  1208. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(-10)), 0.2)
  1209. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(10)), 0.2)
  1210. if Debounces.on==false then break end
  1211. rs:wait(2)
  1212. end
  1213. if Debounces.CanAttack == false then
  1214. Debounces.CanAttack = true
  1215. Debounces.on = false
  1216. Debounces.NoIdl = false
  1217. end
  1218. end
  1219. end
  1220. end)
  1221. -------------------------------
  1222. mouse.KeyDown:connect(function(key)
  1223. if key == "g" then
  1224. if Debounces.CanAttack == true then
  1225. Debounces.CanAttack = false
  1226. Debounces.NoIdl = true
  1227. Debounces.on = true
  1228. Debounces.Slashing = true
  1229. for i = 1, 8 do
  1230. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8)
  1231. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8)
  1232. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1233. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1234. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1235. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1236. if Debounces.on==false then break end
  1237. rs:wait(2)
  1238. end
  1239. for i = 1, 1440, 48 do
  1240. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  1241. rs:wait(4)
  1242. end
  1243. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1244. Debounces.Slashing = false
  1245. if Debounces.CanAttack == false then
  1246. Debounces.CanAttack = true
  1247. Debounces.NoIdl = false
  1248. Debounces.on = false
  1249. end
  1250. end
  1251. end
  1252. end)
  1253. ----------------------------------------------------
  1254. pt = {6.6, 6.8, 7, 7.2, 7.4}
  1255. mouse.KeyDown:connect(function(key)
  1256. if key == "h" then
  1257. if Debounces.CanJoke == true then
  1258. Debounces.CanJoke = false
  1259. u = Instance.new("Sound",char)
  1260. u.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1261. u.Pitch = pt[math.random(1,#pt)]
  1262. u.Volume = 1
  1263. u2 = Instance.new("Sound",char)
  1264. u2.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1265. u2.Pitch = u.Pitch
  1266. u2.Volume = 1
  1267. u3 = Instance.new("Sound",char)
  1268. u3.SoundId = "http://www.roblox.com/asset/?id=261303790"
  1269. u3.Pitch = u.Pitch
  1270. u3.Volume = 1
  1271. wait(.01)
  1272. u:Play()
  1273. u2:Play()
  1274. u3:Play()
  1275. wait(1.5)
  1276. u:Destroy()
  1277. u2:Destroy()
  1278. u3:Destroy()
  1279. if Debounces.CanJoke == false then
  1280. Debounces.CanJoke = true
  1281. end
  1282. end
  1283. end
  1284. end)
  1285. ----------------------------------------------------
  1286. Grab = false
  1287. mouse.KeyDown:connect(function(key)
  1288. if key == "z" then
  1289. Debounces.on = true
  1290. Debounces.NoIdl = true
  1291. Debounces.ks = true
  1292. if Grab == false then
  1293. gp = nil
  1294. for i = 1, 20 do
  1295. 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)
  1296. 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)
  1297. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  1298. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  1299. 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)
  1300. 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)
  1301. if Debounces.on == false then break end
  1302. rs:wait(2)
  1303. end
  1304. con1=larm.Touched:connect(function(hit) -- this is grab
  1305. ht = hit.Parent
  1306. hum1=ht:FindFirstChild('Humanoid')
  1307. if hum1 ~= nil then
  1308. if Debounces.ks==true then
  1309. z = Instance.new("Sound",hed)
  1310. z.SoundId = "rbxassetid://169380525"
  1311. z.Volume = 1
  1312. z:Play()
  1313. Debounces.ks=false
  1314. end
  1315. hum1.PlatformStand=true
  1316. gp = ht
  1317. Grab = true
  1318. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0))
  1319. asd.Parent = larm
  1320. asd.Name = "asd"
  1321. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  1322. stanceToggle = "Grabbed"
  1323. --[[elseif hum1 == nil then
  1324. con1:disconnect()
  1325. wait() return]]--
  1326. end
  1327. end)
  1328. for i = 1, 20 do
  1329. 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)
  1330. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.2)
  1331. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2)
  1332. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2)
  1333. 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)
  1334. 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)
  1335. if Debounces.on == false then break end
  1336. rs:wait(2)
  1337. end
  1338. con1:disconnect()
  1339. Debounces.on = false
  1340. Debounces.NoIdl = false
  1341. elseif Grab == true then
  1342. Grab = false
  1343. --[[for i = 1, 16 do
  1344. 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)
  1345. 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)
  1346. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  1347. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1348. 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)
  1349. 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)
  1350. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  1351. if Debounces.on == false then end
  1352. rs:wait()
  1353. end]]--
  1354. for i = 1, 16 do
  1355. 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.3)
  1356. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-50)), 0.3)
  1357. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  1358. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3)
  1359. 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)
  1360. 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)
  1361. if Debounces.on == false then end
  1362. rs:wait()
  1363. end
  1364. Slam()
  1365. if gp ~= nil then
  1366. for i,v in pairs(larm:GetChildren()) do
  1367. if v.Name == "asd" and v:IsA("Weld") then
  1368. v:Remove()
  1369. end
  1370. end
  1371. for i = 1, 16 do
  1372. 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.3)
  1373. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,-.4)*CFrame.Angles(math.rad(70),math.rad(0),math.rad(20)), 0.3)
  1374. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3)
  1375. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3)
  1376. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(80), math.rad(30), math.rad(-20)), 0.3)
  1377. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(70), math.rad(-15), math.rad(20)), 0.3)
  1378. if Debounces.on == false then end
  1379. rs:wait()
  1380. end
  1381. stanceToggle = "Normal"
  1382. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  1383. bv.maxForce = Vector3.new(400000, 400000, 400000)
  1384. bv.P = 125000
  1385. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  1386. ht=nil
  1387. Debounces.on = false
  1388. Debounces.NoIdl = false
  1389. elseif ht == nil then wait()
  1390. Grab = false
  1391. Debounces.on = false
  1392. Debounces.NoIdl = false
  1393. end
  1394. end
  1395. end
  1396. end)
  1397. -------------------------------
  1398. Sit = false
  1399. mouse.KeyDown:connect(function(key)
  1400. if key == "v" then
  1401. if Sit == false then
  1402. Sit = true
  1403. hum.WalkSpeed = 0.1
  1404. stanceToggle = "Sitting"
  1405. elseif Sit == true then
  1406. Sit = false
  1407. hum.WalkSpeed = 16
  1408. stanceToggle = "Normal"
  1409. end
  1410. end
  1411. end)
  1412. -------------------------------
  1413. Melee = false
  1414. mouse.KeyDown:connect(function(key)
  1415. if key == "m" then
  1416. if Melee == false then
  1417. Melee = true
  1418. Vanish()
  1419. stanceToggle = "Melee"
  1420. elseif Melee == true then
  1421. Melee = false
  1422. Appear()
  1423. stanceToggle = "Normal"
  1424. end
  1425. end
  1426. end)
  1427. -------------------------------
  1428. mouse.KeyDown:connect(function(key)
  1429. if string.byte(key) == 48 then
  1430. if Debounces.CanAttack == true then
  1431. if stanceToggle ~= "Floating" then
  1432. char.Humanoid.WalkSpeed = 60
  1433. Burst()
  1434. elseif Debounces.CanAttack == false then
  1435. elseif stanceToggle == "Floating" then
  1436. wait()
  1437. end
  1438. end
  1439. end
  1440. end)
  1441. mouse.KeyUp:connect(function(key)
  1442. if string.byte(key) == 48 then
  1443. char.Humanoid.WalkSpeed = 16
  1444. end
  1445. end)
  1446. -------------------------------
  1447. local animpose = "Idle"
  1448. local lastanimpose = "Idle"
  1449. local grab = false
  1450. local sine = 0
  1451. local change = 1
  1452. local val = 0
  1453. local ffing = false
  1454. -------------------------------
  1455. --[[if stanceToggle == "Sitting" then
  1456. if wait(math.random(1,2)) == 1 then
  1457. stanceToggle = "Sitting2"
  1458. wait(8)
  1459. stanceToggle = "Sitting"
  1460. end
  1461. end]]--
  1462. -------------------------------
  1463. game:GetService("RunService").RenderStepped:connect(function()
  1464. --[[if char.Humanoid.Jump == true then
  1465. jump = true
  1466. else
  1467. jump = false
  1468. end]]
  1469. char.Humanoid.FreeFalling:connect(function(f)
  1470. if f then
  1471. ffing = true
  1472. else
  1473. ffing = false
  1474. end
  1475. end)
  1476. sine = sine + change
  1477. if jumpn == true then
  1478. animpose = "Jumping"
  1479. elseif ffing == true then
  1480. animpose = "Freefalling"
  1481. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1482. animpose = "Idle"
  1483. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1484. animpose = "Walking"
  1485. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1486. animpose = "Running"
  1487. end
  1488. if animpose ~= lastanimpose then
  1489. sine = 0
  1490. if Debounces.NoIdl == false then
  1491. if stanceToggle == "Normal" then
  1492. for i = 1, 2 do
  1493. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2)
  1494. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2)
  1495. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2)
  1496. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1497. 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)
  1498. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
  1499. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1500. end
  1501. elseif stanceToggle == "Sitting" then
  1502. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65+0.1*math.cos(sine/30),0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20+2*math.cos(sine/30))), 0.2)
  1503. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6)
  1504. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1505. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-20), math.sin(sine/60)/3, 0), 0.3)
  1506. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
  1507. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
  1508. elseif stanceToggle == "Floating" then
  1509. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
  1510. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
  1511. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1512. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
  1513. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  1514. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  1515. wait()
  1516. end
  1517. else
  1518. end
  1519. end
  1520. lastanimpose = animpose
  1521. if Debounces.NoIdl == false then
  1522. if animpose == "Idle" then
  1523. if stanceToggle == "Normal" then
  1524. change = 0.5
  1525. 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)
  1526. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2)
  1527. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2)
  1528. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1529. 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)
  1530. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2)
  1531. elseif stanceToggle == "Melee" then
  1532. 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(20+2*math.cos(sine/14))), 0.2)
  1533. larm.Weld.C0 = Lerp(larm.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(-20-2*math.cos(sine/14))), 0.2)
  1534. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1535. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1536. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
  1537. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
  1538. elseif stanceToggle == "Sitting" then
  1539. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(20)), 0.2)
  1540. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2, 0.5, -.54) * CFrame.Angles(math.rad(88), 0, math.rad(48)), 0.6)
  1541. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1542. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5-0.06*math.cos(sine/25), -.2) * CFrame.Angles(math.rad(0-20*math.cos(sine/25)/2), math.sin(sine/50)/2.4, 0), 0.3)
  1543. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
  1544. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
  1545. elseif stanceToggle == "Floating" then
  1546. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4)
  1547. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4)
  1548. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2)
  1549. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05)
  1550. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4)
  1551. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4)
  1552. elseif stanceToggle == "Grabbed" then
  1553. grab = true
  1554. 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)
  1555. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65+0.1*math.cos(sine/14),-.5)*CFrame.Angles(math.rad(130+4*math.cos(sine/14)),math.rad(0),math.rad(-60+4*math.cos(sine/14))), 0.3)
  1556. 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)
  1557. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1558. 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)
  1559. 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)
  1560. end
  1561. elseif animpose == "Walking" then
  1562. if stanceToggle == "Normal" then
  1563. change = 1
  1564. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
  1565. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.6, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2)
  1566. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1567. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2)
  1568. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1569. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
  1570. elseif stanceToggle == "Melee" then
  1571. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2)
  1572. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2)
  1573. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1574. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2)
  1575. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1576. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
  1577. elseif stanceToggle == "Floating" then
  1578. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  1579. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  1580. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4)
  1581. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4)
  1582. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4)
  1583. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05)
  1584. elseif stanceToggle == "Grabbed" then
  1585. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2)
  1586. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(120),math.rad(0),math.rad(-30)), 0.3)
  1587. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2)
  1588. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2)
  1589. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1590. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4)
  1591. end
  1592. elseif animpose == "Running" then
  1593. if stanceToggle == "Normal" then
  1594. change = 1
  1595. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15)
  1596. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15)
  1597. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15)
  1598. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15)
  1599. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15)
  1600. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15)
  1601. elseif stanceToggle == "Floating" then
  1602. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2)
  1603. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2)
  1604. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
  1605. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4)
  1606. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4)
  1607. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05)
  1608. end
  1609. end
  1610. end
  1611. end)
  1612.  
  1613. Spawn(function()
  1614. while wait() do
  1615. updateFly()
  1616. end
  1617. end)
  1618.  
  1619. Spawn(function()
  1620. while wait(.1) do
  1621. Magik()
  1622. end
  1623. end)
  1624.  
  1625. Spawn(function()
  1626. while wait(.1) do
  1627. Magik2()
  1628. end
  1629. end)
  1630.  
  1631. Spawn(function()
  1632. while wait(4) do
  1633. GroundWave()
  1634. end
  1635. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement