NOOB-WHO-SAY-FUCK

Untitled

Jun 27th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.22 KB | None | 0 0
  1. script.Parent = nil
  2. name = 'Begnum'
  3. PLAYERS = game:GetService('Players')
  4. ply = PLAYERS.LocalPlayer
  5. char = ply.Character
  6. pcall(function() char:FindFirstChild("legetdgq"):Remove() end)
  7. m = Instance.new("Model",char) m.Name = "legetdgq"
  8. hop = Instance.new("HopperBin",ply.Backpack)
  9. hop.Name = name
  10. debris = game:GetService("Debris")
  11. cfn,ang,v3n,ud2n,V2 = CFrame.new,CFrame.Angles,Vector3.new,UDim2.new,Vector2.new
  12. floatforce = 196.25
  13. torso,head = char.Torso,char.Head
  14. attacking = false
  15. rs = torso["Right Shoulder"]
  16. ls = torso["Left Shoulder"]
  17. rh = torso["Right Hip"]
  18. lh = torso["Left Hip"]
  19. neck = torso["Neck"]
  20. rw,lw = nil,nil
  21. rhw,lhw = nil,nil
  22. local orgc1 = rs.C1
  23. rarm = char["Right Arm"]
  24. larm = char["Left Arm"]
  25. rleg = char["Right Leg"]
  26. lleg = char["Left Leg"]
  27. normposr = cfn(1.5,.5,0)
  28. normposl = cfn(-1.5,.5,0)
  29. normposl2 = cfn(.5,-1.5,0)
  30. normposr2 = cfn(-.5,-1.5,0)
  31. normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
  32. holdpos = normposr*ang(math.pi/2,0,0)
  33. holdpos2 = normposl*ang(math.pi/2,0,0)
  34. --------UTILITIES START-------
  35. function genNew(ClassName, Parent, Properties)
  36. local nObj = Instance.new(ClassName, Parent)
  37. if Properties["FormFactor"] then
  38. nObj["FormFactor"] = Properties["FormFactor"]
  39. end
  40. for Prop, Value in pairs(Properties) do
  41. nObj[Prop] = Value
  42. end
  43. return nObj
  44. end
  45. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  46. if typee == 'wedge' then
  47. c = Instance.new("WedgePart",m)
  48. elseif typee == 'seat' then
  49. c = Instance.new("Seat",m)
  50. elseif typee == 'vseat' then
  51. c = Instance.new("VehicleSeat",m)
  52. else
  53. c = Instance.new("Part",m)
  54. end
  55. c.TopSurface,c.BottomSurface = 0,0
  56. c.Locked = true
  57. c.formFactor = "Custom"
  58. c.Size = Vector3.new(x,y,z)
  59. if color ~= "random" then
  60. c.BrickColor = BrickColor.new(color)
  61. else c.BrickColor = BrickColor:random()
  62. end
  63. c.Transparency = transparency
  64. c.CanCollide = cancollide
  65. if anchored ~= nil then c.Anchored = anchored end
  66. if parent ~= nil then c.Parent = parent end
  67. return c
  68. end
  69. ,
  70. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  71. ,
  72. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  73. w = Instance.new("Motor",m)
  74. if parent ~= nil then w.Parent = parent end
  75. w.Part0,w.Part1 = part0,part1
  76. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  77. return w
  78. end
  79. ,
  80. ["BG"] = function(parent)
  81. local c = Instance.new("BodyGyro",parent)
  82. c.P = 20e+003
  83. c.cframe = parent.CFrame
  84. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  85. return c
  86. end
  87. ,
  88. ["BP"] = function(parent,position)
  89. local bp = Instance.new("BodyPosition",parent)
  90. bp.maxForce = Vector3.new()*math.huge
  91. bp.position = position
  92. return bp
  93. end
  94. ,
  95. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  96. f = Instance.new("Fire",parent)
  97. f.Size = size
  98. f.Heat = heat
  99. if enabled ~= nil then f.Enabled = enabled end
  100. if color ~= nil then f.Color = BrickColor.new(color).Color end
  101. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  102. return f
  103. end
  104. ,
  105. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  106. if meshid == "cylinder" then
  107. mesh = Instance.new("CylinderMesh",parent)
  108. mesh.Scale = Vector3.new(x,y,z)
  109. return mesh
  110. elseif meshid == 'block' then
  111. mesh = Instance.new("BlockMesh",parent)
  112. mesh.Scale = Vector3.new(x,y,z)
  113. return mesh
  114. end
  115. mesh = Instance.new("SpecialMesh",parent)
  116. if meshid == 'wedge' then
  117. mesh.MeshType = 'Wedge'
  118. elseif meshid == 'sphere' then
  119. mesh.MeshType = 3
  120. elseif type(meshid) == "number" then
  121. mesh.MeshId = "rbxassetid://"..meshid
  122. else
  123. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  124. end
  125. mesh.Scale = Vector3.new(x,y,z)
  126. if meshtexture then
  127. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  128. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  129. end
  130. return mesh
  131. end,
  132. ["Dec"] = function(parent,face,id,transparency)
  133. c = Instance.new("Decal",parent)
  134. c.Face = face
  135. c.Texture = id
  136. if transparency then c.Transparency = transparency end
  137. return c
  138. end,
  139. ["S"] = function(id,pitch,volume,parent)
  140. cur = nil
  141. found = false
  142. if type(id) == 'string' then
  143. for i,v in pairs(char.Head:children()) do
  144. if v:IsA("Sound") and v.Name == id and not found then
  145. cur = v
  146. if parent then cur = v:Clone() cur.Parent = parent end
  147. cur.Pitch = pitch
  148. if volume then cur.Volume = volume end
  149. cur:Play()
  150. found = true
  151. return cur
  152. end
  153. end
  154. elseif type(id) == 'number' then
  155. local a = char.Head:FindFirstChild('exteo')
  156. a.SoundId = 'rbxassetid://'..id
  157. a.Pitch = pitch
  158. if volume then a.Volume = volume end
  159. a:Play()
  160. return a
  161. end
  162. end
  163. }
  164. function FindHumanoid(a,b)
  165. for i,v in pairs(a:children()) do
  166. if v:IsA('Humanoid') then
  167. if not b then
  168. if v.Parent ~= char then return v end
  169. else return v end
  170. end
  171. end
  172. end
  173. function damage(hit,amount,delay) ---- VAHINKO DAMAGE
  174. hum = FindHumanoid(hit)
  175. if hum then
  176. if delay then
  177. local found = CheckTag(hum,'tag')
  178. if not found then
  179. local a = AddTag(hum,'tag')
  180. debris:AddItem(a,delay)
  181. hum.Health = hum.Health - amount
  182. end
  183. else hum.Health = hum.Health - amount
  184. end
  185. return hum
  186. end
  187. end
  188. rtorso = torso
  189. lock = {["R"] =
  190. function(a)
  191. if a == 1 then
  192. rabrick = T.P(1,1,1,"White",1,false,false)
  193. rw = T.W(rabrick,rtorso,1.5,.5,0,0,0,0)
  194. T.W(rarm,rabrick,0,-.5,0,0,0,0)
  195. elseif a == 2 then
  196. rlbrick = T.P(1,1,1,"White",1,false,false)
  197. rhw = T.W(rlbrick,rtorso,-.5,-1.5,0,0,0,0)
  198. T.W(rleg,rlbrick,0,-.5,0,0,0,0)
  199. elseif a == 0 then
  200. rs.Parent = rtorso
  201. rw.Parent = nil
  202. rabrick:Destroy() rabrick = nil
  203. elseif a == -1 then
  204. rhw.Parent = nil
  205. rh.Parent = rtorso
  206. rlbrick:Destroy() rlbrick = nil
  207. end
  208. end
  209. , ["L"] = function(a)
  210. if a == 1 then
  211. labrick = T.P(1,1,1,"White",1,false,false)
  212. lw = T.W(labrick,rtorso,-1.5,.5,0,0,0,0)
  213. T.W(larm,labrick,0,-.5,0,0,0,0)
  214. elseif a == 2 then
  215. llbrick = T.P(1,1,1,"White",1,false,false)
  216. lhw = T.W(llbrick,rtorso,.5,-1.5,0,0,0,0)
  217. T.W(lleg,llbrick,0,-.5,0,0,0,0)
  218. elseif a == 0 then
  219. ls.Parent = rtorso
  220. lw.Parent = nil
  221. labrick:Destroy() labrick = nil
  222. elseif a == -1 then
  223. lhw.Parent = nil
  224. lh.Parent = rtorso
  225. llbrick:Destroy() llbrick = nil
  226. end
  227. end
  228. }
  229. cfn,ang = CFrame.new,CFrame.Angles
  230. function spaas(position,radius,number,number2,color)
  231. mode = Instance.new("Model",m)
  232. for i = 1,number2 do
  233. pos = position+v3n(M.R(-radius,radius),M.R(-radius,radius),M.R(-radius,radius))
  234. mag = (position-pos).magnitude
  235. col = color or 'Toothpaste'
  236. local laz = T.P(.1,mag,.1,col,0,false,true,mode)
  237. T.FM(laz,'cylinder',.3,1,.3)
  238. laz.CFrame = (cfn(position,pos)*cfn(0,0,-mag/2))*ang(math.pi/2,0,0)
  239. cframe = (laz.CFrame*cfn(0,-mag/2,0)).p
  240. pos2 = cframe+v3n(M.R(-radius,radius),M.R(-radius,radius),M.R(-radius,radius))
  241. mag2 = (cframe-pos2).magnitude
  242. local laz2 = T.P(.1,mag2,.1,col,0,false,true,mode)
  243. T.FM(laz2,'cylinder',.3,1,.3)
  244. laz2.CFrame = (cfn(cframe,pos2)*cfn(0,0,-mag2/2))*ang(math.pi/2,0,0)
  245. previo = laz2
  246. for i = 1,number do
  247. cframe = (previo.CFrame*cfn(0,-mag/2,0)).p
  248. pos2 = cframe+v3n(M.R(-radius,radius),M.R(-radius,radius),M.R(-radius,radius))
  249. mag2 = (cframe-pos2).magnitude
  250. local laz2 = T.P(.1,mag2,.1,col,0,false,true,mode)
  251. T.FM(laz2,'cylinder',.3,1,.3)
  252. laz2.CFrame = (cfn(cframe,pos2)*cfn(0,0,-mag2/2))*ang(math.pi/2,0,0)
  253. previo = laz2
  254. end
  255. end
  256. debris:AddItem(mode,.1)
  257. return mode
  258. end
  259. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  260. local curpos = startpos
  261. for i = 1,times do
  262. mag = (startpos-endpos).magnitude offs = {-offse,offse}
  263. offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  264. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  265. if dmg then laz.Touched:connect(function(hit) damage(hit.Parent,dmg[1],dmg[2]) end) end
  266. apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  267. if times == i then
  268. mag2 = (curpos-endpos).magnitude
  269. laz.Size = v3n(.1,.1,mag2)
  270. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  271. else
  272. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  273. end
  274. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p debris:AddItem(laz,livetime)
  275. end
  276. end
  277. ------MESHIDS---
  278. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  279. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  280. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  281. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  282. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549,['cheese'] = 1090700,["pan"] = 24342877,["ketchup"] = 29690481,
  283. ["duck"] = 9419831,["unicorn"]=84003494,["luatophat"] = 42157240}---some meshids
  284. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153,
  285. ["cheese"] = 1090703}
  286. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  287. ['midas'] = 17385513;
  288. ['spark'] = 10756118;
  289. ['boom'] = 10730819;
  290. ['plank'] = 10548112;
  291. ['harmonica1'] = 33069371;
  292. ['harmonica2'] = 33069412;
  293. ['thump'] = 10730819;
  294. ['hit'] = 2801263;
  295. ['crunch'] = 15047813;
  296. ['Piano'] = 11998796;
  297. }
  298. function AddTag(object,tagname) local tag = Instance.new("BoolValue",object) tag.Name = tagname return tag end
  299. function CheckTag(object,tagname) local found = object:FindFirstChild(tagname) if found then return found else return _ end end
  300. function RemoveTag(object,tagname) local found = CheckTag(object,tagname) if found then found:Remove() end end
  301. for i,v in pairs(soundids) do ---Remove sounds
  302. for _,q in pairs(char.Head:children()) do
  303. if q.Name == i then q:Remove() end
  304. end
  305. end
  306. for i,v in pairs(soundids) do ----Add sounds
  307. sound = Instance.new("Sound")
  308. sound.SoundId = "http://www.roblox.com/asset/?id="..v
  309. sound.Name = i
  310. sound.Parent = char.Head
  311. end
  312. genNew('Sound',char.Head,{
  313. Name = 'slash';
  314. SoundId = 'rbxasset://sounds//swordslash.wav'
  315. })
  316. waitbp = function(a,r) while (a.Parent.Position-a.position).magnitude > r do wait() end end
  317. M = {["R"] = function(a,b) return math.random(a,b) end,
  318. ["Cos"] = function(a) return math.cos(a) end,
  319. ["Sin"] = function(a) return math.sin(a) end,
  320. ["D"] = function(a) return math.rad(a) end
  321. }
  322. function findground(position,radius,ignore)
  323. if ignore then
  324. ig = ignore table.insert(ig,m)
  325. else ig = {m}
  326. end
  327. local ray = Ray.new(position.p,position.p+(position.p-v3n(0,200,0)).unit*radius)
  328. local obj,pos2 = Workspace:FindPartOnRayWithIgnoreList(ray,ig)
  329. if obj and pos2 then return obj,pos2 else return nil end
  330. end
  331. rweld = _
  332. faketorso = _
  333. function faketor()
  334. if rtorso == torso then
  335. torso.Transparency = 1
  336. faketorso = T.P(2,2,1,torso.BrickColor.Name,0,false,false,char)
  337. rweld = T.W(faketorso,torso,0,0,0,0,0,0)
  338. rtorso = faketorso
  339. for i,v in pairs({lh,ls,rh,rs}) do v.Part0 = rtorso end
  340. elseif rtorso ~= torso then
  341. rtorso = torso
  342. for i,v in pairs({lh,ls,rh,rs}) do v.Part0 = rtorso end
  343. faketorso:Remove()
  344. rweld:Remove()
  345. torso.Transparency = 0
  346. end
  347. dec.Parent = rtorso
  348. end
  349. function calcp(a,b) --- Direction CFrame
  350. return cfn(a,v3n(b.x,a.y,b.z))
  351. end
  352. --------ANIMATING FUNCTION--------
  353. tw = function(Weld, Stop, Step,a)
  354. local func = function()
  355. local Start = Weld.C0
  356. local X1, Y1, Z1 = Start:toEulerAnglesXYZ()
  357. local Stop = Stop
  358. local X2, Y2, Z2 = Stop:toEulerAnglesXYZ()
  359.  
  360. for i = 0, 1, Step do
  361. Weld.C0 = CFrame.new( (Start.p.X * (1 - i)) + (Stop.p.X * i),
  362. (Start.p.Y * (1 - i)) + (Stop.p.Y * i),
  363. (Start.p.Z * (1 - i)) + (Stop.p.Z * i)) * CFrame.fromEulerAnglesXYZ(
  364. (X1 * (1 - i)) + (X2 * i), (Y1 * (1 - i)) + (Y2 * i),
  365. (Z1 * (1 - i)) + (Z2 * i) )
  366. wait()
  367. end
  368.  
  369. Weld.C0 = Stop
  370. end
  371. if a then T.C(function() func() end) else func() end
  372. end
  373. ------------------------------------
  374. function weldall(q)
  375. if q == 1 then a,b = 1,2 else a,b = -1,0 end
  376. for i = a,b do lock.R(i) lock.L(i) end
  377. end
  378. function FindPlayers(a,b,c) --- Finds Players near a part
  379. list = {}
  380. for i,v in pairs(Workspace:children()) do
  381. if v:IsA("Model") then
  382. for _,q in pairs(v:children()) do
  383. if q:IsA("Humanoid") then
  384. if c and q.Parent ~= char then
  385. if (q.Torso.Position-a).magnitude < b then
  386. table.insert(list,v)
  387. end
  388. elseif not c then
  389. if (q.Torso.Position-a).magnitude < b then
  390. table.insert(list,v)
  391. end
  392. end
  393. end
  394. end
  395. end
  396. end
  397. return list
  398. end
  399. for i,v in pairs(char:children()) do
  400. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("BodyColors") then v:Remove() end
  401. end
  402. for i = 1/3,1,1/3 do
  403. shell = T.P(2*i+.001,.5,2*i+.001,'White',0,false,false)
  404. T.W(shell,torso,0,0,-i+1.6,math.pi/2,0,0)
  405. end
  406. p = T.P(1,1,1,'White',0,false,false)
  407. T.W(p,char.Head,0,.7,0,0,0,0)
  408. T.FM(p,'cloud',1,2,2)
  409. dec = T.Dec(torso,'Front','http://www.roblox.com/asset/?id=58535182')
  410. pcall(function() torso:FindFirstChild('roblox'):Remove() end)
  411. Instance.new("Skin",char).SkinColor = BrickColor.new('Pastel Blue')
  412. p = T.P(2.01,.5,1.3,'White',0,false,false)
  413. T.W(p,torso,0,-1,0,0,0,0)
  414. hdl = T.P(.4,1,.4,'Brown',0,false,false)
  415. T.W(hdl,rarm,0,-1.1,0,M.D(60),0,0)
  416. p2 = T.P(.51,.4,.51,'Black',0,false,false)
  417. T.W(p2,hdl,0,-.35,0,M.D(30),0,0)
  418. p3 = T.P(.41,1,.41,'Brown',0,false,false)
  419. T.W(p3,p2,0,0,.5,math.pi/2,0,0)
  420. p4 = T.P(1,1,1,'Deep blue',0,false,false)
  421. T.W(p4,p2,0,.2,0,math.pi/2,math.pi/2,0) T.FM(p4,'ring',.3,.5,.2)
  422. p5 = T.P(.1,.1,.1,'Black',0,false,false) T.FM(p5,'cylinder',1,1,1)
  423. T.W(p5,p3,0,.41,0,0,0,0)
  424. hdl2 = T.P(1.1,1,1.1,'White',0,false,false)
  425. T.W(hdl2,larm,0,-.51,0,0,0,0)
  426. sp1 = T.P(.25,3,.25,'Grime',0,false,false) T.FM(sp1,'spike',.25,3,.25)
  427. T.W(sp1,hdl2,-.25,-1,-.25,math.pi,0,0)
  428. sp1 = T.P(.25,3,.25,'Grime',0,false,false) T.FM(sp1,'spike',.25,3,.25)
  429. T.W(sp1,hdl2,.25,-1,-.25,math.pi,0,0)
  430. bl = T.P(.7,.1,.7,'Magenta',0,false,false) T.FM(bl,'sphere',1,1,1)
  431. T.W(bl,hdl2,0,-.45,.15,0,0,0)
  432. for q = -.5,.5,1 do
  433. r = .25
  434. for i = -90,360-90,120 do
  435. p = T.P(.1,r*3,.1,'New Yeller',0,false,false)
  436. T.FM(p,'block',.5,1,1)
  437. T.W(p,hdl2,M.Cos(M.D(i))*r,M.Sin(M.D(i))*r,q,0,0,math.pi/2-M.D(i*2))
  438. end
  439. r = r/2
  440. for i = 90,360+180-90,120 do
  441. p = T.P(.1,r*3,.1,'New Yeller',0,false,false)
  442. T.FM(p,'block',.25,1,1)
  443. T.W(p,hdl2,0-M.Cos(M.D(i))*r,M.Sin(M.D(i))*r,q,0,0,-math.pi/2+M.D(i*2))
  444. end
  445. end
  446. welds = {}
  447. bl2 = T.P(.7,.1,.7,'Magenta',0,false,false) T.FM(bl2,'sphere',1,1,1)
  448. T.W(bl2,hdl2,-.5,0,0,math.pi/2,0,math.pi/2)
  449. r = .5
  450. for i = 1,360,30 do
  451. wait()
  452. p = T.P(.1,.1,.1,'Alder',0,false,false) T.FM(p,'sphere',1,1,1)
  453. w = T.W(p,bl2,M.Cos(M.D(i))*r,0,M.Sin(M.D(i))*r,0,0,0)
  454. table.insert(welds,w)
  455. end
  456. function lazer(startpos,endpos,color)
  457. mag = (startpos-endpos).magnitude
  458. p = T.P(.1,mag,.1,'New Yeller',0,false,true)T.FM(p,'cylinder',1,1,1)
  459. p.CFrame = cfn(startpos,endpos)*cfn(0,0,-mag/2)*ang(math.pi/2,0,0) debris:AddItem(p,.05)
  460. end
  461. recharged = false
  462. function Recharge()
  463. lock.L(1)
  464. tw(lw,cfn()*ang(math.pi,0,0),.1)
  465. for i = 1,30 do
  466. wait()
  467. lightning(bl.Position+v3n(0,100,0),bl.Position,3,2,.05,'Magenta')
  468. spaas(bl.Position,1,1,4,'Magenta')
  469. end
  470. recharged = true
  471. T.C(function() while recharged do
  472. cl = bl2:Clone() cl.Parent = m
  473. msh = cl.Mesh
  474. T.W(cl,bl2,0,0,0,0,0,0)
  475. for i = 1,5,.2 do
  476. msh.Scale = v3n(i,i,i)
  477. cl.Transparency = i/5
  478. wait()
  479. end
  480. cl:Remove()
  481. end
  482. end)
  483. tw(lw,cfn(0,0,0),.1)
  484. lock.L(0)
  485. end
  486. function Shoot()
  487. lock.R(1) rw.C1 = holdpos
  488. holding = true
  489. while holding do
  490. local ray = Ray.new(p5.Position,p5.Position+(p5.Position-(p5.Position+torso.CFrame.lookVector*1)).unit*-500)
  491. local obj,pos = Workspace:FindPartOnRay(ray,m)
  492. T.S('flintlock',1)
  493. if obj and pos then
  494. mag = (p5.Position-pos).magnitude
  495. p = T.P(.1,mag,.1,'New Yeller',0,false,true)T.FM(p,'cylinder',1,1,1)
  496. p.CFrame = p5.CFrame*cfn(0,mag/2,0) debris:AddItem(p,.05)
  497. spaas(pos,1,1,1,'New Yeller')
  498. local hum = damage(obj.Parent,30,.1) if hum then if hum.Torso then spaas(hum.Torso.Position,1,3,3,'New Yeller') end end
  499. else
  500. lazer(p5.Position,p5.Position+torso.CFrame.lookVector*50,'New Yeller')
  501. end
  502. rw.C1 = holdpos*ang(M.D(30),0,0)
  503. wait(.1)
  504. rw.C1 = holdpos
  505. wait()
  506. end
  507. lock.R(0)
  508. end
  509. function Shield(mouse)
  510. p = T.P(1,0,1,'White',.5,false,false)
  511. T.FM(p,'cylinder',1,1,1)
  512. wld = T.W(p,bl2,0,0,0,0,0,0)
  513. for r = .5,2,.25 do
  514. for i,v in pairs(welds) do
  515. o = 360/#welds*i
  516. p.Size = v3n(r*2,0,r*2)
  517. wld.Parent = m
  518. wld.Part1 = bl2
  519. v.C1 = cfn(M.Cos(M.D(o))*r,0,M.Sin(M.D(o))*r)
  520. end
  521. wait()
  522. end
  523. holding = true
  524. bg = T.BG(torso)
  525. lock.L(1)
  526. while holding do wait() bg.cframe = calcp(torso.Position,mouse.hit.p)*ang(0,-math.pi/2,0) end
  527. bg:Remove()
  528. lock.L(0)
  529. for r = 2,.5,-.25 do
  530. for i,v in pairs(welds) do
  531. o = 360/#welds*i
  532. p.Size = v3n(r*2,0,r*2)
  533. wld.Parent = m
  534. wld.Part1 = bl2
  535. v.C1 = cfn(M.Cos(M.D(o))*r,0,M.Sin(M.D(o))*r)
  536. end
  537. wait()
  538. end
  539. p:Remove()
  540. end
  541. function Punch()
  542. once = false
  543. local con = sp1.Touched:connect(function(hit) hum = damage(hit.Parent,0,.1)
  544. if hum then
  545. if recharged and not once then once = true recharged = false
  546. hum.Sit = true
  547. local c = T.P(1,1,1,'White',0,false,true)
  548. hum.Torso.Velocity = calcp(torso.Position,hum.Torso.Position).lookVector*200+v3n(0,100,0)
  549. c.CFrame = cfn(hit.Position)
  550. local msh = T.FM(c,'sphere',1,1,1)
  551. for i = 0,50,5 do
  552. msh.Scale = v3n(i,i,i)
  553. c.Transparency = i/50
  554. wait()
  555. end
  556. c:Remove()
  557. else hum.Torso.Velocity = calcp(torso.Position,hum.Torso.Position).lookVector*200
  558. end
  559. end
  560. end)
  561. bg = T.BG(torso)
  562. lock.L(1) lw.C1 = holdpos2
  563. cf = torso.CFrame
  564. for i = 0,1,1/5 do
  565. --rweld.C1 = cfn()*ang(0,M.D(-70*i),0)
  566. bg.cframe = cf*ang(0,M.D(-70*i),0)
  567. wait()
  568. end
  569. for i = 1,0,-1/5 do
  570. --rweld.C1 = cfn()*ang(0,M.D(-70*i),0)
  571. bg.cframe = cf*ang(0,M.D(-70*i),0)
  572. wait()
  573. end
  574. bg:Remove()
  575. lock.L(0)
  576. con:disconnect()
  577. end
  578. -----------ZOMBIE MAKER FUNCTION------------
  579. function Exorcism()
  580. pos = torso.Position+torso.CFrame.lookVector*3+v3n(0,-3,0)
  581. person = Instance.new("Model",Workspace)
  582. person.Name = 'Zombie'
  583. ----PARTS-------
  584. local hed = T.P(1,1,1,'White',0,true,false,person) hed.Name = 'Head'
  585. Instance.new("SpecialMesh",hed).Scale = v3n(1.25,1.25,1.25)
  586. local tor = T.P(2,2,1,'White',0,true,false,person) tor.Name = 'Torso'
  587. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Left Arm'
  588. q = T.W(ar,tor,-.5,0.5,0,0,math.pi/2,0,tor)
  589. q.C0 = cfn(1,0.5,0)*ang(0,math.pi/2,0)
  590. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Right Arm'
  591. q2 = T.W(ar,tor,.5,0.5,0,0,math.pi/2,0,tor)
  592. q2.C0 = cfn(-1,0.5,0)*ang(0,math.pi/2,0)
  593. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Right Leg'
  594. T.W(ar,tor,-.5,-2,0,0,0,0,tor)
  595. local ar = T.P(1,2,1,'White',0,true,false,person) ar.Name = 'Left Leg'
  596. T.W(ar,tor,.5,-2,0,0,0,0,tor)
  597. T.W(hed,tor,0,1.5,0,0,0,0,tor)
  598. ----PARTS-------
  599. q.MaxVelocity = .1
  600. q.DesiredAngle = math.pi/2
  601. q2.MaxVelocity = .1
  602. q2.DesiredAngle = math.pi/2
  603. local hum = Instance.new("Humanoid",person)
  604. Instance.new("Skin",person).SkinColor = BrickColor.new('Earth green')
  605. tor.CFrame = calcp(torso.Position+torso.CFrame.lookVector*5,torso.Position)
  606. shirt = Instance.new('Shirt',person)
  607. shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=79001892'
  608. pants = Instance.new('Pants',person)
  609. pants.PantsTemplate = 'http://www.roblox.com/asset/?id=79001892'
  610. crown = T.P(1,1,1,'White',0,false,false)
  611. T.FM(crown,1031410,1,1,1,1031417)
  612. T.W(crown,hed,-.2,.85,0,0,0,M.D(20),person)
  613. face = T.Dec(hed,'Front','http://www.roblox.com/asset/?id=65180938')
  614. ---DYING---
  615. hum.Died:connect(function() wait(2) hum.Parent:Remove() end)
  616. ---DYING---
  617. end
  618. -----------ZOMBIE MAKER FUNCTION------------
  619. function triforce(mouse)
  620. r = 10
  621. local pp = mouse.hit
  622. for i = 1,360,120 do
  623. p = T.P(r*3.5,.1,1,'New Yeller',0,false,true)
  624. p.CFrame = cfn(mouse.hit.p)*cfn(M.Cos(M.D(i))*r,0,M.Sin(M.D(i))*r)
  625. p.CFrame = cfn(p.Position,mouse.hit.p)
  626. end
  627. r = r/2
  628. for i = 180,360+180,120 do
  629. p = T.P(r*3.5,.1,1,'New Yeller',0,false,true)
  630. p.CFrame = cfn(mouse.hit.p)*cfn(M.Cos(M.D(i))*r,0,M.Sin(M.D(i))*r)
  631. p.CFrame = cfn(p.Position,mouse.hit.p)
  632. end
  633. lock.R(1)
  634. lock.L(1)
  635. tw(lw,cfn()*ang(-M.D(150),0,M.D(30)),.1,'')
  636. tw(rw,cfn()*ang(-M.D(150),0,M.D(-30)),.1)
  637. wait(.5)
  638. local obj,pos = findground(pp*cfn(0,3,0),200)
  639. if pos then
  640. r = 10
  641. model = Instance.new("Model",m)
  642. for i = 1,10 do
  643. o = 360/10*i
  644. local p = obj:Clone()
  645. p.Parent = model
  646. p.Anchored = false
  647. p.Size = v3n(M.R(10,30),1,M.R(10,30))
  648. p.CFrame = calcp(pos+v3n(M.Cos(M.D(o))*r,0,M.Sin(M.D(o))*r),pos)*ang(M.D(M.R(-10,10)),M.D(M.R(-10,10)),M.D(M.R(-10,10)))
  649. p:BreakJoints()
  650. p.Velocity = calcp(p.Position,pos).lookVector*-300+v3n(0,200,0)
  651. end
  652. fist = T.P(2,4,2,'Olive',0,false,true)
  653. fist.Reflectance = .4
  654. fist.CFrame = cfn(pos+v3n(0,10,0))*ang(math.pi,0,0)
  655. for i,v in pairs(FindPlayers(fist.Position,30)) do damage(v,30,.1) end
  656. T.FM(fist,'fist',30,30,30)
  657. T.C(function() for i = 0,1,.05 do wait() fist.Transparency = i end fist:Remove() end)
  658. tw(lw,cfn(),.1,'')
  659. tw(rw,cfn(),.1)
  660. lock.R(0) lock.L(0)
  661. end
  662. end
  663. neck2 = _
  664. function necko(a) if a == 1 then neck2 = T.W(char.Head,faketorso,0,1.5,0,0,0,0) normposn2 = neck2.C0 elseif a == 0 then neck2:Remove() end end
  665. function Kick()
  666. faketor()
  667. necko(1)
  668. weldall(1)
  669. local con = lleg.Touched:connect(function(hit) hum = damage(hit.Parent,30,.5) if hum then
  670. hum.Sit = true
  671. hum.Torso.Velocity = calcp(torso.Position,hum.Torso.Position).lookVector*400+v3n(0,80,0)
  672. end
  673. end)
  674. o = 1/5
  675. for _,v in pairs({ {0,1,o},{1,0,-o}}) do
  676. for i = v[1],v[2],v[3] do
  677. lhw.C1 = normposl2*ang(M.D(-90*i),0,0)
  678. rhw.C1 = normposr2*ang(M.D(45*i),0,0)
  679. rw.C1 = normposr*ang(M.D(160*i),0,0)
  680. lw.C1 = normposl*ang(M.D(160*i),0,0)
  681. rweld.C1 = cfn()*ang(M.D(-20*i),0,0)
  682. neck2.C0 = normposn2*ang(M.D(20*i),0,0)*cfn(0,0,.3*i)
  683. wait()
  684. end
  685. end
  686. T.S('hit',.5)
  687. for _,v in pairs({ {0,1,o},{1,0,-o}}) do
  688. for i = v[1],v[2],v[3] do
  689. rhw.C1 = normposr2*ang(M.D(-45*i),0,0)*cfn(0,0,.4*i)
  690. lhw.C1 = normposl2*ang(M.D(80*i),0,0)*cfn(0,-.3*i,-.2*i)
  691. rw.C1 = normposr*ang(M.D(-60*i),0,0)
  692. lw.C1 = normposl*ang(M.D(-60*i),0,0)
  693. rweld.C1 = cfn()*ang(M.D(30*i),0,0)
  694. neck2.C0 = normposn2*ang(M.D(-20*i),0,0)*cfn(0,0,-.2*i)
  695. wait()
  696. end
  697. end
  698. faketor() con:disconnect()
  699. weldall(0)
  700. end
  701. function clawshot(mouse)
  702. old = _
  703. startpos = cfn(bl2.Position).p
  704. size = 2
  705. col = 'New Yeller'
  706. pos = mouse.hit.p
  707. local mag = (startpos-pos).magnitude
  708. local chai = Instance.new("Model",m)
  709. bg = T.BG(torso)
  710. lock.L(1)
  711. lw.C1 = holdpos2
  712. bg.cframe = calcp(torso.Position,mouse.hit.p)
  713. for i = 1,mag,size-.25 do
  714. wait()
  715. local new = T.P(size,size,size,col,0,false,true,chai)
  716. T.FM(new,"ring",2,2,2)
  717. new.CFrame = (cfn(startpos,pos) * cfn(0,0,-i/2*size/2))*ang(math.pi/2,0,0)
  718. if old ~= nil then
  719. new.CFrame = (old.CFrame * CFrame.new(0,-(size-.25),0)) * ang(0,math.pi/2,0)
  720. end
  721. old = new
  722. end
  723. torso.Anchored = true
  724. for i,v in pairs(chai:GetChildren()) do
  725. wait()
  726. torso.CFrame = v.CFrame*cfn(0,2,0)
  727. v:Remove()
  728. end
  729. torso.Anchored = false
  730. bg:Remove()
  731. chai:Remove()
  732. lock.L(0)
  733. end
  734. klist = {
  735. {'f',function() Recharge() end};
  736. {'r',function() Punch() end};
  737. {'t',function() Exorcism() end};
  738. {string.char(48),function(a) Shield(a) end,''};
  739. {'e',function(a) Kick(a) end};
  740. {'c',function(a) clawshot(a) end};
  741. {'q',function(a) triforce(a) end};
  742. }
  743. hop.Selected:connect(function(mouse)
  744. mouse.Button1Up:connect(function() holding = false end)
  745. mouse.KeyUp:connect(function(a) for i,v in pairs(klist) do if a == v[1] and v[3] ~= nil then holding = false end end end)
  746. mouse.KeyDown:connect(function(key)
  747. if attacking then return end
  748. for i,v in pairs(klist) do
  749. if key == v[1] then attacking = true v[2](mouse) attacking = false end
  750. end
  751. end)
  752. mouse.Button1Down:connect(function() if attacking then return end attacking = true Shoot(mouse) attacking = false end)
  753. end)
  754. --mediafire
Add Comment
Please, Sign In to add comment