memberhero

AI Bot script

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