Advertisement
Guest User

sdfsfdsfdsf

a guest
Dec 22nd, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 174.44 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local On = Instance.new("Frame")
  6. local OnButton = Instance.new("TextButton")
  7. local Scriptthing = Instance.new("Frame")
  8. local XScriptes = Instance.new("TextButton")
  9. local Label = Instance.new("TextLabel")
  10. local Hilton = Instance.new("TextButton")
  11. local Tec9 = Instance.new("TextButton")
  12. local Claws = Instance.new("TextButton")
  13. local TextLabel = Instance.new("TextLabel")
  14. local Off = Instance.new("TextButton")
  15. --Properties:
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18. On.Name = "On"
  19. On.Parent = ScreenGui
  20. On.Active = true
  21. On.BackgroundColor3 = Color3.new(1, 1, 1)
  22. On.BackgroundTransparency = 0.69999998807907
  23. On.Position = UDim2.new(0.889908254, 0, 0.946012259, 0)
  24. On.Size = UDim2.new(0, 144, 0, 44)
  25.  
  26. OnButton.Name = "OnButton"
  27. OnButton.Parent = On
  28. OnButton.BackgroundColor3 = Color3.new(1, 1, 1)
  29. OnButton.BackgroundTransparency = 1
  30. OnButton.Position = UDim2.new(0.104103088, 0, 0.218710899, 0)
  31. OnButton.Size = UDim2.new(0, 129, 0, 34)
  32. OnButton.Font = Enum.Font.SourceSans
  33. OnButton.Text = "On"
  34. OnButton.TextColor3 = Color3.new(0, 0, 0)
  35. OnButton.TextSize = 14
  36.  
  37. OnButton.MouseButton1Down:connect(function()
  38.  
  39.  
  40. Scriptthing.Visible = true
  41. On.Visible = false
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. end)
  49.  
  50. Scriptthing.Name = "Scriptthing"
  51. Scriptthing.Parent = ScreenGui
  52. Scriptthing.Active = true
  53. Scriptthing.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Scriptthing.BorderSizePixel = 4
  55. Scriptthing.Position = UDim2.new(0.477064222, 0, 0.299386501, 0)
  56. Scriptthing.Size = UDim2.new(0, 476, 0, 501)
  57. Scriptthing.Visible = false
  58.  
  59. XScriptes.Name = "XScriptes"
  60. XScriptes.Parent = Scriptthing
  61. XScriptes.BackgroundColor3 = Color3.new(1, 1, 1)
  62. XScriptes.Position = UDim2.new(0.0315126069, 0, 0.0698602721, 0)
  63. XScriptes.Size = UDim2.new(0, 200, 0, 50)
  64. XScriptes.Font = Enum.Font.SourceSans
  65. XScriptes.Text = "XScriptes Fe Gui"
  66. XScriptes.TextColor3 = Color3.new(0, 0, 0)
  67. XScriptes.TextSize = 33
  68.  
  69. XScriptes.MouseButton1Down:connect(function()
  70.  
  71.  
  72.  
  73.  
  74. loadstring(game:GetObjects("rbxassetid://01274235417")[1].Source)()
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82. end)
  83.  
  84. Label.Name = "Label"
  85. Label.Parent = Scriptthing
  86. Label.BackgroundColor3 = Color3.new(1, 1, 1)
  87. Label.BorderSizePixel = 2
  88. Label.Position = UDim2.new(0, 0, -0.0998004004, 0)
  89. Label.Size = UDim2.new(0, 476, 0, 50)
  90. Label.Font = Enum.Font.SciFi
  91. Label.Text = "Sonia_cupid's werid people script hub"
  92. Label.TextColor3 = Color3.new(0, 0, 0)
  93. Label.TextSize = 23
  94.  
  95. Hilton.Name = "Hilton"
  96. Hilton.Parent = Scriptthing
  97. Hilton.BackgroundColor3 = Color3.new(1, 1, 1)
  98. Hilton.BorderSizePixel = 2
  99. Hilton.Position = UDim2.new(0.506302536, 0, 0.0698602796, 0)
  100. Hilton.Size = UDim2.new(0, 200, 0, 50)
  101. Hilton.Font = Enum.Font.SourceSans
  102. Hilton.Text = "Fuck Hilton Hotels"
  103. Hilton.TextColor3 = Color3.new(0, 0, 0)
  104. Hilton.TextSize = 30
  105.  
  106. Hilton.MouseButton1Down:connect(function()
  107.  
  108.  
  109.  
  110. -- Objects
  111.  
  112. local FHH = Instance.new("ScreenGui")
  113. local main = Instance.new("Frame")
  114. local title = Instance.new("TextLabel")
  115. local main2 = Instance.new("Frame")
  116. local handcuff = Instance.new("TextButton")
  117. local gamepass = Instance.new("TextButton")
  118. local inviswalls = Instance.new("TextButton")
  119. local roomdoors = Instance.new("TextButton")
  120. local fly = Instance.new("TextButton")
  121. local TextLabel = Instance.new("TextLabel")
  122. local noclip = Instance.new("TextButton")
  123.  
  124. -- Properties
  125.  
  126. FHH.Name = "FHH"
  127. FHH.Parent = game.CoreGui
  128.  
  129. main.Name = "main"
  130. main.Parent = FHH
  131. main.Active = true
  132. main.BackgroundColor3 = Color3.new(0.666667, 0, 0)
  133. main.BackgroundTransparency = 0.5
  134. main.Draggable = true
  135. main.Position = UDim2.new(0.0468846373, 0, 0.183374077, 0)
  136. main.Size = UDim2.new(0, 297, 0, 384)
  137.  
  138. title.Name = "title"
  139. title.Parent = main
  140. title.BackgroundColor3 = Color3.new(1, 0, 0)
  141. title.BackgroundTransparency = 1
  142. title.BorderSizePixel = 0
  143. title.Size = UDim2.new(0, 297, 0, 50)
  144. title.Font = Enum.Font.SourceSansLight
  145. title.FontSize = Enum.FontSize.Size14
  146. title.Text = "Fuck Hilton Hotel"
  147. title.TextColor3 = Color3.new(1, 1, 1)
  148. title.TextScaled = true
  149. title.TextSize = 14
  150. title.TextWrapped = true
  151.  
  152. main2.Name = "main2"
  153. main2.Parent = main
  154. main2.BackgroundColor3 = Color3.new(1, 0.333333, 0)
  155. main2.BackgroundTransparency = 0.69999998807907
  156. main2.Position = UDim2.new(0, 0, 0.130208328, 0)
  157. main2.Size = UDim2.new(0, 297, 0, 334)
  158.  
  159. handcuff.Name = "handcuff"
  160. handcuff.Parent = main2
  161. handcuff.BackgroundColor3 = Color3.new(1, 1, 1)
  162. handcuff.BackgroundTransparency = 0.5
  163. handcuff.Size = UDim2.new(0, 297, 0, 50)
  164. handcuff.Font = Enum.Font.SourceSansLight
  165. handcuff.FontSize = Enum.FontSize.Size14
  166. handcuff.Text = "Handcuff Bypass"
  167. handcuff.TextScaled = true
  168. handcuff.TextSize = 14
  169. handcuff.TextWrapped = true
  170.  
  171. gamepass.Name = "gamepass"
  172. gamepass.Parent = main2
  173. gamepass.BackgroundColor3 = Color3.new(1, 1, 1)
  174. gamepass.BackgroundTransparency = 0.5
  175. gamepass.Position = UDim2.new(0, 0, 0.149700597, 0)
  176. gamepass.Size = UDim2.new(0, 297, 0, 50)
  177. gamepass.Font = Enum.Font.SourceSansLight
  178. gamepass.FontSize = Enum.FontSize.Size14
  179. gamepass.Text = "Remove Gamepass Doors"
  180. gamepass.TextScaled = true
  181. gamepass.TextSize = 14
  182. gamepass.TextWrapped = true
  183.  
  184. inviswalls.Name = "inviswalls"
  185. inviswalls.Parent = main2
  186. inviswalls.BackgroundColor3 = Color3.new(1, 1, 1)
  187. inviswalls.BackgroundTransparency = 0.5
  188. inviswalls.Position = UDim2.new(0, 0, 0.299401194, 0)
  189. inviswalls.Size = UDim2.new(0, 297, 0, 50)
  190. inviswalls.Font = Enum.Font.SourceSansLight
  191. inviswalls.FontSize = Enum.FontSize.Size14
  192. inviswalls.Text = "Remove Invisible Walls"
  193. inviswalls.TextScaled = true
  194. inviswalls.TextSize = 14
  195. inviswalls.TextWrapped = true
  196.  
  197. roomdoors.Name = "roomdoors"
  198. roomdoors.Parent = main2
  199. roomdoors.BackgroundColor3 = Color3.new(1, 1, 1)
  200. roomdoors.BackgroundTransparency = 0.5
  201. roomdoors.Position = UDim2.new(0, 0, 0.449101806, 0)
  202. roomdoors.Size = UDim2.new(0, 297, 0, 50)
  203. roomdoors.Font = Enum.Font.SourceSansLight
  204. roomdoors.FontSize = Enum.FontSize.Size14
  205. roomdoors.Text = "Remove all room doors."
  206. roomdoors.TextScaled = true
  207. roomdoors.TextSize = 14
  208. roomdoors.TextWrapped = true
  209.  
  210. fly.Name = "fly"
  211. fly.Parent = main2
  212. fly.BackgroundColor3 = Color3.new(1, 1, 1)
  213. fly.BackgroundTransparency = 0.5
  214. fly.Position = UDim2.new(0, 0, 0.598802388, 0)
  215. fly.Size = UDim2.new(0, 297, 0, 50)
  216. fly.Font = Enum.Font.SourceSansLight
  217. fly.FontSize = Enum.FontSize.Size14
  218. fly.Text = "Fly (Toggle: E)"
  219. fly.TextScaled = true
  220. fly.TextSize = 14
  221. fly.TextWrapped = true
  222.  
  223. TextLabel.Parent = main2
  224. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  225. TextLabel.BackgroundTransparency = 1
  226. TextLabel.Position = UDim2.new(0, 0, 0.901197612, 0)
  227. TextLabel.Size = UDim2.new(0, 297, 0, 33)
  228. TextLabel.Font = Enum.Font.SourceSansLight
  229. TextLabel.FontSize = Enum.FontSize.Size14
  230. TextLabel.Text = "Created by GtaMasterYT"
  231. TextLabel.TextScaled = true
  232. TextLabel.TextSize = 14
  233. TextLabel.TextWrapped = true
  234. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  235.  
  236. noclip.Name = "noclip"
  237. noclip.Parent = main2
  238. noclip.BackgroundColor3 = Color3.new(1, 1, 1)
  239. noclip.BackgroundTransparency = 0.5
  240. noclip.Position = UDim2.new(0, 0, 0.74850297, 0)
  241. noclip.Size = UDim2.new(0, 297, 0, 50)
  242. noclip.Font = Enum.Font.SourceSansLight
  243. noclip.FontSize = Enum.FontSize.Size14
  244. noclip.Text = "NoClip (Toggle: F)"
  245. noclip.TextScaled = true
  246. noclip.TextSize = 14
  247. noclip.TextWrapped = true
  248.  
  249. handcuff.MouseButton1Down:connect(function()
  250. local Playr = "LocalPlayer"
  251. local Anchored = false
  252.  
  253. if Anchored == true then
  254. local Anchored2 = false
  255. else
  256. local Anchored2 = true
  257. end
  258.  
  259. game.Players[Playr].Character["Head"].Anchored = Anchored
  260. game.Players[Playr].Character["Torso"].Anchored = Anchored
  261. game.Players[Playr].Character["Right Arm"].Anchored = Anchored
  262. game.Players[Playr].Character["Left Arm"].Anchored = Anchored
  263. game.Players[Playr].Character["Right Leg"].Anchored = Anchored
  264. game.Players[Playr].Character["Left Leg"].Anchored = Anchored
  265. wait(2)
  266. game.Players[Playr].Character["Head"].Anchored = Anchored2
  267. game.Players[Playr].Character["Torso"].Anchored = Anchored2
  268. game.Players[Playr].Character["Right Arm"].Anchored = Anchored2
  269. game.Players[Playr].Character["Left Arm"].Anchored = Anchored2
  270. game.Players[Playr].Character["Right Leg"].Anchored = Anchored2
  271. game.Players[Playr].Character["Left Leg"].Anchored = Anchored2
  272. end)
  273.  
  274. inviswalls.MouseButton1Down:connect(function()
  275. for i,v in pairs(game.Workspace:GetChildren()) do
  276. if v.Name == "GroupDoorArea" then
  277. v:Destroy()
  278. end
  279. end
  280. end)
  281. gamepass.MouseButton1Down:connect(function()
  282. while true do
  283. wait()
  284. game.Workspace.GamepassDoorArea:Destroy()
  285. end
  286. end)
  287. roomdoors.MouseButton1Down:connect(function()
  288. for i,v in pairs(game.Workspace:GetChildren()) do
  289. if v.Name == "SuiteRoom" or v.Name == "Room" then
  290. for a,b in pairs(v:GetChildren()) do
  291. if b.Name == "RoomDoor" then
  292. b:Destroy()
  293. end
  294. end
  295. end
  296. end
  297. end)
  298. fly.MouseButton1Down:connect(function()
  299. repeat wait()
  300. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  301. local mouse = game.Players.LocalPlayer:GetMouse()
  302. repeat wait() until mouse
  303. local plr = game.Players.LocalPlayer
  304. local torso = plr.Character.Torso
  305. local flying = true
  306. local deb = true
  307. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  308. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  309. local maxspeed = 50
  310. local speed = 0
  311.  
  312. function Fly()
  313. local bg = Instance.new("BodyGyro", torso)
  314. bg.P = 9e4
  315. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  316. bg.cframe = torso.CFrame
  317. local bv = Instance.new("BodyVelocity", torso)
  318. bv.velocity = Vector3.new(0,0.1,0)
  319. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  320. repeat wait()
  321. plr.Character.Humanoid.PlatformStand = true
  322. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  323. speed = speed+.5+(speed/maxspeed)
  324. if speed > maxspeed then
  325. speed = maxspeed
  326. end
  327. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  328. speed = speed-1
  329. if speed < 0 then
  330. speed = 0
  331. end
  332. end
  333. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  334. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  335. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  336. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  337. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  338. else
  339. bv.velocity = Vector3.new(0,0.1,0)
  340. end
  341. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  342. until not flying
  343. ctrl = {f = 0, b = 0, l = 0, r = 0}
  344. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  345. speed = 0
  346. bg:Destroy()
  347. bv:Destroy()
  348. plr.Character.Humanoid.PlatformStand = false
  349. end
  350. mouse.KeyDown:connect(function(key)
  351. if key:lower() == "e" then
  352. if flying then flying = false
  353. else
  354. flying = true
  355. Fly()
  356. end
  357. elseif key:lower() == "w" then
  358. ctrl.f = 1
  359. elseif key:lower() == "s" then
  360. ctrl.b = -1
  361. elseif key:lower() == "a" then
  362. ctrl.l = -1
  363. elseif key:lower() == "d" then
  364. ctrl.r = 1
  365. end
  366. end)
  367. mouse.KeyUp:connect(function(key)
  368. if key:lower() == "w" then
  369. ctrl.f = 0
  370. elseif key:lower() == "s" then
  371. ctrl.b = 0
  372. elseif key:lower() == "a" then
  373. ctrl.l = 0
  374. elseif key:lower() == "d" then
  375. ctrl.r = 0
  376. end
  377. end)
  378. Fly()
  379. end)
  380.  
  381. noclip.MouseButton1Down:connect(function()
  382. local noclip = false
  383. game:GetService('RunService').Stepped:connect(function()
  384. if noclip then
  385. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  386. end
  387. end)
  388.  
  389. local plr = game.Players.LocalPlayer
  390. local mouse = plr:GetMouse()
  391. mouse.KeyDown:connect(function(key)
  392. if key == 'f' then
  393. noclip = not noclip
  394. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  395. end
  396. end)
  397. end)
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404. end)
  405.  
  406. Tec9.Name = "Tec-9"
  407. Tec9.Parent = Scriptthing
  408. Tec9.BackgroundColor3 = Color3.new(1, 1, 1)
  409. Tec9.Position = UDim2.new(0.0315126069, 0, 0.219560876, 0)
  410. Tec9.Size = UDim2.new(0, 200, 0, 50)
  411. Tec9.Font = Enum.Font.SourceSans
  412. Tec9.Text = "(FD) TEC-9"
  413. Tec9.TextColor3 = Color3.new(0, 0, 0)
  414. Tec9.TextSize = 37
  415.  
  416. Tec9.MouseButton1Down:connect(function()
  417.  
  418.  
  419.  
  420. --[[
  421. Smith and Wesson M&P 45, chambered in .45 ACP ammunition.
  422. The standard magazine holds 10 rounds, although magazines that could hold 14 rounds were also made but looked incredibly stupid.
  423. Credit to litozinnamon for the crosshairs and bullethole decals. I used them without permission. Not like I asked him, anyhow.
  424. ]]
  425.  
  426. plr=game:service'Players'.LocalPlayer
  427. ch,char=plr.Character,plr.Character
  428. hum=ch.Humanoid
  429. tor,torso,rootpart,rj=ch.Torso,ch.Torso,ch.HumanoidRootPart,ch.HumanoidRootPart.RootJoint
  430. m,mouse=plr:GetMouse(),plr:GetMouse()
  431. cfn,ang,mr,int=CFrame.new,CFrame.Angles,math.rad,Instance.new
  432. bc=BrickColor.new
  433. head=ch.Head
  434. cam=workspace.CurrentCamera
  435.  
  436. rj.C0=cfn()
  437. rj.C1=cfn()
  438.  
  439. sheathed=false
  440. jammed=false
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452. local minimumsize = Vector3.new(0.7,0.7,0.7) --Minimumsize for a part to get divided,higher numbers = less detailed and bigger/less bricks
  453. local surface_between_splitted_parts = 'SmoothNoOutlines' --the surface between splitted parts
  454. --local fragmented = workspace:FindFirstChild("Fragmented")
  455. local fragmentable = workspace --all fragmentable objects should be stored in here
  456. local list = {}
  457. local brickcount = 0
  458. --local m = Instance.new("Hint",workspace)
  459. local storage = {}
  460. local fillup = 1000 --it constantly generates new parts until it reaches this number(hacky way to prevent lagspikes if there is a large explosion),change it to 0 if you don´t want it to generate (useless) parts.
  461. local maximumstorage = 2000 --it will recycle parts if the number of parts in the storage doesnt exceed this number
  462. local storage_position = Vector3.new(0,0,5000) --place them somewhere off the map
  463. local stored_partsize = Vector3.new(1,1,1) --make them small
  464. local parts_created_per_frame = 5 --number of parts being created per frame to fill up the storage
  465.  
  466.  
  467. function fragmentate(cframe,size,color,explosion_position,explosion_blastradius,backsurface,bottomsurface,frontsurface,leftsurface,rightsurface,topsurface,transparency,reflectance)
  468. local xi = size.X >= minimumsize.X*(1+explosion_blastradius/16) and 2 or 1 --to reduce the lagg in large explosions we increase minimumsize based on the explosionradius...
  469. local yi = size.Y >= minimumsize.Y*(1+explosion_blastradius/16) and 2 or 1
  470. local zi = size.Z >= minimumsize.Z*(1+explosion_blastradius/16) and 2 or 1
  471. if xi == 1 and yi == 1 and zi == 1 or (cframe.p-explosion_position).magnitude > size.magnitude/2 + explosion_blastradius then --don´t fragmentate parts, that are too small to fragmentate or too far away from the explosion
  472. if xi == 1 and yi == 1 and zi == 1 then return end --optional
  473. if #storage > 0 then
  474. local p = storage[1]
  475. p.BrickColor = color
  476. p.Size = size
  477. p.BackSurface = backsurface
  478. p.BottomSurface = bottomsurface
  479. p.FrontSurface = frontsurface
  480. p.LeftSurface = leftsurface
  481. p.RightSurface = rightsurface
  482. p.TopSurface = topsurface
  483. p.Transparency = transparency
  484. p.CFrame = cframe
  485. p.Reflectance = reflectance
  486. table.remove(storage,1)
  487. else
  488. local p = Instance.new("Part",fragmentable)
  489. p.BrickColor = color
  490. p.FormFactor = "Custom"
  491. p.Size = size
  492. p.BackSurface = backsurface
  493. p.BottomSurface = bottomsurface
  494. p.FrontSurface = frontsurface
  495. p.LeftSurface = leftsurface
  496. p.RightSurface = rightsurface
  497. p.TopSurface = topsurface
  498. p.Transparency = transparency
  499. if p.Transparency>0.285 then
  500. p.Anchored = false
  501. else
  502. p.Anchored=true
  503. p.Material='Wood'
  504. end
  505. p.CFrame = cframe
  506. p.Reflectance = reflectance
  507. end
  508. --p:MakeJoints()
  509. -- m.Text = m.Text+1
  510. return --stop the function
  511. end
  512. local mody = math.random(-125,125)/1000 --some randomization
  513. for y = 1,yi do
  514. if math.random()> 0.5 then
  515. local modx = math.random(-125,125)/1000
  516. for x = 1,xi do
  517. local modz = math.random(-125,125)/1000
  518. for z = 1,zi do --offset = x/xi-0.75+modx)
  519. fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)), --maths
  520. Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y,
  521. zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z or agent767_was_here),color,explosion_position,explosion_blastradius,
  522. z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface,
  523. z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface,
  524. y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance)
  525. end
  526.  
  527. end
  528. else
  529. local modz = math.random(-125,125)/1000
  530. for z = 1,zi do
  531. local modx = math.random(-125,125)/1000
  532. for x = 1,xi do
  533. fragmentate(cframe*CFrame.new(size.X*(xi==1 and 0 or x/xi-0.75+modx),size.Y*(yi==1 and 0 or y/yi-0.75+mody),size.Z*(zi==1 and 0 or z/zi-0.75+modz)),
  534. Vector3.new(xi == 2 and size.X*(1-2*math.abs(x/xi-0.75+modx)) or size.X,yi == 2 and size.Y*(1-2*math.abs(y/yi-0.75+mody)) or size.Y,
  535. zi == 2 and size.Z*(1-2*math.abs(z/zi-0.75+modz)) or size.Z),color,explosion_position,explosion_blastradius,
  536. z~=zi and surface_between_splitted_parts or backsurface,y==2 and surface_between_splitted_parts or bottomsurface,
  537. z==2 and surface_between_splitted_parts or frontsurface,x==2 and surface_between_splitted_parts or leftsurface,x~=xi and surface_between_splitted_parts or rightsurface,
  538. y~=yi and surface_between_splitted_parts or topsurface,transparency,reflectance)
  539. end
  540. end
  541. end
  542. end
  543. end
  544.  
  545. function start_fragmentation(position,radius)
  546. local search = Region3.new(position-Vector3.new(radius,radius,radius)*1.1,position+Vector3.new(radius,radius,radius)*1.1)
  547. repeat
  548. local finish = false
  549. local parts = workspace:FindPartsInRegion3WithIgnoreList(search,list,100) --maximum number of parts that FindPartsInRegion3 can find is 100, so we have to do this to find them all
  550. for i = 1,#parts do
  551. table.insert(list,1,parts[i])
  552. end
  553. finish = true
  554. until #parts < 100 and finish
  555. print(#list)
  556. local t = tick()
  557. for i = 1,#list do
  558. local p = list[i]
  559. if p:IsDescendantOf(fragmentable) and p:GetMass()<3000 and p.Transparency>0.285 and p.Name~='Base' and p:IsDescendantOf(ch)==false then
  560. fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance)
  561. if #storage < maximumstorage and p.Shape == "Block" then --recycle them
  562. p.Anchored = false
  563. p.FormFactor = "Custom"
  564. p.Size = stored_partsize
  565. p.Position = storage_position
  566. table.insert(storage,1,p)
  567. else --storage is full
  568. p:Destroy()
  569. end
  570. -- m.Text = m.Text-1
  571. end
  572. if p:IsDescendantOf(fragmentable) and p:GetMass()<53000 and p.Transparency<0.05 and p.Name~='Base' and tostring(p.Material)=='Enum.Material.Wood' and p:IsDescendantOf(ch)==false then
  573. fragmentate(p.CFrame,p.Size,p.BrickColor,position,radius,p.BackSurface,p.BottomSurface,p.FrontSurface,p.LeftSurface,p.RightSurface,p.TopSurface,p.Transparency,p.Reflectance)
  574. if #storage < maximumstorage and p.Shape == "Block" then --recycle them
  575. p.Anchored = true
  576. p.Material='Wood'
  577. p.FormFactor = "Custom"
  578. p.Size = stored_partsize
  579. p.Position = storage_position
  580. table.insert(storage,1,p)
  581. else --storage is full
  582. p:Destroy()
  583. end
  584. -- m.Text = m.Text-1
  585. end
  586. end
  587. list = {}
  588. -- print(tick()-t)
  589. end
  590.  
  591. --[[
  592. spawn(function()
  593. while wait() do --oh noes,a loop! So inefficient!
  594. if #storage < fillup then
  595. for i = 1, parts_created_per_frame do --creates parts to fill up the storage
  596. local p = Instance.new("Part",fragmentable)
  597. p.Anchored = false
  598. p.FormFactor = "Custom"
  599. p.Size = stored_partsize
  600. p.Position = storage_position
  601. table.insert(storage,1,p)
  602. end
  603. end
  604. end
  605. end)
  606. ]]
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630. --local blankn=22416261
  631.  
  632. --172121567
  633.  
  634. crosshairs={
  635. {38140824};
  636. {38140833};
  637. {38140839};
  638. {38140843};
  639. {38140852};
  640. {38140910};
  641. {38140915};
  642. {38140923};
  643. {38140928};
  644. {38140931};
  645. {38208259};
  646. {38208275};
  647. {38208284};
  648. {38208303};
  649. {38208310};
  650. {38208325};
  651. {38208330};
  652. {38208352};
  653. {38208359};
  654. {38208377}
  655. }
  656.  
  657. bulletholes={
  658. 172274695;
  659. 172274721
  660. }
  661.  
  662. for _,v in pairs(crosshairs) do
  663. game:service'ContentProvider':Preload('rbxassetid://' .. tostring(v[1]-1))
  664. end
  665.  
  666. currentIco=2
  667. switchIco=function(num)
  668. if num<20 then
  669. else
  670. num=20
  671. end
  672. mouse.Icon='rbxassetid://' .. tostring(crosshairs[num][1]-1)
  673. currentIco=num
  674. end
  675.  
  676. switchIco(currentIco)
  677.  
  678. heldDown=false
  679.  
  680. spreadint=1
  681. --[[Settings]]--
  682. recoil=false -- Set to true for added realism
  683. magCapacity=20 -- How much a magazine can hold at once
  684. magAmmo=20 -- How much ammo is in the mag
  685. crosshairSpread=5
  686. spread=1
  687. pAmmunition=true -- more damage if true
  688.  
  689.  
  690. jamRate=500 -- How often the gun jams(the more the less) (no less than 1)
  691.  
  692. primaryColor='Really black'
  693. secondaryColor='Really black'
  694.  
  695. slideReflectance=0.01
  696. slideMaterial='Plastic'
  697.  
  698. --[[Attachments]]--
  699.  
  700. silencer=true
  701. highCapMag=false -- High capacity magazine
  702. laser=true
  703. automatic=false
  704. grip=true
  705.  
  706.  
  707. getSound=function(id)
  708. game:service'ContentProvider':Preload('rbxassetid'..tostring(id))
  709. local s=int("Sound",ch.Head)
  710. s.SoundId='rbxassetid://' .. tostring(id)
  711. s.Volume=1
  712. return s
  713. end
  714.  
  715. local fireSound=getSound(151997297--[[10209842]])
  716. fireSound.Pitch=1.3
  717. --1.8
  718.  
  719. local releaseSound=getSound(10209813)
  720. releaseSound.Pitch=4
  721.  
  722. local reloadSound=getSound(10209636)
  723. reloadSound.Pitch=3
  724.  
  725. local magazinelockSound=getSound(152206337)
  726. magazinelockSound.Pitch=1.4
  727.  
  728. local slideBackSound=getSound(152206263)
  729. slideBackSound.Pitch=2.5
  730.  
  731. local slideForwardSound=getSound(152206302)
  732. slideForwardSound.Pitch=2.5
  733.  
  734. local emptySound=getSound(2697295)
  735. emptySound.Pitch=5
  736.  
  737. local glassBreakSound=getSound(144884907)
  738.  
  739. local woodImpact=getSound(142082171)
  740.  
  741. local fleshImpact=getSound(144884872)
  742. fleshImpact.Pitch=1.7
  743.  
  744. if ch:findFirstChild("Tec-99") then
  745. ch['Tec-99']:Destroy()
  746. end
  747.  
  748. local tube=int("Model",ch)
  749. tube.Name='Tec-99'
  750. local hopper=Instance.new('HopperBin',plr.Backpack)
  751. hopper.Name=tube.Name
  752. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)--recommend to use this with my weld. use this function only with arm lockers.
  753. p0.Position = p1.Position
  754. local w = Instance.new('Motor',par or p0)
  755. w.Part0 = p1
  756. w.Part1 = p0
  757. w.C0 = CFrame.new(x or 0,y or 0,z or 0)*CFrame.Angles(rx or 0,ry or 0,rz or 0)
  758. w.MaxVelocity = .1
  759. return w
  760. end
  761. function clerp(c1,c2,sp)
  762. local R1,R2,R3 = c1:toEulerAnglesXYZ()
  763. local R21,R22,R23 = c2:toEulerAnglesXYZ()
  764. return CFrame.new(
  765. c1.X + (c2.X-c1.X)*sp,
  766. c1.Y + (c2.Y-c1.Y)*sp,
  767. c1.Z + (c2.Z-c1.Z)*sp)*CFrame.Angles(
  768. R1 + (R21-R1)*sp,
  769. R2 + (R22-R2)*sp,
  770. R3 + (R23-R3)*sp
  771. )
  772. end
  773.  
  774. tweenTable={}
  775. Tween = function(Weld, Stop, Step,a)
  776. ypcall(function()
  777. local func = function()
  778. local Start = Weld.C1
  779. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  780. local Stop = Stop
  781. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  782. if not Step then Step=0.1 end
  783. table.insert(tweenTable,{th=0,Weld=Weld,Step=Step,Start=Start,X1=X1,Y1=Y1,Z1=Z1,Stop=Stop,X2=X2,Y2=Y2,Z2=Z2})
  784. end
  785. if a then coroutine.wrap(func)() else func() end
  786. end)
  787. end
  788. weld=function(p0,p1,c0)
  789. local w=Instance.new("Weld",p0)
  790. w.Part0=p0
  791. w.Part1=p1
  792. w.C0=c0
  793. return w
  794. end
  795. cp=function(parent,color,size,anchored,cancollide)
  796. local newp=Instance.new("Part",parent)
  797. newp.TopSurface='SmoothNoOutlines'
  798. newp.BottomSurface='SmoothNoOutlines'
  799. newp.FrontSurface='SmoothNoOutlines'
  800. newp.BackSurface='SmoothNoOutlines'
  801. newp.RightSurface='SmoothNoOutlines'
  802. newp.LeftSurface='SmoothNoOutlines'
  803. newp.FormFactor="Custom"
  804. newp.BrickColor=bc(color)
  805. newp.Size=size
  806. newp.Anchored=anchored
  807. newp.CanCollide=cancollide
  808. newp:BreakJoints()
  809. return newp
  810. end
  811.  
  812. initializeJoints=function()
  813. rabr = cp(tube,'White',Vector3.new(1,1,1),false,false) rabr.Transparency = 1 rabr.Name='Locker'
  814. rabr.Position = torso.Position
  815. rw = Weld(rabr,torso,1.5,.5,0,0,0,0) rw.Parent = tube rw.Name = 'rw'
  816. w = Instance.new("Weld",tube)
  817. w.Part0,w.Part1 = ch['Right Arm'],rabr
  818. w.C1 = CFrame.new(0,-.5,0)
  819. labr = cp(tube,'White',Vector3.new(1,1,1),false,false) labr.Transparency = 1 labr.Name='Locker'
  820. labr.Position = torso.Position
  821. lw = Weld(labr,torso,-1.5,.5,0,0,0,0) lw.Parent = tube lw.Name = 'lw'
  822. ww = Instance.new("Weld",tube)
  823. ww.Part0,ww.Part1 = ch['Left Arm'],labr
  824. ww.C1 = CFrame.new(0,-.5,0)
  825. end
  826.  
  827. initializeJoints()
  828.  
  829. --[[ leg locks
  830. rabl = cp(tube,'White',Vector3.new(1,1,1),false,false) rabl.Transparency = 1 rabl.Name='Locker'
  831. rabl.Position = torso.Position
  832. rwl = Weld(rabl,torso,0.5,-1.5,0,0,0,0) rwl.Parent = tube rwl.Name = 'rwl'
  833. wl = Instance.new("Weld",tube)
  834. wl.Part0,wl.Part1 = ch['Right Leg'],rabl
  835. wl.C1 = CFrame.new(0,-.5,0)
  836. labl = cp(tube,'White',Vector3.new(1,1,1),false,false) labl.Transparency = 1 labl.Name='Locker'
  837. labl.Position = torso.Position
  838. lwl = Weld(labl,torso,-0.5,-1.5,0,0,0,0) lwl.Parent = tube lwl.Name = 'lwl'
  839. wwl = Instance.new("Weld",tube)
  840. wwl.Part0,wwl.Part1 = ch['Left Leg'],labl
  841. wwl.C1 = CFrame.new(0,-.5,0)
  842. ]]
  843. --weld(ch['HumanoidRootPart'],torso,cfn())
  844.  
  845.  
  846. local counter=Instance.new('ScreenGui',plr.PlayerGui)
  847. local frame=Instance.new('Frame',counter)
  848. frame.Size=UDim2.new(0.25,0,0.3,0)
  849.  
  850. frame.Position=UDim2.new(0.1,0,0.4,0)
  851. frame.BackgroundTransparency=1
  852.  
  853. local ammocounter=Instance.new('TextLabel',frame)
  854. ammocounter.Size=UDim2.new(1,0,0.3,0)
  855. ammocounter.Position=UDim2.new(0,0,0.2,0)
  856. ammocounter.BackgroundTransparency=1
  857. ammocounter.TextColor3=BrickColor.new('White').Color
  858. ammocounter.Font='SourceSansBold'
  859. ammocounter.FontSize='Size18'
  860. ammocounter.Text=''
  861. ammocounter.TextXAlignment='Left'
  862.  
  863.  
  864. local bg = Instance.new("BodyGyro",rootpart)
  865. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  866. bg.P = 10000
  867. bg.D = 100
  868.  
  869.  
  870. cyl=function(prt)
  871. local c=int("CylinderMesh",prt)
  872. return c
  873. end
  874. blo=function(prt)
  875. local c=int("BlockMesh",prt)
  876. return c
  877. end
  878.  
  879. if laser then
  880. aLaser=cp(tube,'Really red',Vector3.new(0.2,0.2,0.2))
  881. aLaser.Transparency=1
  882. cyl(aLaser).Scale=Vector3.new(0.25,1,0.25)
  883. aLaser.Anchored=true
  884. end
  885.  
  886. local handle=cp(tube,primaryColor,Vector3.new(0.2,0.6,0.3))
  887. blo(handle).Scale=Vector3.new(1.15,0.9,1)
  888. local mw=weld(ch['Right Arm'],handle,cfn(-0.4,-1,-0.19)*ang(mr(-101.5),0,0)*cfn()*ang(0,mr(-30),mr(-5)))
  889.  
  890. local framepiece1=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.9))
  891. blo(framepiece1).Scale=Vector3.new(1.15,0.5,1)
  892. weld(handle,framepiece1,cfn(0,0.354,-0.3)*ang(mr(11.5),0,0))
  893.  
  894. local barrel=cp(tube,'Medium stone grey',Vector3.new(0.2,0.2,0.2))
  895. cyl(barrel).Scale=Vector3.new(0.7,1.2,0.7)
  896. weld(framepiece1,barrel,cfn(0,0.15,-0.1)*ang(mr(-90),0,0))
  897.  
  898. local sbarrel=cp(tube,'Really black',Vector3.new(0.2,0.3,0.2))
  899. cyl(sbarrel).Scale=Vector3.new(0.7,1.5,0.7)
  900. weld(barrel,sbarrel,cfn(0,0.35,0))
  901. local hole=cp(tube,'White',Vector3.new(0.2,0.2,0.2))
  902. hole.Transparency=1
  903. weld(sbarrel,hole,cfn(0,0.2,0))
  904. local flash=int('PointLight',hole)
  905. flash.Enabled=false
  906. flash.Range=10
  907. flash.Color=BrickColor.new('Neon orange').Color
  908.  
  909.  
  910. local slide1=cp(tube,secondaryColor,Vector3.new(0.2,0.2,0.4))
  911. slide1.CanCollide=false
  912. blo(slide1).Scale=Vector3.new(0.7,1,1.1)
  913. slideweld1=weld(framepiece1,slide1,cfn(0,0.15,0.23))
  914. slide1.Reflectance=slideReflectance
  915. slide1.Material=slideMaterial
  916.  
  917. local slide2=cp(tube,secondaryColor,Vector3.new(0.2,0.2,0.4))
  918. slide2.CanCollide=false
  919. blo(slide2).Scale=Vector3.new(0.7,1,1.1)
  920. slideweld2=weld(slide1,slide2,cfn(0,0,-0.666))
  921. slide2.Reflectance=slideReflectance
  922. slide2.Material=slideMaterial
  923.  
  924. local slideside1=cp(tube,secondaryColor,Vector3.new(0.2,0.2,1.1))
  925. slideside1.CanCollide=true
  926. blo(slideside1).Scale=Vector3.new(0.25,1,1)
  927. weld(slide1,slideside1,cfn(-0.09,0,-0.335))
  928. slideside1.Reflectance=slideReflectance
  929. slideside1.Material=slideMaterial
  930.  
  931. local slideside2=cp(tube,secondaryColor, Vector3.new(0.2,0.2,0.4))
  932. slideside2.CanCollide=true
  933. blo(slideside2).Scale=Vector3.new(0.25,1,1.1)
  934. weld(slide1,slideside2,cfn(0.09,0,0))
  935. slideside2.Reflectance=slideReflectance
  936. slideside2.Material=slideMaterial
  937.  
  938. local slideside3=cp(tube,secondaryColor, Vector3.new(0.2,0.2,0.3))
  939. slideside3.CanCollide=true
  940. blo(slideside3).Scale=Vector3.new(0.25,0.6,0.78)
  941. weld(slideside2,slideside3,cfn(0,-0.04,-0.335))
  942. slideside3.Reflectance=slideReflectance
  943. slideside3.Material=slideMaterial
  944.  
  945. local slideside4=cp(tube,secondaryColor, Vector3.new(0.2,0.2,0.4))
  946. blo(slideside4).Scale=Vector3.new(0.25,1,1.1)
  947. weld(slide2,slideside4,cfn(0.09,0,0))
  948. slideside4.Reflectance=slideReflectance
  949. slideside4.Material=slideMaterial
  950.  
  951. local mgs=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.2))
  952. blo(mgs).Scale=Vector3.new(1.15,0.425,0.245)
  953. weld(handle,mgs,cfn(0,-0.3,0.125))
  954.  
  955. --[[Trigger]]--
  956. local tp1=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.2))
  957. blo(tp1).Scale=Vector3.new(0.6,0.1,0.8)
  958. weld(framepiece1,tp1,cfn(0,-0.22,0.13))
  959.  
  960. local tp2=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.2))
  961. blo(tp2).Scale=Vector3.new(0.6,0.1,1.19)
  962. weld(framepiece1,tp2,cfn(0,-0.14,-0.0265)*ang(mr(45),0,0))
  963.  
  964. local trigger1=cp(tube,'Really black',Vector3.new(0.2,0.2,0.2))
  965. blo(trigger1).Scale=Vector3.new(0.3,0.4,0.16)
  966. weld(framepiece1,trigger1,cfn(0,-0.07,0.09))
  967.  
  968. local trigger2=cp(tube,'Really black',Vector3.new(0.2,0.2,0.2))
  969. blo(trigger2).Scale=Vector3.new(0.3,0.3,0.16)
  970. weld(trigger1,trigger2,cfn(0,-0.06,-0.015)*ang(mr(30),0,0))
  971.  
  972.  
  973. --[[Magazine]]--
  974.  
  975. local magh=cp(tube,'Really black',Vector3.new(0.2,0.5,0.2))
  976. blo(magh).Scale=Vector3.new(0.6,1,1)
  977. local magweld=weld(handle,magh,cfn(0,-0.025,0))
  978.  
  979. local bottom=cp(tube,'Really black',Vector3.new(0.2,0.2,0.3))
  980. blo(bottom).Scale=Vector3.new(1.15,0.385,0.8)
  981. bottomweld=weld(magh,bottom,cfn(0,-0.28,-0.015))
  982.  
  983. if highCapMag then
  984. magweld:Destroy()
  985. magh.Size=Vector3.new(0.2,0.7,0.2)
  986. magweld=weld(handle,magh,cfn(0,-0.125,0))
  987. bottomweld:Destroy()
  988. bottomweld=weld(magh,bottom,cfn(0,-0.38,-0.015))
  989. magCapacity=magCapacity+23
  990. magAmmo=magAmmo+23
  991. end
  992.  
  993. --[[Sights]]--
  994. local backsight1=cp(tube,'Black',Vector3.new(0.2,0.2,0.2))
  995. blo(backsight1).Scale=Vector3.new(0.3,0.3,0.3)
  996. weld(slide1,backsight1,cfn(0.06,0.1,0.13))
  997. local backsight2=cp(tube,'Black',Vector3.new(0.2,0.2,0.2))
  998. blo(backsight2).Scale=Vector3.new(0.3,0.3,0.3)
  999. weld(slide1,backsight2,cfn(-0.06,0.1,0.13))
  1000.  
  1001. local frontsight=cp(tube,'Black',Vector3.new(0.2,0.2,0.2))
  1002. blo(frontsight).Scale=Vector3.new(0.3,0.3,0.3)
  1003. weld(slide1,frontsight,cfn(0,0.1,-0.85))
  1004.  
  1005. local dot1=cp(tube,'Lime green',Vector3.new(0.2,0.2,0.2))
  1006. cyl(dot1).Scale=Vector3.new(0.1,0.31,0.1)
  1007. weld(backsight1,dot1,cfn(0,0.014,0)*ang(mr(-90),0,0))
  1008.  
  1009. local dot2=cp(tube,'Lime green',Vector3.new(0.2,0.2,0.2))
  1010. cyl(dot2).Scale=Vector3.new(0.1,0.31,0.1)
  1011. weld(backsight2,dot2,cfn(0,0.014,0)*ang(mr(-90),0,0))
  1012.  
  1013. local dot3=cp(tube,'Lime green',Vector3.new(0.2,0.2,0.2))
  1014. cyl(dot3).Scale=Vector3.new(0.1,0.31,0.1)
  1015. weld(frontsight,dot3,cfn(0,0.014,0)*ang(mr(-90),0,0))
  1016.  
  1017. local ba=cp(tube,secondaryColor,Vector3.new(0.2,0.2,0.2))
  1018. blo(ba).Scale=Vector3.new(1.15,0.5,1)
  1019. weld(framepiece1,ba,cfn(0,0,-0.55))
  1020. ba.Reflectance=slideReflectance
  1021. ba.Material=slideMaterial
  1022.  
  1023. local weirdholethatpistolshave=cp(tube,'Really black', Vector3.new(0.2,0.2,0.2))
  1024. cyl(weirdholethatpistolshave).Scale=Vector3.new(0.4,1.01,0.4)
  1025. weld(ba,weirdholethatpistolshave,cfn(0,0,0)*ang(mr(-90),0,0))
  1026.  
  1027. --[[Tactical Rails]]--
  1028.  
  1029. local r1=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.2))
  1030. blo(r1).Scale=Vector3.new(1.15,0.2,0.25)
  1031. weld(framepiece1,r1,cfn(0,-0.05,-0.17))
  1032.  
  1033. local r2=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.2))
  1034. blo(r2).Scale=Vector3.new(1.15,0.2,0.25)
  1035. weld(framepiece1,r2,cfn(0,-0.05,-0.27))
  1036.  
  1037. local r3=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.2))
  1038. blo(r3).Scale=Vector3.new(1.15,0.2,0.25)
  1039. weld(framepiece1,r3,cfn(0,-0.05,-0.37))
  1040.  
  1041. if laser then
  1042. local base=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.3))
  1043. blo(base).Scale=Vector3.new(1.15,1,1)
  1044. weld(r2,base,cfn(0,-0.05,0))
  1045. basehole=cp(tube,'White',Vector3.new(0.2,0.2,0.2))
  1046. cyl(basehole).Scale=Vector3.new(0.4,0.4,0.4)
  1047. weld(base,basehole,cfn(0,0,-0.13)*ang(mr(-90),0,0))
  1048. end
  1049.  
  1050. if silencer then
  1051. local sil=cp(tube,'Really black',Vector3.new(0.2,0.3,0.2))
  1052. fireSound.SoundId='rbxassetid://153230595'
  1053. fireSound.Pitch=1
  1054. cyl(sil).Scale=Vector3.new(0.94,1.8,0.94)
  1055. weld(hole,sil,cfn(0,0.29,0))
  1056. end
  1057.  
  1058. if grip then
  1059. local base=cp(tube,primaryColor,Vector3.new(0.2,0.2,0.3))
  1060. blo(base).Scale=Vector3.new(1.15,1,1)
  1061. weld(r2,base,cfn(0,-0.05,0))
  1062. local hd=cp(tube,primaryColor,Vector3.new(0.2,0.6,0.2))
  1063. cyl(hd)
  1064. weld(base,hd,cfn(0,-0.3,0))
  1065. crosshairSpread=3
  1066. spreadint=spreadint-0.3
  1067. end
  1068.  
  1069. --[[Test Functions]]--
  1070.  
  1071. local debounce=false
  1072. local out=false
  1073. local bs=false
  1074. cockSlide=function() -- hahaha yes i know
  1075. slideBackSound:Play()
  1076. if magAmmo<1 and out==true and bs==false then
  1077. wait()
  1078. slideweld1.C0=slideweld1.C0*cfn(0,0,0.22)
  1079. else
  1080. for i=1,2 do
  1081. wait()
  1082. slideweld1.C0=slideweld1.C0*cfn(0,0,0.22)
  1083. end
  1084. end
  1085. local ajar=false
  1086. if magAmmo==1 then
  1087. ajar=true
  1088. end
  1089. if magAmmo>0 then
  1090. createShell()
  1091. --magAmmo=magAmmo-1
  1092. ammocounter.Text=''
  1093. for i=1,magAmmo do
  1094. ammocounter.Text=ammocounter.Text .. 'I'
  1095. end
  1096. end
  1097. wait(0.15)
  1098. slideForwardSound:Play()
  1099. for i=1,2 do
  1100. wait()
  1101. slideweld1.C0=slideweld1.C0*cfn(0,0,-0.22)
  1102. end
  1103. if ajar==true then
  1104. out=true
  1105. slideweld1.C0=cfn(0,0.15,0.23)
  1106. slideweld1.C0=slideweld1.C0*cfn(0,0,0.22)
  1107. end
  1108. end
  1109.  
  1110. --fx
  1111. local firefx=cp(tube,'Neon orange',Vector3.new(0.7,1.1,0.7))
  1112. firefx.Transparency=1
  1113. local mesh=Instance.new('SpecialMesh',firefx)
  1114. mesh.MeshType='Sphere'
  1115. firefx.Material='Neon'
  1116. weld(hole,firefx,cfn(0,1,0))
  1117.  
  1118. local smokefx=Instance.new('Smoke',hole)
  1119. smokefx.Enabled=false
  1120. barrel.CanCollide=true
  1121.  
  1122.  
  1123.  
  1124.  
  1125. local oc = oc or function(...) return ... end
  1126.  
  1127. function ragJoint(hit,r,d)
  1128. Spawn(oc(function()
  1129. d = d or 0
  1130. local rpar,r0,r1 = r.Parent,r.Part0,r.Part1
  1131. if d > 0 then wait(d) end
  1132. local p = hit:Clone()
  1133. p:BreakJoints()
  1134. p:ClearAllChildren()
  1135. p.FormFactor = "Custom"
  1136. p.Size = p.Size/2
  1137. p.Transparency = 1
  1138. p.CanCollide = true
  1139. p.Name = "Colliduh"
  1140. p.Parent = hit
  1141. local w = Instance.new("Weld",p)
  1142. w.Part0 = hit
  1143. w.Part1 = p
  1144. w.C0 = CFrame.new(0,-p.Size.Y/2,0)
  1145. local rot = Instance.new("Rotate",rpar)
  1146. rot.Name = r.Name
  1147. rot.Part0 = r0
  1148. rot.Part1 = r1
  1149. rot.C0 = r.C0
  1150. rot.C1 = r.C1
  1151. r0.Velocity = Vector3.new()
  1152. r1.Velocity = Vector3.new()
  1153. r:Destroy()
  1154. end))
  1155. end
  1156.  
  1157.  
  1158. createShell=function()
  1159. local shell=cp(tube,'Deep orange',Vector3.new(0.2,0.3,0.2))
  1160. shell.CanCollide=true
  1161. shell.Reflectance=0.3
  1162. cyl(shell)
  1163. shell.CFrame=barrel.CFrame*ang(mr(-90),0,0)
  1164. magAmmo=magAmmo-1
  1165. ammocounter.Text=''
  1166. for i=1,magAmmo do
  1167. ammocounter.Text=ammocounter.Text .. 'I'
  1168. end
  1169. game.Debris:AddItem(shell,3)
  1170. end
  1171.  
  1172. reloadPistol=function()
  1173. local current=magAmmo
  1174. Tween(lw,cfn())
  1175. Tween(rw,cfn()*ang(mr(-102),0,0))
  1176. wait(0.4)
  1177. releaseSound:Play()
  1178. bottom.Transparency=1
  1179. magh.Transparency=1
  1180. local mag1=magh:clone()
  1181. mag1.Transparency=0
  1182. mag1.Weld:Destroy''
  1183. local mag2=bottom:clone()
  1184. mag2.Transparency=0
  1185. mag1:BreakJoints''
  1186. mag2:BreakJoints''
  1187. local bm1=mag1:clone()
  1188. local bm2=mag2:clone()
  1189. mag1.Parent=tube
  1190. mag2.Parent=tube
  1191. mag1.CFrame=magh.CFrame
  1192. weld(mag1,mag2,cfn(0,-0.28,-0.015))
  1193. magAmmo=0
  1194. ammocounter.Text=''
  1195. for i=1,magAmmo do
  1196. ammocounter.Text=ammocounter.Text .. 'I'
  1197. end
  1198. wait()
  1199. mag1.CanCollide=true
  1200. mag2.CanCollide=true
  1201. game.Debris:AddItem(mag1,2)
  1202. game.Debris:AddItem(mag2,2)
  1203. wait(0.1)
  1204. Tween(lw,cfn()*ang(mr(25),0,0))
  1205. bm1.Parent=tube
  1206. bm2.Parent=tube
  1207. weld(bm1,bm2,cfn(0,-0.28,-0.015))
  1208. local fa=weld(ch['Left Arm'],bm1,cfn(0,-1.1,0)*ang(mr(-90),0,0))
  1209. wait(0.1)
  1210. Tween(lw,cfn(0,1.4,0)*ang(mr(-109),mr(60),mr(10)),0.07)
  1211. wait(0.25)
  1212. magazinelockSound:Play()
  1213. wait()
  1214. -- reloadSound:Play()
  1215. fa:Destroy''
  1216. bm1:Destroy''
  1217. bm2:Destroy''
  1218. bottom.Transparency=0
  1219. magh.Transparency=0
  1220. local totalcap=0
  1221. if current<1 then --none in chamber reload
  1222. --slideweld1.C0=cfn(0,0,0.45)
  1223. Tween(rw,cfn(0,0.7,0)*ang(mr(-90),mr(-30),0))
  1224. Tween(lw,cfn(0,0.7,0)*ang(mr(-115),mr(35),0))
  1225. wait(0.1)
  1226. spawn(function()
  1227. cockSlide()
  1228. end)
  1229. Tween(lw,cfn(0,0.7,0)*ang(mr(-115),mr(55),0))
  1230. wait(0.3)
  1231. totalcap=magCapacity
  1232. else
  1233. totalcap=magCapacity+1
  1234. end
  1235. magAmmo=totalcap
  1236. out=false
  1237. ammocounter.Text=''
  1238. for i=1,magAmmo do
  1239. ammocounter.Text=ammocounter.Text .. 'I'
  1240. end
  1241. restorePosition()
  1242. end
  1243.  
  1244. firePistol=function()
  1245. switchIco(currentIco+crosshairSpread)
  1246. if not jammed and not out then
  1247. spread=spread+spreadint
  1248. end
  1249. print(spread)
  1250. fireSound.Pitch=math.random(math.random(fireSound.Pitch-0.2,fireSound.Pitch-0.1),math.random(fireSound.Pitch,fireSound.Pitch+0.1))
  1251. if magAmmo>0 and jammed==false then
  1252. local ajar=false
  1253. if magAmmo==1 then
  1254. ajar=true
  1255. end
  1256. user=ch
  1257. local ray = Ray.new(hole.CFrame.p, ((m.Hit.p+Vector3.new(math.random(-spread,spread)/6.35,math.random(-spread,spread)/6.35,math.random(-spread,spread)/6.35) )- hole.CFrame.p).unit*300)
  1258. local hit, position = game.Workspace:FindPartOnRay(ray, user)
  1259. if hit then
  1260. if hit.Transparency>0.285 and hit:GetMass()<3000 and hit.Parent.className~='Hat' then
  1261. local temps=glassBreakSound:clone()
  1262. temps.Parent=hit
  1263. temps.Pitch=math.random(math.random(temps.Pitch-0.2,temps.Pitch-0.1),math.random(temps.Pitch,temps.Pitch+0.1))
  1264. temps:Play''
  1265. start_fragmentation(position,.25)
  1266. end
  1267. if tostring(hit.Material)=='Enum.Material.Wood' and hit.Transparency<0.05 then
  1268. local temps=woodImpact:clone()
  1269. temps.Volume=1
  1270. temps.Pitch=math.random(math.random(temps.Pitch-0.2,temps.Pitch-0.1),math.random(temps.Pitch,temps.Pitch+0.1))
  1271. temps.Parent=hit
  1272. temps:Play''
  1273. start_fragmentation(position,.15)
  1274. end
  1275. ypcall(function()
  1276. if hit and hit.Parent and hit.Parent:findFirstChild'Humanoid' then
  1277. local temps=fleshImpact:clone()
  1278. temps.Parent=hit
  1279. temps:Play()
  1280. if hit.Name~='Head' then
  1281. if pAmmunition==true then
  1282. hit.Parent.Humanoid:TakeDamage(math.random(30,65))
  1283. else
  1284. hit.Parent.Humanoid:TakeDamage(math.random(10,24))
  1285. end
  1286. local guy=hit.Parent
  1287. if guy.Name~='TheDarkRevenant' then
  1288. for i,v in pairs(guy:GetChildren()) do
  1289. if v.className=='Hat' then
  1290. v.Handle:BreakJoints()
  1291. end
  1292. local r = guy.Torso:FindFirstChild(v.Name:gsub("Arm","Shoulder"):gsub("Leg","Hip"))
  1293. if v:IsA("BasePart") and r then
  1294. ragJoint(v,r,.1)
  1295. elseif v:IsA("Humanoid") then
  1296. spawn(function()
  1297. wait(0.5)
  1298. v.PlatformStand = true
  1299. v.Changed:connect(function()
  1300. v.PlatformStand = true
  1301. end)
  1302. end)
  1303. end
  1304. end
  1305. end
  1306.  
  1307. else
  1308. if hit.Parent.Name~='TheDarkRevenant' then
  1309. hit.Parent:BreakJoints()
  1310. end
  1311. end
  1312. end
  1313.  
  1314. if hit.Parent.className=='Hat' then
  1315. hit.CanCollide=true
  1316. hit:BreakJoints()
  1317. hit.Velocity=m.Hit.p*5
  1318. end
  1319. end)
  1320. end
  1321. if m.Target then
  1322. local p = Instance.new("Part")
  1323. p.formFactor = "Custom"
  1324. p.Size = Vector3.new(0.5,0.5,0.5)
  1325. p.Transparency = 1
  1326. p.CanCollide = false
  1327. p.Locked = true
  1328. p.CFrame = CFrame.new(position.x,position.y,position.z)--mouse.Target.CFrame+(mouse.Hit.p-mouse.Target.Position)
  1329. local w = Instance.new("Weld")
  1330. w.Part0 = mouse.Target
  1331. w.Part1 = p
  1332. w.C0 = mouse.Target.CFrame:inverse()
  1333. w.C1 = p.CFrame:inverse()
  1334. w.Parent = p
  1335. local d = Instance.new("Decal")
  1336. d.Parent = p
  1337. d.Face = mouse.TargetSurface
  1338. d.Texture = 'rbxassetid://' .. tostring(bulletholes[math.random(#bulletholes)]-2)
  1339. p.Parent = tube
  1340. game.Debris:AddItem(p,6)
  1341. end
  1342. if recoil==true then
  1343. cam:SetRoll(math.random(-2,2))
  1344. cam:TiltUnits(0.501)
  1345. end
  1346. local th=cp(tube,"Really black",Vector3.new(1,1,1))
  1347. th.CanCollide=false
  1348. th.Anchored=true
  1349. th.CFrame=CFrame.new(position.x,position.y,position.z)
  1350. local spm=Instance.new('SpecialMesh',th)
  1351. spm.MeshType='Sphere'
  1352. spm.Scale=Vector3.new(0.05,0.05,0.05)
  1353. spawn(function()
  1354. for i=1,5 do
  1355. wait()
  1356. spm.Scale=spm.Scale+Vector3.new(0.16,0.16,0.16)
  1357. th.Transparency=th.Transparency+0.2
  1358. end
  1359. th:Destroy()
  1360. end)
  1361. fireSound:Play()
  1362. spawn(function()
  1363. firefx.Transparency=0
  1364. wait()
  1365. firefx.Transparency=1
  1366. end)
  1367. spawn(function()
  1368. flash.Enabled=true
  1369. for i=1,2 do
  1370. wait()
  1371. slideweld1.C0=slideweld1.C0*cfn(0,0,0.22)
  1372. end
  1373. flash.Enabled=false
  1374. createShell()
  1375. for i=1,2 do
  1376. wait()
  1377. slideweld1.C0=slideweld1.C0*cfn(0,0,-0.22)
  1378. end
  1379. slideweld1.C0=cfn(0,0.15,0.23)
  1380. if ajar==true then
  1381. out=true
  1382. slideweld1.C0=cfn(0,0.15,0.23)
  1383. slideweld1.C0=slideweld1.C0*cfn(0,0,0.22)
  1384. end
  1385. end)
  1386. ammocounter.Text=''
  1387. for i=1,magAmmo do
  1388. ammocounter.Text=ammocounter.Text .. 'I'
  1389. end
  1390. wait()
  1391. Tween(rw,cfn(0,0.7,0)*ang(mr(-100),mr(-30),0),0.62)
  1392. if not grip then
  1393. Tween(lw,cfn(0,0.7,0)*ang(mr(-100),mr(30),0),0.62)
  1394. else
  1395. Tween(lw,cfn(0,1.3,0)*ang(mr(-100),mr(30),0),0.62)
  1396. end
  1397. wait(0.065)
  1398. restorePosition(0.3)
  1399. else
  1400. if magAmmo<1 then
  1401. slideweld1.C0=cfn(0,0.15,0.23)
  1402. slideweld1.C0=slideweld1.C0*cfn(0,0,0.22)
  1403. end
  1404. emptySound:Play()
  1405. end
  1406. if math.random(jamRate)==jamRate and magAmmo>0 then
  1407. jammed=true
  1408. end
  1409. end
  1410.  
  1411. debounced=function()
  1412. if sheathed==false and debounce==false then
  1413. return true
  1414. end
  1415. end
  1416.  
  1417. mouse.Button1Down:connect(function()
  1418. if debounced() then
  1419. if automatic==false then
  1420. debounce=true
  1421. firePistol()
  1422. debounce=false
  1423. else
  1424. heldDown=true
  1425. firePistol()
  1426. end
  1427. end
  1428. end)
  1429.  
  1430. mouse.Button1Up:connect(function()
  1431. heldDown=false
  1432. end)
  1433.  
  1434. sheathGun=function()
  1435. ammocounter.Visible=false
  1436. if laser then
  1437. laserEnabled=false
  1438. aLaser.Transparency=1
  1439. end
  1440. Tween(rw,cfn())
  1441. Tween(lw,cfn())
  1442. wait(0.1)
  1443. mw:Destroy''
  1444. mw=nil
  1445. mw=weld(tor,handle,cfn(1.11,-1.09,0)*ang(mr(-111.5),0,0))
  1446. labr:Destroy()
  1447. rabr:Destroy()
  1448. bg.maxTorque=Vector3.new()
  1449. sheathed=true
  1450. end
  1451.  
  1452. unsheathGun=function()
  1453. ammocounter.Visible=true
  1454. mw:Destroy''
  1455. mw=nil
  1456. initializeJoints()
  1457. mw=weld(ch['Right Arm'],handle,cfn(-0.4,-1,-0.19)*ang(mr(-101.5),0,0)*cfn()*ang(0,mr(-30),mr(-5)))
  1458. restorePosition()
  1459. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1460. sheathed=false
  1461. end
  1462.  
  1463. laserEnabled=false
  1464.  
  1465. mouse.KeyDown:connect(function(key)
  1466. if key=='r' and debounced() then
  1467. debounce=true
  1468. reloadPistol()
  1469. debounce=false
  1470. elseif key=='f' and debounced() then
  1471. debounce=true
  1472. bs=true
  1473. Tween(rw,cfn(0,0.7,0)*ang(mr(-90),mr(-30),0))
  1474. Tween(lw,cfn(0,0.7,0)*ang(mr(-115),mr(35),0))
  1475. wait(0.1)
  1476. spawn(function()
  1477. cockSlide()
  1478. end)
  1479. Tween(lw,cfn(0,0.7,0)*ang(mr(-115),mr(55),0))
  1480. wait(0.3)
  1481. jammed=false
  1482. restorePosition()
  1483. bs=false
  1484. debounce=false
  1485. elseif key=='l' and debounced() then
  1486. if not laserEnabled then
  1487. laserEnabled=true
  1488. aLaser.Transparency=0.35
  1489. else
  1490. laserEnabled=false
  1491. aLaser.Transparency=1
  1492. end
  1493. end
  1494. end)
  1495.  
  1496. restorePosition=function(speed)
  1497. if not grip then
  1498. Tween(rw,cfn(0,0.7,0)*ang(mr(-90),mr(-30),0),speed)
  1499. Tween(lw,cfn(0,0.7,0)*ang(mr(-90),mr(30),0),speed)
  1500. else
  1501. Tween(rw,cfn(0,0.7,0)*ang(mr(-90),mr(-30),0),speed)
  1502. Tween(lw,cfn(0,1.3,0)*ang(mr(-90),mr(30),0),speed)
  1503. end
  1504. end
  1505.  
  1506. hopper.Selected:connect(function()
  1507. unsheathGun()
  1508. end)
  1509.  
  1510. hopper.Deselected:connect(function()
  1511. sheathGun()
  1512. end)
  1513.  
  1514. game:service'RunService'.RenderStepped:connect(function()
  1515. bg.cframe = CFrame.new(rootpart.Position,mouse.Hit.p*Vector3.new(1,0,1)+rootpart.Position*Vector3.new(0,1,0))
  1516. if laserEnabled==true then
  1517. local user=ch
  1518. local ray = Ray.new(hole.CFrame.p, (m.Hit.p - hole.CFrame.p).unit*300)
  1519. local hit, position = game.Workspace:FindPartOnRay(ray, user)
  1520. local distance = (position - basehole.CFrame.p).magnitude
  1521. aLaser.Size=Vector3.new(0.2,distance,0.2)
  1522. aLaser.CFrame=CFrame.new(position, basehole.CFrame.p) * CFrame.new(0, 0, -distance/2) * ang(mr(-90),0,0)
  1523. end
  1524. for _,v in pairs(tweenTable) do
  1525. if v.Weld.C1==v.Stop then
  1526. table.remove(tweenTable,_)
  1527. else
  1528. if v.th<0.9 then
  1529. v.th=v.th+v.Step
  1530. i=v.th
  1531. v.Weld.C1 = CFrame.new( (v.Start.p.X * (1 - i)) + (v.Stop.p.X * i),
  1532. (v.Start.p.Y * (1 - i)) + (v.Stop.p.Y * i),
  1533. (v.Start.p.Z * (1 - i)) + (v.Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  1534. (v.X1 * (1 - i)) + (v.X2 * i), (v.Y1 * (1 - i)) + (v.Y2 * i),
  1535. (v.Z1 * (1 - i)) + (v.Z2 * i) )
  1536. else
  1537. v.Weld.C1 = v.Stop
  1538. end
  1539. end
  1540. end
  1541. end)
  1542. for i=1,magAmmo do
  1543. ammocounter.Text=ammocounter.Text .. 'I'
  1544. end
  1545.  
  1546. sheathGun()
  1547.  
  1548. spawn(function()
  1549. while wait(0.07) do
  1550. if heldDown==true then
  1551. spawn(function()
  1552. firePistol()
  1553. end)
  1554. end
  1555. end
  1556. end)
  1557. m.TargetFilter=tube
  1558.  
  1559. while wait(0.03) do
  1560. if spread>1 then
  1561. spread=spread-spreadint/4
  1562. end
  1563. if spread<1 then
  1564. spread=1
  1565. end
  1566. if currentIco>2 then
  1567. switchIco(currentIco-1)
  1568. end
  1569. end
  1570.  
  1571. --hl/https://httpget-inumeration.c9.io/mp45.lua
  1572. --local/game.Players.Conmiro:Destroy''
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580. end)
  1581.  
  1582. Claws.Name = "Claws"
  1583. Claws.Parent = Scriptthing
  1584. Claws.BackgroundColor3 = Color3.new(1, 1, 1)
  1585. Claws.BorderSizePixel = 3
  1586. Claws.Position = UDim2.new(0.506302536, 0, 0.219560876, 0)
  1587. Claws.Size = UDim2.new(0, 200, 0, 50)
  1588. Claws.Font = Enum.Font.SourceSans
  1589. Claws.Text = "(FD) Claws"
  1590. Claws.TextColor3 = Color3.new(0, 0, 0)
  1591. Claws.TextSize = 34
  1592.  
  1593. Claws.MouseButton1Down:connect(function()
  1594.  
  1595.  
  1596.  
  1597. --[[ Leaked by CLarramore ]]--
  1598. -- Ever since 3/10/2016 this script started to get popular in oxcool1's SB
  1599. -- I am now spreading this on
  1600. -- You can now make ur edits with this
  1601. -- ENTIRELY OPEN SOURCED!!!! YAY!
  1602.  
  1603. -- NightOwlAce dont kill me
  1604. Player=game:GetService("Players").LocalPlayer
  1605. Character=Player.Character
  1606. PlayerGui=Player.PlayerGui
  1607. Backpack=Player.Backpack
  1608. Torso=Character.Torso
  1609. Head=Character.Head
  1610. Humanoid=Character.Humanoid
  1611. m=Instance.new('Model',Character)
  1612. LeftArm=Character["Left Arm"]
  1613. LeftLeg=Character["Left Leg"]
  1614. RightArm=Character["Right Arm"]
  1615. RightLeg=Character["Right Leg"]
  1616. LS=Torso["Left Shoulder"]
  1617. LH=Torso["Left Hip"]
  1618. RS=Torso["Right Shoulder"]
  1619. RH=Torso["Right Hip"]
  1620. Face = Head.face
  1621. Neck=Torso.Neck
  1622. it=Instance.new
  1623. attacktype=1
  1624. vt=Vector3.new
  1625. cf=CFrame.new
  1626. euler=CFrame.fromEulerAnglesXYZ
  1627. angles=CFrame.Angles
  1628. cloaked=false
  1629. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1630. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1631. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1632. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1633. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1634. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1635. RootPart=Character.HumanoidRootPart
  1636. RootJoint=RootPart.RootJoint
  1637. RootCF=euler(-1.57,0,3.14)
  1638. attack = false
  1639. attackdebounce = false
  1640. deb=false
  1641. equipped=true
  1642. hand=false
  1643. MMouse=nil
  1644. combo=0
  1645. mana=0
  1646. trispeed=1
  1647. pathtrans=.7
  1648. attackmode='none'
  1649. local idle=0
  1650. local Anim="Idle"
  1651. local Effects={}
  1652. local gun=false
  1653. local shoot=false
  1654. player=nil
  1655. cloak=false
  1656. lightcolor='Bright blue'
  1657.  
  1658. local Color1=Torso.BrickColor
  1659.  
  1660. local fengui=it("GuiMain")
  1661. fengui.Parent=Player.PlayerGui
  1662. fengui.Name="WeaponGUI"
  1663. local fenframe=it("Frame")
  1664. fenframe.Parent=fengui
  1665. fenframe.BackgroundColor3=Color3.new(255,255,255)
  1666. fenframe.BackgroundTransparency=1
  1667. fenframe.BorderColor3=Color3.new(17,17,17)
  1668. fenframe.Size=UDim2.new(0.0500000007, 0, 0.100000001, 0)
  1669. fenframe.Position=UDim2.new(0.4,0,0.1,0)
  1670. local fenbarmana1=it("TextLabel")
  1671. fenbarmana1.Parent=fenframe
  1672. fenbarmana1.Text=" "
  1673. fenbarmana1.BackgroundTransparency=0
  1674. fenbarmana1.BackgroundColor3=Color3.new(0,0,0)
  1675. fenbarmana1.SizeConstraint="RelativeXY"
  1676. fenbarmana1.TextXAlignment="Center"
  1677. fenbarmana1.TextYAlignment="Center"
  1678. fenbarmana1.Position=UDim2.new(0,0,0,0)
  1679. fenbarmana1.Size=UDim2.new(4,0,0.2,0)
  1680. local fenbarmana2=it("TextLabel")
  1681. fenbarmana2.Parent=fenframe
  1682. fenbarmana2.Text=" "
  1683. fenbarmana2.BackgroundTransparency=0
  1684. fenbarmana2.BackgroundColor3=Torso.Color
  1685. fenbarmana2.SizeConstraint="RelativeXY"
  1686. fenbarmana2.TextXAlignment="Center"
  1687. fenbarmana2.TextYAlignment="Center"
  1688. fenbarmana2.Position=UDim2.new(0,0,0,0)
  1689. fenbarmana2.Size=UDim2.new(4*mana/100,0,0.2,0)
  1690. local fenbarmana3=it("TextLabel")
  1691. fenbarmana3.Parent=fenframe
  1692. fenbarmana3.Text=" "
  1693. fenbarmana3.BackgroundTransparency=0
  1694. fenbarmana3.BackgroundColor3=Color3.new(Col1,Col2,Col3)
  1695. fenbarmana3.SizeConstraint="RelativeXY"
  1696. fenbarmana3.TextXAlignment="Center"
  1697. fenbarmana3.TextYAlignment="Center"
  1698. fenbarmana3.Position=UDim2.new(0,0,0,0)
  1699. fenbarmana3.Size=UDim2.new(0,0,0.2,0)
  1700. local fenbarmana4=it("TextLabel")
  1701. fenbarmana4.Parent=fenframe
  1702. fenbarmana4.Text="Energy("..mana..")"
  1703. fenbarmana4.BackgroundTransparency=1
  1704. fenbarmana4.BackgroundColor3=Color3.new(0,0,0)
  1705. fenbarmana4.SizeConstraint="RelativeXY"
  1706. fenbarmana4.TextXAlignment="Center"
  1707. fenbarmana4.TextYAlignment="Center"
  1708. fenbarmana4.Position=UDim2.new(0,0,-0.3,0)
  1709. fenbarmana4.Size=UDim2.new(4,0,0.2,0)
  1710. fenbarmana4.FontSize="Size9"
  1711. fenbarmana4.TextStrokeTransparency=0
  1712. fenbarmana4.TextColor=BrickColor.new("White")
  1713.  
  1714. mouse=Player:GetMouse()
  1715. --save shoulders
  1716. RSH, LSH=nil, nil
  1717. --welds
  1718. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1719. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1720. LH=Torso["Left Hip"]
  1721. RH=Torso["Right Hip"]
  1722. TorsoColor=Torso.BrickColor
  1723. function NoOutline(Part)
  1724. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1725. end
  1726. player=Player
  1727. ch=Character
  1728. RSH=ch.Torso["Right Shoulder"]
  1729. LSH=ch.Torso["Left Shoulder"]
  1730. --
  1731. RSH.Parent=nil
  1732. LSH.Parent=nil
  1733. --
  1734. RW.Name="Right Shoulder"
  1735. RW.Part0=ch.Torso
  1736. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1737. RW.C1=cf(0, 0.5, 0)
  1738. RW.Part1=ch["Right Arm"]
  1739. RW.Parent=ch.Torso
  1740. --
  1741. LW.Name="Left Shoulder"
  1742. LW.Part0=ch.Torso
  1743. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1744. LW.C1=cf(0, 0.5, 0)
  1745. LW.Part1=ch["Left Arm"]
  1746. LW.Parent=ch.Torso
  1747.  
  1748. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1749. local fp=it("Part")
  1750. fp.formFactor=formfactor
  1751. fp.Parent=parent
  1752. fp.Reflectance=reflectance
  1753. fp.Transparency=transparency
  1754. fp.CanCollide=false
  1755. fp.Locked=true
  1756. fp.BrickColor=brickcolor
  1757. fp.Name=name
  1758. fp.Size=size
  1759. fp.Position=Torso.Position
  1760. NoOutline(fp)
  1761. fp.Material="Neon"
  1762. fp:BreakJoints()
  1763. return fp
  1764. end
  1765.  
  1766. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1767. local mesh=it(Mesh)
  1768. mesh.Parent=part
  1769. if Mesh=="SpecialMesh" then
  1770. mesh.MeshType=meshtype
  1771. if meshid~="nil" then
  1772. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1773. end
  1774. end
  1775. mesh.Offset=offset
  1776. mesh.Scale=scale
  1777. return mesh
  1778. end
  1779.  
  1780. function weld(parent,part0,part1,c0)
  1781. local weld=it("Weld")
  1782. weld.Parent=parent
  1783. weld.Part0=part0
  1784. weld.Part1=part1
  1785. weld.C0=c0
  1786. return weld
  1787. end
  1788.  
  1789. local Color1=Torso.BrickColor
  1790.  
  1791. local bodvel=Instance.new("BodyVelocity")
  1792. local bg=Instance.new("BodyGyro")
  1793.  
  1794. function swait(num)
  1795. if num==0 or num==nil then
  1796. game:service'RunService'.Stepped:wait(0)
  1797. else
  1798. for i=0,num do
  1799. game:service'RunService'.Stepped:wait(0)
  1800. end
  1801. end
  1802. end
  1803.  
  1804.  
  1805. so = function(id,par,vol,pit)
  1806. coroutine.resume(coroutine.create(function()
  1807. local sou = Instance.new("Sound",par or workspace)
  1808. sou.Volume=vol
  1809. sou.Pitch=pit or 1
  1810. sou.SoundId=id
  1811. swait()
  1812. sou:play()
  1813. game:GetService("Debris"):AddItem(sou,6)
  1814. end))
  1815. end
  1816.  
  1817. function clerp(a,b,t)
  1818. local qa = {QuaternionFromCFrame(a)}
  1819. local qb = {QuaternionFromCFrame(b)}
  1820. local ax, ay, az = a.x, a.y, a.z
  1821. local bx, by, bz = b.x, b.y, b.z
  1822. local _t = 1-t
  1823. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1824. end
  1825.  
  1826. function QuaternionFromCFrame(cf)
  1827. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1828. local trace = m00 + m11 + m22
  1829. if trace > 0 then
  1830. local s = math.sqrt(1 + trace)
  1831. local recip = 0.5/s
  1832. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1833. else
  1834. local i = 0
  1835. if m11 > m00 then
  1836. i = 1
  1837. end
  1838. if m22 > (i == 0 and m00 or m11) then
  1839. i = 2
  1840. end
  1841. if i == 0 then
  1842. local s = math.sqrt(m00-m11-m22+1)
  1843. local recip = 0.5/s
  1844. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1845. elseif i == 1 then
  1846. local s = math.sqrt(m11-m22-m00+1)
  1847. local recip = 0.5/s
  1848. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1849. elseif i == 2 then
  1850. local s = math.sqrt(m22-m00-m11+1)
  1851. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1852. end
  1853. end
  1854. end
  1855.  
  1856. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1857. local xs, ys, zs = x + x, y + y, z + z
  1858. local wx, wy, wz = w*xs, w*ys, w*zs
  1859. local xx = x*xs
  1860. local xy = x*ys
  1861. local xz = x*zs
  1862. local yy = y*ys
  1863. local yz = y*zs
  1864. local zz = z*zs
  1865. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1866. end
  1867.  
  1868. function QuaternionSlerp(a, b, t)
  1869. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1870. local startInterp, finishInterp;
  1871. if cosTheta >= 0.0001 then
  1872. if (1 - cosTheta) > 0.0001 then
  1873. local theta = math.acos(cosTheta)
  1874. local invSinTheta = 1/math.sin(theta)
  1875. startInterp = math.sin((1-t)*theta)*invSinTheta
  1876. finishInterp = math.sin(t*theta)*invSinTheta
  1877. else
  1878. startInterp = 1-t
  1879. finishInterp = t
  1880. end
  1881. else
  1882. if (1+cosTheta) > 0.0001 then
  1883. local theta = math.acos(-cosTheta)
  1884. local invSinTheta = 1/math.sin(theta)
  1885. startInterp = math.sin((t-1)*theta)*invSinTheta
  1886. finishInterp = math.sin(t*theta)*invSinTheta
  1887. else
  1888. startInterp = t-1
  1889. finishInterp = t
  1890. end
  1891. end
  1892. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1893. end
  1894.  
  1895. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1896. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1897. end
  1898.  
  1899. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1900. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1901. prt.Anchored=true
  1902. prt.CFrame=cframe
  1903. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1904. --http://www.roblox.com/asset/?id=4770560
  1905. game:GetService("Debris"):AddItem(prt,2)
  1906. CF=prt.CFrame
  1907. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1908. for i=0,1,0.2 do
  1909. wait()
  1910. Part.CFrame=CF*cf(0,0,-0.4)
  1911. end
  1912. for i=0,1,delay do
  1913. wait()
  1914. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1915. Mesh.Scale=Mesh.Scale
  1916. end
  1917. for i=0,1,0.1 do
  1918. wait()
  1919. Part.Transparency=i
  1920. end
  1921. Part.Parent=nil
  1922. end),prt,msh,CF)
  1923. end
  1924.  
  1925. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1926. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1927. prt.Anchored=true
  1928. prt.CFrame=cframe
  1929. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1930. game:GetService("Debris"):AddItem(prt,5)
  1931. coroutine.resume(coroutine.create(function(Part,Mesh)
  1932. for i=0,1,delay do
  1933. wait()
  1934. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1935. Part.Transparency=i
  1936. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1937. end
  1938. Part.Parent=nil
  1939. end),prt,msh)
  1940. end
  1941.  
  1942. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1943. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1944. prt.Anchored=false
  1945. prt.CFrame=cframe
  1946. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1947. local wld=weld(prt,prt,Parent,cframe)
  1948. game:GetService("Debris"):AddItem(prt,5)
  1949. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1950. for i=0,1,delay do
  1951. wait()
  1952. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1953. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1954. Part.Transparency=i
  1955. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1956. end
  1957. Part.Parent=nil
  1958. end),prt,msh,wld)
  1959. end
  1960.  
  1961. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1962. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1963. prt.Anchored=false
  1964. prt.CFrame=cframe
  1965. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1966. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1967. game:GetService("Debris"):AddItem(prt,5)
  1968. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1969. for i=0,1,delay do
  1970. wait()
  1971. Weld.C0=euler(i*20,0,0)
  1972. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1973. Part.Transparency=i
  1974. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1975. end
  1976. Part.Parent=nil
  1977. end),prt,msh,wld)
  1978. end
  1979.  
  1980. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1981. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1982. prt.Anchored=true
  1983. prt.CFrame=cframe
  1984. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1985. game:GetService("Debris"):AddItem(prt,2)
  1986. coroutine.resume(coroutine.create(function(Part,Mesh)
  1987. for i=0,1,delay do
  1988. wait()
  1989. Part.CFrame=Part.CFrame
  1990. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1991. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1992. prt2.Anchored=true
  1993. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1994. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1995. game:GetService("Debris"):AddItem(prt2,2)
  1996. coroutine.resume(coroutine.create(function(Part,Mesh)
  1997. for i=0,1,0.1 do
  1998. wait()
  1999. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2000. end
  2001. Part.Parent=nil
  2002. end),prt2,msh2)
  2003. end
  2004. for i=0,1,delay*2 do
  2005. wait()
  2006. Part.CFrame=Part.CFrame
  2007. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2008. end
  2009. Part.Parent=nil
  2010. end),prt,msh)
  2011. end
  2012.  
  2013. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2014. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2015. prt.Anchored=true
  2016. prt.CFrame=cframe
  2017. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2018. game:GetService("Debris"):AddItem(prt,2)
  2019. coroutine.resume(coroutine.create(function(Part,Mesh)
  2020. for i=0,1,delay do
  2021. wait()
  2022. Part.CFrame=Part.CFrame
  2023. Part.Transparency=i
  2024. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2025. end
  2026. Part.Parent=nil
  2027. end),prt,msh)
  2028. end
  2029.  
  2030. function MagicRing(brickcolor,cframe,x1,y1,z1,x2,y2,z2,x3,y3,z3)
  2031. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2032. prt.Anchored=true
  2033. prt.CFrame=cframe*euler(x2,y2,z2)
  2034. --"http://www.roblox.com/asset/?id=168892465"
  2035. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2036. game:GetService("Debris"):AddItem(prt,2)
  2037. coroutine.resume(coroutine.create(function(Part,Mesh)
  2038. for i=0,1,0.03 do
  2039. wait()
  2040. Part.CFrame=Part.CFrame
  2041. Part.Transparency=i
  2042. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2043. end
  2044. Part.Parent=nil
  2045. end),prt,msh)
  2046. end
  2047.  
  2048. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2049. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2050. prt.Anchored=true
  2051. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2052. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2053. game:GetService("Debris"):AddItem(prt,2)
  2054. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2055. CF=Part.CFrame
  2056. Numbb=0
  2057. randnumb=math.random()/10
  2058. rand1=math.random()/10
  2059. for i=0,1,rand1 do
  2060. wait()
  2061. CF=CF*cf(0,math.random()/2,0)
  2062. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2063. Part.CFrame=CF*euler(Numbb,0,0)
  2064. Part.Transparency=i
  2065. Numbb=Numbb+randnumb
  2066. end
  2067. Part.Parent=nil
  2068. end),prt,CF,Numbb,randnumb)
  2069. end
  2070.  
  2071. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2072. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2073. prt.Anchored=true
  2074. prt.CFrame=cframe
  2075. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2076. game:GetService("Debris"):AddItem(prt,5)
  2077. coroutine.resume(coroutine.create(function(Part,Mesh)
  2078. for i=0,1,delay do
  2079. wait()
  2080. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2081. Part.Transparency=i
  2082. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2083. end
  2084. Part.Parent=nil
  2085. end),prt,msh)
  2086. end
  2087.  
  2088. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2089. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2090. prt.Anchored=true
  2091. prt.CFrame=cframe
  2092. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2093. game:GetService("Debris"):AddItem(prt,2)
  2094. coroutine.resume(coroutine.create(function(Part,Mesh)
  2095. for i=0,1,delay do
  2096. wait()
  2097. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2098. Part.Transparency=i
  2099. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2100. end
  2101. Part.Parent=nil
  2102. end),prt,msh)
  2103. end
  2104.  
  2105. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2106. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2107. prt.Anchored=true
  2108. prt.CFrame=cframe*cf(x,y,z)
  2109. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2110. game:GetService("Debris"):AddItem(prt,5)
  2111. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2112. local num=math.random()
  2113. local num2=math.random(-3,2)+math.random()
  2114. local numm=0
  2115. for i=0,1,delay*2 do
  2116. swait()
  2117. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2118. Part.Transparency=i
  2119. numm=numm+0.01
  2120. end
  2121. Part.Parent=nil
  2122. Mesh.Parent=nil
  2123. end),prt,msh,x,y,z)
  2124. end
  2125.  
  2126. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2127. if hit.Parent==nil then
  2128. return
  2129. end
  2130. h=hit.Parent:FindFirstChild("Humanoid")
  2131. for _,v in pairs(hit.Parent:children()) do
  2132. if v:IsA("Humanoid") then
  2133. h=v
  2134. end
  2135. end
  2136. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2137. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2138. end
  2139. if hit.Parent.className=="Hat" then
  2140. hit=hit.Parent.Parent:findFirstChild("Head")
  2141. end
  2142. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2143. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2144. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2145. return
  2146. end]]
  2147. -- hs(hit,1.2)
  2148. c=Instance.new("ObjectValue")
  2149. c.Name="creator"
  2150. c.Value=game:service("Players").LocalPlayer
  2151. c.Parent=h
  2152. game:GetService("Debris"):AddItem(c,.5)
  2153. Damage=math.random(minim,maxim)
  2154. -- h:TakeDamage(Damage)
  2155. blocked=false
  2156. block=hit.Parent:findFirstChild("Block")
  2157. if block~=nil then
  2158. print(block.className)
  2159. if block.className=="NumberValue" then
  2160. if block.Value>0 then
  2161. blocked=true
  2162. if decreaseblock==nil then
  2163. block.Value=block.Value-1
  2164. end
  2165. end
  2166. end
  2167. if block.className=="IntValue" then
  2168. if block.Value>0 then
  2169. blocked=true
  2170. if decreaseblock~=nil then
  2171. block.Value=block.Value-1
  2172. end
  2173. end
  2174. end
  2175. end
  2176. if blocked==false then
  2177. -- h:TakeDamage(Damage)
  2178. h.Health=h.Health-Damage
  2179. showDamage(hit.Parent,Damage,.5,TorsoColor)
  2180. else
  2181. h.Health=h.Health-(Damage/2)
  2182. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  2183. end
  2184. if Type=="Knockdown" then
  2185. hum=hit.Parent.Humanoid
  2186. hum.PlatformStand=true
  2187. coroutine.resume(coroutine.create(function(HHumanoid)
  2188. swait(1)
  2189. HHumanoid.PlatformStand=false
  2190. end),hum)
  2191. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2192. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2193. local bodvol=Instance.new("BodyVelocity")
  2194. bodvol.velocity=angle*knockback
  2195. bodvol.P=5000
  2196. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2197. bodvol.Parent=hit
  2198. rl=Instance.new("BodyAngularVelocity")
  2199. rl.P=3000
  2200. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2201. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2202. rl.Parent=hit
  2203. game:GetService("Debris"):AddItem(bodvol,.5)
  2204. game:GetService("Debris"):AddItem(rl,.5)
  2205. elseif Type=="Normal" then
  2206. vp=Instance.new("BodyVelocity")
  2207. vp.P=500
  2208. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2209. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2210. if KnockbackType==1 then
  2211. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2212. elseif KnockbackType==2 then
  2213. vp.velocity=Property.CFrame.lookVector*knockback
  2214. end
  2215. if knockback>0 then
  2216. vp.Parent=hit.Parent.Torso
  2217. end
  2218. game:GetService("Debris"):AddItem(vp,.5)
  2219. elseif Type=="Up" then
  2220. local bodyVelocity=Instance.new("BodyVelocity")
  2221. bodyVelocity.velocity=vt(0,10,0)
  2222. bodyVelocity.P=1000
  2223. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  2224. bodyVelocity.Parent=hit
  2225. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2226. rl=Instance.new("BodyAngularVelocity")
  2227. rl.P=3000
  2228. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  2229. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  2230. rl.Parent=hit
  2231. game:GetService("Debris"):AddItem(rl,.5)
  2232. elseif Type=="Snare" then
  2233. bp=Instance.new("BodyPosition")
  2234. bp.P=2000
  2235. bp.D=100
  2236. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2237. bp.position=hit.Parent.Torso.Position
  2238. bp.Parent=hit.Parent.Torso
  2239. game:GetService("Debris"):AddItem(bp,1)
  2240. elseif Type=="Target" then
  2241. if Targetting==false then
  2242. ZTarget=hit.Parent.Torso
  2243. coroutine.resume(coroutine.create(function(Part)
  2244. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2245. swait(5)
  2246. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2247. end),ZTarget)
  2248. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2249. targetgui=Instance.new("BillboardGui")
  2250. targetgui.Parent=ZTarget
  2251. targetgui.Size=UDim2.new(10,100,10,100)
  2252. targ=Instance.new("ImageLabel")
  2253. targ.Parent=targetgui
  2254. targ.BackgroundTransparency=1
  2255. targ.Image="rbxassetid://4834067"
  2256. targ.Size=UDim2.new(1,0,1,0)
  2257. cam.CameraType="Scriptable"
  2258. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2259. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2260. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2261. Targetting=true
  2262. RocketTarget=ZTarget
  2263. for i=1,Property do
  2264. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2265. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2266. swait()
  2267. end
  2268. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2269. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2270. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2271. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2272. end
  2273. Targetting=false
  2274. RocketTarget=nil
  2275. targetgui.Parent=nil
  2276. cam.CameraType="Custom"
  2277. end
  2278. end
  2279. debounce=Instance.new("BoolValue")
  2280. debounce.Name="DebounceHit"
  2281. debounce.Parent=hit.Parent
  2282. debounce.Value=true
  2283. game:GetService("Debris"):AddItem(debounce,Delay)
  2284. c=Instance.new("ObjectValue")
  2285. c.Name="creator"
  2286. c.Value=Player
  2287. c.Parent=h
  2288. game:GetService("Debris"):AddItem(c,.5)
  2289. CRIT=false
  2290. hitDeb=true
  2291. AttackPos=6
  2292. end
  2293. end
  2294.  
  2295. showDamage=function(Char,Dealt,du,Color)
  2296. m=Instance.new("Model")
  2297. m.Name=tostring(Dealt)
  2298. h=Instance.new("Humanoid")
  2299. h.Health=0
  2300. h.MaxHealth=0
  2301. h.Parent=m
  2302. c=Instance.new("Part")
  2303. c.Transparency=0
  2304. c.BrickColor=TorsoColor
  2305. c.Name="Head"
  2306. c.TopSurface=0
  2307. c.BottomSurface=0
  2308. c.formFactor="Plate"
  2309. c.Size=Vector3.new(1,.4,1)
  2310. ms=Instance.new("CylinderMesh")
  2311. ms.Scale=Vector3.new(.8,.8,.8)
  2312. so("http://www.roblox.com/asset/?id=199149269",c,1,1)
  2313. if CRIT==true then
  2314. ms.Scale=Vector3.new(1,1.25,1)
  2315. end
  2316. ms.Parent=c
  2317. c.Reflectance=0
  2318. Instance.new("BodyGyro").Parent=c
  2319. c.Parent=m
  2320. if Char:findFirstChild("Head")~=nil then
  2321. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2322. elseif Char.Parent:findFirstChild("Head")~=nil then
  2323. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2324. end
  2325. f=Instance.new("BodyPosition")
  2326. f.P=2000
  2327. f.D=100
  2328. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2329. f.position=c.Position+Vector3.new(0,3,0)
  2330. f.Parent=c
  2331. game:GetService("Debris"):AddItem(m,.5+du)
  2332. c.CanCollide=false
  2333. m.Parent=workspace
  2334. c.CanCollide=false
  2335. end
  2336.  
  2337. Player=game:GetService('Players').LocalPlayer
  2338. Character=Player.Character
  2339. Mouse=Player:GetMouse()
  2340. m=Instance.new('Model',Character)
  2341.  
  2342.  
  2343. local function weldBetween(a, b)
  2344. local weldd = Instance.new("ManualWeld")
  2345. weldd.Part0 = a
  2346. weldd.Part1 = b
  2347. weldd.C0 = CFrame.new()
  2348. weldd.C1 = b.CFrame:inverse() * a.CFrame
  2349. weldd.Parent = a
  2350. return weldd
  2351. end
  2352.  
  2353. it=Instance.new
  2354.  
  2355. function nooutline(part)
  2356. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  2357. end
  2358.  
  2359. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  2360. local fp=it("Part")
  2361. fp.formFactor=formfactor
  2362. fp.Parent=parent
  2363. fp.Reflectance=reflectance
  2364. fp.Transparency=transparency
  2365. fp.CanCollide=false
  2366. fp.Locked=true
  2367. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  2368. fp.Name=name
  2369. fp.Size=size
  2370. fp.Position=Character.Torso.Position
  2371. nooutline(fp)
  2372. fp.Material=material
  2373. fp:BreakJoints()
  2374. return fp
  2375. end
  2376.  
  2377. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2378. local mesh=it(Mesh)
  2379. mesh.Parent=part
  2380. if Mesh=="SpecialMesh" then
  2381. mesh.MeshType=meshtype
  2382. mesh.MeshId=meshid
  2383. end
  2384. mesh.Offset=offset
  2385. mesh.Scale=scale
  2386. return mesh
  2387. end
  2388.  
  2389. function weld(parent,part0,part1,c0,c1)
  2390. local weld=it("Weld")
  2391. weld.Parent=parent
  2392. weld.Part0=part0
  2393. weld.Part1=part1
  2394. weld.C0=c0
  2395. weld.C1=c1
  2396. return weld
  2397. end
  2398.  
  2399. local modelzorz=Instance.new("Model")
  2400. modelzorz.Parent=Character
  2401. modelzorz.Name="Claw1"
  2402.  
  2403. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  2404. Handleweld=weld(m,Character["Torso"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-6.74455023, 0.843135834, 3.31332064, 0.866820872, 0.000393055088, -0.498619556, 0.129048944, -0.966104209, 0.223582461, -0.481630623, -0.258152217, -0.837489963))
  2405. mesh("SpecialMesh",Handle,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2406. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2407. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.89693689, 0.0205960274, 1.83752108, 0.00084605813, 0.865680099, -0.500597, -0.999998748, 2.925843e-005, -0.00163948536, -0.00140464306, 0.500597715, 0.865678906))
  2408. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2409. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0205993652, 3.97038841, -4.62090921, -0.999998689, 2.810359e-005, -0.00163501501, 0.00158691406, 0.25815019, -0.966103554, 0.0003949448, -0.966104805, -0.258149862))
  2410. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2411. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2412. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.18639517, -0.292996764, 3.91572571, -0.407002717, 0.123095758, -0.905094743, -0.483149111, -0.869928718, 0.098949343, -0.775187671, 0.477568328, 0.413536996))
  2413. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2414. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.62196398, -0.29297936, 1.11572647, -0.835932732, 0.424737811, -0.347583354, -0.483153641, -0.869926155, 0.0989501327, -0.260344028, 0.250651836, 0.932413459))
  2415. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2416. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.55920649, -0.210347176, 1.642519, -0.865201712, -0.000320911407, -0.501423895, -2.98991799e-005, -0.999999881, 0.000691637397, -0.501424074, 0.000613339245, 0.865201592))
  2417. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2418. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.931638, -0.0751047134, 4.50077248, -0.352038473, 0.176153034, -0.919260144, -0.86644727, -0.432817101, 0.248874903, -0.354031444, 0.884103954, 0.304995537))
  2419. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2420. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.34771347, -0.763819337, 1.31078529, 0.484322906, -0.259408951, -0.835546851, 0.129806682, 0.965767562, -0.224595979, 0.865206063, 0.000317394733, 0.501416266))
  2421. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2422. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.85524988, -0.0749192238, 1.7092638, -0.499263257, 0.749717236, -0.434350491, -0.866449237, -0.432811975, 0.248876765, -0.00140497088, 0.500597596, 0.865678906))
  2423. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2424. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.76954031, -0.210381031, 4.2438035, -0.257231236, -0.00066010654, -0.966349661, -3.04505229e-005, -0.999999762, 0.000691249967, -0.966350019, 0.000207226723, 0.257231265))
  2425. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2426. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.87043977, 0.020611763, 4.62094831, 0.00159165263, 0.258152187, -0.966103137, -0.999998748, 2.89455056e-005, -0.00163969398, -0.000395349402, 0.966104329, 0.258151829))
  2427. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2428. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.292981744, 4.28636312, -3.9157095, -0.48314926, -0.869928479, 0.0989517197, -0.407004297, 0.123094313, -0.905094087, 0.775186777, -0.477569282, -0.413537562))
  2429. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2430. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2431. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.85442352, -0.763632059, 3.85966015, -0.269319534, -0.183654502, -0.945377231, 0.129806384, 0.96576786, -0.22459501, 0.954262853, -0.183203816, -0.236260682))
  2432. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2433. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0751276016, 4.03159618, -4.50067854, -0.866445661, -0.432817698, 0.248879611, -0.352042913, 0.176151246, -0.919258773, 0.354030937, -0.884103894, -0.304995805))
  2434. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2435. Gear=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  2436. Gearweld=weld(m,Handle,Gear,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0552597046, -0.0398271084, -0.0363032818, 0.999988854, -3.23429704e-005, 0.00164097548, 3.37436795e-005, 0.999994695, -0.000689953566, -0.00164103508, 0.000689953566, 0.999993086))
  2437. mesh("SpecialMesh",Gear,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  2438. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2439. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.210398674, 3.86948943, -4.24380398, -3.15159559e-005, -0.999999881, 0.00069090724, -0.257231474, -0.000659480691, -0.966349721, 0.966349959, -0.000208158046, -0.257231474))
  2440. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2441. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2442. Partweld=weld(m,Handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.763661504, 3.95439076, 3.85964441, -0.129806131, -0.965767682, 0.224596098, -0.269319892, -0.1836555, -0.945376873, 0.954262733, -0.183203891, -0.236260891))
  2443. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2444.  
  2445. local modelzorz2=Instance.new("Model")
  2446. modelzorz2.Parent=Character
  2447. modelzorz2.Name="Claw2"
  2448.  
  2449. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1))
  2450. Handle2weld=weld(m,Character["Torso"],Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(6.65693045, 1.66835713, 2.9684639, 0.866025746, 0.129405379, 0.482963592, -3.67555799e-006, -0.965926409, 0.258817136, 0.499999553, -0.224144042, -0.836516559))
  2451. mesh("SpecialMesh",Handle2,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  2452. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2453. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.66774845, 0.445008755, 1.50737095, 0.749997497, 0.500002265, -0.433014721, -0.433012635, 0.866024196, 0.250004709, 0.500004232, -2.02655792e-006, 0.866023183))
  2454. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2455. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.70916891, 0.288796425, 1.12511444, 0.424947768, 0.836517453, -0.34591651, -0.870010257, 0.482961774, 0.0991482884, 0.250003695, 0.25881803, 0.933012009))
  2456. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2457. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.24143982, 0.288818121, 3.98402214, 0.123706907, 0.408494055, -0.904339194, -0.870007515, 0.482966691, 0.0991476029, 0.477266878, 0.774516642, 0.415139139))
  2458. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2459. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.288883209, 4.34139919, -3.98407936, -0.870006502, 0.482969046, 0.099145025, 0.123710275, 0.408492953, -0.904339135, -0.477267861, -0.774515808, -0.415139765))
  2460. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2461. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2462. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.377311707, 3.81443644, -4.17874861, 1.43051147e-006, 1.00000012, 5.58793545e-006, 0.258813858, 5.02169132e-006, -0.965927303, -0.965927362, 2.82377005e-006, -0.258813858))
  2463. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2464. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2465. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.11095357, 0.452475548, 3.33581829, 0.214266971, -0.258726388, -0.941886604, 0.124996454, -0.949091196, 0.289140463, -0.968744338, -0.179685742, -0.171018958))
  2466. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2467. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.445028067, 4.04179811, -4.22505188, -0.433007121, 0.86602807, 0.250001073, 0.176776409, 0.353552371, -0.918559194, -0.883886516, -0.353548348, -0.306183964))
  2468. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2469. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2470. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.71447492, 0.377288342, 4.1787672, 0.258815825, 7.89761543e-007, -0.965926647, 2.11596489e-006, 1.00000012, 1.35600567e-006, 0.965926886, -2.41398811e-006, 0.258815885))
  2471. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2472. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.452456236, 4.21090841, 3.33576679, -0.124996543, 0.949091196, -0.289140046, 0.214267105, -0.25872606, -0.941886783, -0.968744338, -0.179685771, -0.171019137))
  2473. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2474. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2475. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.94182658, 0.445016861, 4.22507095, 0.176774979, 0.353554398, -0.918558657, -0.433007926, 0.866026998, 0.250003278, 0.883886337, 0.353548825, 0.306183696))
  2476. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(1, 0.400000006, 1))
  2477. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.256506443, 3.92671657, -4.59811449, -1.00000024, 2.62260437e-006, 1.4603138e-006, -7.4505806e-007, 0.258819073, -0.965925872, -2.89268792e-006, -0.965925932, -0.258819073))
  2478. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 2.92400002, 1.18400002))
  2479. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2480. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.4743073, 0.377253056, 1.63544273, 0.866023183, -4.61935997e-007, -0.500004172, 1.52736902e-006, 1.00000012, 1.65402889e-006, 0.500004232, -2.21282244e-006, 0.866023183))
  2481. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2482. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.15870619, 0.452619314, 0.758959055, -0.533491194, -0.310006529, -0.786945462, 0.124997422, -0.949090362, 0.289142251, -0.836518347, 0.0558886975, 0.545081377))
  2483. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2484. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.84976673, 0.256440639, 1.85214663, 6.2584877e-007, 0.866025329, -0.500000298, -1.00000024, 1.72108412e-006, 1.7285347e-006, 2.38418579e-006, 0.500000298, 0.866025329))
  2485. Gear2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(4.29999971, 4.30000019, 1))
  2486. Gear2weld=weld(m,Handle2,Gear2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.049841404, 0.049908638, 2.78949738e-005, 0.999990344, -5.01424074e-006, -1.49011612e-007, 5.28991222e-006, 0.999994934, 2.98023224e-008, 2.38418579e-007, -1.63912773e-007, 0.999994636))
  2487. mesh("SpecialMesh",Gear2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset?id=156292343",Vector3.new(0, 0, 0),Vector3.new(5, 5, 15))
  2488. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.20000005, 1, 1))
  2489. Partweld=weld(m,Handle2,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.82676554, 0.256523609, 4.598104, -1.1920929e-006, 0.258818835, -0.965925872, -1.00000012, 1.46776438e-006, 1.63912773e-006, 1.83098018e-006, 0.965925872, 0.258818835))
  2490.  
  2491. local modelzorz3=Instance.new("Model")
  2492. modelzorz3.Parent=Character
  2493. modelzorz3.Name="Eye"
  2494.  
  2495. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Handle",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  2496. handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.22326851, -3.5562191, -0.038143158, 0, 0, 1, 0, 1, 0, -1, 0, 0))
  2497. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1, 3, 1))
  2498. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  2499. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  2500. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 0.950000048, 1.16999996))
  2501. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.20000005, 1.20000005, 1.20000005))
  2502. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 1.09672546e-005, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  2503. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/Asset/?id=9756362",Vector3.new(0, 0, 0),Vector3.new(1.102, 3, 0.863999963))
  2504. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(3.79999995, 4, 1.39999998))
  2505. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  2506. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.77400017, 4.96199989, 4.73800039))
  2507. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,TorsoColor,"Part",Vector3.new(3.79999995, 4, 1.39999998))
  2508. Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0999984741, 0, -0.100000381, 0, -1, 0, 0, 0, 1, -1, -0, 0))
  2509. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(4.4920001, 4.70400047, 4.73800039))
  2510. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2511. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.48671532, -1.09328079, 1, -2.52891718e-012, -6.81310423e-013, 2.53075664e-012, 0.866021812, 0.500005603, -6.74442273e-013, -0.500005603, 0.866021752))
  2512. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2513. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100009918, -3.09970522, 1.40989685, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  2514. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2515. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.100009918, -3.09970522, 1.39007568, -0.999999702, 0, 5.96046448e-008, 0, 1, 0, -5.96046448e-008, 0, -0.999999702))
  2516. Wedge=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Wedge",Vector3.new(0.600000024, 2.5999999, 0.599999964))
  2517. Wedgeweld=weld(m,handle,Wedge,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100013733, -3.61302567, 0.360752106, 1, -3.69486299e-012, 1.70532143e-012, 3.81851625e-012, 0.707111537, -0.707102001, 1.40679254e-012, 0.70710206, 0.707111537))
  2518. local moosick = it("Sound",Character)
  2519. moosick.SoundId = "rbxassetid://142653441"
  2520. --142653441, 175067863
  2521. moosick.Looped = true
  2522. moosick.Pitch = 1
  2523. moosick.Volume = 0
  2524. moosick:Play()
  2525.  
  2526. anim = Character:findFirstChild("Animate")
  2527. if anim then
  2528. anim:Destroy()
  2529. end
  2530.  
  2531. local particleemitter = Instance.new("ParticleEmitter", Handle)
  2532. particleemitter.VelocitySpread = 180
  2533. particleemitter.Lifetime = NumberRange.new(0.1)
  2534. particleemitter.Speed = NumberRange.new(2)
  2535. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  2536. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  2537. particleemitter.Rate = 100
  2538. particleemitter.Rotation = NumberRange.new(-45, 45)
  2539. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  2540. particleemitter.LightEmission = 0
  2541. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  2542.  
  2543. local particleemitter = Instance.new("ParticleEmitter", Handle2)
  2544. particleemitter.VelocitySpread = 180
  2545. particleemitter.Lifetime = NumberRange.new(0.1)
  2546. particleemitter.Speed = NumberRange.new(2)
  2547. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  2548. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  2549. particleemitter.Rate = 100
  2550. particleemitter.Rotation = NumberRange.new(-45, 45)
  2551. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  2552. particleemitter.LightEmission = 0
  2553. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  2554.  
  2555. local particleemitter = Instance.new("ParticleEmitter", handle)
  2556. particleemitter.VelocitySpread = 180
  2557. particleemitter.Lifetime = NumberRange.new(0.1)
  2558. particleemitter.Speed = NumberRange.new(2)
  2559. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 7.563)})
  2560. particleemitter.RotSpeed = NumberRange.new(-45, 45)
  2561. particleemitter.Rate = 100
  2562. particleemitter.Rotation = NumberRange.new(-45, 45)
  2563. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  2564. particleemitter.LightEmission = 0.8
  2565. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  2566.  
  2567. local light = Instance.new("PointLight", Character.Torso)
  2568. light.Color = Color3.new(255,255,255)
  2569. light.Brightness = 5
  2570. light.Range = 15
  2571.  
  2572. particleemitter.Enabled = true
  2573.  
  2574. local Footsteps = it("Sound",Character.Torso)
  2575. Footsteps.SoundId = "rbxassetid://142665235"
  2576. Footsteps.Looped = true
  2577. Footsteps.Pitch = 0.8
  2578. Footsteps.Volume = 0.3
  2579.  
  2580. local Footsteps2 = it("Sound",Character.Torso)
  2581. Footsteps2.SoundId = "rbxassetid://142665235"
  2582. Footsteps2.Looped = true
  2583. Footsteps2.Pitch = 1
  2584. Footsteps2.Volume = 0.4
  2585.  
  2586. local cam = game.Workspace.CurrentCamera
  2587.  
  2588. --cam.CameraSubject = Character
  2589.  
  2590. for i,v in pairs(Head:children()) do
  2591. if v:IsA("Sound") then
  2592. v:Destroy()
  2593. end
  2594. end
  2595.  
  2596. mouse.Button1Down:connect(function()
  2597. if attack==false and attacktype==1 then
  2598. attacktype=2
  2599. attackone()
  2600. elseif attack==false and attacktype==2 then
  2601. attacktype=3
  2602. attacktwo()
  2603. elseif attack==false and attacktype==3 then
  2604. attacktype=4
  2605. attackthree()
  2606. elseif attack==false and attacktype==4 then
  2607. attacktype=1
  2608. attackfour()
  2609. end
  2610. end)
  2611.  
  2612. mouse.KeyDown:connect(function(k)
  2613. k=k:lower()
  2614. if k=='e' then
  2615. if attack==false and mana>=20 then
  2616. Push()
  2617. end
  2618. elseif k=='g' then
  2619. if attack==false and mana>=50 then
  2620. Twirl()
  2621. end
  2622. elseif k=='v' then
  2623. if attack==false and mana>=25 then
  2624. MagicJump()
  2625. end
  2626. elseif k=='q' then
  2627. if attack==false then
  2628. idle=1000
  2629. end
  2630. elseif k=='h' then
  2631. if attack==false then
  2632. mana=100
  2633. end
  2634. elseif k=='y' then
  2635. if attack==false and mana>=100 then
  2636. Shred()
  2637. end
  2638. elseif k=='f' then
  2639. if attack==false and mana>=40 then
  2640. Spin()
  2641. end
  2642. elseif k=='r' then
  2643. if attack==false and mana>=20 then
  2644. Clap()
  2645. end
  2646. elseif k=='t' then
  2647. if attack==false then
  2648. Hai()
  2649. end
  2650. elseif k=='0' then
  2651. if attack==false then
  2652. Humanoid.WalkSpeed=(56)
  2653. end
  2654. elseif k=='j' then
  2655. if attack==false then
  2656. Humanoid.Health = 100
  2657. print("Congrats, you commited suicide.")
  2658. end
  2659. end
  2660. end)
  2661.  
  2662. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2663. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2664. prt.Anchored=true
  2665. prt.CFrame=cframe
  2666. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2667. game:GetService("Debris"):AddItem(prt,2)
  2668. coroutine.resume(coroutine.create(function(Part,Mesh)
  2669. for i=0,1,delay do
  2670. wait()
  2671. Part.CFrame=Part.CFrame
  2672. Part.Transparency=i
  2673. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2674. end
  2675. Part.Parent=nil
  2676. end),prt,msh)
  2677. end
  2678.  
  2679. TrailDeb = false
  2680.  
  2681. function equipanim()
  2682. attack=true
  2683. Humanoid.WalkSpeed = 0
  2684. if TrailDeb == false then
  2685. TrailDeb = true
  2686. end
  2687.  
  2688.  
  2689. coroutine.wrap(function()
  2690. local Old = handle.CFrame.p
  2691. while wait()do
  2692. if not TrailDeb then break end
  2693. local New = handle.CFrame.p
  2694. local Mag =(Old -New).magnitude
  2695. local Dis =(Old +New)/2
  2696. local Trail = Instance.new("Part",Character)
  2697. Trail.Material = "Neon"
  2698. Trail.Anchored = true
  2699. Trail.CanCollide = false
  2700. Trail.BrickColor = TorsoColor
  2701. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2702. Trail.TopSurface = 0
  2703. Trail.BottomSurface = 0
  2704. Trail.formFactor = "Custom"
  2705. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2706. local ms = Instance.new("BlockMesh",Trail)
  2707. ms.Scale = Vector3.new(1,1,1)
  2708. local TM = Instance.new("CylinderMesh",Trail)
  2709. TM.Scale = Vector3.new(1,1,1)
  2710. Old = New
  2711. coroutine.wrap(function()
  2712. for i = 1,0,-0.1 do
  2713. wait()
  2714. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2715. end
  2716. Trail:remove()
  2717. end)()
  2718. coroutine.wrap(function()
  2719. for i = 1,10 do
  2720. wait()
  2721. Trail.Transparency = Trail.Transparency +0.1
  2722. end end)()end end)()
  2723. coroutine.wrap(function()
  2724. local Old = Handle.CFrame.p
  2725. while wait()do
  2726. if not TrailDeb then break end
  2727. local New = Handle.CFrame.p
  2728. local Mag =(Old -New).magnitude
  2729. local Dis =(Old +New)/2
  2730. local Trail = Instance.new("Part",Character)
  2731. Trail.Material = "Neon"
  2732. Trail.Anchored = true
  2733. Trail.CanCollide = false
  2734. Trail.BrickColor = TorsoColor
  2735. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2736. Trail.TopSurface = 0
  2737. Trail.BottomSurface = 0
  2738. Trail.formFactor = "Custom"
  2739. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2740. local ms = Instance.new("BlockMesh",Trail)
  2741. ms.Scale = Vector3.new(1,1,1)
  2742. local TM = Instance.new("CylinderMesh",Trail)
  2743. TM.Scale = Vector3.new(1,1,1)
  2744. Old = New
  2745. coroutine.wrap(function()
  2746. for i = 1,0,-0.1 do
  2747. wait()
  2748. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2749. end
  2750. Trail:remove()
  2751. end)()
  2752. coroutine.wrap(function()
  2753. for i = 1,10 do
  2754. wait()
  2755. Trail.Transparency = Trail.Transparency +0.1
  2756. end end)()end end)()
  2757. coroutine.wrap(function()
  2758. local Old = Handle2.CFrame.p
  2759. while wait()do
  2760. if not TrailDeb then break end
  2761. local New = Handle2.CFrame.p
  2762. local Mag =(Old -New).magnitude
  2763. local Dis =(Old +New)/2
  2764. local Trail = Instance.new("Part",Character)
  2765. Trail.Material = "Neon"
  2766. Trail.Anchored = true
  2767. Trail.CanCollide = false
  2768. Trail.BrickColor = TorsoColor
  2769. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2770. Trail.TopSurface = 0
  2771. Trail.BottomSurface = 0
  2772. Trail.formFactor = "Custom"
  2773. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2774. local ms = Instance.new("BlockMesh",Trail)
  2775. ms.Scale = Vector3.new(1,1,1)
  2776. local TM = Instance.new("CylinderMesh",Trail)
  2777. TM.Scale = Vector3.new(1,1,1)
  2778. Old = New
  2779. coroutine.wrap(function()
  2780. for i = 1,0,-0.1 do
  2781. wait()
  2782. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2783. end
  2784. Trail:remove()
  2785. end)()
  2786. coroutine.wrap(function()
  2787. for i = 1,10 do
  2788. wait()
  2789. Trail.Transparency = Trail.Transparency +0.1
  2790. end end)()end end)()
  2791. so("http://www.roblox.com/asset/?id=200632370",Torso,1,0.5)
  2792. for i=0,1,0.005 do
  2793. swait()
  2794. moosick.Volume = 0+1*i
  2795. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,100-100*i)*euler(0,0,0+90*i),.2)
  2796. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  2797. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2798. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2799. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2800. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  2801. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  2802. end
  2803. for i=0,1,0.005 do
  2804. swait()
  2805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2.5)*euler(0,0,0+90*i),.2)
  2806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,0),.2)
  2807. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2808. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2809. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.05)
  2810. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(40)),.2)
  2811. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-40)),.2)
  2812. end
  2813. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  2814. so("http://www.roblox.com/asset/?id=150829983",Character,1,0.9)
  2815. for i=0,1,0.005 do
  2816. swait()
  2817. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,5+1*i)*angles(math.rad(-15),math.rad(0),math.rad(0)),0.1)
  2818. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25),math.rad(0),math.rad(0)),0.1)
  2819. handleweld.C0=clerp(handleweld.C0,cf(0,0+1*i,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
  2820. Handle2weld.C0=clerp(Handle2weld.C0,cf(0-1*i,0,0)*angles(math.rad(90),math.rad(15),math.rad(0)),0.1)
  2821. Handleweld.C0=clerp(Handleweld.C0,cf(0+1*i,0,0)*angles(math.rad(90),math.rad(-15),math.rad(0)),0.1)
  2822. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  2823. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  2824. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(-30)),0.1)
  2825. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(30)),0.1)
  2826. end
  2827. for i=0,1,0.04 do
  2828. swait()
  2829. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  2830. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2831. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2832. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  2833. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  2834. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  2835. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2836. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  2837. end
  2838. --dmgstop()
  2839. attack=false
  2840. Humanoid.WalkSpeed = 12
  2841. if TrailDeb == true then
  2842. TrailDeb = false
  2843. end
  2844. end
  2845.  
  2846. function attackone()
  2847. attack=true
  2848. if TrailDeb == false then
  2849. TrailDeb = true
  2850. end
  2851.  
  2852.  
  2853. coroutine.wrap(function()
  2854. local Old = Handle.CFrame.p
  2855. while wait()do
  2856. if not TrailDeb then break end
  2857. local New = Handle.CFrame.p
  2858. local Mag =(Old -New).magnitude
  2859. local Dis =(Old +New)/2
  2860. local Trail = Instance.new("Part",Character)
  2861. Trail.Material = "Neon"
  2862. Trail.Anchored = true
  2863. Trail.CanCollide = false
  2864. Trail.BrickColor = TorsoColor
  2865. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2866. Trail.TopSurface = 0
  2867. Trail.BottomSurface = 0
  2868. Trail.formFactor = "Custom"
  2869. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2870. local ms = Instance.new("BlockMesh",Trail)
  2871. ms.Scale = Vector3.new(1,1,1)
  2872. local TM = Instance.new("CylinderMesh",Trail)
  2873. TM.Scale = Vector3.new(1,1,1)
  2874. Old = New
  2875. coroutine.wrap(function()
  2876. for i = 1,0,-0.1 do
  2877. wait()
  2878. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2879. end
  2880. Trail:remove()
  2881. end)()
  2882. coroutine.wrap(function()
  2883. for i = 1,10 do
  2884. wait()
  2885. Trail.Transparency = Trail.Transparency +0.1
  2886. end end)()end end)()
  2887. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2888. for i=0,1,0.08 do
  2889. swait()
  2890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(-10)),.3)
  2891. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(10)),.3)
  2892. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2893. Handleweld.C0=clerp(Handleweld.C0,cf(-3,1,2)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  2894. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2895. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  2896. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2897. end
  2898. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.9)
  2899. so("http://www.roblox.com/asset/?id=159972643",Torso,1,1)
  2900. for i=0,1,0.1 do
  2901. swait()
  2902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(20)),.3)
  2903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2904. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2905. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-8)*angles(math.rad(-85),math.rad(0),math.rad(0)),.2)
  2906. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2907. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(80,1.8,1.5),.3)
  2908. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  2909. end
  2910. --dmgstop()
  2911. attack=false
  2912. con1:disconnect()
  2913. if TrailDeb == true then
  2914. TrailDeb = false
  2915. end
  2916. end
  2917.  
  2918. function attacktwo()
  2919. attack=true
  2920. if TrailDeb == false then
  2921. TrailDeb = true
  2922. end
  2923.  
  2924.  
  2925. coroutine.wrap(function()
  2926. local Old = Handle2.CFrame.p
  2927. while wait()do
  2928. if not TrailDeb then break end
  2929. local New = Handle2.CFrame.p
  2930. local Mag =(Old -New).magnitude
  2931. local Dis =(Old +New)/2
  2932. local Trail = Instance.new("Part",Character)
  2933. Trail.Material = "Neon"
  2934. Trail.Anchored = true
  2935. Trail.CanCollide = false
  2936. Trail.BrickColor = TorsoColor
  2937. Trail.Size = Vector3.new(0.2,Mag,0.2)
  2938. Trail.TopSurface = 0
  2939. Trail.BottomSurface = 0
  2940. Trail.formFactor = "Custom"
  2941. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  2942. local ms = Instance.new("BlockMesh",Trail)
  2943. ms.Scale = Vector3.new(1,1,1)
  2944. local TM = Instance.new("CylinderMesh",Trail)
  2945. TM.Scale = Vector3.new(1,1,1)
  2946. Old = New
  2947. coroutine.wrap(function()
  2948. for i = 1,0,-0.1 do
  2949. wait()
  2950. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  2951. end
  2952. Trail:remove()
  2953. end)()
  2954. coroutine.wrap(function()
  2955. for i = 1,10 do
  2956. wait()
  2957. Trail.Transparency = Trail.Transparency +0.1
  2958. end end)()end end)()
  2959. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  2960. for i=0,1,0.08 do
  2961. swait()
  2962. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2963. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2964. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2965. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  2966. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2967. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  2968. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  2969. end
  2970. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  2971. so("http://www.roblox.com/asset/?id=159972627",Torso,1,1)
  2972. for i=0,1,0.1 do
  2973. swait()
  2974. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  2975. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  2976. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2977. Handle2weld.C0=clerp(Handle2weld.C0,cf(10,1,-5)*angles(math.rad(0),math.rad(-80),math.rad(20)),.2)
  2978. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  2979. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  2980. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-2),math.rad(-25),math.rad(15)),.3)
  2981. end
  2982. --dmgstop()
  2983. attack=false
  2984. con1:disconnect()
  2985. if TrailDeb == true then
  2986. TrailDeb = false
  2987. end
  2988. end
  2989.  
  2990. function attackthree()
  2991. attack=true
  2992. if TrailDeb == false then
  2993. TrailDeb = true
  2994. end
  2995.  
  2996.  
  2997. coroutine.wrap(function()
  2998. local Old = Handle.CFrame.p
  2999. while wait()do
  3000. if not TrailDeb then break end
  3001. local New = Handle.CFrame.p
  3002. local Mag =(Old -New).magnitude
  3003. local Dis =(Old +New)/2
  3004. local Trail = Instance.new("Part",Character)
  3005. Trail.Material = "Neon"
  3006. Trail.Anchored = true
  3007. Trail.CanCollide = false
  3008. Trail.BrickColor = TorsoColor
  3009. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3010. Trail.TopSurface = 0
  3011. Trail.BottomSurface = 0
  3012. Trail.formFactor = "Custom"
  3013. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3014. local ms = Instance.new("BlockMesh",Trail)
  3015. ms.Scale = Vector3.new(1,1,1)
  3016. local TM = Instance.new("CylinderMesh",Trail)
  3017. TM.Scale = Vector3.new(1,1,1)
  3018. Old = New
  3019. coroutine.wrap(function()
  3020. for i = 1,0,-0.1 do
  3021. wait()
  3022. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3023. end
  3024. Trail:remove()
  3025. end)()
  3026. coroutine.wrap(function()
  3027. for i = 1,10 do
  3028. wait()
  3029. Trail.Transparency = Trail.Transparency +0.1
  3030. end end)()end end)()
  3031. con1=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Up",RootPart,.2,1) end)
  3032. for i=0,1,0.08 do
  3033. swait()
  3034. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  3035. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3036. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3037. Handleweld.C0=clerp(Handleweld.C0,cf(3,7,-1)*angles(math.rad(20),math.rad(0),math.rad(-120)),.2)
  3038. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3039. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(0.5,-1.3,-0.1),.3)
  3040. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  3041. end
  3042. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3043. so("http://www.roblox.com/asset/?id=159882477",Torso,1,1)
  3044. for i=0,1,0.05 do
  3045. swait()
  3046. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  3047. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  3048. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3049. Handleweld.C0=clerp(Handleweld.C0,cf(2,4,-3)*angles(math.rad(120),math.rad(0),math.rad(-120)),.2)
  3050. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3051. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.5)*euler(2,-1.3,0.1),.3)
  3052. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(2),math.rad(25),math.rad(-15)),.3)
  3053. end
  3054. --dmgstop()
  3055. attack=false
  3056. con1:disconnect()
  3057. if TrailDeb == true then
  3058. TrailDeb = false
  3059. end
  3060. end
  3061.  
  3062. function attackfour()
  3063. attack=true
  3064. if TrailDeb == false then
  3065. TrailDeb = true
  3066. end
  3067.  
  3068.  
  3069. coroutine.wrap(function()
  3070. local Old = Handle2.CFrame.p
  3071. while wait()do
  3072. if not TrailDeb then break end
  3073. local New = Handle2.CFrame.p
  3074. local Mag =(Old -New).magnitude
  3075. local Dis =(Old +New)/2
  3076. local Trail = Instance.new("Part",Character)
  3077. Trail.Material = "Neon"
  3078. Trail.Anchored = true
  3079. Trail.CanCollide = false
  3080. Trail.BrickColor = TorsoColor
  3081. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3082. Trail.TopSurface = 0
  3083. Trail.BottomSurface = 0
  3084. Trail.formFactor = "Custom"
  3085. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3086. local ms = Instance.new("BlockMesh",Trail)
  3087. ms.Scale = Vector3.new(1,1,1)
  3088. local TM = Instance.new("CylinderMesh",Trail)
  3089. TM.Scale = Vector3.new(1,1,1)
  3090. Old = New
  3091. coroutine.wrap(function()
  3092. for i = 1,0,-0.1 do
  3093. wait()
  3094. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3095. end
  3096. Trail:remove()
  3097. end)()
  3098. coroutine.wrap(function()
  3099. for i = 1,10 do
  3100. wait()
  3101. Trail.Transparency = Trail.Transparency +0.1
  3102. end end)()end end)()
  3103. coroutine.wrap(function()
  3104. local Old = Handle.CFrame.p
  3105. while wait()do
  3106. if not TrailDeb then break end
  3107. local New = Handle.CFrame.p
  3108. local Mag =(Old -New).magnitude
  3109. local Dis =(Old +New)/2
  3110. local Trail = Instance.new("Part",Character)
  3111. Trail.Material = "Neon"
  3112. Trail.Anchored = true
  3113. Trail.CanCollide = false
  3114. Trail.BrickColor = TorsoColor
  3115. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3116. Trail.TopSurface = 0
  3117. Trail.BottomSurface = 0
  3118. Trail.formFactor = "Custom"
  3119. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3120. local ms = Instance.new("BlockMesh",Trail)
  3121. ms.Scale = Vector3.new(1,1,1)
  3122. local TM = Instance.new("CylinderMesh",Trail)
  3123. TM.Scale = Vector3.new(1,1,1)
  3124. Old = New
  3125. coroutine.wrap(function()
  3126. for i = 1,0,-0.1 do
  3127. wait()
  3128. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3129. end
  3130. Trail:remove()
  3131. end)()
  3132. coroutine.wrap(function()
  3133. for i = 1,10 do
  3134. wait()
  3135. Trail.Transparency = Trail.Transparency +0.1
  3136. end end)()end end)()
  3137. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  3138. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  3139. for i=0,1,0.08 do
  3140. swait()
  3141. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1)*angles(math.rad(40),math.rad(0),math.rad(-40)),.3)
  3142. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3143. Handleweld.C0=clerp(Handleweld.C0,cf(1.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3144. Handle2weld.C0=clerp(Handle2weld.C0,cf(-1.5,3,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3145. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(40)),.3)
  3146. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(70),math.rad(0),math.rad(-45)),.3)
  3147. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  3148. LH.C0=clerp(LH.C0,cf(-1,0.5,0)*euler(0,-1.57,0)*angles(math.rad(-10),math.rad(30),math.rad(-40)),.3)
  3149. end
  3150. if anim then
  3151. anim.Disabled=true
  3152. end
  3153. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.7)
  3154. so("http://www.roblox.com/asset/?id=159882584",Torso,1,1)
  3155. for i=0,1,0.04 do
  3156. swait()
  3157. Torso.Velocity=RootPart.CFrame.lookVector*50
  3158. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1)*angles(math.rad(-5),math.rad(0),math.rad(0+360*i)),.3)
  3159. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3160. Handleweld.C0=clerp(Handleweld.C0,cf(3,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3161. Handle2weld.C0=clerp(Handle2weld.C0,cf(-3,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3162. RW.C0=clerp(RW.C0,cf(1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3163. LW.C0=clerp(LW.C0,cf(-1.2,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3164. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3165. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3166. end
  3167. --dmgstop()
  3168. attack=false
  3169. con1:disconnect()
  3170. con2:disconnect()
  3171. if anim then
  3172. anim.Disabled=false
  3173. end
  3174. if TrailDeb == true then
  3175. TrailDeb = false
  3176. end
  3177. end
  3178.  
  3179. function BlastEffect(brickcolor, cframe, x1, y1, z1, x2, y2, z2)
  3180. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3181. prt.Anchored = true
  3182. prt.CFrame = cframe
  3183. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3184. coroutine.resume(coroutine.create(function()
  3185. for i = 0, 1, 0.05 do
  3186. wait()
  3187. prt.Transparency = i
  3188. msh.Scale = msh.Scale + vt(x2, y2, z2)
  3189. end
  3190. prt.Parent = nil
  3191. end))
  3192. end
  3193.  
  3194. function MagniDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  3195. for _, c in pairs(workspace:children()) do
  3196. local hum = c:findFirstChild("Humanoid")
  3197. if hum ~= nil then
  3198. local head = c:findFirstChild("Torso")
  3199. if head ~= nil then
  3200. local targ = head.Position - Part.Position
  3201. local mag = targ.magnitude
  3202. if mag <= magni and c.Name ~= Player.Name then
  3203. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, .2, 1, 3)
  3204. end
  3205. end
  3206. end
  3207. end
  3208. end
  3209.  
  3210. function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3211. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3212. prt.Anchored = true
  3213. prt.CFrame = cframe
  3214. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  3215. game:GetService("Debris"):AddItem(prt, 2)
  3216. coroutine.resume(coroutine.create(function(Part, Mesh)
  3217. for i = 0, 1, delay do
  3218. swait()
  3219. Part.CFrame = Part.CFrame
  3220. Part.Transparency = i
  3221. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  3222. end
  3223. Part.Parent = nil
  3224. end), prt, msh)
  3225. end
  3226.  
  3227. function MagicJump()
  3228. if Anim == "Idle" or Anim == "Walk" or Anim == "Run" then
  3229. attack=true
  3230. mana=mana-25
  3231. --[[ Humanoid.WalkSpeed = 0
  3232. for i=0,1,0.01 do
  3233. swait()
  3234. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-1.2)*angles(math.rad(45),math.rad(0),math.rad(45)),.1)
  3235. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-15),math.rad(15),math.rad(-45)),.1)
  3236. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  3237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(45)),.1)
  3238. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(15),math.rad(-30)),.1)
  3239. RH.C0=clerp(RH.C0,cf(0.5,-1.25,0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(15),math.rad(-60),math.rad(-15)),.1)
  3240. LH.C0=clerp(LH.C0,cf(-1,0.1,-0.8)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(40),math.rad(0),math.rad(-30)),.1)
  3241. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(45)),.1)
  3242. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,-6)*angles(math.rad(-15),math.rad(-60),math.rad(45)),.1)
  3243. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(60),math.rad(45)),.1)
  3244. end]]--
  3245. Humanoid.Jump = true
  3246. Torso.Velocity = vt(0, 150, 0)
  3247. Humanoid.WalkSpeed = 64
  3248. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  3249. so("http://www.roblox.com/asset/?id=199145497",Torso,1,0.8)
  3250. for i=0,1,0.05 do
  3251. swait()
  3252. Neck.C0=clerp(Neck.C0,necko*euler(0.5,0,0),.3)
  3253. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3254. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0+8*i,0,0),.3)
  3255. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  3256. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  3257. RH.C0=clerp(RH.C0,cf(1,0,-1)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  3258. LH.C0=clerp(LH.C0,cf(-1,0,-1)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  3259. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  3260. Handleweld.C0=clerp(Handleweld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(60),math.rad(0)),.2)
  3261. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-5,0)*angles(math.rad(60),math.rad(-60),math.rad(0)),.2)
  3262. end
  3263. for i=0,1,0.02 do
  3264. swait()
  3265. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  3266. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3267. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  3268. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  3269. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3270. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  3271. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  3272. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  3273. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  3274. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3275. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3276. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3277. end
  3278. Humanoid.WalkSpeed = 0
  3279. swait(8)
  3280. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  3281. so("http://www.roblox.com/asset/?id=199145477",Torso,1,1)
  3282. local hit,pos=rayCast(Torso.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  3283. if hit~=nil then
  3284. swait(2)
  3285. local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really black"),"Effect",vt())
  3286. ref.Anchored=true
  3287. ref.CFrame=cf(pos)
  3288. game:GetService("Debris"):AddItem(ref,3)
  3289. for i=1,10 do
  3290. local Col=BrickColor.new("Really black")
  3291. local groundpart=part(3,Character,"SmoothPlastic",0,0,Col,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  3292. groundpart.Anchored=true
  3293. groundpart.CanCollide=false
  3294. groundpart.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3295. local Col2=TorsoColor
  3296. local groundpart2=part(3,Character,"SmoothPlastic",0,0,Col2,"Ground",vt(math.random(50,200)/100,math.random(50,200)/100,math.random(50,200)/100))
  3297. groundpart2.Anchored=true
  3298. groundpart2.CanCollide=false
  3299. groundpart2.CFrame=cf(pos)*cf(math.random(-500,500)/100,0,math.random(-500,500)/100)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  3300. game:GetService("Debris"):AddItem(groundpart,5)
  3301. game:GetService("Debris"):AddItem(groundpart2,5)
  3302. end
  3303. BlastEffect(TorsoColor,cf(pos),1,1,1,1.4,1.4,1.4)
  3304. BlastEffect(BrickColor.new("Really black"),cf(pos),.9,.9,.9,1.2,1.2,1.2)
  3305. MagicCircle(BrickColor.new("Really black"),cf(pos),5,5,5,5,5,5,0.05)
  3306. MagicCircle(TorsoColor,cf(pos),6,6,6,6,6,6,0.05)
  3307. for i=0,1,0.06 do
  3308. swait()
  3309. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  3310. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  3311. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5)*angles(math.rad(50),math.rad(0),math.rad(0)),.3)
  3312. RW.C0=clerp(RW.C0,cf(1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(-30)),.3)
  3313. LW.C0=clerp(LW.C0,cf(-1, 0.3, -.7)*angles(math.rad(50),math.rad(0),math.rad(30)),.3)
  3314. RH.C0=clerp(RH.C0,cf(1, -.5, -.5)*angles(math.rad(50),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3315. LH.C0=clerp(LH.C0,cf(-1, -1, -.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
  3316. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3317. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  3318. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  3319. end
  3320. end
  3321. swait(20)
  3322. Humanoid.WalkSpeed = 12
  3323. --dmgstop()
  3324. attack=false
  3325. end
  3326. end
  3327.  
  3328. function Spin()
  3329. attack=true
  3330. mana=mana-40
  3331. if TrailDeb == false then
  3332. TrailDeb = true
  3333. end
  3334.  
  3335. coroutine.wrap(function()
  3336. local Old = Handle2.CFrame.p
  3337. while wait()do
  3338. if not TrailDeb then break end
  3339. local New = Handle2.CFrame.p
  3340. local Mag =(Old -New).magnitude
  3341. local Dis =(Old +New)/2
  3342. local Trail = Instance.new("Part",Character)
  3343. Trail.Material = "Neon"
  3344. Trail.Anchored = true
  3345. Trail.CanCollide = false
  3346. Trail.BrickColor = TorsoColor
  3347. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3348. Trail.TopSurface = 0
  3349. Trail.BottomSurface = 0
  3350. Trail.formFactor = "Custom"
  3351. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3352. local ms = Instance.new("BlockMesh",Trail)
  3353. ms.Scale = Vector3.new(1,1,1)
  3354. local TM = Instance.new("CylinderMesh",Trail)
  3355. TM.Scale = Vector3.new(1,1,1)
  3356. Old = New
  3357. coroutine.wrap(function()
  3358. for i = 1,0,-0.1 do
  3359. wait()
  3360. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3361. end
  3362. Trail:remove()
  3363. end)()
  3364. coroutine.wrap(function()
  3365. for i = 1,10 do
  3366. wait()
  3367. Trail.Transparency = Trail.Transparency +0.1
  3368. end end)()end end)()
  3369. coroutine.wrap(function()
  3370. local Old = Handle.CFrame.p
  3371. while wait()do
  3372. if not TrailDeb then break end
  3373. local New = Handle.CFrame.p
  3374. local Mag =(Old -New).magnitude
  3375. local Dis =(Old +New)/2
  3376. local Trail = Instance.new("Part",Character)
  3377. Trail.Material = "Neon"
  3378. Trail.Anchored = true
  3379. Trail.CanCollide = false
  3380. Trail.BrickColor = TorsoColor
  3381. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3382. Trail.TopSurface = 0
  3383. Trail.BottomSurface = 0
  3384. Trail.formFactor = "Custom"
  3385. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3386. local ms = Instance.new("BlockMesh",Trail)
  3387. ms.Scale = Vector3.new(1,1,1)
  3388. local TM = Instance.new("CylinderMesh",Trail)
  3389. TM.Scale = Vector3.new(1,1,1)
  3390. Old = New
  3391. coroutine.wrap(function()
  3392. for i = 1,0,-0.1 do
  3393. wait()
  3394. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3395. end
  3396. Trail:remove()
  3397. end)()
  3398. coroutine.wrap(function()
  3399. for i = 1,10 do
  3400. wait()
  3401. Trail.Transparency = Trail.Transparency +0.1
  3402. end end)()end end)()
  3403. Footsteps:Stop()
  3404. Footsteps2:Stop()
  3405. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3406. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3407. so("http://www.roblox.com/asset/?id=159882497",Torso,1,1)
  3408. for i=0,1,0.1 do
  3409. swait()
  3410. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3411. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3412. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3413. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3414. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3415. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3416. end
  3417. if anim then
  3418. anim.Disabled=true
  3419. end
  3420. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  3421. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3422. for i=0,1,0.05 do
  3423. swait()
  3424. Torso.Velocity=RootPart.CFrame.lookVector*100
  3425. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  3426. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3427. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3428. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3429. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3430. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3431. end
  3432. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  3433. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3434. for i=0,1,0.05 do
  3435. swait()
  3436. Torso.Velocity=RootPart.CFrame.lookVector*100
  3437. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  3438. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3439. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3440. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3441. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3442. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3443. end
  3444. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1.2)
  3445. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,1)
  3446. for i=0,1,0.05 do
  3447. swait()
  3448. Torso.Velocity=RootPart.CFrame.lookVector*100
  3449. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(90),math.rad(0+360*i)),.3)
  3450. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3451. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3452. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3453. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3454. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3455. end
  3456. --dmgstop()
  3457. Humanoid.WalkSpeed=12
  3458. attack=false
  3459. con1:disconnect()
  3460. con2:disconnect()
  3461. if anim then
  3462. anim.Disabled=false
  3463. end
  3464. if TrailDeb == true then
  3465. TrailDeb = false
  3466. end
  3467. end
  3468.  
  3469. function Twirl()
  3470. mana=mana-50
  3471. attack=true
  3472. if TrailDeb == false then
  3473. TrailDeb = true
  3474. end
  3475.  
  3476.  
  3477. coroutine.wrap(function()
  3478. local Old = Handle2.CFrame.p
  3479. while wait()do
  3480. if not TrailDeb then break end
  3481. local New = Handle2.CFrame.p
  3482. local Mag =(Old -New).magnitude
  3483. local Dis =(Old +New)/2
  3484. local Trail = Instance.new("Part",Character)
  3485. Trail.Material = "Neon"
  3486. Trail.Anchored = true
  3487. Trail.CanCollide = false
  3488. Trail.BrickColor = TorsoColor
  3489. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3490. Trail.TopSurface = 0
  3491. Trail.BottomSurface = 0
  3492. Trail.formFactor = "Custom"
  3493. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3494. local ms = Instance.new("BlockMesh",Trail)
  3495. ms.Scale = Vector3.new(1,1,1)
  3496. local TM = Instance.new("CylinderMesh",Trail)
  3497. TM.Scale = Vector3.new(1,1,1)
  3498. Old = New
  3499. coroutine.wrap(function()
  3500. for i = 1,0,-0.1 do
  3501. wait()
  3502. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3503. end
  3504. Trail:remove()
  3505. end)()
  3506. coroutine.wrap(function()
  3507. for i = 1,10 do
  3508. wait()
  3509. Trail.Transparency = Trail.Transparency +0.1
  3510. end end)()end end)()
  3511. coroutine.wrap(function()
  3512. local Old = Handle.CFrame.p
  3513. while wait()do
  3514. if not TrailDeb then break end
  3515. local New = Handle.CFrame.p
  3516. local Mag =(Old -New).magnitude
  3517. local Dis =(Old +New)/2
  3518. local Trail = Instance.new("Part",Character)
  3519. Trail.Material = "Neon"
  3520. Trail.Anchored = true
  3521. Trail.CanCollide = false
  3522. Trail.BrickColor = TorsoColor
  3523. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3524. Trail.TopSurface = 0
  3525. Trail.BottomSurface = 0
  3526. Trail.formFactor = "Custom"
  3527. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3528. local ms = Instance.new("BlockMesh",Trail)
  3529. ms.Scale = Vector3.new(1,1,1)
  3530. local TM = Instance.new("CylinderMesh",Trail)
  3531. TM.Scale = Vector3.new(1,1,1)
  3532. Old = New
  3533. coroutine.wrap(function()
  3534. for i = 1,0,-0.1 do
  3535. wait()
  3536. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3537. end
  3538. Trail:remove()
  3539. end)()
  3540. coroutine.wrap(function()
  3541. for i = 1,10 do
  3542. wait()
  3543. Trail.Transparency = Trail.Transparency +0.1
  3544. end end)()end end)()
  3545. Footsteps:Stop()
  3546. Footsteps2:Stop()
  3547. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3548. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3549. so("http://www.roblox.com/asset/?id=159882598",Torso,1,1)
  3550. for i=0,1,0.1 do
  3551. swait()
  3552. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3553. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3554. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3555. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3556. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3557. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3558. end
  3559. if anim then
  3560. anim.Disabled=true
  3561. end
  3562. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3563. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3564. for i=0,1,0.05 do
  3565. swait()
  3566. Torso.Velocity=RootPart.CFrame.lookVector*80
  3567. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3568. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3569. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3570. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3571. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3572. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3573. end
  3574. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3575. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3576. for i=0,1,0.05 do
  3577. swait()
  3578. Torso.Velocity=RootPart.CFrame.lookVector*80
  3579. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3580. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3581. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3582. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3583. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3584. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3585. end
  3586. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3587. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3588. for i=0,1,0.05 do
  3589. swait()
  3590. Torso.Velocity=RootPart.CFrame.lookVector*80
  3591. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3592. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3593. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3594. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3595. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3596. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3597. end
  3598. so("http://www.roblox.com/asset/?id=231917758",LeftArm,1,1)
  3599. so("http://www.roblox.com/asset/?id=231917758",RightArm,1,0.8)
  3600. for i=0,1,0.05 do
  3601. swait()
  3602. Torso.Velocity=RootPart.CFrame.lookVector*80
  3603. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,10)*angles(math.rad(90),math.rad(0),math.rad(0+360*i)),.3)
  3604. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3605. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3606. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3607. RW.C0=clerp(RW.C0,cf(1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3608. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3609. end
  3610. --dmgstop()
  3611. Humanoid.WalkSpeed=12
  3612. attack=false
  3613. con1:disconnect()
  3614. con2:disconnect()
  3615. if anim then
  3616. anim.Disabled=false
  3617. end
  3618. if TrailDeb == true then
  3619. TrailDeb = false
  3620. end
  3621. end
  3622.  
  3623. function Shred()
  3624. attack=true
  3625. mana=mana-100
  3626. if TrailDeb == false then
  3627. TrailDeb = true
  3628. end
  3629.  
  3630.  
  3631. coroutine.wrap(function()
  3632. local Old = Handle2.CFrame.p
  3633. while wait()do
  3634. if not TrailDeb then break end
  3635. local New = Handle2.CFrame.p
  3636. local Mag =(Old -New).magnitude
  3637. local Dis =(Old +New)/2
  3638. local Trail = Instance.new("Part",Character)
  3639. Trail.Material = "Neon"
  3640. Trail.Anchored = true
  3641. Trail.CanCollide = false
  3642. Trail.BrickColor = TorsoColor
  3643. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3644. Trail.TopSurface = 0
  3645. Trail.BottomSurface = 0
  3646. Trail.formFactor = "Custom"
  3647. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3648. local ms = Instance.new("BlockMesh",Trail)
  3649. ms.Scale = Vector3.new(1,1,1)
  3650. local TM = Instance.new("CylinderMesh",Trail)
  3651. TM.Scale = Vector3.new(1,1,1)
  3652. Old = New
  3653. coroutine.wrap(function()
  3654. for i = 1,0,-0.1 do
  3655. wait()
  3656. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3657. end
  3658. Trail:remove()
  3659. end)()
  3660. coroutine.wrap(function()
  3661. for i = 1,10 do
  3662. wait()
  3663. Trail.Transparency = Trail.Transparency +0.1
  3664. end end)()end end)()
  3665. coroutine.wrap(function()
  3666. local Old = Handle.CFrame.p
  3667. while wait()do
  3668. if not TrailDeb then break end
  3669. local New = Handle.CFrame.p
  3670. local Mag =(Old -New).magnitude
  3671. local Dis =(Old +New)/2
  3672. local Trail = Instance.new("Part",Character)
  3673. Trail.Material = "Neon"
  3674. Trail.Anchored = true
  3675. Trail.CanCollide = false
  3676. Trail.BrickColor = TorsoColor
  3677. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3678. Trail.TopSurface = 0
  3679. Trail.BottomSurface = 0
  3680. Trail.formFactor = "Custom"
  3681. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3682. local ms = Instance.new("BlockMesh",Trail)
  3683. ms.Scale = Vector3.new(1,1,1)
  3684. local TM = Instance.new("CylinderMesh",Trail)
  3685. TM.Scale = Vector3.new(1,1,1)
  3686. Old = New
  3687. coroutine.wrap(function()
  3688. for i = 1,0,-0.1 do
  3689. wait()
  3690. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3691. end
  3692. Trail:remove()
  3693. end)()
  3694. coroutine.wrap(function()
  3695. for i = 1,10 do
  3696. wait()
  3697. Trail.Transparency = Trail.Transparency +0.1
  3698. end end)()end end)()
  3699. Footsteps:Stop()
  3700. Footsteps2:Stop()
  3701. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  3702. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,30,40,math.random(20,40),"Normal",RootPart,.2,1) end)
  3703. so("http://www.roblox.com/asset/?id=159882578",Torso,1,1)
  3704. for i=0,1,0.1 do
  3705. swait()
  3706. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3707. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3708. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3709. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3710. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3711. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3712. end
  3713. if anim then
  3714. anim.Disabled=true
  3715. end
  3716. for i=0,1,0.05 do
  3717. swait()
  3718. Torso.Velocity=RootPart.CFrame.lookVector*20
  3719. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3720. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3721. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(0+40*i)),.5)
  3722. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3723. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3724. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3725. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3726. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3727. end
  3728. for i=0,1,0.05 do
  3729. swait()
  3730. Torso.Velocity=RootPart.CFrame.lookVector*40
  3731. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3732. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3733. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(41+80*i)),.5)
  3734. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3735. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3736. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3737. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3738. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3739. end
  3740. for i=0,1,0.05 do
  3741. swait()
  3742. Torso.Velocity=RootPart.CFrame.lookVector*60
  3743. so("http://www.roblox.com/asset/?id=231917758",LeftArm,0.2,1.2)
  3744. so("http://www.roblox.com/asset/?id=231917758",RightArm,0.2,1)
  3745. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(82+120*i)),.5)
  3746. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3747. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3748. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3749. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3750. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3751. end
  3752. so("http://www.roblox.com/asset/?id=159882625",Torso,1,1)
  3753. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3754. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3755. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3756. so("http://www.roblox.com/asset/?id=231917758",Torso,1,0.1)
  3757. for i=0,1,0.05 do
  3758. swait()
  3759. Torso.Velocity=RootPart.CFrame.lookVector*80
  3760. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(124+160*i)),.5)
  3761. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3762. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3763. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3764. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3765. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3766. end
  3767. for i=0,1,0.005 do
  3768. swait()
  3769. Torso.Velocity=RootPart.CFrame.lookVector*100
  3770. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,3)*angles(math.rad(0),math.rad(0),math.rad(168+4200*i)),.5)
  3771. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3772. Handleweld.C0=clerp(Handleweld.C0,cf(5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3773. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,0,0)*angles(math.rad(0),math.rad(180),math.rad(180)),.2)
  3774. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(90)),.3)
  3775. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-90)),.3)
  3776. end
  3777. --dmgstop()
  3778. Humanoid.WalkSpeed=12
  3779. attack=false
  3780. con1:disconnect()
  3781. con2:disconnect()
  3782. if anim then
  3783. anim.Disabled=false
  3784. end
  3785. if TrailDeb == true then
  3786. TrailDeb = false
  3787. end
  3788. end
  3789.  
  3790. function Push()
  3791. attack=true
  3792. mana=mana-20
  3793. if TrailDeb == false then
  3794. TrailDeb = true
  3795. end
  3796.  
  3797.  
  3798. coroutine.wrap(function()
  3799. local Old = Handle2.CFrame.p
  3800. while wait()do
  3801. if not TrailDeb then break end
  3802. local New = Handle2.CFrame.p
  3803. local Mag =(Old -New).magnitude
  3804. local Dis =(Old +New)/2
  3805. local Trail = Instance.new("Part",Character)
  3806. Trail.Material = "Neon"
  3807. Trail.Anchored = true
  3808. Trail.CanCollide = false
  3809. Trail.BrickColor = TorsoColor
  3810. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3811. Trail.TopSurface = 0
  3812. Trail.BottomSurface = 0
  3813. Trail.formFactor = "Custom"
  3814. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3815. local ms = Instance.new("BlockMesh",Trail)
  3816. ms.Scale = Vector3.new(1,1,1)
  3817. local TM = Instance.new("CylinderMesh",Trail)
  3818. TM.Scale = Vector3.new(1,1,1)
  3819. Old = New
  3820. coroutine.wrap(function()
  3821. for i = 1,0,-0.1 do
  3822. wait()
  3823. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3824. end
  3825. Trail:remove()
  3826. end)()
  3827. coroutine.wrap(function()
  3828. for i = 1,10 do
  3829. wait()
  3830. Trail.Transparency = Trail.Transparency +0.1
  3831. end end)()end end)()
  3832. coroutine.wrap(function()
  3833. local Old = Handle.CFrame.p
  3834. while wait()do
  3835. if not TrailDeb then break end
  3836. local New = Handle.CFrame.p
  3837. local Mag =(Old -New).magnitude
  3838. local Dis =(Old +New)/2
  3839. local Trail = Instance.new("Part",Character)
  3840. Trail.Material = "Neon"
  3841. Trail.Anchored = true
  3842. Trail.CanCollide = false
  3843. Trail.BrickColor = TorsoColor
  3844. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3845. Trail.TopSurface = 0
  3846. Trail.BottomSurface = 0
  3847. Trail.formFactor = "Custom"
  3848. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3849. local ms = Instance.new("BlockMesh",Trail)
  3850. ms.Scale = Vector3.new(1,1,1)
  3851. local TM = Instance.new("CylinderMesh",Trail)
  3852. TM.Scale = Vector3.new(1,1,1)
  3853. Old = New
  3854. coroutine.wrap(function()
  3855. for i = 1,0,-0.1 do
  3856. wait()
  3857. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3858. end
  3859. Trail:remove()
  3860. end)()
  3861. coroutine.wrap(function()
  3862. for i = 1,10 do
  3863. wait()
  3864. Trail.Transparency = Trail.Transparency +0.1
  3865. end end)()end end)()
  3866. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  3867. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,10,20,math.random(20,40),"Normal",RootPart,.2,1) end)
  3868. for i=0,1,0.1 do
  3869. swait()
  3870. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3871. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3872. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3873. Handleweld.C0=clerp(Handleweld.C0,cf(-5,0,-10)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3874. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,0,-10)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3875. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  3876. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  3877. end
  3878. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  3879. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3880. so("http://www.roblox.com/asset/?id=159882481",Torso,1,1)
  3881. for i=0,1,0.1 do
  3882. swait()
  3883. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3884. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3885. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3886. Handleweld.C0=clerp(Handleweld.C0,cf(-4,0,-20)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  3887. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,0,-20)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  3888. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(-20)),.3)
  3889. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*angles(math.rad(90),math.rad(0),math.rad(20)),.3)
  3890. end
  3891. --dmgstop()
  3892. attack=false
  3893. con1:disconnect()
  3894. con2:disconnect()
  3895. if TrailDeb == true then
  3896. TrailDeb = false
  3897. end
  3898. end
  3899.  
  3900. function Clap()
  3901. attack=true
  3902. mana=mana-20
  3903. if TrailDeb == false then
  3904. TrailDeb = true
  3905. end
  3906.  
  3907.  
  3908. coroutine.wrap(function()
  3909. local Old = Handle2.CFrame.p
  3910. while wait()do
  3911. if not TrailDeb then break end
  3912. local New = Handle2.CFrame.p
  3913. local Mag =(Old -New).magnitude
  3914. local Dis =(Old +New)/2
  3915. local Trail = Instance.new("Part",Character)
  3916. Trail.Material = "Neon"
  3917. Trail.Anchored = true
  3918. Trail.CanCollide = false
  3919. Trail.BrickColor = TorsoColor
  3920. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3921. Trail.TopSurface = 0
  3922. Trail.BottomSurface = 0
  3923. Trail.formFactor = "Custom"
  3924. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3925. local ms = Instance.new("BlockMesh",Trail)
  3926. ms.Scale = Vector3.new(1,1,1)
  3927. local TM = Instance.new("CylinderMesh",Trail)
  3928. TM.Scale = Vector3.new(1,1,1)
  3929. Old = New
  3930. coroutine.wrap(function()
  3931. for i = 1,0,-0.1 do
  3932. wait()
  3933. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3934. end
  3935. Trail:remove()
  3936. end)()
  3937. coroutine.wrap(function()
  3938. for i = 1,10 do
  3939. wait()
  3940. Trail.Transparency = Trail.Transparency +0.1
  3941. end end)()end end)()
  3942. coroutine.wrap(function()
  3943. local Old = Handle.CFrame.p
  3944. while wait()do
  3945. if not TrailDeb then break end
  3946. local New = Handle.CFrame.p
  3947. local Mag =(Old -New).magnitude
  3948. local Dis =(Old +New)/2
  3949. local Trail = Instance.new("Part",Character)
  3950. Trail.Material = "Neon"
  3951. Trail.Anchored = true
  3952. Trail.CanCollide = false
  3953. Trail.BrickColor = TorsoColor
  3954. Trail.Size = Vector3.new(0.2,Mag,0.2)
  3955. Trail.TopSurface = 0
  3956. Trail.BottomSurface = 0
  3957. Trail.formFactor = "Custom"
  3958. Trail.CFrame = CFrame.new(Dis,New)* CFrame.Angles(math.pi/2,0,0)
  3959. local ms = Instance.new("BlockMesh",Trail)
  3960. ms.Scale = Vector3.new(1,1,1)
  3961. local TM = Instance.new("CylinderMesh",Trail)
  3962. TM.Scale = Vector3.new(1,1,1)
  3963. Old = New
  3964. coroutine.wrap(function()
  3965. for i = 1,0,-0.1 do
  3966. wait()
  3967. TM.Scale = TM.Scale * Vector3.new(i,1,i)
  3968. end
  3969. Trail:remove()
  3970. end)()
  3971. coroutine.wrap(function()
  3972. for i = 1,10 do
  3973. wait()
  3974. Trail.Transparency = Trail.Transparency +0.1
  3975. end end)()end end)()
  3976. con1=Gear2.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3977. con2=Gear.Touched:connect(function(hit) Damagefunc(hit,20,30,math.random(20,40),"Normal",RootPart,.2,1) end)
  3978. so("http://www.roblox.com/asset/?id=159882584",Torso,1,0.9)
  3979. for i=0,1,0.08 do
  3980. swait()
  3981. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3982. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3983. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3984. Handle2weld.C0=clerp(Handle2weld.C0,cf(-5,1,-5)*angles(math.rad(0),math.rad(-40),math.rad(20)),.2)
  3985. Handleweld.C0=clerp(Handleweld.C0,cf(5,1,-5)*angles(math.rad(0),math.rad(40),math.rad(-20)),.2)
  3986. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-30,0,-20),.3)
  3987. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-30,0,20),.3)
  3988. end
  3989. so("http://www.roblox.com/asset/?id=231917758",Handle2,1,.8)
  3990. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  3991. for i=0,1,0.08 do
  3992. swait()
  3993. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  3994. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  3995. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  3996. Handle2weld.C0=clerp(Handle2weld.C0,cf(4,1,-5)*angles(math.rad(0),math.rad(-43),math.rad(20)),.2)
  3997. Handleweld.C0=clerp(Handleweld.C0,cf(-4,1,-5)*angles(math.rad(0),math.rad(43),math.rad(-20)),.2)
  3998. LW.C0=clerp(LW.C0,cf(-1,0.5,-1)*euler(-30,0,20),.3)
  3999. RW.C0=clerp(RW.C0,cf(1,0.5,-1)*euler(-30,0,-20),.3)
  4000. end
  4001. --dmgstop()
  4002. attack=false
  4003. con1:disconnect()
  4004. con2:disconnect()
  4005. if TrailDeb == true then
  4006. TrailDeb = false
  4007. end
  4008. end
  4009.  
  4010. function Hai()
  4011. attack=true
  4012. Humanoid.WalkSpeed=0
  4013. so("http://www.roblox.com/asset/?id=159882567",Torso,1,1)
  4014. for i=0,1,0.1 do
  4015. swait()
  4016. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4017. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4018. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4019. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  4020. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  4021. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4022. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4023. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  4024. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4025. end
  4026. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  4027. for i=0,1,0.1 do
  4028. swait()
  4029. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4030. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4031. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4032. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  4033. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4034. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4035. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4036. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.5)
  4037. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4038. end
  4039. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  4040. for i=0,1,0.1 do
  4041. swait()
  4042. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4043. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4044. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4045. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  4046. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  4047. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4048. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4049. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  4050. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4051.  
  4052. end
  4053. so("http://www.roblox.com/asset/?id=231917758",Handle,1,.8)
  4054. for i=0,1,0.1 do
  4055. swait()
  4056. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4057. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4058. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4059. Handleweld.C0=clerp(Handleweld.C0,cf(3,8,0)*angles(math.rad(0),math.rad(-20),math.rad(-30)),.2)
  4060. Handle2weld.C0=clerp(Handle2weld.C0,cf(0.5,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4061. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4062. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4063. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(50)),.3)
  4064. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4065. end
  4066. so("http://www.roblox.com/asset/?id=231917758",Handle,1,1)
  4067. for i=0,1,0.1 do
  4068. swait()
  4069. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4070. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4071. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4072. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,3)*angles(math.rad(20),math.rad(-20),math.rad(20)),.2)
  4073. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.2)
  4074. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4075. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  4076. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.3)
  4077. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16)),.3)
  4078. end
  4079. --dmgstop()
  4080. Humanoid.WalkSpeed=12
  4081. attack=false
  4082. end
  4083.  
  4084. function Die()
  4085. attack=true
  4086. Footsteps:Stop()
  4087. Footsteps2:Stop()
  4088. local Fire = it("Sound",Character.Torso)
  4089. Fire.SoundId = "rbxassetid://192104941"
  4090. Fire.Looped = true
  4091. Fire.Pitch = 1
  4092. Fire.Volume = 1
  4093. local Fire2 = it("Sound",Handle2)
  4094. Fire2.SoundId = "rbxassetid://192104941"
  4095. Fire2.Looped = true
  4096. Fire2.Pitch = 1
  4097. Fire2.Volume = 1
  4098. local Fire3 = it("Sound",Handle)
  4099. Fire3.SoundId = "rbxassetid://192104941"
  4100. Fire3.Looped = true
  4101. Fire3.Pitch = 1
  4102. Fire3.Volume = 1
  4103. local Fire4 = it("Sound",handle)
  4104. Fire4.SoundId = "rbxassetid://192104941"
  4105. Fire4.Looped = true
  4106. Fire4.Pitch = 1
  4107. Fire4.Volume = 1
  4108. local fire = Instance.new("ParticleEmitter", Character.Torso)
  4109. fire.Lifetime = NumberRange.new(0.5)
  4110. fire.Speed = NumberRange.new(1, 3)
  4111. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  4112. fire.Rate = 0
  4113. fire.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4114. fire.LightEmission = 0.6
  4115. fire.Texture = "http://www.roblox.com/asset/?id=242911609"
  4116. fire.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  4117. local fire2 = Instance.new("ParticleEmitter", Handle)
  4118. fire2.Lifetime = NumberRange.new(0.5)
  4119. fire2.Speed = NumberRange.new(1, 3)
  4120. fire2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  4121. fire2.Rate = 0
  4122. fire2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4123. fire2.LightEmission = 0.6
  4124. fire2.Texture = "http://www.roblox.com/asset/?id=242911609"
  4125. fire2.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  4126. local fire3 = Instance.new("ParticleEmitter", Handle2)
  4127. fire3.Lifetime = NumberRange.new(0.5)
  4128. fire3.Speed = NumberRange.new(1, 3)
  4129. fire3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 6.564, 5.521), NumberSequenceKeypoint.new(1, 6.534, 5.521)})
  4130. fire3.Rate = 0
  4131. fire3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4132. fire3.LightEmission = 0.6
  4133. fire3.Texture = "http://www.roblox.com/asset/?id=242911609"
  4134. fire3.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  4135. local fire4 = Instance.new("ParticleEmitter", handle)
  4136. fire4.Lifetime = NumberRange.new(0.5)
  4137. fire4.Speed = NumberRange.new(1, 3)
  4138. fire4.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3.564, 2.521), NumberSequenceKeypoint.new(1, 3.534, 2.521)})
  4139. fire4.Rate = 0
  4140. fire4.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.627, 0.587), NumberSequenceKeypoint.new(1, 1)})
  4141. fire4.LightEmission = 0.6
  4142. fire4.Texture = "http://www.roblox.com/asset/?id=242911609"
  4143. fire4.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0.666667, 0))
  4144. Humanoid.WalkSpeed = 0
  4145. so("http://www.roblox.com/asset/?id=199149297",Head,1,1)
  4146. so("http://www.roblox.com/asset/?id=209527203",Head,1,1)
  4147. for i=0,1,0.08 do
  4148. swait()
  4149. Torso.Velocity=RootPart.CFrame.lookVector*-30
  4150. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,0)*angles(math.rad(-45),math.rad(0),math.rad(90)),.2)
  4151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.2)
  4152. handleweld.C0=clerp(handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  4153. Handleweld.C0=clerp(Handleweld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  4154. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.2)
  4155. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45)),.2)
  4156. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.2)
  4157. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  4158. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.2)
  4159. end
  4160. for i=0,1,0.005 do
  4161. swait()
  4162. moosick.Volume=1-2*i
  4163. light.Range=15-10*i
  4164. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  4165. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  4166. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  4167. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  4168. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  4169. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  4170. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4171. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4172. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4173. end
  4174. light.Range=0
  4175. for i=0,1,0.01 do
  4176. swait()
  4177. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  4178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  4179. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  4180. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  4181. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  4182. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  4183. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4184. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4185. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4186. end
  4187. so("http://www.roblox.com/asset/?id=209527175",Head,1,0.9)
  4188. fire.Rate = 1000
  4189. fire2.Rate = 1000
  4190. fire3.Rate = 1000
  4191. fire4.Rate = 1000
  4192. Fire:Play()
  4193. Fire2:Play()
  4194. Fire3:Play()
  4195. Fire4:Play()
  4196. for i=0,1,0.005 do
  4197. swait()
  4198. Character.Head.face.Transparency = 0+1*i
  4199. LeftArm.Transparency=0+1*i
  4200. RightArm.Transparency=0+1*i
  4201. LeftLeg.Transparency=0+1*i
  4202. RightLeg.Transparency=0+1*i
  4203. Head.Transparency=0+1*i
  4204. Torso.Transparency=0+1*i
  4205. for _,v in pairs(Character:children()) do
  4206. if v:IsA("Hat") then
  4207. v.Handle.Transparency = 0+1*i
  4208. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,1,-2.5)*angles(math.rad(-90),math.rad(0),math.rad(180)),.2)
  4209. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(90)),.4)
  4210. handleweld.C0=clerp(handleweld.C0,cf(0,10,-5)*angles(math.rad(60),math.rad(30),math.rad(30)),.2)
  4211. Handleweld.C0=clerp(Handleweld.C0,cf(0,20,-5)*angles(math.rad(150),math.rad(0),math.rad(0)),.2)
  4212. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,20,-5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  4213. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(0),math.rad(90)),.2)
  4214. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4215. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4216. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4217. end
  4218. end
  4219. --dmgstop()
  4220. end
  4221. Humanoid.Health = 0
  4222. end
  4223.  
  4224. equipanim()
  4225.  
  4226. local sine = 0
  4227. local change = 1
  4228. local val = 0
  4229.  
  4230. local mananum=0
  4231. while true do
  4232. swait()
  4233. sine = sine + change
  4234. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4235. local velderp=RootPart.Velocity.y
  4236. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4237. if equipped==true or equipped==false then
  4238. if Anim=="Idle" and attack==false then
  4239. idle=idle+1
  4240. else
  4241. idle=0
  4242. end
  4243. if Humanoid.Health <=20 then
  4244. if attack == false then
  4245. Humanoid.Health = math.huge
  4246. Die()
  4247. end
  4248. end
  4249. if idle>=1000 then
  4250. if attack==false then
  4251. --Sheath()
  4252. end
  4253. end
  4254. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4255. Anim="Jump"
  4256. if attack==false then
  4257. Footsteps:Stop()
  4258. Footsteps2:Stop()
  4259. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  4260. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4261. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0),.3)
  4262. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.25,0,0.5),.3)
  4263. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4264. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.25,0,-0.5),.3)
  4265. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4266. RH.C0=clerp(RH.C0,cf(1,0,-.75)*euler(-0.5,1.57,0)*euler(0,0,0),.2)
  4267. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(0,0,0),.2)
  4268. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  4269. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(20),math.rad(0)),.2)
  4270. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(20),math.rad(-20),math.rad(0)),.2)
  4271. end
  4272. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4273. Anim="Fall"
  4274. if attack==false then
  4275. Footsteps:Stop()
  4276. Footsteps2:Stop()
  4277. Neck.C0=clerp(Neck.C0,necko*euler(0.3,0,0),.3)
  4278. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4279. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*euler(0,0,0),.3)
  4280. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.1,0,1),.3)
  4281. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4282. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.1,0,-1),.3)
  4283. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  4284. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.6,1.57,0)*euler(0,0,0),.2)
  4285. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.8,-1.57,0)*euler(0,0,0),.2)
  4286. handleweld.C0=clerp(handleweld.C0,cf(0,0,-1)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4287. Handleweld.C0=clerp(Handleweld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(-10),math.rad(0)),.2)
  4288. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,-1,0)*angles(math.rad(-20),math.rad(10),math.rad(0)),.2)
  4289. end
  4290. elseif torvel<1 and hitfloor~=nil then
  4291. Anim="Idle"
  4292. change=0.5
  4293. if idle>=1000 then
  4294. if attack==false then
  4295. Footsteps:Stop()
  4296. Footsteps2:Stop()
  4297. Humanoid.WalkSpeed=12
  4298. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,6-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(0),math.rad(50)),.1)
  4299. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(5+2*math.cos(sine/5.5)),math.rad(-5-2*math.cos(sine/5.5)),math.rad(-50)),.1)
  4300. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.1)
  4301. RW.C0=clerp(RW.C0,cf(0.8,0.3,-0.5)*angles(math.rad(70),math.rad(0),math.rad(-85)),.5)
  4302. LW.C0=clerp(LW.C0,cf(-0.6,0.5,-0.7)*angles(math.rad(70),math.rad(0),math.rad(85)),.5)
  4303. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4304. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4305. handleweld.C0=clerp(handleweld.C0,cf(3.2,-1,-2)*angles(math.rad(90),math.rad(0),math.rad(60)),.3)
  4306. Handleweld.C0=clerp(Handleweld.C0,cf(-2,-1.5+1*math.cos(sine/50),6)*angles(math.rad(60),math.rad(-25),math.rad(-90)),.4)
  4307. Handle2weld.C0=clerp(Handle2weld.C0,cf(5,1.5-0.5*math.cos(sine/50),-5)*angles(math.rad(-110),math.rad(25),math.rad(60)),.3)
  4308. end
  4309. else
  4310. if attack==false then
  4311. Footsteps:Stop()
  4312. Footsteps2:Stop()
  4313. Humanoid.WalkSpeed=12
  4314. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(6),math.rad(0),math.rad(0)),.3)
  4315. Neck.C0=clerp(Neck.C0,necko*angles(math.rad(3+3*math.cos(sine/36)),math.rad(0),math.rad(0)),.3)
  4316. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4317. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(16-6*math.cos(sine/28))),.3)
  4318. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-16+6*math.cos(sine/28))),.3)
  4319. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(16)),.3)
  4320. LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(24)),.3)
  4321. handleweld.C0=clerp(handleweld.C0,cf(0-1*math.cos(sine/40),0-0.5*math.cos(sine/20),0)*angles(math.rad(-5+5*math.cos(sine/20)),math.rad(0),math.rad(0)),.2)
  4322. Handleweld.C0=clerp(Handleweld.C0,cf(0-1*math.cos(sine/30),0,0-1*math.cos(sine/30))*angles(math.rad(0+8*math.cos(sine/30)),math.rad(0),math.rad(0-8*math.cos(sine/30))),.2)
  4323. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+1*math.cos(sine/36),0,0+1*math.cos(sine/36))*angles(math.rad(0-12*math.cos(sine/36)),math.rad(0),math.rad(0-12*math.cos(sine/36))),.2)
  4324. end
  4325. end
  4326. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4327. Anim="Walk"
  4328. if attack==false then
  4329. change=0.8
  4330. --[[RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(35),math.rad(0),math.rad(15*math.cos(sine/10))),.3)
  4331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
  4332. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  4333. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(135*math.cos(sine/9)),math.rad(0),math.rad(0)),.3)
  4334. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  4335. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  4336. --Handleweld.C0=clerp(--Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  4337. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0,0,0),.2)
  4338. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0.1,0,0),.2)
  4339. --RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-0.1,0,0.2),.2)
  4340. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-5),math.rad(-25),math.rad(20)),.3)
  4341. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3)
  4342. RH.C0=clerp(RH.C0,RHC0,.3)
  4343. LH.C0=clerp(LH.C0,LHC0,.3)
  4344. Handleweld.C0=clerp(Handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4345. Handle2weld.C0=clerp(Handle2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4346. ]]--
  4347. Footsteps:Play()
  4348. Footsteps2:Stop()
  4349. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(10+1*math.cos(sine/2.5)),math.rad(0),math.rad(1-5*math.cos(sine/5))),.3)
  4350. Neck.C0=clerp(Neck.C0,necko*euler(0+0.075*math.cos(sine/2.5),0,0)*angles(math.rad(0),math.rad(0),math.rad(1+5*math.cos(sine/5))),.3)
  4351. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4352. RW.C0=clerp(RW.C0,cf(1.4+0.25*math.cos(sine/5),0.5+0.25*math.cos(sine/5),-0.2+0.5*math.cos(sine/5))*angles(math.rad(20-60*math.cos(sine/5)),math.rad(0),math.rad(-4+30*math.cos(sine/5))),.3)
  4353. LW.C0=clerp(LW.C0,cf(-1.4+0.25*math.cos(sine/5),0.5-0.25*math.cos(sine/5),-0.2-0.5*math.cos(sine/5))*angles(math.rad(20+60*math.cos(sine/5)),math.rad(0),math.rad(4+30*math.cos(sine/5))),.3)
  4354. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  4355. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.25*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0+50*math.cos(sine/5))),.3)
  4356. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4357. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-30),math.rad(0-1*math.cos(sine/30))),.2)
  4358. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(30),math.rad(0-3*math.cos(sine/36))),.2)
  4359. end
  4360. elseif torvel>=22 and hitfloor~=nil then
  4361. Anim="Run"
  4362. change=1
  4363. if attack==false then
  4364. Footsteps:Stop()
  4365. Footsteps2:Play()
  4366. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+0.1*math.cos(sine/2.5))*angles(math.rad(20+1*math.cos(sine/2.5)),math.rad(0),math.rad(0)),.3)
  4367. Neck.C0=clerp(Neck.C0,necko*euler(-0.2+0.075*math.cos(sine/2.5),0,0),.3)
  4368. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  4369. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(24)),.3)
  4370. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-40),math.rad(0),math.rad(-24)),.3)
  4371. RH.C0=clerp(RH.C0,cf(1,-1-0.1*math.cos(sine/5),0-0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  4372. LH.C0=clerp(LH.C0,cf(-1,-1+0.1*math.cos(sine/5),0+0.5*math.cos(sine/5))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0+70*math.cos(sine/5))),.3)
  4373. handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  4374. Handleweld.C0=clerp(Handleweld.C0,cf(0-.5*math.cos(sine/30),0,0-.5*math.cos(sine/30))*angles(math.rad(0+1*math.cos(sine/30)),math.rad(-60),math.rad(0-1*math.cos(sine/30))),.2)
  4375. Handle2weld.C0=clerp(Handle2weld.C0,cf(0+.5*math.cos(sine/36),0,0+.5*math.cos(sine/36))*angles(math.rad(0-3*math.cos(sine/36)),math.rad(60),math.rad(0-3*math.cos(sine/36))),.2)
  4376. end
  4377. end
  4378. end
  4379. fenbarmana2:TweenSize(UDim2.new(4*mana/100,0,0.2,0),nil,1,0.4,true)
  4380. fenbarmana4.Text="[Energy] <{[ "..mana.." ]}> [Energy]"
  4381. if mana>=100 then
  4382. mana=100
  4383. else
  4384. if mananum<=8 then
  4385. mananum=mananum+1
  4386. else
  4387. mananum=0
  4388. mana=mana+1
  4389. end
  4390. end
  4391. end
  4392. -- ~CLarramore
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400. end)
  4401.  
  4402. TextLabel.Parent = Scriptthing
  4403. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  4404. TextLabel.Position = UDim2.new(0.052521009, 0, 0.365269452, 0)
  4405. TextLabel.Size = UDim2.new(0, 399, 0, 281)
  4406. TextLabel.Font = Enum.Font.SourceSans
  4407. TextLabel.Text = "I will add more dud"
  4408. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  4409. TextLabel.TextSize = 50
  4410.  
  4411. Off.Name = "Off"
  4412. Off.Parent = Scriptthing
  4413. Off.BackgroundColor3 = Color3.new(1, 1, 1)
  4414. Off.Position = UDim2.new(-0.000822365284, 0, -0.199951023, 0)
  4415. Off.Size = UDim2.new(0, 200, 0, 50)
  4416. Off.Font = Enum.Font.SourceSans
  4417. Off.Text = "X"
  4418. Off.TextColor3 = Color3.new(0, 0, 0)
  4419. Off.TextSize = 14
  4420.  
  4421. Off.MouseButton1Down:connect(function()
  4422.  
  4423.  
  4424.  
  4425. Scriptthing.Visible = false
  4426. On.Visible = true
  4427.  
  4428.  
  4429.  
  4430.  
  4431.  
  4432.  
  4433.  
  4434. end)
  4435. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement