Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.29 KB | None | 0 0
  1. --Edited by 1x0x1x0--
  2.  
  3. Player=game:GetService("Players").LocalPlayer
  4. Character=Player.Character
  5. PlayerGui=Player.PlayerGui
  6. Backpack=Player.Backpack
  7. Torso=Character.Torso
  8. Head=Character.Head
  9. local chatServ = game:GetService("Chat")
  10. Humanoid=Character.Humanoid
  11. local p = game.Players.LocalPlayer
  12. local char = p.Character
  13. LeftArm=Character["Left Arm"]
  14. LeftLeg=Character["Left Leg"]
  15. RightArm=Character["Right Arm"]
  16. RightLeg=Character["Right Leg"]
  17. LS=Torso["Left Shoulder"]
  18. LH=Torso["Left Hip"]
  19. RS=Torso["Right Shoulder"]
  20. RH=Torso["Right Hip"]
  21. local mouse = p:GetMouse()
  22. local larm = char["Left Arm"]
  23. local rarm = char["Right Arm"]
  24. local lleg = char["Left Leg"]
  25. local rleg = char["Right Leg"]
  26. local hed = char.Head
  27. local torso = char.Torso
  28. local hum = char.Humanoid
  29. local cam = game.Workspace.CurrentCamera
  30. local root = char.HumanoidRootPart
  31. local deb = false
  32. local shot = 0
  33. local stanceToggle = "Normal"
  34. local l = game:GetService("Lighting")
  35. local rs = game:GetService("RunService").RenderStepped
  36. math.randomseed(os.time())
  37. hum.MaxHealth = 9001
  38. wait(1)
  39. hum.Health = 9001
  40. char.Head.face.Texture = "rbxassetid://158044781"
  41. --[[for i,v in pairs(char:children()) do
  42. if v:IsA("Hat") then
  43. v:Destroy()
  44. end
  45. end ]]
  46. for i,v in pairs (hed:GetChildren()) do
  47. if v:IsA("Sound") then
  48. v:Destroy()
  49. end
  50. end
  51.  
  52.  
  53. Debounces = {
  54. CanAttack = true;
  55. CanJoke = true;
  56. NoIdl = false;
  57. Slashing = false;
  58. Slashed = false;
  59. Slapping = false;
  60. Slapped = false;
  61. ks = false;
  62. }
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. function Burst()
  70. part=Instance.new('Part',mod)
  71. part.Anchored=true
  72. part.CanCollide=false
  73. part.FormFactor='Custom'
  74. part.Size=Vector3.new(.2,.2,.2)
  75. part.CFrame=root.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(90),0,0)
  76. part.Transparency=.7
  77. part.BrickColor=BrickColor.new('New Yeller')
  78. mesh=Instance.new('SpecialMesh',part)
  79. mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
  80. mesh.Scale=Vector3.new(10,5,10)
  81. part2=part:clone()
  82. part2.Parent=mod
  83. part2.BrickColor=BrickColor.new('New Yeller')
  84. mesh2=mesh:clone()
  85. mesh2.Parent=part2
  86. mesh2.Scale=Vector3.new(5,2.5,5)
  87. coroutine.resume(coroutine.create(function()
  88. for i=0,1,0.1 do
  89. wait()
  90. part.CFrame=part.CFrame
  91. part.Transparency=i
  92. mesh.Scale=mesh.Scale+Vector3.new(1,1,1)
  93. part2.CFrame=part2.CFrame
  94. part2.Transparency=i
  95. mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
  96. end
  97. part.Parent=nil
  98. part2.Parent=nil
  99. end))
  100. end
  101. ----------------------------------------------------
  102. local logo = Instance.new ("Decal", torso)
  103. logo.Texture = "rbxassetid://62780957"
  104. logo.Face = "Front"
  105. ----------------------------------------------------
  106. local HBill = Instance.new("BillboardGui",game.Players.LocalPlayer.Character.Head)
  107. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  108. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  109. HBill.Size = UDim2.new(15,0,2.2,0)
  110. HBill.Name = "Health Display"
  111. HBill.StudsOffset = Vector3.new(0,4,0)
  112. HBill.AlwaysOnTop = true
  113. HBill.Enabled = true
  114. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  115. HMain.BackgroundTransparency = 1
  116. HMain.Size = UDim2.new(1,0,1,0)
  117. HBarBack.Parent = HMain
  118. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  119. HBarBack.BorderColor3 = Color3.new(0,0,0)
  120. HBarBack.BorderSizePixel = 2
  121. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  122. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  123. HBar.Parent = HBarBack
  124. HBar.BackgroundColor3 = Color3.new(255, 255, 0)
  125. HBar.BorderColor3 = Color3.new(0,0,0)
  126. HBar.Size = UDim2.new(.5,0,1,0)
  127. HHealth.BackgroundTransparency = 1
  128. HHealth.Size = UDim2.new(1,0,1,0)
  129. HHealth.Font = "SourceSans"
  130. HHealth.Text = " "
  131. HHealth.TextScaled = true
  132. HHealth.TextColor3 = Color3.new(1,1,1)
  133. HHealth.TextStrokeColor3 = BrickColor.new("Bright green").Color
  134. HHealth.TextStrokeTransparency = 0
  135. HName.Parent = HMain
  136. HName.BackgroundTransparency = 1
  137. HName.Size = UDim2.new(1,0,.5,0)
  138. HName.Font = "SourceSansItalic"
  139. HName.Text = "teh nob!!11!1!"
  140. HName.TextScaled = true
  141. HName.TextColor3 = BrickColor.new("Bright green").Color
  142. HName.TextStrokeColor3 = Color3.new(0,0,0)
  143. HName.TextStrokeTransparency = 0
  144. HName.TextYAlignment = "Top"
  145. wait(.5)
  146.  
  147. local runServ = game:GetService("RunService").RenderStepped
  148.  
  149. runServ:connect(function()
  150. HHealth.Text = "["..math.floor(game.Players.LocalPlayer.Character.Humanoid.Health).."]"
  151. HBar:TweenSize(UDim2.new((game.Players.LocalPlayer.Character.Humanoid.Health/game.Players.LocalPlayer.Character.Humanoid.MaxHealth),0,1,0), _, "Linear", .4)
  152. end)
  153. local Player=game.Players.LocalPlayer
  154. repeat wait() until Player
  155. local Character=Player.Character
  156. repeat wait() until Character
  157. PlayerGui=Player.PlayerGui
  158. Backpack=Player.Backpack
  159. Torso=Character.Torso
  160. Head=Character.Head
  161. Humanoid=Character.Humanoid
  162. if Humanoid.Health ~= Humanoid.MaxHealth then
  163. Humanoid.MaxHealth = 21e+08
  164. end
  165. spawn(function()
  166. while wait() do
  167. if Humanoid.MaxHealth ~= 20000 then
  168. Humanoid.MaxHealth = 20000
  169. Humanoid.Health = Humanoid.MaxHealth
  170. end
  171. end
  172. end)
  173. Humanoid.JumpPower = 90
  174. LeftArm=Character:WaitForChild("Left Arm")
  175. LeftLeg=Character:WaitForChild("Left Leg")
  176. RightArm=Character:WaitForChild("Right Arm")
  177. RightLeg=Character:WaitForChild("Left Arm")
  178. LS=Torso:WaitForChild("Left Shoulder")
  179. LH=Torso:WaitForChild("Left Hip")
  180. RS=Torso:WaitForChild("Right Shoulder")
  181. RH=Torso:WaitForChild("Right Hip")
  182. Neck=Torso.Neck
  183. it=Instance.new
  184. vt=Vector3.new
  185. cf=CFrame.new
  186. local runServ = game:GetService("RunService").RenderStepped
  187. local TextTable = {}
  188. euler=CFrame.fromEulerAnglesXYZ
  189. angles=CFrame.Angles
  190. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  191. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  192. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  193. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  194. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  195. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  196. RootPart=Character.HumanoidRootPart
  197. RootJoint=RootPart.RootJoint
  198. RootCF=euler(-1.57,0,3.14)
  199. attack=false
  200. attackdebounce=false
  201. MMouse=Player:GetMouse()
  202. combo=0
  203. local Anim="Idle"
  204. local Effects={}
  205. equipped=false
  206. local idle=0
  207. local hold=false
  208. local con1=nil
  209. local con2=nil
  210. local Mode="Binary"
  211. local idleanim=0
  212. local idleanim2=false
  213. local impulse=1
  214. local hitfloor,posfloor=nil,nil
  215. local damcount=0
  216. local guard=false
  217. local damagebonus = 1
  218. --player
  219. player=nil
  220. --save shoulders
  221. RSH, LSH=nil, nil
  222. --welds
  223. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  224. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  225. LH=Torso["Left Hip"]
  226. RH=Torso["Right Hip"]
  227. Asset="http://www.roblox.com/asset/?id="
  228. Health=20000
  229. Humanoid.MaxHealth=math.huge
  230. Humanoid.Health=math.huge
  231. coroutine.resume(coroutine.create(function()
  232. for i=1,20 do
  233. Humanoid.MaxHealth=math.huge
  234. Humanoid.Health=math.huge
  235. end
  236. Humanoid.MaxHealth=20000
  237. Humanoid.Health = Humanoid.MaxHealth
  238. end))
  239.  
  240. function swait(num)
  241. if num==0 or num==nil then
  242. game:service'RunService'.RenderStepped:wait()
  243. else
  244. for i=0,num do
  245. game:service'RunService'.RenderStepped:wait()
  246. end
  247. end
  248. end
  249. ----------------------------------------------------
  250. hed.BrickColor = BrickColor.new ("Bright yellow")
  251. larm.BrickColor = BrickColor.new ("Bright yellow")
  252. rarm.BrickColor = BrickColor.new ("Bright yellow")
  253. lleg.BrickColor = BrickColor.new ("Bright green")
  254. rleg.BrickColor = BrickColor.new ("Bright green")
  255. torso.BrickColor = BrickColor.new ("Bright blue")
  256. ----------------------------------------------------
  257. mod4 = Instance.new("Model",char)
  258.  
  259. ptez = {0.7, 0.8, 0.9, 1}
  260.  
  261. function FindNearestTorso(Position,Distance,SinglePlayer)
  262. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  263. local List = {}
  264. for i,v in pairs(workspace:GetChildren())do
  265. if v:IsA("Model")then
  266. if v:findFirstChild("Torso")then
  267. if v ~= char then
  268. if(v.Torso.Position -Position).magnitude <= Distance then
  269. table.insert(List,v)
  270. end
  271. end
  272. end
  273. end
  274. end
  275. return List
  276. end
  277.  
  278. function Slam()
  279. part=Instance.new('Part',mod4)
  280. part.Anchored=true
  281. part.CanCollide=false
  282. part.FormFactor='Custom'
  283. part.Size=Vector3.new(.2,.2,.2)
  284. part.CFrame=root.CFrame*CFrame.new(0,-2.8,-1.4)*CFrame.Angles(math.rad(90),0,0)
  285. part.Transparency=.7
  286. part.BrickColor=BrickColor.new('New Yeller')
  287. mesh=Instance.new('SpecialMesh',part)
  288. mesh.MeshId='http://www.roblox.com/asset/?id=3270017'
  289. mesh.Scale=Vector3.new(3,3,3)
  290. part2=Instance.new('Part',mod4)
  291. part2.Anchored=true
  292. part2.CanCollide=false
  293. part2.FormFactor='Custom'
  294. part2.Size=Vector3.new(.2,.2,.2)
  295. part2.CFrame=root.CFrame*CFrame.new(0,-2.4,-1.6)
  296. part2.Transparency=.7
  297. part2.BrickColor=BrickColor.new('Really red')
  298. mesh2=Instance.new('SpecialMesh',part2)
  299. mesh2.MeshId='http://www.roblox.com/asset/?id=20329976'
  300. mesh2.Scale=Vector3.new(3,1.5,3)
  301. x = Instance.new("Sound",char)
  302. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  303. x.Pitch = ptez[math.random(1,#ptez)]
  304. x.Volume = 1
  305. wait(.1)
  306. x1 = Instance.new("Sound",char)
  307. x1.SoundId = "http://www.roblox.com/asset/?id=206082327"
  308. x1.Pitch = ptez[math.random(1,#ptez)]
  309. x1.Volume = 1
  310. wait(.1)
  311. x:Play()
  312. x1:Play()
  313. for i,v in pairs(FindNearestTorso(torso.CFrame.p,4))do
  314. if v:FindFirstChild('Humanoid') then
  315. v.Humanoid:TakeDamage(math.random(30,45))
  316. end
  317. end
  318. coroutine.resume(coroutine.create(function()
  319. for i=0,0.62,0.13 do
  320. wait()
  321. part.CFrame=part.CFrame
  322. part.Transparency=i
  323. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  324. part2.CFrame=part2.CFrame
  325. part2.Transparency=i
  326. mesh2.Scale=mesh2.Scale+Vector3.new(0.4,0.2,0.4)
  327. end
  328. part.Parent=nil
  329. part2.Parent=nil
  330. x:Destroy()
  331. end))
  332. end
  333. ----------------------------------------------------
  334. GroundWave = function()
  335. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  336. local Colors = {"New Yeller", "Bright green"} --ring color
  337. local wave = Instance.new("Part", torso)
  338. wave.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  339. wave.Anchored = true
  340. wave.CanCollide = false
  341. wave.Locked = true
  342. wave.Size = Vector3.new(1, 1, 1)
  343. wave.TopSurface = "Smooth"
  344. wave.BottomSurface = "Smooth"
  345. wave.Transparency = 0.35
  346. wave.CFrame = HandCF
  347. wm = Instance.new("SpecialMesh", wave)
  348. wm.MeshId = "rbxassetid://3270017"
  349. coroutine.wrap(function()
  350. for i = 1, 14, 1 do
  351. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  352. wave.Size = wm.Scale
  353. wave.CFrame = HandCF
  354. wave.Transparency = i/14
  355. wait()
  356. end
  357. wait()
  358. wave:Destroy()
  359. end)()
  360. end
  361. ----------------------------------------------------
  362. Magik = function()
  363. Spawn(function()
  364. local function lerp(a,b,c)
  365. return a+(b-a)*c
  366. end
  367. local function rndRange(rng)
  368. return math.random(-rng*1000,rng*1000)/1000
  369. end
  370. local magik = Instance.new("Part", larm)
  371. local Colors = {"Bright green", "New Yeller"}
  372. magik.Anchored = true
  373. magik.Locked = true
  374. magik.FormFactor = "Custom"
  375. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  376. magik.TopSurface = "Smooth"
  377. magik.BottomSurface = "Smooth"
  378. magik.Transparency = 0
  379. magik.CanCollide = false
  380. magik.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  381. local mr = math.rad
  382. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  383. local cf = larm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  384. magik.CFrame = cf
  385. for i = 0, 1, .05 do
  386. local newTrans = lerp(0.5, 1, i)
  387. local ns = lerp(1,1.2,i)
  388. magik.Transparency = newTrans
  389. magik.Size = Vector3.new(ns,ns,ns)
  390. magik.CFrame = cf
  391. rs:wait()
  392. end
  393. magik:Destroy()
  394. wait()
  395. end)
  396. end
  397. ----------------------------------------------------
  398. Magik2 = function()
  399. Spawn(function()
  400. if stanceToggle == "Melee" then
  401. local function lerp(a,b,c)
  402. return a+(b-a)*c
  403. end
  404. local function rndRange(rng)
  405. return math.random(-rng*1000,rng*1000)/1000
  406. end
  407. local magik2 = Instance.new("Part", rarm)
  408. local Colors = {"Bright green", "New Yeller"}
  409. magik2.Anchored = true
  410. magik2.Locked = true
  411. magik2.FormFactor = "Custom"
  412. magik2.Size = Vector3.new(1.2, 1.2, 1.2)
  413. magik2.TopSurface = "Smooth"
  414. magik2.BottomSurface = "Smooth"
  415. magik2.Transparency = 0
  416. magik2.CanCollide = false
  417. magik2.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)])
  418. local mr = math.rad
  419. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  420. local cf = rarm.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  421. magik2.CFrame = cf
  422. for i = 0, 1, .05 do
  423. local newTrans = lerp(0.5, 1, i)
  424. local ns = lerp(1,1.2,i)
  425. magik2.Transparency = newTrans
  426. magik2.Size = Vector3.new(ns,ns,ns)
  427. magik2.CFrame = cf
  428. rs:wait()
  429. end
  430. magik2:Destroy()
  431. elseif stanceToggle ~= "Melee" then
  432. wait()
  433. end
  434. end)
  435. end
  436. ----------------------------------------------------
  437. function lerp(a, b, t) -- Linear interpolation
  438. return a + (b - a)*t
  439. end
  440.  
  441. function slerp(a, b, t) --Spherical interpolation
  442. dot = a:Dot(b)
  443. if dot > 0.99999 or dot < -0.99999 then
  444. return t <= 0.5 and a or b
  445. else
  446. r = math.acos(dot)
  447. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  448. end
  449. end
  450.  
  451. function matrixInterpolate(a, b, t)
  452. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  453. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  454. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  455. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  456. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  457. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  458. local t = v1:Dot(v2)
  459. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  460. return CFrame.new()
  461. end
  462. return CFrame.new(
  463. v0.x, v0.y, v0.z,
  464. v1.x, v1.y, v1.z,
  465. v2.x, v2.y, v2.z,
  466. v3.x, v3.y, v3.z)
  467. end
  468. ----------------------------------------------------
  469. function genWeld(a,b)
  470. local w = Instance.new("Weld",a)
  471. w.Part0 = a
  472. w.Part1 = b
  473. return w
  474. end
  475. function weld(a, b)
  476. local weld = Instance.new("Weld")
  477. weld.Name = "W"
  478. weld.Part0 = a
  479. weld.Part1 = b
  480. weld.C0 = a.CFrame:inverse() * b.CFrame
  481. weld.Parent = a
  482. return weld;
  483. end
  484. ----------------------------------------------------
  485. function Lerp(c1,c2,al)
  486. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  487. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  488. for i,v in pairs(com1) do
  489. com1[i] = v+(com2[i]-v)*al
  490. end
  491. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  492. end
  493. ----------------------------------------------------
  494. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  495. local wld = Instance.new("Weld", wp1)
  496. wld.Part0 = wp0
  497. wld.Part1 = wp1
  498. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  499. end
  500. ----------------------------------------------------
  501. newWeld(torso, larm, -1.5, 0.5, 0)
  502. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  503. newWeld(torso, rarm, 1.5, 0.5, 0)
  504. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  505. newWeld(torso, hed, 0, 1.5, 0)
  506. newWeld(torso, lleg, -0.5, -1, 0)
  507. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  508. newWeld(torso, rleg, 0.5, -1, 0)
  509. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  510. newWeld(root, torso, 0, -1, 0)
  511. torso.Weld.C1 = CFrame.new(0, -1, 0)
  512. ----------------------------------------------------
  513. --backgroundmusic
  514. bg = Instance.new("Sound", char)
  515. bg.SoundId = "rbxassetid://494244670"
  516. bg.Looped = true
  517. bg.Pitch = 1
  518. bg.Volume = 0.3
  519. wait(.01)
  520. bg:Play()
  521. ----------------------------------------------------
  522. local m = Instance.new("Model")
  523. m.Name = "Genkadda"
  524. p1 = Instance.new("Part", m)
  525. p1.Material = "Metal"
  526. p1.BrickColor = BrickColor.new("New Yeller") --center blade
  527. p1.Name = "BladePart"
  528. p1.FormFactor = Enum.FormFactor.Symmetric
  529. p1.Size = Vector3.new(1, 1, 1)
  530. 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)
  531. p1.CanCollide = false
  532. p1.Locked = true
  533. p1.Elasticity = 0
  534. p1.BottomSurface = Enum.SurfaceType.Smooth
  535. p1.TopSurface = Enum.SurfaceType.Smooth
  536. b1 = Instance.new("BlockMesh", p1)
  537. b1.Name = "Mesh"
  538. b1.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  539. p2 = Instance.new("Part", m)
  540. p2.Material = "Metal"
  541. p2.BrickColor = BrickColor.new("Bright green") --handle
  542. p2.FormFactor = Enum.FormFactor.Symmetric
  543. p2.Size = Vector3.new(1, 1, 1)
  544. 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)
  545. p2.CanCollide = false
  546. p2.Locked = true
  547. p2.Elasticity = 0
  548. p2.BottomSurface = Enum.SurfaceType.Smooth
  549. p2.TopSurface = Enum.SurfaceType.Smooth
  550. b2 = Instance.new("BlockMesh", p2)
  551. b2.Name = "Mesh"
  552. b2.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
  553. p3 = Instance.new("Part", m)
  554. p3.Material = "Metal"
  555. p3.BrickColor = BrickColor.new("Bright green") --handle
  556. p3.FormFactor = Enum.FormFactor.Symmetric
  557. p3.Size = Vector3.new(1, 2, 1)
  558. 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)
  559. p3.CanCollide = false
  560. p3.Locked = true
  561. p3.Elasticity = 0
  562. p3.BottomSurface = Enum.SurfaceType.Smooth
  563. p3.TopSurface = Enum.SurfaceType.Smooth
  564. b3 = Instance.new("BlockMesh", p3)
  565. b3.Name = "Mesh"
  566. b3.Scale = Vector3.new(0.099999927, 0.699999928, 0.099999927)
  567. p4 = Instance.new("Part", m)
  568. p4.Material = "Metal"
  569. p4.BrickColor = BrickColor.new("New Yeller") --bottom blade
  570. p4.Name = "BladePart"
  571. p4.FormFactor = Enum.FormFactor.Symmetric
  572. p4.Size = Vector3.new(1, 1, 1)
  573. 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)
  574. p4.CanCollide = false
  575. p4.Locked = true
  576. p4.Elasticity = 0
  577. p4.BottomSurface = Enum.SurfaceType.Smooth
  578. p4.TopSurface = Enum.SurfaceType.Smooth
  579. b4 = Instance.new("BlockMesh", p4)
  580. b4.Name = "Mesh"
  581. b4.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  582. p5 = Instance.new("Part", m)
  583. p5.Material = "Metal"
  584. p5.BrickColor = BrickColor.new("Bright green") --handle
  585. p5.Name = "Hilt"
  586. p5.FormFactor = Enum.FormFactor.Custom
  587. p5.Size = Vector3.new(1, 0.400000006, 1.60000014)
  588. 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)
  589. p5.CanCollide = false
  590. p5.Locked = true
  591. p5.BottomSurface = Enum.SurfaceType.Smooth
  592. p5.TopSurface = Enum.SurfaceType.Smooth
  593. b5 = Instance.new("BlockMesh", p5)
  594. b5.Name = "Mesh"
  595. b5.Scale = Vector3.new(0.299999923, 0.399999917, 0.799999952)
  596. p6 = Instance.new("Part", m)
  597. p6.Material = "Metal"
  598. p6.BrickColor = BrickColor.new("New Yeller") --handle
  599. p6.Name = "Handle"
  600. p6.FormFactor = Enum.FormFactor.Custom
  601. p6.Size = Vector3.new(1.29999995, 1, 1)
  602. 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)
  603. p6.CanCollide = false
  604. p6.Locked = true
  605. p6.BottomSurface = Enum.SurfaceType.Smooth
  606. p6.TopSurface = Enum.SurfaceType.Smooth
  607. b6 = Instance.new("SpecialMesh", p6)
  608. b6.MeshType = Enum.MeshType.Cylinder
  609. b6.Name = "Mesh"
  610. b6.Scale = Vector3.new(1, 0.200000003, 0.200000003)
  611. p7 = Instance.new("Part", m)
  612. p7.Material = "Metal"
  613. p7.BrickColor = BrickColor.new("Bright green") --bottom handle
  614. p7.FormFactor = Enum.FormFactor.Symmetric
  615. p7.Size = Vector3.new(1, 1, 1)
  616. 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)
  617. p7.CanCollide = false
  618. p7.Locked = true
  619. b7 = Instance.new("SpecialMesh", p7)
  620. b7.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  621. b7.TextureId = ""
  622. b7.MeshType = Enum.MeshType.FileMesh
  623. b7.Name = "Mesh"
  624. b7.Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006)
  625. p8 = Instance.new("Part", m)
  626. p8.Material = "Metal"
  627. p8.BrickColor = BrickColor.new("New Yeller") --upper blade
  628. p8.Name = "BladePart"
  629. p8.FormFactor = Enum.FormFactor.Symmetric
  630. p8.Size = Vector3.new(1, 1, 1)
  631. 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)
  632. p8.CanCollide = false
  633. p8.Locked = true
  634. p8.Elasticity = 0
  635. p8.BottomSurface = Enum.SurfaceType.Smooth
  636. p8.TopSurface = Enum.SurfaceType.Smooth
  637. b8 = Instance.new("BlockMesh", p8)
  638. b8.Name = "Mesh"
  639. b8.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  640. p9 = Instance.new("Part", m)
  641. p9.Material = "Metal"
  642. p9.BrickColor = BrickColor.new("New Yeller") --upper blade
  643. p9.Name = "BladePart"
  644. p9.FormFactor = Enum.FormFactor.Symmetric
  645. p9.Size = Vector3.new(1, 1, 1)
  646. 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)
  647. p9.CanCollide = false
  648. p9.Locked = true
  649. p9.Elasticity = 0
  650. p9.BottomSurface = Enum.SurfaceType.Smooth
  651. p9.TopSurface = Enum.SurfaceType.Smooth
  652. b9 = Instance.new("BlockMesh", p9)
  653. b9.Name = "Mesh"
  654. b9.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  655. p10 = Instance.new("Part", m)
  656. p10.Material = "Metal"
  657. p10.BrickColor = BrickColor.new("New Yeller") --top blade
  658. p10.Name = "BladeTip"
  659. p10.FormFactor = Enum.FormFactor.Symmetric
  660. p10.Size = Vector3.new(1, 1, 2)
  661. 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)
  662. p10.CanCollide = false
  663. p10.Locked = true
  664. p10.Elasticity = 0
  665. p10.BottomSurface = Enum.SurfaceType.Smooth
  666. p10.TopSurface = Enum.SurfaceType.Smooth
  667. b10 = Instance.new("SpecialMesh", p10)
  668. b10.MeshType = Enum.MeshType.Wedge
  669. b10.Name = "Mesh"
  670. b10.Scale = Vector3.new(0.119999997, 0.299999923, 0.699999928)
  671. p11 = Instance.new("Part", m)
  672. p11.Material = "Metal"
  673. p11.BrickColor = BrickColor.new("New Yeller") --upper blade
  674. p11.Name = "BladePart"
  675. p11.FormFactor = Enum.FormFactor.Symmetric
  676. p11.Size = Vector3.new(1, 1, 1)
  677. 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)
  678. p11.CanCollide = false
  679. p11.Locked = true
  680. p11.Elasticity = 0
  681. p11.BottomSurface = Enum.SurfaceType.Smooth
  682. p11.TopSurface = Enum.SurfaceType.Smooth
  683. b11 = Instance.new("BlockMesh", p11)
  684. b11.Name = "Mesh"
  685. b11.Scale = Vector3.new(0.299999923, 1, 0.120000005)
  686. p12 = Instance.new("Part", m)
  687. p12.Material = "Metal"
  688. p12.BrickColor = BrickColor.new("New Yeller") --hook
  689. p12.Name = "BladeTip2"
  690. p12.FormFactor = Enum.FormFactor.Custom
  691. p12.Size = Vector3.new(1, 1, 2.4000001)
  692. 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)
  693. p12.CanCollide = false
  694. p12.Locked = true
  695. p12.Elasticity = 0
  696. p12.BottomSurface = Enum.SurfaceType.Smooth
  697. p12.TopSurface = Enum.SurfaceType.Smooth
  698. b12 = Instance.new("SpecialMesh", p12)
  699. b12.MeshType = Enum.MeshType.Wedge
  700. b12.Name = "Mesh"
  701. b12.Scale = Vector3.new(0.119999997, 0.239999995, 0.699999928)
  702. p13 = Instance.new("Part", m)
  703. p13.Material = "Metal"
  704. p13.BrickColor = BrickColor.new("Medium stone grey")
  705. p13.Transparency = 1
  706. p13.Name = "HitBox"
  707. p13.FormFactor = Enum.FormFactor.Custom
  708. p13.Size = Vector3.new(6.0999999, 0.400000006, 1.5999999)
  709. 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)
  710. p13.CanCollide = false
  711. p13.Locked = true
  712. p13.BottomSurface = Enum.SurfaceType.Smooth
  713. p13.TopSurface = Enum.SurfaceType.Smooth
  714. w1 = Instance.new("Weld", p1)
  715. w1.Name = "Part_Weld"
  716. w1.Part0 = p1
  717. 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)
  718. w1.Part1 = p2
  719. 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)
  720. w2 = Instance.new("Weld", p2)
  721. w2.Name = "Part_Weld"
  722. w2.Part0 = p2
  723. 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)
  724. w2.Part1 = p3
  725. 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)
  726. w3 = Instance.new("Weld", p3)
  727. w3.Name = "BladePart_Weld"
  728. w3.Part0 = p3
  729. 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)
  730. w3.Part1 = p4
  731. 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)
  732. w4 = Instance.new("Weld", p4)
  733. w4.Name = "Hilt_Weld"
  734. w4.Part0 = p4
  735. 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)
  736. w4.Part1 = p5
  737. 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)
  738. w5 = Instance.new("Weld", p5)
  739. w5.Name = "Handle_Weld"
  740. w5.Part0 = p5
  741. 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)
  742. w5.Part1 = p6
  743. 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)
  744. w6 = Instance.new("Weld", p6)
  745. w6.Name = "Part_Weld"
  746. w6.Part0 = p6
  747. 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)
  748. w6.Part1 = p7
  749. 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)
  750. w7 = Instance.new("Weld", p7)
  751. w7.Name = "BladePart_Weld"
  752. w7.Part0 = p7
  753. 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)
  754. w7.Part1 = p8
  755. 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)
  756. w8 = Instance.new("Weld", p8)
  757. w8.Name = "BladePart_Weld"
  758. w8.Part0 = p8
  759. 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)
  760. w8.Part1 = p9
  761. 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)
  762. w9 = Instance.new("Weld", p9)
  763. w9.Name = "BladeTip_Weld"
  764. w9.Part0 = p9
  765. 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)
  766. w9.Part1 = p10
  767. 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)
  768. w10 = Instance.new("Weld", p10)
  769. w10.Name = "BladePart_Weld"
  770. w10.Part0 = p10
  771. 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)
  772. w10.Part1 = p11
  773. 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)
  774. w11 = Instance.new("Weld", p11)
  775. w11.Name = "BladeTip2_Weld"
  776. w11.Part0 = p11
  777. 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)
  778. w11.Part1 = p12
  779. 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)
  780. w12 = Instance.new("Weld", p12)
  781. w12.Name = "HitBox_Weld"
  782. w12.Part0 = p12
  783. 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)
  784. w12.Part1 = p13
  785. 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)
  786. w13 = Instance.new("Weld", p13)
  787. w13.Name = "Weld"
  788. w13.Part0 = p13
  789. 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)
  790. m.Parent = char
  791. m:MakeJoints()
  792. ----------------------------------------------------
  793. local cor = Instance.new("Part", char.Genkadda)
  794. cor.Name = "Thingy"
  795. cor.Locked = true
  796. cor.BottomSurface = 0
  797. cor.CanCollide = false
  798. cor.Size = Vector3.new(1, 9, 1)
  799. cor.Transparency = 1
  800. cor.TopSurface = 0
  801. corw = Instance.new("Weld", cor)
  802. corw.Part0 = rarm
  803. corw.Part1 = cor
  804. corw.C0 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(90))
  805. corw.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
  806. weld1 = Instance.new("Weld", char.Genkadda)
  807. weld1.Part0 = cor
  808. weld1.Part1 = p6
  809. weld1.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  810. ----------------------------------------------------
  811. function Vanish()
  812. for i = 1, 10 do wait()
  813. for i,v in pairs(char.Genkadda:GetChildren()) do
  814. if v:IsA("Part") or v:IsA("WedgePart") then
  815. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  816. v.Transparency = v.Transparency + 0.1
  817. end
  818. end
  819. end
  820. end
  821. end
  822. ----------------------------------------------------
  823. function Appear()
  824. for i = 1, 10 do wait()
  825. for i,v in pairs(char.Genkadda:GetChildren()) do
  826. if v:IsA("Part") or v:IsA("WedgePart") then
  827. if v.Name ~= "HitBox" or v.Name ~= "Thingy" then
  828. v.Transparency = v.Transparency - 0.1
  829. end
  830. end
  831. end
  832. end
  833. end
  834. ----------------------------------------------------
  835. local player = game.Players.LocalPlayer
  836. local pchar = player.Character
  837. local mouse = player:GetMouse()
  838. local cam = workspace.CurrentCamera
  839.  
  840. local rad = math.rad
  841.  
  842. local keysDown = {}
  843. local flySpeed = 0
  844. local MAX_FLY_SPEED = 50
  845.  
  846. local canFly = false
  847. local flyToggled = false
  848.  
  849. local forward, side = 0, 0
  850. local lastForward, lastSide = 0, 0
  851.  
  852. local floatBP = Instance.new("BodyPosition")
  853. floatBP.maxForce = Vector3.new(0, math.huge, 0)
  854. local flyBV = Instance.new("BodyVelocity")
  855. flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  856. local turnBG = Instance.new("BodyGyro")
  857. turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  858.  
  859. mouse.KeyDown:connect(function(key)
  860. keysDown[key] = true
  861.  
  862. if key == "f" then
  863. chatServ:Chat(hed, "wat", 0)
  864. flyToggled = not flyToggled
  865.  
  866. if not flyToggled then
  867. stanceToggle = "Normal"
  868. floatBP.Parent = nil
  869. flyBV.Parent = nil
  870. turnBG.Parent = nil
  871. root.Velocity = Vector3.new()
  872. pchar.Humanoid.PlatformStand = false
  873. end
  874. end
  875.  
  876. end)
  877. mouse.KeyUp:connect(function(key)
  878. keysDown[key] = nil
  879. end)
  880.  
  881. local function updateFly()
  882.  
  883. if not flyToggled then return end
  884.  
  885. lastForward = forward
  886. lastSide = side
  887.  
  888. forward = 0
  889. side = 0
  890.  
  891. if keysDown.w then
  892. forward = forward + 1
  893. end
  894. if keysDown.s then
  895. forward = forward - 1
  896. end
  897. if keysDown.a then
  898. side = side - 1
  899. end
  900. if keysDown.d then
  901. side = side + 1
  902. end
  903.  
  904. canFly = (forward ~= 0 or side ~= 0)
  905.  
  906. if canFly then
  907. stanceToggle = "Floating"
  908. turnBG.Parent = root
  909. floatBP.Parent = nil
  910. flyBV.Parent = root
  911.  
  912. flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED)
  913. if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end
  914. else
  915. floatBP.position = root.Position
  916. floatBP.Parent = root
  917.  
  918. flySpeed = flySpeed - 1
  919. if flySpeed < 0 then flySpeed = 0 end
  920. end
  921.  
  922. local camCF = cam.CoordinateFrame
  923. local in_forward = canFly and forward or lastForward
  924. local in_side = canFly and side or lastSide
  925.  
  926. flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side,
  927. in_forward * 0.2, 0).p) - camCF.p) * flySpeed
  928.  
  929. turnBG.cframe = camCF * CFrame.Angles(-rad(forward * (flySpeed / MAX_FLY_SPEED)), 0,
  930. 0)
  931. end
  932.  
  933. game:service'RunService'.RenderStepped:connect(function()
  934. if flyToggled then
  935. pchar.Humanoid.PlatformStand = true
  936. end
  937. updateFly()
  938. end)
  939. ----------------------------------------------------
  940. p13.Touched:connect(function(ht)
  941. hit = ht.Parent
  942. if ht and hit:IsA("Model") then
  943. if hit:FindFirstChild("Humanoid") then
  944. if hit.Name ~= p.Name then
  945. if Debounces.Slashing == true and Debounces.Slashed == false then
  946. Debounces.Slashed = true
  947. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
  948. wait(.3)
  949. Debounces.Slashed = false
  950. end
  951. end
  952. end
  953. elseif ht and hit:IsA("Hat") then
  954. if hit.Parent.Name ~= p.Name then
  955. if hit.Parent:FindFirstChild("Humanoid") then
  956. if Debounces.Slashing == true and Debounces.Slashed == false then
  957. Debounces.Slashed = true
  958. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(8,10))
  959. wait(.3)
  960. Debounces.Slashed = false
  961. end
  962. end
  963. end
  964. end
  965. end)
  966. ----------------------------------------------------
  967. ptz = {0.7, 0.8, 0.9, 1}
  968. idz = {"12222200", "12222200"}
  969. mouse.KeyDown:connect(function(key)
  970. if key == "q" then
  971. if Debounces.CanAttack == true then
  972. Debounces.CanAttack = false
  973. Debounces.NoIdl = true
  974. Debounces.on = true
  975. for i = 1, 20 do
  976. 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)
  977. 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)
  978. 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)
  979. 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)
  980. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2)
  981. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2)
  982. if Debounces.on == false then break end
  983. rs:wait(2)
  984. end
  985. z = Instance.new("Sound", hed)
  986. z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  987. z.Pitch = ptz[math.random(1,#ptz)]
  988. z.Volume = 1
  989. wait(.01)
  990. z:Play()
  991. Debounces.Slashing = true
  992. for i = 1, 20 do
  993. 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)
  994. 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)
  995. 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)
  996. 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)
  997. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3)
  998. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3)
  999. if Debounces.on == false then break end
  1000. rs:wait(2)
  1001. end
  1002. z1 = Instance.new("Sound", hed)
  1003. z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)]
  1004. z1.Pitch = ptz[math.random(1,#ptz)]
  1005. z1.Volume = 1
  1006. wait(.01)
  1007. z1:Play()
  1008. Debounces.Slashing = true
  1009. for i = 1, 26 do
  1010. 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)
  1011. 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)
  1012. 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)
  1013. 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)
  1014. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.35)
  1015. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.35)
  1016. 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)
  1017. if Debounces.on == false then break end
  1018. rs:wait(2)
  1019. end
  1020. Debounces.Slashing = false
  1021. z:Destroy()
  1022. z1:Destroy()
  1023. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1024. if Debounces.CanAttack == false then
  1025. Debounces.CanAttack = true
  1026. Debounces.NoIdl = false
  1027. Debounces.on = false
  1028. end
  1029. end
  1030. end
  1031. end)
  1032. -------------------------------
  1033. pts = {4, 4.2, 4.4, 4.6, 4.8, 5, 5.2, 5.4}
  1034. mouse.KeyDown:connect(function(key)
  1035. if key == "e" then
  1036. if Debounces.CanAttack == true then
  1037. Debounces.CanAttack = false
  1038. Debounces.NoIdl = true
  1039. Debounces.on = true
  1040. Debounces.ks = true
  1041. larm.Touched:connect(function(ht)
  1042. hit = ht.Parent
  1043. if ht and hit:IsA("Model") then
  1044. if hit:FindFirstChild("Humanoid") then
  1045. if hit.Name ~= p.Name then
  1046. if Debounces.Slapping == true and Debounces.Slapped == false then
  1047. Debounces.Slapped = true
  1048. if Debounces.ks==true then
  1049. z = Instance.new("Sound",hed)
  1050. z.SoundId = "rbxassetid://169380525"
  1051. z.Volume = 1
  1052. z:Play()
  1053. z1 = Instance.new("Sound",char)
  1054. z1.SoundId = "rbxassetid://261010715"
  1055. z1.Pitch = pts[math.random(1,#pts)]
  1056. z1.Volume = 1
  1057. z2 = Instance.new("Sound",char)
  1058. z2.SoundId = "rbxassetid://261010715"
  1059. z2.Pitch = z1.Pitch
  1060. z2.Volume = 1
  1061. z3 = Instance.new("Sound",char)
  1062. z3.SoundId = "rbxassetid://261010715"
  1063. z3.Pitch = z1.Pitch
  1064. z3.Volume = 1
  1065. z1:Play()
  1066. z2:Play()
  1067. z3:Play()
  1068. Debounces.ks=false
  1069. end
  1070. hit:FindFirstChild("Humanoid"):TakeDamage(10)
  1071. hit:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 90
  1072. wait(.5)
  1073. Debounces.Slapped = false
  1074. z:Destroy()
  1075. z1:Destroy()
  1076. z2:Destroy()
  1077. z3:Destroy()
  1078. end
  1079. end
  1080. end
  1081. elseif ht and hit:IsA("Hat") then
  1082. if hit.Parent.Name ~= p.Name then
  1083. if hit.Parent:FindFirstChild("Humanoid") then
  1084. if Debounces.Slapping == true and Debounces.Slapped == false then
  1085. Debounces.Slapped = true
  1086. if Debounces.ks==true then
  1087. z = Instance.new("Sound",hed)
  1088. z.SoundId = "rbxassetid://169380525"
  1089. z.Volume = 1
  1090. z:Play()
  1091. z1 = Instance.new("Sound",char)
  1092. z1.SoundId = "rbxassetid://261010715"
  1093. z1.Pitch = pts[math.random(1,#pts)]
  1094. z1.Volume = 1
  1095. z2 = Instance.new("Sound",char)
  1096. z2.SoundId = "rbxassetid://261010715"
  1097. z2.Pitch = z1.Pitch
  1098. z2.Volume = 1
  1099. z3 = Instance.new("Sound",char)
  1100. z3.SoundId = "rbxassetid://261010715"
  1101. z3.Pitch = z1.Pitch
  1102. z3.Volume = 1
  1103. z1:Play()
  1104. z2:Play()
  1105. z3:Play()
  1106. Debounces.ks=false
  1107. end
  1108. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(10)
  1109. wait(.5)
  1110. Debounces.Slapped = false
  1111. z:Destroy()
  1112. z1:Destroy()
  1113. z2:Destroy()
  1114. z3:Destroy()
  1115. end
  1116. end
  1117. end
  1118. end
  1119. end)
  1120. for i = 1, 14 do
  1121. 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)
  1122. 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)
  1123. 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)
  1124. 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)
  1125. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
  1126. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.5)
  1127. if Debounces.on==false then break end
  1128. rs:wait(2)
  1129. end
  1130. Debounces.Slapping = true
  1131. for i = 1, 20 do
  1132. 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)
  1133. 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)
  1134. 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)
  1135. 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)
  1136. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  1137. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.6)
  1138. if Debounces.on==false then break end
  1139. rs:wait(2)
  1140. end
  1141. Debounces.Slapping = false
  1142. if Debounces.CanAttack == false then
  1143. Debounces.CanAttack = true
  1144. Debounces.NoIdl = false
  1145. Debounces.on = false
  1146. end
  1147. end
  1148. end
  1149. end)
  1150. -------------------------------
  1151. mouse.KeyDown:connect(function(key)
  1152. if key == "y" then
  1153. if Debounces.CanAttack == true then
  1154. Debounces.CanAttack = false
  1155. Debounces.on = true
  1156. Debounces.NoIdl = true
  1157. for i = 1, 20 do
  1158. 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)
  1159. 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)
  1160. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3)
  1161. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3)
  1162. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1163. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1164. 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)
  1165. if Debounces.on == false then break end
  1166. wait()
  1167. end
  1168. Spawn(function()
  1169. local Parts = {}
  1170. for Y = -5,5 do
  1171. local P = Instance.new("Part",char)
  1172. P.Anchored = true
  1173. P.FormFactor = "Custom"
  1174. P.CanCollide = false
  1175. P.Size = Vector3.new(1,2,1)
  1176. P.TopSurface = "SmoothNoOutlines"
  1177. P.BottomSurface = "SmoothNoOutlines"
  1178. P.BrickColor = BrickColor.new("Bright green")
  1179. P.Name = tostring(Y)
  1180. local i = (Y+5)/(10)
  1181. i = 1-math.cos(math.pi*i-(math.pi/2))
  1182. P.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,Y,-15+(i*1.5))*CFrame.Angles(math.rad(Y*5),0,0)
  1183. --[[P.Touched:connect(function(ht)
  1184. local hit = ht.Parent
  1185. if hit:FindFirstChild("Humanoid") then
  1186. hit.Humanoid:TakeDamage(math.random(20,50))
  1187. end
  1188. end)]]--
  1189. s = Instance.new("Sound",P)
  1190. s.SoundId = "rbxassetid://228343271"
  1191. s.Volume = .7
  1192. s.Pitch = 0.9
  1193. s:Play()
  1194. P.Touched:connect(function(ht)
  1195. hit = ht.Parent
  1196. if ht and hit:IsA("Model") then
  1197. if hit:FindFirstChild("Humanoid") then
  1198. if hit.Name ~= p.Name then
  1199. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1200. Debounces.Slashed = true]]--
  1201. hit:FindFirstChild("Humanoid"):TakeDamage(math.random(1,3))
  1202. hit:FindFirstChild("Humanoid").PlatformStand = true
  1203. wait(1)
  1204. --Debounces.Slashed = false
  1205. --end
  1206. end
  1207. end
  1208. elseif ht and hit:IsA("Hat") then
  1209. if hit.Parent.Name ~= p.Name then
  1210. if hit.Parent:FindFirstChild("Humanoid") then
  1211. --[[if Debounces.Slashing == true and Debounces.Slashed == false then
  1212. Debounces.Slashed = true]]--
  1213. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random (1,3))
  1214. hit:FindFirstChild("Humanoid").PlatformStand = true
  1215. wait(1)
  1216. --Debounces.Slashed = false
  1217. --end
  1218. end
  1219. end
  1220. end
  1221. end)
  1222. Parts[#Parts+1] = P
  1223. end
  1224. local BREAKIT = false
  1225. local CParts = {}
  1226. local Rocks = {}
  1227. local LastPos = nil
  1228. for i = 1,70 do
  1229. for i2,v in pairs(Parts) do
  1230. v.CFrame = v.CFrame*CFrame.new(0,0,-4)
  1231. local cf = v.CFrame
  1232. v.Size = v.Size+Vector3.new(0.4,0.35,0)
  1233. v.CFrame = cf
  1234. v.Transparency = v.Transparency+0.02
  1235. if v.Transparency >= 0.975 then BREAKIT = true end
  1236. if v.Name == "0" then
  1237. local Ignore = {}
  1238. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1239. if v.Character ~= nil then
  1240. Ignore[#Ignore+1] = v.Character
  1241. end
  1242. end
  1243. local ray = Ray.new(v.Position+Vector3.new(0,20,0),Vector3.new(0,-200,0))
  1244. local Hit,Pos,SurfaceNorm = Workspace:FindPartOnRayWithIgnoreList(ray,Ignore)
  1245. if Hit ~= nil then
  1246. if #Rocks == 0 then
  1247. for i = 1,5 do
  1248. local P = Instance.new("Part",char)
  1249. Rocks[#Rocks+1] = P
  1250. P.Anchored = true
  1251. P.FormFactor = "Custom"
  1252. P.BrickColor = Hit.BrickColor
  1253. P.Material = Hit.Material
  1254. P.TopSurface = "Smooth"
  1255. P.BottomSurface = "Smooth"
  1256. P.Size = Vector3.new(1,1,1)*(math.random(500,900)/100)
  1257. end
  1258. end
  1259. for i,P in pairs(Rocks) do
  1260. P.CFrame = ((CFrame.new(Pos)*(v.CFrame-v.Position))*CFrame.new(math.random(-math.ceil(v.Size.X/2),math.ceil(v.Size.X/2)),0,-math.random(5,8))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1261. end
  1262. local P = Instance.new("Part",char)
  1263. CParts[#CParts+1] = {P,tick()}
  1264. P.Anchored = true
  1265. P.FormFactor = "Custom"
  1266. P.BrickColor = Hit.BrickColor
  1267. P.Material = Hit.Material
  1268. P.TopSurface = "Smooth"
  1269. P.BottomSurface = "Smooth"
  1270. P.Size = Vector3.new(1,1,1)*(math.random(100,300)/100)
  1271. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1272. Pos = Pos.p
  1273. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(20,50)))
  1274. local P = P:Clone()
  1275. CParts[#CParts+1] = {P,tick()}
  1276. P.Parent = char
  1277. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(-v.Size.X,0,0)
  1278. Pos = Pos.p
  1279. P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,0.25,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,-20)))
  1280. if LastPos ~= nil then
  1281. local P = P:Clone()
  1282. CParts[#CParts+1] = {P,tick()}
  1283. P.Parent = char
  1284. P.BrickColor = BrickColor.new("New Yeller")
  1285. Pos = CFrame.new(Pos)*(v.CFrame-v.Position)*CFrame.new(v.Size.X/2,0,0)
  1286. Pos = Pos.p
  1287. local CFr = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1288. P.Size = Vector3.new(v.Size.X-0.25,1,(CFr.p-LastPos.p).Magnitude+0.25)
  1289. --P.Velocity = Vector3.new(0,-1000,0)
  1290. P.CFrame = CFrame.new(CFr.p,LastPos.p)*CFrame.new(0,0,-((CFr.p-LastPos.p).Magnitude+0.25)/2)
  1291. end
  1292. LastPos = (CFrame.new(Pos)*(v.CFrame-v.Position))-Vector3.new(0,0.4,0)
  1293. end
  1294. end
  1295. end
  1296. if BREAKIT then break end
  1297. wait(0.002)
  1298. end
  1299. for i,v in pairs(Rocks) do
  1300. CParts[#CParts+1] = {v,tick()}
  1301. end
  1302. for i,v in pairs(Parts) do
  1303. v:Destroy()
  1304. end
  1305. Parts = nil
  1306. while true do
  1307. local t = tick()
  1308. local p = nil
  1309. for i,v in pairs(CParts) do
  1310. if t-v[2] > 4 then
  1311. v[1].Transparency = v[1].Transparency+0.05
  1312. if v[1].Transparency >= 1 then
  1313. v[1]:Destroy()
  1314. CParts[i] = nil
  1315. end
  1316. end
  1317. p = v
  1318. end
  1319. if p == nil then break end
  1320. wait(0.002)
  1321. end
  1322. for i,v in pairs(CParts) do
  1323. v:Destroy()
  1324. end
  1325. CParts = {}
  1326. end)
  1327. for i = 1, 20 do
  1328. 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)
  1329. 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)
  1330. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1331. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
  1332. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
  1333. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3)
  1334. 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)
  1335. if Debounces.on == false then break end
  1336. wait()
  1337. end
  1338. if Debounces.CanAttack == false then
  1339. Debounces.CanAttack = true
  1340. Debounces.on = false
  1341. Debounces.NoIdl = false
  1342. end
  1343. end
  1344. end
  1345. end)
  1346. -------------------------------
  1347. mouse.KeyDown:connect(function(key)
  1348. if key == "r" then
  1349. if Debounces.CanAttack == true then
  1350. Debounces.CanAttack = false
  1351. Debounces.NoIdl = true
  1352. Debounces.on = true
  1353. for i = 1, 20 do
  1354. 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)
  1355. 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)
  1356. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3)
  1357. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3)
  1358. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1359. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1360. 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)
  1361. if Debounces.on==false then break end
  1362. rs:wait(2)
  1363. end
  1364. Debounces.Slashing = true
  1365. z = Instance.new("Sound",hed)
  1366. z.SoundId = "rbxassetid://0"
  1367. z.Pitch = .75
  1368. z.Volume = .65
  1369. wait(0)
  1370. z:Play()
  1371. z1 = Instance.new("Sound", hed)
  1372. z1.SoundId = "rbxassetid://12222216"
  1373. z1.Pitch = ptz[math.random(1,#ptz)]
  1374. z1.Volume = 1
  1375. wait(0)
  1376. z1:Play()
  1377. for i = 1, 20 do
  1378. 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)
  1379. 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)
  1380. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
  1381. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
  1382. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
  1383. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3)
  1384. 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)
  1385. if Debounces.on==false then break end
  1386. rs:wait(2)
  1387. end
  1388. Debounces.Slashing = false
  1389. cor.Weld.C1 = CFrame.Angles(0,0,0)
  1390. if Debounces.CanAttack == false then
  1391. Debounces.CanAttack = true
  1392. Debounces.NoIdl = false
  1393. Debounces.on = false
  1394. end
  1395. end
  1396. end
  1397. end)
  1398. -------------------------------
  1399. mouse.KeyDown:connect(function(key)
  1400. if key == "t" then
  1401. if Debounces.CanAttack == true then
  1402. Debounces.CanAttack = false
  1403. Debounces.on = true
  1404. Debounces.NoIdl = true
  1405. for i = 1,20 do
  1406. 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)
  1407. 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)
  1408. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(0),0), 0.2)
  1409. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, .4) * CFrame.Angles(math.rad(-20), math.rad(0), 0), 0.2)
  1410. 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)
  1411. 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)
  1412. if Debounces.on==false then break end
  1413. rs:wait(2)
  1414. end
  1415. for i = 1,20 do
  1416. 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)
  1417. 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)
  1418. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-20),math.rad(0),0), 0.2)
  1419. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, -.4) * CFrame.Angles(math.rad(20), math.rad(0), 0), 0.2)
  1420. 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)
  1421. 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)
  1422. if Debounces.on==false then break end
  1423. rs:wait(2)
  1424. end
  1425. if Debounces.CanAttack == false then
  1426. Debounces.CanAttack = true
  1427. Debounces.on = false
  1428. Debounces.NoIdl = false
  1429. end
  1430. end
  1431. end
  1432. end)
  1433.  
  1434. -------------------------------
  1435. mouse.KeyDown:connect(function(key)
  1436. if key == "g" then
  1437. if Debounces.CanAttack == true then
  1438. Debounces.CanAttack = false
  1439. Debounces.NoIdl = true
  1440. Debounces.on = true
  1441. Debounces.Slashing = true
  1442. for i = 1, 8 do
  1443. 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)
  1444. 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)
  1445. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1446. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(0, 0, 0), 0.8)
  1447. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1448. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8)
  1449. if Debounces.on==false then break end
  1450. rs:wait(2)
  1451. end
  1452. for i = 1, 1440, 48 do
  1453. torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0))
  1454. rs:wait(4)
  1455. end
  1456. torso.Weld.C1 = CFrame.new(0, -1, 0)
  1457. Debounces.Slashing = false
  1458. if Debounces.CanAttack == false then
  1459. Debounces.CanAttack = true
  1460. Debounces.NoIdl = false
  1461. Debounces.on = false
  1462. end
  1463. end
  1464. end
  1465. end)
  1466. ----------------------------------------------------
  1467. mouse.KeyDown:connect(function(key)
  1468. if key == "-" then
  1469. bg:Remove()
  1470. if Debounces.CanJoke == true then
  1471. Debounces.CanJoke = false
  1472. z = Instance.new("Sound", workspace)
  1473. z.SoundId = "rbxassetid://197890111"
  1474. z.Pitch = 1
  1475. z.Volume = 1
  1476. z.Looped = true
  1477. wait()
  1478. z:Play()
  1479.  
  1480. rain = coroutine.create(function()
  1481. while wait(10 % 1 * 1e2) do
  1482. part = Instance.new("Part",workspace)
  1483. part.Name = "Mario"
  1484.  
  1485. mesh = Instance.new("SpecialMesh",part)
  1486.  
  1487. sound = Instance.new("Sound",workspace)
  1488.  
  1489. part.CanCollide = false
  1490. part.Size = Vector3.new(440,530,380)
  1491. part.Position = Vector3.new(math.random(-3000,1000),math.random(1,3000),math.random(-3000,3000))
  1492.  
  1493.  
  1494.  
  1495. mesh.MeshType = "FileMesh"
  1496. mesh.MeshId = "rbxassetid://521754610"
  1497. mesh.TextureId = "rbxassetid://521754612"
  1498. mesh.Scale = Vector3.new (150, 150, 150)
  1499. end
  1500. end)
  1501. coroutine.resume(rain)
  1502.  
  1503. chatServ:Chat(hed, "DUCKS", 0)
  1504. wait(2.8)
  1505. if Debounces.CanJoke == false then
  1506. Debounces.CanJoke = true
  1507. end
  1508. end
  1509. end
  1510. end)
  1511. --------------------------------------------------
  1512. Grab = false
  1513. mouse.KeyDown:connect(function(key)
  1514. if key == "z" then
  1515. Debounces.on = true
  1516. Debounces.NoIdl = true
  1517. Debounces.ks = true
  1518. if Grab == false then
  1519. gp = nil
  1520. for i = 1, 20 do
  1521. 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)
  1522. 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)
  1523. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(-70),0), 0.2)
  1524. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(70), 0), 0.2)
  1525. 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)
  1526. 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)
  1527. if Debounces.on == false then break end
  1528. rs:wait(2)
  1529. end
  1530. con1=larm.Touched:connect(function(hit) -- this is grab
  1531. ht = hit.Parent
  1532. hum1=ht:FindFirstChild('Humanoid')
  1533. if hum1 ~= nil then
  1534. if Debounces.ks==true then
  1535. z = Instance.new("Sound",hed)
  1536. z.SoundId = "rbxassetid://169380525"
  1537. z.Volume = 1
  1538. z:Play()
  1539. Debounces.ks=false
  1540. end
  1541. hum1.PlatformStand=true
  1542. gp = ht
  1543. Grab = true
  1544. asd=weld5(larm,ht:FindFirstChild("Torso"),CFrame.new(0,-1,1.5),CFrame.new(0,0,0))
  1545. asd.Parent = larm
  1546. asd.Name = "asd"
  1547. asd.C0=asd.C0*CFrame.Angles(math.rad(-90),math.rad(180),0)
  1548. stanceToggle = "Grabbed"
  1549. --[[elseif hum1 == nil then
  1550. con1:disconnect()
  1551. wait() return]]--
  1552. end
  1553. end)
  1554. for i = 1, 20 do
  1555. 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)
  1556. 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)
  1557. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-10),math.rad(30),0), 0.2)
  1558. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-30), 0), 0.2)
  1559. 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)
  1560. 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)
  1561. if Debounces.on == false then break end
  1562. rs:wait(2)
  1563. end
  1564. con1:disconnect()
  1565. Debounces.on = false
  1566. Debounces.NoIdl = false
  1567. elseif Grab == true then
  1568. Grab = false
  1569. --[[for i = 1, 16 do
  1570. 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)
  1571. 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)
  1572. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(14),math.rad(70),0), 0.3)
  1573. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1574. 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)
  1575. 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)
  1576. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(40), 0), 0.3)
  1577. if Debounces.on == false then end
  1578. rs:wait()
  1579. end]]--
  1580. for i = 1, 16 do
  1581. 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)
  1582. 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)
  1583. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(20),math.rad(-60),0), 0.3)
  1584. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(50), 0), 0.3)
  1585. 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)
  1586. 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)
  1587. if Debounces.on == false then end
  1588. rs:wait()
  1589. end
  1590. Slam()
  1591. if gp ~= nil then
  1592. for i,v in pairs(larm:GetChildren()) do
  1593. if v.Name == "asd" and v:IsA("Weld") then
  1594. v:Remove()
  1595. end
  1596. end
  1597. for i = 1, 16 do
  1598. 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)
  1599. 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)
  1600. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(20),0), 0.3)
  1601. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-60), math.rad(-30), 0), 0.3)
  1602. 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)
  1603. 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)
  1604. if Debounces.on == false then end
  1605. rs:wait()
  1606. end
  1607. stanceToggle = "Normal"
  1608. --[[bv = Instance.new("BodyVelocity",gp:FindFirstChild("Torso"))
  1609. bv.maxForce = Vector3.new(400000, 400000, 400000)
  1610. bv.P = 125000
  1611. bv.velocity = char.Head.CFrame.lookVector * 200]]--
  1612. ht=nil
  1613. Debounces.on = false
  1614. Debounces.NoIdl = false
  1615. elseif ht == nil then wait()
  1616. Grab = false
  1617. Debounces.on = false
  1618. Debounces.NoIdl = false
  1619. end
  1620. end
  1621. end
  1622. end)
  1623. -------------------------------
  1624. Sit = false
  1625. mouse.KeyDown:connect(function(key)
  1626. if key == "v" then
  1627. if Sit == false then
  1628. Sit = true
  1629. hum.WalkSpeed = 0.1
  1630. stanceToggle = "Sitting"
  1631. elseif Sit == true then
  1632. Sit = false
  1633. hum.WalkSpeed = 18
  1634. stanceToggle = "Normal"
  1635. end
  1636. end
  1637. end)
  1638. -------------------------------
  1639. Melee = false
  1640. mouse.KeyDown:connect(function(key)
  1641. if key == "m" then
  1642. if Melee == false then
  1643. Melee = true
  1644. Vanish()
  1645. stanceToggle = "Melee"
  1646. elseif Melee == true then
  1647. Melee = false
  1648. Appear()
  1649. stanceToggle = "Normal"
  1650. end
  1651. end
  1652. end)
  1653. -------------------------------
  1654. mouse.KeyDown:connect(function(key)
  1655. if key == "j" then
  1656. if Debounces.CanJoke == true then
  1657. Debounces.CanJoke = false
  1658. z = Instance.new("Sound", workspace)
  1659. z.SoundId = "rbxassetid://148493061"
  1660. z.Pitch = 1
  1661. z.Volume = 1
  1662. wait()
  1663. z:Play()
  1664. chatServ:Chat(hed, "HUR DUR DUR", 0)
  1665. wait(1.4)
  1666. chatServ:Chat(hed, "DUR HUR DURR", 0)
  1667. wait(1.4)
  1668. chatServ:Chat(hed, "HURRR DURRR DUR", 0)
  1669. wait(2)
  1670. chatServ:Chat(hed, "DUR DUR DUR", 0)
  1671. wait(2)
  1672. z:Destroy()
  1673. if Debounces.CanJoke == false then
  1674. Debounces.CanJoke = true
  1675. end
  1676. end
  1677. end
  1678. end)
  1679. -------------------------------
  1680. mouse.KeyDown:connect(function(key)
  1681. if key == "k" then
  1682. if Debounces.CanJoke == true then
  1683. Debounces.CanJoke = false
  1684. z = Instance.new("Sound",char)
  1685. z.SoundId = "rbxassetid://12222242"
  1686. chatServ:Chat(hed, "oouh", 0)
  1687. z.Pitch = 1
  1688. z.Volume = 1
  1689. wait()
  1690. z:Play()
  1691. wait(0.6)
  1692. z:Destroy()
  1693. if Debounces.CanJoke == false then
  1694. Debounces.CanJoke = true
  1695. end
  1696. end
  1697. end
  1698. end)
  1699. -------------------------------
  1700. mouse.KeyDown:connect(function(key)
  1701. if string.byte(key) == 52 then
  1702. if Debounces.CanAttack == true then
  1703. if stanceToggle ~= "Floating" then
  1704. char.Humanoid.WalkSpeed = 60
  1705. Burst()
  1706. elseif Debounces.CanAttack == false then
  1707. elseif stanceToggle == "Floating" then
  1708. wait()
  1709. end
  1710. end
  1711. end
  1712. end)
  1713. mouse.KeyUp:connect(function(key)
  1714. if string.byte(key) == 52 then
  1715. char.Humanoid.WalkSpeed = 9
  1716. end
  1717. end)
  1718. -------------------------------
  1719. local animpose = "Idle"
  1720. local lastanimpose = "Idle"
  1721. local grab = false
  1722. local sine = 0
  1723. local change = 1
  1724. local val = 0
  1725. local ffing = false
  1726. -------------------------------
  1727. --[[if stanceToggle == "Sitting" then
  1728. if wait(math.random(1,2)) == 1 then
  1729. stanceToggle = "Sitting2"
  1730. wait(8)
  1731. stanceToggle = "Sitting"
  1732. end
  1733. end]]--
  1734. -------------------------------
  1735. game:GetService("RunService").RenderStepped:connect(function()
  1736. --[[if char.Humanoid.Jump == true then
  1737. jump = true
  1738. else
  1739. jump = false
  1740. end]]
  1741. char.Humanoid.FreeFalling:connect(function(f)
  1742. if f then
  1743. ffing = true
  1744. else
  1745. ffing = false
  1746. end
  1747. end)
  1748. sine = sine + change
  1749. if jumpn == true then
  1750. animpose = "Jumping"
  1751. elseif ffing == true then
  1752. animpose = "Freefalling"
  1753. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1754. animpose = "Idle"
  1755. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1756. animpose = "Walking"
  1757. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1758. animpose = "Running"
  1759. end
  1760. if animpose ~= lastanimpose then
  1761. sine = 0
  1762. if Debounces.NoIdl == false then
  1763. if stanceToggle == "Normal" then
  1764. for i = 1, 2 do
  1765. 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)
  1766. 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)
  1767. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2)
  1768. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1769. 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)
  1770. 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)
  1771. cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3)
  1772. end
  1773. elseif stanceToggle == "Sitting" then
  1774. 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)
  1775. 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)
  1776. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1777. 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)
  1778. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
  1779. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
  1780. elseif stanceToggle == "Floating" then
  1781. 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)
  1782. 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)
  1783. 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)
  1784. 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)
  1785. 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)
  1786. 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)
  1787. wait()
  1788. end
  1789. else
  1790. end
  1791. end
  1792. lastanimpose = animpose
  1793. if Debounces.NoIdl == false then
  1794. if animpose == "Idle" then
  1795. if stanceToggle == "Normal" then
  1796. change = 0.5
  1797. 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)
  1798. 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)
  1799. 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)
  1800. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2)
  1801. 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)
  1802. 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)
  1803. elseif stanceToggle == "Melee" then
  1804. 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)
  1805. 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)
  1806. 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)
  1807. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1808. 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)
  1809. 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)
  1810. elseif stanceToggle == "Sitting" then
  1811. 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)
  1812. 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)
  1813. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.3)
  1814. 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)
  1815. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -1) * CFrame.Angles(math.rad(-6), 0, 0), 0.3)
  1816. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-56), 0, 0), 0.3)
  1817. elseif stanceToggle == "Floating" then
  1818. 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)
  1819. 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)
  1820. 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)
  1821. 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)
  1822. 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)
  1823. 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)
  1824. elseif stanceToggle == "Grabbed" then
  1825. grab = true
  1826. 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)
  1827. 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)
  1828. 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)
  1829. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-70), 0), 0.3)
  1830. 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)
  1831. 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)
  1832. end
  1833. elseif animpose == "Walking" then
  1834. if stanceToggle == "Normal" then
  1835. change = 1
  1836. 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)
  1837. 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)
  1838. 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)
  1839. 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)
  1840. 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)
  1841. 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)
  1842. elseif stanceToggle == "Melee" then
  1843. 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)
  1844. 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)
  1845. 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)
  1846. 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)
  1847. 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)
  1848. 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)
  1849. elseif stanceToggle == "Floating" then
  1850. 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)
  1851. 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)
  1852. 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)
  1853. 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)
  1854. 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)
  1855. 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)
  1856. elseif stanceToggle == "Grabbed" then
  1857. 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)
  1858. 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)
  1859. 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)
  1860. 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)
  1861. 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)
  1862. 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)
  1863. end
  1864. elseif animpose == "Running" then
  1865. if stanceToggle == "Normal" then
  1866. change = 1
  1867. 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)
  1868. 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)
  1869. 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)
  1870. 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)
  1871. 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)
  1872. 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)
  1873. elseif stanceToggle == "Floating" then
  1874. 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)
  1875. 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)
  1876. hed.Weld.C0 = CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0)
  1877. 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)
  1878. 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)
  1879. 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)
  1880. end
  1881. end
  1882. end
  1883. end)
  1884.  
  1885. Spawn(function()
  1886. while wait() do
  1887. updateFly()
  1888. end
  1889. end)
  1890.  
  1891. Spawn(function()
  1892. while wait(.1) do
  1893. Magik()
  1894. end
  1895. end)
  1896.  
  1897. Spawn(function()
  1898. while wait(.1) do
  1899. Magik2()
  1900. end
  1901. end)
  1902.  
  1903. Spawn(function()
  1904. while wait(4) do
  1905. GroundWave()
  1906. end
  1907. end)
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917. pcall(function() workspace["castle"]:remove() end)
  1918. workspac = Instance.new("Model")
  1919. workspac.Parent = workspace
  1920. workspac.Name = "castle"
  1921. script.Parent = workspac
  1922. doing = false
  1923. closed = true
  1924. function new(part, x, y, z, xx, yy, zz, parent, color)
  1925. local brick = part
  1926. brick.formFactor = "Custom"
  1927. brick:BreakJoints()
  1928. brick.Anchored = true
  1929. brick.CanCollide = true
  1930. brick.Size = Vector3.new(x, y, z)
  1931. brick.Parent = parent
  1932. brick.CFrame = CFrame.new(xx, yy, zz)
  1933. brick.BrickColor = BrickColor.new(color)
  1934. return brick
  1935. end
  1936. b = Instance.new("Part")
  1937. new(b, 5, 25, 35, 35, 12.5, 0, workspac, "Dark grey")
  1938. b = Instance.new("Part")
  1939. new(b, 5, 25, 35, 35, 12.5, 55, workspac, "Dark grey")
  1940. b = Instance.new("Part")
  1941. new(b, 70, 25, 5, 67.5, 12.5, 75, workspac, "Dark grey")
  1942. b = Instance.new("Part")
  1943. new(b, 70, 25, 5, 67.5, 12.5, -20, workspac, "Dark grey")
  1944. b = Instance.new("Part")
  1945. new(b, 5, 25, 91, 100, 12.5, 27.5, workspac, "Dark grey")
  1946. bu1 = Instance.new("Part")
  1947. bu1.Name = "Button1"
  1948. new(bu1, 2, 2, 2, 39, 1, 16, workspac, "Bright green")
  1949. c1 = Instance.new("ClickDetector", bu1)
  1950. bu2 = Instance.new("Part")
  1951. bu2.Name = "Button2"
  1952. c2 = Instance.new("ClickDetector", bu2)
  1953. new(bu2, 2, 2, 2, 39, 1, 13, workspac, "Bright red")
  1954. for i = 0, 19, 1 do
  1955. local g = Instance.new("Part")
  1956. new(g, 1, 25, 1, 35, 12.5, 18, workspac, "Dark grey")
  1957. g.Name = "g" ..i.. ""
  1958. g.CFrame = g.CFrame + Vector3.new(0, 0, i)
  1959. wait()
  1960. end
  1961. function gate()
  1962. for _, v in pairs(workspac:GetChildren()) do
  1963. if v.Name ~= "g" then
  1964. print("open")
  1965. v.Transparency = 1
  1966. v.CanCollide = false
  1967. else
  1968. print("NO")
  1969. end
  1970. end
  1971. end
  1972. function gatec()
  1973. for _, v in pairs(workspac:GetChildren()) do
  1974. for i = 1, 19 do
  1975. if v.Name ~= "g" then
  1976. v.Transparency = 1
  1977. v.CanCollide = true
  1978. end
  1979. end
  1980. end
  1981. end
  1982. c1.Clicked:connect(gate)
  1983. c2.Clicked:connect(gatec)
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992. --Edited by 1x0x1x0--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement