Advertisement
Pug_Lord666

Untitled

Apr 29th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.93 KB | None | 0 0
  1. --[[
  2. This Script is created by:
  3.  
  4. Fenrier: Everything
  5. xSoulStealerx: Model of the bot
  6.  
  7. If you're gonna steal this, then please I ask you. Please don't forum,free model, give
  8. away, or anything like that to this script. Thank you very much :)
  9. ]]
  10. Player = game:GetService("Players").faze_wintel
  11. Character = Player.Character
  12. PlayerGui = Player.PlayerGui
  13. Backpack = Player.Backpack
  14. Torso = Character.Torso
  15. Head = Character.Head
  16. LeftArm = Character["Left Arm"]
  17. LeftLeg = Character["Left Leg"]
  18. RightArm = Character["Right Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LS = Torso["Left Shoulder"]
  21. LH = Torso["Left Hip"]
  22. RS = Torso["Right Shoulder"]
  23. RH = Torso["Right Hip"]
  24. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. mode=1
  26. color="Navy blue"
  27. damage=15
  28. canshoot=false
  29. shooting1=false
  30. shooting2=false
  31. cframe=CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  32. weld=false
  33. local main = Instance.new("Part")
  34. local mod = Instance.new("Model",Character)
  35. local pip2 = Instance.new("Part")
  36. local pip1 = Instance.new("Part")
  37. local mainp = Instance.new("Part")
  38. local mainweld = Instance.new("Weld")
  39. local p1 = Instance.new("Part")
  40. local p2 = Instance.new("Part")
  41. local p3 = Instance.new("Part")
  42. local p4 = Instance.new("Part")
  43. local p5 = Instance.new("Part")
  44. local p6 = Instance.new("Part")
  45. local p7 = Instance.new("Part")
  46. local p8 = Instance.new("Part")
  47. local p9 = Instance.new("Seat")
  48. p6.BrickColor=BrickColor.new("Black")
  49. local Type=Instance.new("StringValue")
  50. local CanShoot=Instance.new("BoolValue")
  51. local MienMouse=Instance.new("ObjectValue")
  52. MMouse = nil
  53. sitting=false
  54. --player
  55. player = nil
  56. --save shoulders
  57. RSH, LSH = nil, nil
  58. --welds
  59. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  60. --what anim
  61. anim = "none"
  62.  
  63.  
  64. if Player.PlayerGui:findFirstChild("Fen's GUI") ~= nil then
  65. Player.PlayerGui:findFirstChild("Fen's GUI").Parent = nil
  66. end
  67.  
  68. local fengui = Instance.new("GuiMain")
  69. fengui.Parent = Player.PlayerGui
  70. fengui.Name = "Fen's GUI"
  71. local fenframe = Instance.new("Frame")
  72. fenframe.Parent = fengui
  73. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  74. fenframe.BackgroundTransparency = 1
  75. fenframe.BorderColor3 = Color3.new(17,17,17)
  76. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  77. fenframe.Position = UDim2.new(0,0,0,0)
  78. local fentext2 = Instance.new("TextLabel")
  79. fentext2.Parent = fenframe
  80. fentext2.Text = " "
  81. fentext2.BackgroundTransparency = 0
  82. fentext2.BackgroundColor3 = Color3.new(0,0,1)
  83. fentext2.SizeConstraint = "RelativeXY"
  84. fentext2.TextXAlignment = "Center"
  85. fentext2.TextYAlignment = "Center"
  86. fentext2.Position = UDim2.new(0,10,1,170)
  87. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  88. local fentext3 = Instance.new("TextLabel")
  89. fentext3.Parent = fenframe
  90. fentext3.Text = "Shoot: "..tostring(canshoot).." | Mode: "..mode..""
  91. fentext3.BackgroundTransparency = 0
  92. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  93. fentext3.SizeConstraint = "RelativeXY"
  94. fentext3.TextXAlignment = "Center"
  95. fentext3.TextYAlignment = "Center"
  96. fentext3.Position = UDim2.new(0,10,1,170)
  97. fentext3.Size = UDim2.new(400*0.007,0,0.400000006,0)
  98.  
  99. function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form)
  100. part.Parent = parent
  101. part.formFactor = form
  102. part.CanCollide = collide
  103. part.Transparency = tran
  104. part.Reflectance = ref
  105. part.Size = Vector3.new(x,y,z)
  106. part.BrickColor = BrickColor.new(color)
  107. part.TopSurface = 0
  108. part.BottomSurface = 0
  109. part.Anchored = anchor
  110. part:BreakJoints()
  111. end
  112.  
  113. function weld(w, p, p0, p1, a, b, c, x, y, z)
  114. w.Parent = p
  115. w.Part0 = p0
  116. w.Part1 = p1
  117. w.C1 = CFrame.fromEulerAnglesXYZ(a,b,c) * CFrame.new(x,y,z)
  118. end
  119.  
  120. function mesh(mesh, parent, x, y, z, type)
  121. mesh.Parent = parent
  122. mesh.Scale = Vector3.new(x, y, z)
  123. mesh.MeshType = type
  124. end
  125.  
  126. function findNearestTorso(pos)
  127. local list = game.Workspace:children()
  128. local torso = nil
  129. local dist = 50
  130. local temp = nil
  131. local human = nil
  132. local temp2 = nil
  133. for x = 1, #list do
  134. temp2 = list[x]
  135. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Name ~= "kash5") then
  136. temp = temp2:findFirstChild("Torso")
  137. human = temp2:findFirstChild("Humanoid")
  138. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  139. if (temp.Position - pos).magnitude < dist then
  140. torso = temp
  141. dist = (temp.Position - pos).magnitude
  142. end
  143. end
  144. end
  145. end
  146. return torso
  147. end
  148.  
  149. if Character:findFirstChild("Controller Model") ~= nil then
  150. Character:findFirstChild("Controller Model").Parent = nil
  151. end
  152.  
  153. CModel=Instance.new("Model")
  154. CModel.Parent=Character
  155. CModel.Name="Controller Model"
  156.  
  157. function makerob()
  158. coroutine.resume(coroutine.create(function()
  159. if Character:findFirstChild("Fen's Bot",true) ~= nil then
  160. Character:findFirstChild("Fen's Bot",true).Parent = nil
  161. end
  162. mod.Parent=Character
  163. mod.Name = "Fen's Bot"
  164. -- local main = Instance.new("Part")
  165. prop(main,mod,true,0,0,2.4,1.3,4,color,false,"Custom")
  166. main.Name = "MainPart"
  167. main.Position = Head.Position+Vector3.new(0,10,0)
  168.  
  169. for i=-1, 1, 2 do
  170. local fir = Instance.new("Part")
  171. prop(fir,mod,true,0,0,1,1.8,1,"Black",false,"Custom")
  172. local wel = Instance.new("Weld")
  173. weld(wel,main,main,fir,(0.4+math.pi),0,i/2.5,i,1,-1.7)
  174. local fira = Instance.new("Fire",fir)
  175. fira.Color = Color3.new(0.1,1,0.1)
  176. fira.SecondaryColor = fira.Color
  177. fira.Size = 1
  178. fira.Heat = 25
  179. end
  180. for i=-1, 1, 2 do
  181. local fir = Instance.new("Part")
  182. prop(fir,mod,true,0,0,1,1.8,1,"Black",false,"Custom")
  183. local wel = Instance.new("Weld")
  184. weld(wel,main,main,fir,(-0.4+math.pi),0,i/2.5,i,1,1.7)
  185. local fira = Instance.new("Fire",fir)
  186. fira.Color = Color3.new(0.1,1,0.1)
  187. fira.SecondaryColor = fira.Color
  188. fira.Size = 1
  189. fira.Heat = 25
  190. end
  191. prop(pip2,mod,true,0,0,0.6,2,0.6,"Black",false,"Custom")
  192. local mes = Instance.new("SpecialMesh")
  193. mesh(mes,pip2,1,1,1,"Head")
  194. local we = Instance.new("Weld")
  195. weld(we,main,main,pip2,1.57,0,1.57,0.6,-0.3,2.2)
  196. prop(pip1,mod,true,0,0,0.6,2,0.6,"Black",false,"Custom")
  197. local mes = Instance.new("SpecialMesh")
  198. mesh(mes,pip1,1,1,1,"Head")
  199. local we = Instance.new("Weld")
  200. weld(we,main,main,pip1,1.57,0,1.57,-0.6,-0.3,2.2)
  201. local bal = Instance.new("Part")
  202. prop(bal,mod,true,0,0,2.2,1,3.6,"Black",false,"Custom")
  203. local mf = Instance.new("SpecialMesh")
  204. mesh(mf,bal,1,1,1,"Sphere")
  205. local weg = Instance.new("Weld")
  206. weld(weg,main,main,bal,0,0,0,0,-0.6,0)
  207. local pos = Instance.new("BodyPosition",main)
  208. pos.position = Torso.Position + Vector3.new(0,25,0)
  209. pos.maxForce = Vector3.new(7500,7500,7500)
  210. pos.Name = "BP"
  211. local bg = Instance.new("BodyGyro",main)
  212. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  213. bg.P = 50000
  214. bg.cframe = CFrame.new(main.Position, Torso.Position)
  215. bg.Name = "BG"
  216. while true do
  217. wait()
  218. if mode==1 then
  219. if workspace.kash5.Torso then
  220. local target = findNearestTorso(Character.Torso.Position)
  221. if target~=nil then
  222. bg.cframe = CFrame.new(main.Position, target.Position)
  223. if canshoot==true then
  224. coroutine.resume(coroutine.create(function()
  225. if target~=nil and shooting1==false then
  226. shooting1=true
  227. wait(math.random())
  228. fire1(0.3)
  229. shoottrail2(pip1,damage/2)
  230. shooting1=false
  231. end
  232. end))
  233. coroutine.resume(coroutine.create(function()
  234. if target~=nil and shooting2==false then
  235. shooting2=true
  236. wait(math.random())
  237. fire1(0.3)
  238. shoottrail2(pip2,damage*2)
  239. shooting2=false
  240. end
  241. end))
  242. end
  243. else
  244. bg.cframe = CFrame.new(main.Position, Torso.Position)
  245. end
  246. local heh = math.random(1,35)
  247. if heh == 1 then
  248. pos.position = Torso.Position + Vector3.new(math.random(-24,24),math.random(5,25),math.random(-24,24))
  249. end
  250. end
  251. elseif mode==2 then
  252. if workspace.kash5.Torso then
  253. -- print(shooting)
  254. vel=main.Velocity.x
  255. if vel>=0.7 then
  256. vel=0.7
  257. end
  258. if vel<-0.7 then
  259. vel=-0.7
  260. end
  261. vel2=main.Velocity.z
  262. if vel2>=0.7 then
  263. vel2=0.7
  264. end
  265. if vel2<-0.7 then
  266. vel2=-0.7
  267. end
  268. p2.Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(-vel,0,vel2)
  269. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5)
  270. LW.C1 = CFrame.new(vel2/3, 0.5-vel/2, 0) * CFrame.fromEulerAnglesXYZ(0,0,-vel2/2)
  271. if canshoot==true then
  272. coroutine.resume(coroutine.create(function()
  273. if target~=nil and shooting1==false then
  274. shooting1=true
  275. wait(math.random())
  276. fire1(0.3)
  277. shoottrail2(pip1,damage/2)
  278. shooting1=false
  279. end
  280. end))
  281. coroutine.resume(coroutine.create(function()
  282. if target~=nil and shooting2==false then
  283. shooting2=true
  284. wait(math.random())
  285. fire1(0.3)
  286. shoottrail2(pip2,damage*2)
  287. shooting2=false
  288. end
  289. end))
  290. end
  291. if MMouse.Hit.p~=nil then
  292. bg.cframe = CFrame.new(main.Position, MMouse.Hit.p)
  293. end
  294. local heh = math.random(1,35)
  295. if heh == 1 then
  296. if MMouse.Hit.p~=nil then
  297. pos.position = MMouse.Hit.p + Vector3.new(math.random(-24,24),math.random(5,25),math.random(-24,24))
  298. else
  299. pos.position = Torso.Position + Vector3.new(math.random(-24,24),math.random(5,25),math.random(-24,24))
  300. end
  301. end
  302. end
  303. elseif mode==3 then
  304. if workspace.kash5.Torso then
  305. local target = findNearestTorso(Character.Torso.Position)
  306. if target~=nil then
  307. bg.cframe = CFrame.new(main.Position, target.Position)
  308. -- print(shooting)
  309. if canshoot==true then
  310. coroutine.resume(coroutine.create(function()
  311. if target~=nil and shooting1==false then
  312. shooting1=true
  313. wait(math.random())
  314. fire1(0.3)
  315. shoottrail2(pip1,damage/2)
  316. shooting1=false
  317. end
  318. end))
  319. coroutine.resume(coroutine.create(function()
  320. if target~=nil and shooting2==false then
  321. shooting2=true
  322. wait(math.random())
  323. fire1(0.3)
  324. shoottrail2(pip2,damage*2)
  325. shooting2=false
  326. end
  327. end))
  328. end
  329. else
  330. bg.cframe = CFrame.new(main.Position, Torso.Position)
  331. end
  332. local heh = 1
  333. if heh == 1 then
  334. pos.position = Torso.Position + Vector3.new(0,20,0)
  335. end
  336. end
  337. elseif mode==4 then
  338. if workspace.kash5.Torso then
  339. vel=main.Velocity.x
  340. if vel>=0.7 then
  341. vel=0.7
  342. end
  343. if vel<-0.7 then
  344. vel=-0.7
  345. end
  346. vel2=main.Velocity.z
  347. if vel2>=0.7 then
  348. vel2=0.7
  349. end
  350. if vel2<-0.7 then
  351. vel2=-0.7
  352. end
  353. p2.Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(-vel,0,vel2)
  354. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5)
  355. LW.C1 = CFrame.new(vel2/3, 0.5-vel/2, 0) * CFrame.fromEulerAnglesXYZ(0,0,-vel2/2)
  356. if canshoot==true then
  357. coroutine.resume(coroutine.create(function()
  358. if target~=nil and shooting1==false then
  359. shooting1=true
  360. wait(math.random())
  361. fire1(0.3)
  362. shoottrail2(pip1,damage/2)
  363. shooting1=false
  364. end
  365. end))
  366. coroutine.resume(coroutine.create(function()
  367. if target~=nil and shooting2==false then
  368. shooting2=true
  369. wait(math.random())
  370. fire1(0.3)
  371. shoottrail2(pip2,damage*2)
  372. shooting2=false
  373. end
  374. end))
  375. end
  376. if MMouse.Hit.p~=nil then
  377. bg.cframe = CFrame.new(main.Position, MMouse.Hit.p)
  378. end
  379. local heh = 1
  380. if heh == 1 then
  381. pos.position = Torso.Position + Vector3.new(0,20,0)
  382. end
  383. end
  384. elseif mode==5 then
  385. if workspace.kash5.Torso then
  386. if sitting==false then
  387. coroutine.resume(coroutine.create(function()
  388. for i=0,1,0.1 do
  389. wait()
  390. print(p9.Parent)
  391. sitting=true
  392. p9.formFactor = 1
  393. p9.CanCollide = false
  394. p9.Name = "Dat Seat"
  395. p9.Locked = true
  396. p9.Size = Vector3.new(2,1,2)
  397. p9.BrickColor=BrickColor.new("Navy blue")
  398. p9.Parent = mod
  399. p9.CFrame=main.CFrame
  400. p9:BreakJoints()
  401. local seatweld = Instance.new("Weld")
  402. seatweld.Parent = p9
  403. seatweld.Part0 = p9
  404. seatweld.Part1 = main
  405. seatweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, 0, 0)
  406. end
  407. end))
  408. end
  409. vel=main.Velocity.x
  410. if vel>=0.7 then
  411. vel=0.7
  412. end
  413. if vel<-0.7 then
  414. vel=-0.7
  415. end
  416. vel2=main.Velocity.z
  417. if vel2>=0.7 then
  418. vel2=0.7
  419. end
  420. if vel2<-0.7 then
  421. vel2=-0.7
  422. end
  423. p2.Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(-vel,0,vel2)
  424. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5)
  425. LW.C1 = CFrame.new(vel2/3, 0.5-vel/2, 0) * CFrame.fromEulerAnglesXYZ(0,0,-vel2/2)
  426. -- print(shooting)
  427. if canshoot==true then
  428. coroutine.resume(coroutine.create(function()
  429. if shooting1==false then
  430. shooting1=true
  431. wait(math.random())
  432. fire1(0.3)
  433. shoottrail2(pip1,25)
  434. shooting1=false
  435. end
  436. end))
  437. coroutine.resume(coroutine.create(function()
  438. if shooting2==false then
  439. shooting2=true
  440. wait(math.random())
  441. fire1(0.3)
  442. shoottrail2(pip2,15)
  443. shooting2=false
  444. end
  445. end))
  446. end
  447. if MMouse.Hit.p~=nil then
  448. bg.cframe = CFrame.new(main.Position, MMouse.Hit.p+Vector3.new(0,4,0))
  449. end
  450. local heh = 1
  451. if heh == 1 then
  452. if MMouse.Hit.p~=nil then
  453. pos.position = MMouse.Hit.p + Vector3.new(0,4,0)
  454. end
  455. end
  456. end
  457. end
  458. end
  459. end))
  460. end
  461. makerob()
  462.  
  463. if (script.Parent.className ~= "HopperBin") then
  464. Tool = Instance.new("HopperBin")
  465. Tool.Parent = Backpack
  466. Tool.Name = "AI Bot"
  467. script.Parent = Tool
  468. end
  469. Bin = script.Parent
  470.  
  471. function shoottrail2(pos1,Damage)
  472. coroutine.resume(coroutine.create(function()
  473. spread2 = 0
  474. range2 = 1000
  475. rangepower = 5
  476. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) --* (pos1.Position).magnitude/100
  477. --local dir = Head.CFrame.lookVector+spreadvector
  478. local dir = main.CFrame.lookVector+spreadvector
  479. local ammount = 100
  480. local hit2,pos = rayCast(pos1.Position,dir,10,mod)
  481. local rangepos = range2
  482. local function drawtrail(From,To)
  483. local effectsmsh = Instance.new("SpecialMesh")
  484. local Damg = Damage*2
  485. effectsmsh.Scale = Vector3.new(1,1,1)
  486. effectsmsh.MeshType="Sphere"
  487. effectsmsh.Name = "Mesh"
  488. local effectsg = Instance.new("Part")
  489. local spar=Instance.new("Sparkles")
  490. spar.Parent=effectsg
  491. spar.SparkleColor=Color3.new(0, 0, 102)
  492. effectsg.formFactor = 3
  493. effectsg.CanCollide = false
  494. effectsg.Name = "Eff"
  495. effectsg.Locked = true
  496. effectsg.Anchored = true
  497. effectsg.Size = Vector3.new(1,0.4,1)
  498. effectsg.Parent = mod
  499. effectsmsh.Parent = effectsg
  500. effectsg.BrickColor = BrickColor.new("Cyan")
  501. effectsg.Reflectance = 0.25
  502. local LP = From
  503. local point1 = To
  504. local mg = (LP - point1).magnitude
  505. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  506. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  507. coroutine.resume(coroutine.create(function()
  508. wait(0.1)
  509. spar.Enabled=false
  510. Smok.Enabled=false
  511. end))
  512. coroutine.resume(coroutine.create(function()
  513. for i = 0 , 1 , 0.2 do
  514. wait()
  515. --effectsg.Transparency = 1*i
  516. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  517. end
  518. effectsg.Transparency = 1
  519. wait()
  520. effectsg.Parent = nil
  521. end))
  522. end
  523. local newpos = pos1.Position
  524. local inc = rangepower
  525. local Damg = Damage*2
  526. local decr = 0
  527. repeat
  528. wait()
  529. rangepos = rangepos - 10
  530. dir = dir
  531. --dir = dir
  532. --print(Damg)
  533. hit2,pos = rayCast(newpos,dir,inc,mod)
  534. drawtrail(newpos,pos)
  535. newpos = newpos + (dir * inc)
  536. if alt==1 then
  537. inc = 10
  538. if inc >= 20 then
  539. inc = inc - 10
  540. end
  541. end
  542. if hit2 ~= nil then
  543. rangepos = 0
  544. end
  545. until rangepos <= 0
  546. EVENMOARMAGIX2(CFrame.new(newpos),2,2,2,0,0,0,0,0,0,BrickColor.new("Cyan"))
  547. if hit2 ~= nil then
  548. local effectsmsh = Instance.new("SpecialMesh")
  549. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  550. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  551. effectsmsh.Scale = Vector3.new(3,3,3)
  552. local effectsg = Instance.new("Part")
  553. effectsg.formFactor = 3
  554. effectsg.CanCollide = false
  555. effectsg.Name = "Arrow"
  556. effectsg.Locked = true
  557. effectsg.Transparency = 1
  558. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  559. effectsg.Parent = mod
  560. effectsg.BrickColor = BrickColor.new("Cyan")
  561. effectsmsh.Parent = effectsg
  562. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  563. coroutine.resume(coroutine.create(function()
  564. wait()
  565. effectsg.Parent = nil
  566. end))
  567. local efwel = Instance.new("Weld")
  568. efwel.Parent = effectsg
  569. efwel.Part0 = effectsg
  570. efwel.Part1 = hit2
  571. efwel.Parent = nil
  572. effectsg.Anchored = true
  573. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  574. --local HitPos = pppart.Position + CFrame.new(newpos,pos).lookVector*0.75
  575. --local HitPos = pppart.Position + (prt1.CFrame.lookVector * .5)
  576. local CJ = CFrame.new(HitPos)
  577. local C0 = effectsg.CFrame:inverse() * CJ
  578. local C1 = hit2.CFrame:inverse() * CJ
  579. --efwel.C0 = C0
  580. --efwel.C1 = C1
  581. --efwel.Parent = effectsg
  582. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  583. hum = hit2.Parent.Humanoid
  584. attackdebounce=false
  585. Damagefunc1(hit2,math.floor(Damg/4),5)
  586. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  587. hum = hit2.Parent.Parent.Humanoid
  588. attackdebounce=false
  589. Damagefunc1(hit2,math.floor(Damg/4),5)
  590. end
  591. end
  592. end))
  593. end
  594.  
  595. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  596. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  597. end
  598.  
  599. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  600. local msh1 = Instance.new("BlockMesh")
  601. msh1.Scale = Vector3.new(1,1,1)
  602. S=Instance.new("Part")
  603. S.Name="Effect"
  604. S.formFactor=0
  605. S.Size=Vector3.new(x1,y1,z1)
  606. S.BrickColor=color
  607. S.Reflectance = 0
  608. S.TopSurface=0
  609. S.BottomSurface=0
  610. S.Transparency=0
  611. S.Anchored=true
  612. S.CanCollide=false
  613. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  614. S.Parent=Character
  615. msh1.Parent = S
  616. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame = CFrame.new(Part.Position-Vector3.new(0,0.3,0))*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  617. end
  618.  
  619. function UltimaMMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  620. local msh1 = Instance.new("BlockMesh")
  621. msh1.Scale = Vector3.new(x1,y1,z1)
  622. S=Instance.new("Part")
  623. S.Name="Effect"
  624. S.formFactor=0
  625. S.Size=Vector3.new(1,1,1)
  626. S.BrickColor=color
  627. S.Reflectance = 0
  628. S.TopSurface=0
  629. S.BottomSurface=0
  630. S.Transparency=0
  631. S.Anchored=true
  632. S.CanCollide=false
  633. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  634. S.Parent=Character
  635. msh1.Parent = S
  636. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  637. end
  638.  
  639. function MOREMAGIX(part,cframe,x,y,z,color)
  640. p2=Instance.new("Part")
  641. p2.Name="Blast"
  642. p2.TopSurface=0
  643. p2.BottomSurface=0
  644. p2.CanCollide=false
  645. p2.Anchored=true
  646. p2.BrickColor=color
  647. p2.Size=Vector3.new(x,y,z)
  648. p2.formFactor="Symmetric"
  649. p2.CFrame=part.CFrame*CFrame.new(0,cframe,0)
  650. p2.Parent=workspace
  651. m=Instance.new("BlockMesh")
  652. m.Parent=p2
  653. m.Name="BlastMesh"
  654. coroutine.resume(coroutine.create(function(part,dir) for loll=1, 15 do part.BlastMesh.Scale=part.BlastMesh.Scale-Vector3.new(.09,.09,.09) part.Transparency=loll/20 part.CFrame=part.CFrame*CFrame.new(dir)*CFrame.fromEulerAnglesXYZ(math.random(-100,100)/100, math.random(-100,100)/100, math.random(-100,100)/100) wait() end part.Parent=nil end),p2,Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10))
  655. end
  656.  
  657. function EVENMOARMAGIX(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  658. local msh1 = Instance.new("SpecialMesh")
  659. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  660. msh1.MeshType = "Sphere"
  661. S=Instance.new("Part")
  662. S.Name="Effect"
  663. S.formFactor=0
  664. S.Size=Vector3.new(x1,y1,z1)
  665. S.BrickColor=color
  666. if Style == "WingBlade" and element == "Dark" then
  667. S.BrickColor=BrickColor.new("Black")
  668. end
  669. S.Reflectance = 0
  670. S.TopSurface=0
  671. S.BottomSurface=0
  672. S.Transparency=0
  673. S.Anchored=true
  674. S.CanCollide=false
  675. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  676. S.Parent=Character
  677. msh1.Parent = S
  678. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  679. end
  680.  
  681. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  682. local msh1 = Instance.new("SpecialMesh")
  683. msh1.Scale = Vector3.new(x1,y1,z1)
  684. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  685. S=Instance.new("Part")
  686. S.Name="Effect"
  687. S.formFactor=0
  688. S.Size=Vector3.new(1,1,1)
  689. S.BrickColor=color
  690. S.Reflectance = 0
  691. S.TopSurface=0
  692. S.BottomSurface=0
  693. S.Transparency=0
  694. S.Anchored=true
  695. S.CanCollide=false
  696. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  697. S.Parent=Character
  698. msh1.Parent = S
  699. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  700. end
  701.  
  702. function BlastEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  703. local msh1 = Instance.new("SpecialMesh")
  704. msh1.Scale = Vector3.new(x1,y1,z1)
  705. msh1.MeshId = "http://www.roblox.com/asset/?id=1323306"
  706. S=Instance.new("Part")
  707. S.Name="Effect"
  708. S.formFactor=0
  709. S.Size=Vector3.new(1,1,1)
  710. S.BrickColor=color
  711. S.Reflectance = 0
  712. S.TopSurface=0
  713. S.BottomSurface=0
  714. S.Transparency=0
  715. S.Anchored=true
  716. S.CanCollide=false
  717. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  718. S.Parent=Character
  719. msh1.Parent = S
  720. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  721. end
  722.  
  723. function EVENMOARMAGIX2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  724. local msh1 = Instance.new("SpecialMesh")
  725. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  726. msh1.MeshType = "Sphere"
  727. S=Instance.new("Part")
  728. S.Name="Effect"
  729. S.formFactor=0
  730. S.Size=Vector3.new(x1,y1,z1)
  731. S.BrickColor=color
  732. S.Reflectance = 0
  733. S.TopSurface=0
  734. S.BottomSurface=0
  735. S.Transparency=0
  736. S.Anchored=true
  737. S.CanCollide=false
  738. S.CFrame=part
  739. S.Parent=workspace
  740. msh1.Parent = S
  741. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 5 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.Transparency=Part.Transparency+0.15 wait() end Part.Parent=nil end),S,S.CFrame)
  742. end
  743.  
  744. function ss(pitch)
  745.  
  746. local SlashSound = Instance.new("Sound")
  747. SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  748. SlashSound.Parent = main
  749.  
  750. SlashSound.Volume = .7
  751. SlashSound.Pitch = pitch
  752. SlashSound.PlayOnRemove = true
  753. coroutine.resume(coroutine.create(function()
  754. wait(1)
  755. SlashSound.Parent = nil
  756. end))
  757. end
  758. function critsound(pitch)
  759.  
  760. local SlashSound = Instance.new("Sound")
  761. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  762. SlashSound.Parent = main
  763.  
  764. SlashSound.Volume = .4
  765. SlashSound.Pitch = pitch
  766. SlashSound.PlayOnRemove = true
  767. coroutine.resume(coroutine.create(function()
  768. wait(1)
  769. SlashSound.Parent = nil
  770. end))
  771. end
  772. function charge(pitch)
  773.  
  774. local SlashSound = Instance.new("Sound")
  775. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2101137"
  776. SlashSound.Parent = main
  777.  
  778. SlashSound.Volume = 1
  779. SlashSound.Pitch = pitch
  780. SlashSound.PlayOnRemove = true
  781. coroutine.resume(coroutine.create(function()
  782. wait(1)
  783. SlashSound.Parent = nil
  784. end))
  785. end
  786. function bewm(pitch)
  787.  
  788. local SlashSound = Instance.new("Sound")
  789. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  790. SlashSound.Parent = main
  791.  
  792. SlashSound.Volume = .7
  793. SlashSound.Pitch = pitch
  794. SlashSound.PlayOnRemove = true
  795. coroutine.resume(coroutine.create(function()
  796. wait(1)
  797. SlashSound.Parent = nil
  798. end))
  799. end
  800. function abscond(pitch)
  801.  
  802. local SlashSound = Instance.new("Sound")
  803. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2767090"
  804. SlashSound.Parent = main
  805. game:service'Lighing'["Lolsound"].Value=SlashSound
  806. SlashSound.Volume = 1
  807. SlashSound.Pitch = pitch
  808. SlashSound.PlayOnRemove = true
  809. coroutine.resume(coroutine.create(function()
  810. wait(1)
  811. SlashSound.Parent = nil
  812. end))
  813. end
  814. function distort(pitch)
  815.  
  816. local SlashSound = Instance.new("Sound")
  817. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2974249"
  818. SlashSound.Parent = main
  819.  
  820. SlashSound.Volume = 1
  821. SlashSound.Pitch = pitch
  822. SlashSound.PlayOnRemove = true
  823. coroutine.resume(coroutine.create(function()
  824. wait(1)
  825. SlashSound.Parent = nil
  826. end))
  827. end
  828. function thwack(pitch)
  829.  
  830. local SlashSound = Instance.new("Sound")
  831. SlashSound.SoundId = "http://www.roblox.com/asset/?id=46153268"
  832. SlashSound.Parent = main
  833.  
  834. SlashSound.Volume = 1
  835. SlashSound.Pitch = pitch
  836. SlashSound.PlayOnRemove = true
  837. coroutine.resume(coroutine.create(function()
  838. wait(1)
  839. SlashSound.Parent = nil
  840. end))
  841. end
  842. function fire1(pitch)
  843.  
  844. local SlashSound = Instance.new("Sound")
  845. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697431"
  846. SlashSound.Parent = main
  847.  
  848. SlashSound.Volume = 1
  849. SlashSound.Pitch = pitch
  850. SlashSound.PlayOnRemove = true
  851. coroutine.resume(coroutine.create(function()
  852. wait(1)
  853. SlashSound.Parent = nil
  854. end))
  855. end
  856. function fire2(pitch)
  857.  
  858. local SlashSound = Instance.new("Sound")
  859. SlashSound.SoundId = "http://www.roblox.com/asset/?id=48618802 "
  860. SlashSound.Parent = main
  861.  
  862. SlashSound.Volume = 1
  863. SlashSound.Pitch = pitch
  864. SlashSound.PlayOnRemove = true
  865. coroutine.resume(coroutine.create(function()
  866. wait(1)
  867. SlashSound.Parent = nil
  868. end))
  869. end
  870. function grip(pitch)
  871.  
  872. local SlashSound = Instance.new("Sound")
  873. SlashSound.SoundId = "rbxasset://sounds/swordslash.wav"
  874. SlashSound.Parent = main
  875.  
  876. SlashSound.Volume = 1
  877. SlashSound.Pitch = pitch
  878. SlashSound.PlayOnRemove = true
  879. coroutine.resume(coroutine.create(function()
  880. wait(1)
  881. SlashSound.Parent = nil
  882. end))
  883. end
  884. function reload(pitch)
  885.  
  886. local SlashSound = Instance.new("Sound")
  887. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2697295"
  888. SlashSound.Parent = main
  889.  
  890. SlashSound.Volume = 1
  891. SlashSound.Pitch = pitch
  892. SlashSound.PlayOnRemove = true
  893. coroutine.resume(coroutine.create(function()
  894. wait(1)
  895. SlashSound.Parent = nil
  896. end))
  897. end
  898.  
  899. Damagefunc1=function(hit,Damage,Knockback)
  900. if attackdebounce == false then
  901. attackdebounce = true
  902. coroutine.resume(coroutine.create(function()
  903. wait(0.1)
  904. attackdebounce = false
  905. end))
  906. if hit.Parent==nil then
  907. return
  908. end
  909. CPlayer=Bin
  910. h=hit.Parent:FindFirstChild("Humanoid")
  911. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  912. Damage=Damage
  913. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  914. return
  915. end]]
  916. c=Instance.new("ObjectValue")
  917. c.Name="creator"
  918. c.Value=game.Players.LocalPlayer
  919. c.Parent=h
  920. game:GetService("Debris"):AddItem(c,.5)
  921. -- print(c.Value)
  922. if math.random(0,99)+math.random()<=5 then
  923. CRIT=true
  924. Damage=Damage*1.5
  925. --[[ Knockback=Knockback*2
  926. r=Instance.new("BodyAngularVelocity")
  927. r.P=3000
  928. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  929. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  930. r.Parent=hit.Parent.Torso]]
  931. critsound(2)
  932.  
  933. end
  934. Damage=Damage+math.random(0,10)
  935. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  936. h:TakeDamage(Damage)
  937. showDamage(hit.Parent,Damage,.5)
  938. vp=Instance.new("BodyVelocity")
  939. vp.P=500
  940. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  941. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  942. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  943. if Knockback>0 then
  944. vp.Parent=hit.Parent.Torso
  945. end
  946. game:GetService("Debris"):AddItem(vp,.25)
  947. --[[ r=Instance.new("BodyAngularVelocity")
  948. r.P=3000
  949. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  950. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  951. r.Parent=hit.Parent.Torso]]
  952. game:GetService("Debris"):AddItem(r,.5)
  953. c=Instance.new("ObjectValue")
  954. c.Name="creator"
  955. c.Value=Player
  956. c.Parent=h
  957. game:GetService("Debris"):AddItem(c,.5)
  958. CRIT=false
  959. hitDeb=true
  960. AttackPos=6
  961. end
  962. end
  963. end
  964.  
  965. showDamage=function(Char,Dealt,du)
  966. m=Instance.new("Model")
  967. m.Name=tostring(Dealt)
  968. h=Instance.new("Humanoid")
  969. h.Health=0
  970. h.MaxHealth=0
  971. h.Parent=m
  972. c=Instance.new("Part")
  973. c.Transparency=0
  974. c.BrickColor=BrickColor:Red()
  975. if CRIT==true then
  976. c.BrickColor=BrickColor.new("Really red")
  977. end
  978. c.Name="Head"
  979. c.TopSurface=0
  980. c.BottomSurface=0
  981. c.formFactor="Plate"
  982. c.Size=Vector3.new(1,.4,1)
  983. ms=Instance.new("CylinderMesh")
  984. ms.Scale=Vector3.new(.8,.8,.8)
  985. if CRIT==true then
  986. ms.Scale=Vector3.new(1.25,1.5,1.25)
  987. end
  988. ms.Parent=c
  989. c.Reflectance=0
  990. Instance.new("BodyGyro").Parent=c
  991. c.Parent=m
  992. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  993. f=Instance.new("BodyPosition")
  994. f.P=2000
  995. f.D=100
  996. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  997. f.position=c.Position+Vector3.new(0,3,0)
  998. f.Parent=c
  999. game:GetService("Debris"):AddItem(m,.5+du)
  1000. c.CanCollide=false
  1001. m.Parent=workspace
  1002. c.CanCollide=false
  1003. end
  1004.  
  1005. hold = false
  1006.  
  1007. function ob1d(mouse)
  1008. if attack == true then return end
  1009. if mouse.Target.Parent:findFirstChild("Humanoid")~=nil then
  1010. player = Player
  1011. ch = Character
  1012. RW = ch.Torso["Right Shoulder"]
  1013. LW = ch.Torso["Left Shoulder"]
  1014. coroutine.resume(coroutine.create(function()
  1015. DerpRainEffect(mouse.Target)
  1016. end))
  1017. hold = true
  1018. --[[RW.Parent = nil
  1019. LW.Parent = nil
  1020. RSH.Parent = player.Character.Torso
  1021. LSH.Parent = player.Character.Torso ]]
  1022. RW.C0 = CFrame.new(1,0.5,0,0,0,1,0,1,0,-1,-0,-0)
  1023. LW.C0 = CFrame.new(-1,0.5,0,-0,-0,-1,0,1,0,1,0,0)
  1024. end
  1025. end
  1026.  
  1027. function ob1u(mouse)
  1028. hold = false
  1029. end
  1030.  
  1031. buttonhold = false
  1032.  
  1033. function Key(key,mouse)
  1034. if key == "q" then
  1035. for i=0,1,0.1 do
  1036. wait()
  1037. LW.C0 = CFrame.new(-1.5+0.3-0.1*i,0.5,-0.3+0.1*i) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5+0.4*i)
  1038. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1039. end
  1040. for i=0,1,0.2 do
  1041. wait()
  1042. p5.Mesh.Scale = Vector3.new(0.3,0.3-0.09*i,0.3)
  1043. LW.C0 = CFrame.new(-1.5+0.3-0.1,0.5,-0.3+0.1) * CFrame.fromEulerAnglesXYZ(1.5-0.2*i,0,0.5+0.4+0.1*i)
  1044. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1045. end
  1046. if canshoot==false then
  1047. canshoot=true
  1048. p6.BrickColor=BrickColor.new("New Yeller")
  1049. else
  1050. canshoot=false
  1051. p6.BrickColor=BrickColor.new("Black")
  1052. end
  1053. for i=0,1,0.2 do
  1054. wait()
  1055. p5.Mesh.Scale = Vector3.new(0.3,0.3-0.09+0.09*i,0.3)
  1056. LW.C0 = CFrame.new(-1.5+0.3-0.1,0.5,-0.3+0.1) * CFrame.fromEulerAnglesXYZ(1.5-0.2+0.2*i,0,0.5+0.4+0.1-0.1*i)
  1057. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1058. end
  1059. for i=0,1,0.1 do
  1060. wait()
  1061. LW.C0 = CFrame.new(-1.5+0.3-0.1+0.1*i,0.5,-0.3+0.1-0.1*i) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5+0.4-0.4*i)
  1062. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1063. end
  1064. end
  1065. if key=="e" then
  1066. sitting=false
  1067. p9.Parent=nil
  1068. p2.Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1069. for i=0,1,0.1 do
  1070. wait()
  1071. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.1*i,0,0)
  1072. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3-0.6*i) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5-0.4*i)
  1073. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1074. end
  1075. for i=0,1,0.2 do
  1076. wait()
  1077. p8.Mesh.Scale = Vector3.new(0.3,0.3-0.09*i,0.3)
  1078. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3-0.6) * CFrame.fromEulerAnglesXYZ(1.5-0.2*i,0,0.5-0.4)
  1079. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1080. end
  1081. if mode==1 then
  1082. mode=2
  1083. elseif mode==2 then
  1084. mode=3
  1085. elseif mode==3 then
  1086. mode=4
  1087. elseif mode==4 then
  1088. mode=5
  1089. elseif mode==5 then
  1090. mode=1
  1091. end
  1092. for i=0,1,0.2 do
  1093. wait()
  1094. p2.Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1095. p8.Mesh.Scale = Vector3.new(0.3,0.3-0.09+0.09*i,0.3)
  1096. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3-0.6) * CFrame.fromEulerAnglesXYZ(1.5-0.2+0.2*i,0,0.5-0.4)
  1097. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1098. end
  1099. for i=0,1,0.1 do
  1100. wait()
  1101. p2.Weld.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1102. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.1+0.1*i,0,0)
  1103. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3-0.6+0.6*i) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5-0.4+0.4*i)
  1104. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1105. end
  1106. sitting=false
  1107. p9.Parent=nil
  1108. end
  1109. end
  1110.  
  1111. function Key2(key,mouse)
  1112. end
  1113.  
  1114. function s(mouse)
  1115. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1116. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1117. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  1118. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  1119. MMouse = mouse
  1120. --mouse.KeyDown:connect(key,mouse)
  1121. --mouse.KeyUp:connect(key2,mouse)
  1122. MienMouse.Parent=mod
  1123. MienMouse.Value=MMouse
  1124. MienMouse.Name="MouseValue"
  1125. equipped = true
  1126. player = Player
  1127. ch = Character
  1128. RSH = ch.Torso["Right Shoulder"]
  1129. LSH = ch.Torso["Left Shoulder"]
  1130. --
  1131. RW.Part0 = ch.Torso
  1132. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1133. RW.C1 = CFrame.new(0, 0.5, 0)
  1134. RW.Part1 = ch["Right Arm"]
  1135. RW.Parent = ch.Torso
  1136. --_G.R = RW
  1137. --
  1138. LW.Part0 = ch.Torso
  1139. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1140. LW.C1 = CFrame.new(0, 0.5, 0)
  1141. LW.Part1 = ch["Left Arm"]
  1142. LW.Parent = ch.Torso
  1143. --_G.L = LW
  1144. for i=0,1,0.1 do
  1145. wait()
  1146. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0.3*i) * CFrame.new(0,0,-0.5)
  1147. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1148. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1149. RW.C0 = CFrame.new(1.5-0.5*i,0.5,0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3*i,0,-0.5*i)
  1150. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1151. end
  1152. CModel.Parent=Character
  1153. --local mainp = Instance.new("Part")
  1154. mainp.formFactor = 1
  1155. mainp.CanCollide = false
  1156. mainp.Name = "MainPart"
  1157. mainp.Locked = true
  1158. mainp.Size = Vector3.new(2,1,2)
  1159. mainp.BrickColor=BrickColor.new(color)
  1160. mainp.Parent = CModel
  1161. local mainmesh = Instance.new("BlockMesh")
  1162. mainmesh.Parent = mainp
  1163. mainmesh.Scale = Vector3.new(1,0.5,1)
  1164. --local mainweld = Instance.new("Weld")
  1165. mainweld.Parent = mainp
  1166. mainweld.Part0 = mainp
  1167. mainweld.Part1 = RightArm
  1168. mainweld.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0, 1.9, 0)
  1169. --local p1 = Instance.new("Part")
  1170. p1.formFactor = 1
  1171. p1.CanCollide = false
  1172. p1.Name = "Part1"
  1173. p1.Locked = true
  1174. p1.Size = Vector3.new(1,1,1)
  1175. p1.BrickColor=BrickColor.new(color)
  1176. p1.Parent = CModel
  1177. local m1 = Instance.new("SpecialMesh")
  1178. m1.Parent = p1
  1179. m1.MeshType="Sphere"
  1180. m1.Scale = Vector3.new(1.2,0.5,1.2)
  1181. local w1 = Instance.new("Weld")
  1182. w1.Parent = p1
  1183. w1.Part0 = p1
  1184. w1.Part1 = mainp
  1185. w1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0, -0.2, 0)
  1186. --local p2 = Instance.new("Part")
  1187. p2.formFactor = 1
  1188. p2.CanCollide = false
  1189. p2.Name = "Part2"
  1190. p2.Locked = true
  1191. p2.Size = Vector3.new(1,1,1)
  1192. p2.BrickColor=BrickColor.new("Black")
  1193. p2.Parent = CModel
  1194. local m2 = Instance.new("CylinderMesh")
  1195. m2.Parent = p2
  1196. m2.Scale = Vector3.new(0.3,1,0.3)
  1197. local w2 = Instance.new("Weld")
  1198. w2.Parent = p2
  1199. w2.Part0 = p2
  1200. w2.Part1 = p1
  1201. w2.C0 = CFrame.new(0, -0.8, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1202. --local p3 = Instance.new("Part")
  1203. p3.formFactor = 1
  1204. p3.CanCollide = false
  1205. p3.Name = "Part3"
  1206. p3.Locked = true
  1207. p3.Size = Vector3.new(1,1,1)
  1208. p3.BrickColor=BrickColor.new("Really black")
  1209. p3.Parent = CModel
  1210. local m3 = Instance.new("SpecialMesh")
  1211. m3.Parent = p3
  1212. m3.MeshType="Sphere"
  1213. m3.Scale = Vector3.new(0.5,0.5,0.5)
  1214. local w3 = Instance.new("Weld")
  1215. w3.Parent = p3
  1216. w3.Part0 = p3
  1217. w3.Part1 = p2
  1218. w3.C0 = CFrame.new(0, -0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1219. --local p4 = Instance.new("Part")
  1220. p4.formFactor = 1
  1221. p4.CanCollide = false
  1222. p4.Name = "Part4"
  1223. p4.Locked = true
  1224. p4.Size = Vector3.new(1,1,1)
  1225. p4.BrickColor=BrickColor.new("Black")
  1226. p4.Parent = CModel
  1227. local m4 = Instance.new("CylinderMesh")
  1228. m4.Parent = p4
  1229. m4.Scale = Vector3.new(0.4,0.2,0.4)
  1230. local w4 = Instance.new("Weld")
  1231. w4.Parent = p4
  1232. w4.Part0 = p4
  1233. w4.Part1 = p1
  1234. w4.C0 = CFrame.new(-0.1, 0, -0.8) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1235. --local p5 = Instance.new("Part")
  1236. p5.formFactor = 1
  1237. p5.CanCollide = false
  1238. p5.Name = "Part5"
  1239. p5.Locked = true
  1240. p5.Size = Vector3.new(1,1,1)
  1241. p5.BrickColor=BrickColor.new("Bright red")
  1242. p5.Parent = CModel
  1243. local m5 = Instance.new("CylinderMesh")
  1244. m5.Parent = p5
  1245. m5.Scale = Vector3.new(0.3,0.3,0.3)
  1246. local w5 = Instance.new("Weld")
  1247. w5.Parent = p5
  1248. w5.Part0 = p5
  1249. w5.Part1 = p4
  1250. w5.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1251. --local p6 = Instance.new("Part")
  1252. p6.formFactor = 1
  1253. p6.CanCollide = false
  1254. p6.Name = "Part6"
  1255. p6.Locked = true
  1256. p6.Size = Vector3.new(1,1,1)
  1257. p6.Parent = CModel
  1258. local m6 = Instance.new("SpecialMesh")
  1259. m6.Parent = p6
  1260. m6.MeshType="Sphere"
  1261. m6.Scale = Vector3.new(0.3,0.4,0.3)
  1262. local w6 = Instance.new("Weld")
  1263. w6.Parent = p6
  1264. w6.Part0 = p6
  1265. w6.Part1 = p1
  1266. w6.C0 = CFrame.new(-0.8, 0, 0.8) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1267. --local p7 = Instance.new("Part")
  1268. p7.formFactor = 1
  1269. p7.CanCollide = false
  1270. p7.Name = "Part7"
  1271. p7.Locked = true
  1272. p7.Size = Vector3.new(1,1,1)
  1273. p7.BrickColor=BrickColor.new("Black")
  1274. p7.Parent = CModel
  1275. local m7 = Instance.new("CylinderMesh")
  1276. m7.Parent = p7
  1277. m7.Scale = Vector3.new(0.4,0.2,0.4)
  1278. local w7 = Instance.new("Weld")
  1279. w7.Parent = p7
  1280. w7.Part0 = p7
  1281. w7.Part1 = p1
  1282. w7.C0 = CFrame.new(0.8, 0, 0.8) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1283. --local p8 = Instance.new("Part")
  1284. p8.formFactor = 1
  1285. p8.CanCollide = false
  1286. p8.Name = "Part8"
  1287. p8.Locked = true
  1288. p8.Size = Vector3.new(1,1,1)
  1289. p8.BrickColor=BrickColor.new("Bright red")
  1290. p8.Parent = CModel
  1291. local m8 = Instance.new("CylinderMesh")
  1292. m8.Parent = p8
  1293. m8.Scale = Vector3.new(0.3,0.3,0.3)
  1294. local w8 = Instance.new("Weld")
  1295. w8.Parent = p8
  1296. w8.Part0 = p8
  1297. w8.Part1 = p7
  1298. w8.C0 = CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1299. for i=0,1,0.1 do
  1300. wait()
  1301. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i,3.14,0.3-0.3*i) * CFrame.new(0,0,-0.5)
  1302. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1303. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1304. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,-0.5+0.5*i)
  1305. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1306. end
  1307. for i=0,1,0.1 do
  1308. wait()
  1309. mainweld.C0 = CFrame.fromEulerAnglesXYZ(1.57-0.57*i,0,-0.5*i) * CFrame.new(0.5*i, 1.9-0.3*i, 0)
  1310. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3*i,0,0)
  1311. LW.C0 = CFrame.new(-1.5+0.3*i,0.5,-0.3*i) * CFrame.fromEulerAnglesXYZ(1.5*i,0,0.5*i)
  1312. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1313. RW.C0 = CFrame.new(1.5-0.3*i,0.5,-0.3*i) * CFrame.fromEulerAnglesXYZ(1*i,0,-0.5*i)
  1314. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1315. end
  1316. end
  1317.  
  1318. function ds(mouse)
  1319. for i=0,1,0.1 do
  1320. wait()
  1321. mainweld.C0 = CFrame.fromEulerAnglesXYZ(1.57-0.57,0,-0.5) * CFrame.new(0.5, 1.9-0.3, 0)
  1322. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0.3-0.3*i,0,0)
  1323. LW.C0 = CFrame.new(-1.5+0.3,0.5,-0.3) * CFrame.fromEulerAnglesXYZ(1.5,0,0.5)
  1324. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1325. RW.C0 = CFrame.new(1.5-0.3,0.5,-0.3) * CFrame.fromEulerAnglesXYZ(1,0,-0.5)
  1326. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1327. end
  1328. wait(0.3)
  1329. for i=0,1,0.1 do
  1330. wait()
  1331. mainweld.C0 = CFrame.fromEulerAnglesXYZ(1.57-0.57+0.57*i,0,-0.5+0.5*i) * CFrame.new(0.5-0.5*i, 1.9-0.3+0.3*i, 0)
  1332. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3*i,3.14,0.3*i) * CFrame.new(0,0,-0.5)
  1333. LW.C0 = CFrame.new(-1.5+0.3-0.3*i,0.5,-0.3+0.3*i) * CFrame.fromEulerAnglesXYZ(1.5-1.5*i,0,0.5-0.5*i)
  1334. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1335. RW.C0 = CFrame.new(1.5-0.3-0.2*i,0.5,-0.3+0.8*i) * CFrame.fromEulerAnglesXYZ(1-1.3*i,0,-0.5)
  1336. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  1337. end
  1338. CModel.Parent=nil
  1339. mainp.Parent=nil
  1340. p1.Parent=nil
  1341. p2.Parent=nil
  1342. for i=0,1,0.1 do
  1343. wait()
  1344. Torso.Neck.C1 = CFrame.fromEulerAnglesXYZ(1.57+0.3-0.3*i*i,3.14,0.3-0.3*i*i) * CFrame.new(0,0,-0.5)
  1345. RW.C0 = CFrame.new(1.5-0.5+0.5*i,0.5,0.5-0.5*i) * CFrame.fromEulerAnglesXYZ(-0.3+0.3*i,0,-0.5+0.5*i)
  1346. end
  1347. equipped = false
  1348. RW.Parent = nil
  1349. LW.Parent = nil
  1350. RSH.Parent = player.Character.Torso
  1351. LSH.Parent = player.Character.Torso
  1352. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  1353. end
  1354.  
  1355. Bin.Selected:connect(s)
  1356. Bin.Deselected:connect(ds)
  1357.  
  1358. while true do
  1359. wait(0)
  1360. fentext3.Text = "Shoot: "..tostring(canshoot).." | Mode: "..mode..""
  1361. end
  1362.  
  1363. -- lego This acts as a chat filter. Don't ask why I do it. I just do >.>
  1364. --[[
  1365. Copyrighted (C) Fenrier 2011
  1366. This script is copyrighted for Fenrier. Any use of this script is breaking
  1367. this copyright.
  1368. All Rights Reserved.
  1369. ]]
  1370. -- mediafire
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement