AlphaSploit

Clown

Jan 17th, 2018
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.63 KB | None | 0 0
  1. ---Made by mugex-----------------------------------------------------
  2. name = 'Cross'
  3. PLAYERS = game:GetService('Players')
  4. ply = PLAYERS.LocalPlayer
  5. char = ply.Character
  6. pcall(function() char:FindFirstChild("legetdg"):Remove() end)
  7. m = Instance.new("Model",char) m.Name = "legetdg"
  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. track = false
  16. rs = torso["Right Shoulder"]
  17. ls = torso["Left Shoulder"]
  18. rh = torso["Right Hip"]
  19. lh = torso["Right Hip"]
  20. neck = torso["Neck"]
  21. rw,lw = nil,nil
  22. rhw,lhw = nil,nil
  23. local orgc1 = rs.C1
  24. rarm = char["Right Arm"]
  25. larm = char["Left Arm"]
  26. rleg = char["Right Leg"]
  27. lleg = char["Left Leg"]
  28. normposr = cfn(1.5,.5,0)
  29. normposl = cfn(-1.5,.5,0)
  30. normposl2 = cfn(.5,-1.5,0)
  31. normposr2 = cfn(-.5,-1.5,0)
  32. normposn = CFrame.new(0,1,0,-1,-0,-0,0,0,1,0,1,0)
  33. holdpos = normposr*ang(math.pi/2,0,0)
  34. holdpos2 = normposl*ang(math.pi/2,0,0)
  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. genNew('Part',Workspace,{
  46. Size = Vector3.new(1,1,1);
  47. BrickColor = BrickColor.new'Really red';
  48. })
  49. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored,parent,typee)
  50. if typee == 'wedge' then
  51. c = Instance.new("WedgePart",m)
  52. elseif typee == 'seat' then
  53. c = Instance.new("Seat",m)
  54. elseif typee == 'vseat' then
  55. c = Instance.new("VehicleSeat",m)
  56. else
  57. c = Instance.new("Part",m)
  58. end
  59. c.TopSurface,c.BottomSurface = 0,0
  60. c.Locked = true
  61. c.formFactor = "Custom"
  62. c.Size = Vector3.new(x,y,z)
  63. if color ~= "random" then
  64. c.BrickColor = BrickColor.new(color)
  65. else c.BrickColor = BrickColor:random()
  66. end
  67. c.Transparency = transparency
  68. c.CanCollide = cancollide
  69. if anchored ~= nil then c.Anchored = anchored end
  70. if parent ~= nil then c.Parent = parent end
  71. return c
  72. end
  73. ,
  74. ["C"] = function(func) coroutine.resume(coroutine.create(func)) end
  75. ,
  76. ["W"] = function(part0,part1,x,y,z,rx,ry,rz,parent)
  77. w = Instance.new("Motor",m)
  78. if parent ~= nil then w.Parent = parent end
  79. w.Part0,w.Part1 = part0,part1
  80. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  81. return w
  82. end
  83. ,
  84. ["BG"] = function(parent)
  85. local c = Instance.new("BodyGyro",parent)
  86. c.P = 20e+003
  87. c.cframe = parent.CFrame
  88. c.maxTorque = Vector3.new(c.P,c.P,c.P)
  89. return c
  90. end
  91. ,
  92. ["BP"] = function(parent,position)
  93. local bp = Instance.new("BodyPosition",parent)
  94. bp.maxForce = Vector3.new()*math.huge
  95. bp.position = position
  96. return bp
  97. end
  98. ,
  99. ["F"] = function(parent,size,heat,color,secondcolor,enabled)
  100. f = Instance.new("Fire",parent)
  101. f.Size = size
  102. f.Heat = heat
  103. if enabled ~= nil then f.Enabled = enabled end
  104. if color ~= nil then f.Color = BrickColor.new(color).Color end
  105. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  106. return f
  107. end
  108. ,
  109. ["FM"] = function(parent,meshid,x,y,z,meshtexture)
  110. if meshid == "cylinder" then
  111. mesh = Instance.new("CylinderMesh",parent)
  112. mesh.Scale = Vector3.new(x,y,z)
  113. return mesh
  114. elseif meshid == 'block' then
  115. mesh = Instance.new("BlockMesh",parent)
  116. mesh.Scale = Vector3.new(x,y,z)
  117. return mesh
  118. end
  119. mesh = Instance.new("SpecialMesh",parent)
  120. if meshid == 'wedge' then
  121. mesh.MeshType = 'Wedge'
  122. elseif meshid == 'sphere' then
  123. mesh.MeshType = 3
  124. elseif type(meshid) == "number" then
  125. mesh.MeshId = "rbxassetid://"..meshid
  126. else
  127. mesh.MeshId = "rbxassetid://"..meshids[meshid]
  128. end
  129. mesh.Scale = Vector3.new(x,y,z)
  130. if meshtexture then
  131. if type(meshtexture) == "number" then mesh.TextureId = "rbxassetid://"..meshtexture else
  132. mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
  133. end
  134. return mesh
  135. end,
  136. ["Dec"] = function(parent,face,id,transparency)
  137. c = Instance.new("Decal",parent)
  138. c.Face = face
  139. c.Texture = id
  140. if transparency then c.Transparency = transparency end
  141. return c
  142. end,
  143. ["S"] = function(id,pitch,volume,parent)
  144. cur = nil
  145. found = false
  146. if type(id) == 'string' then
  147. for i,v in pairs(char.Head:children()) do
  148. if v:IsA("Sound") and v.Name == id and not found then
  149. cur = v
  150. if parent then cur = v:Clone() cur.Parent = parent end
  151. cur.Pitch = pitch
  152. if volume then cur.Volume = volume end
  153. cur:Play()
  154. found = true
  155. return cur
  156. end
  157. end
  158. elseif type(id) == 'number' then
  159. local a = char.Head:FindFirstChild('exteo')
  160. a.SoundId = 'rbxassetid://'..id
  161. a.Pitch = pitch
  162. if volume then a.Volume = volume end
  163. a:Play()
  164. return a
  165. end
  166. end
  167. }
  168. ------MESHIDS---
  169. meshids = {["penguin"] = 15853464, ["ring"] = 3270017,
  170. ["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["crossbow"] = 15886761,
  171. ["cloud"] = 1095708,["mjolnir"] = 1279013,["diamond"] = 9756362, ["hand"] = 37241605,
  172. ["fist"] = 65322375,["skull"] = 36869983,["totem"] = 35624068,["spikeb"] = 9982590,["dragon"] = 58430372,["fish"] = 31221717, ["coffee"] = 15929962,["spiral"] = 1051557,
  173. ["ramen"] = 19380188,["lightning"] = 72583597,["bullet"]=2697549}---some meshids
  174. textureids = {["cone"] = 1082804,["rainbow"] = 28488599,["fish"] = 31221733, ["coffee"] = 24181455,["monster"] = 33366441,["ramen"] = 19380153}
  175. soundids = {["bell"] = 20005706,["flintlock"] = 13510352,["falcon"] = 1387390,['sensa'] = 4700455,
  176. ['midas'] = 17385513;
  177. ['spark'] = 10756118;
  178. ['boom'] = 10730819;
  179. ['plank'] = 10548112;
  180. ['harmonica1'] = 33069371;
  181. ['harmonica2'] = 33069412;
  182. ['thump'] = 10730819;
  183. }
  184. for i,v in pairs(soundids) do
  185. for _,q in pairs(char.Head:children()) do
  186. if q.Name == i then q:Remove() end
  187. end
  188. end
  189. for i,v in pairs(soundids) do
  190. sound = Instance.new("Sound")
  191. sound.SoundId = "http://www.roblox.com/asset/?id="..v
  192. sound.Name = i
  193. sound.Parent = char.Head
  194. end
  195. M = {["R"] = function(a,b) return math.random(a,b) end,
  196. ["Cos"] = function(a) return math.cos(a) end,
  197. ["Sin"] = function(a) return math.sin(a) end,
  198. ["D"] = function(a) return math.rad(a) end
  199. }
  200. for i,v in pairs(char:children()) do
  201. if v:IsA("Hat") then v:Remove() end
  202. end
  203. hat = T.P(1,1,1,'White',0,false,false)
  204. T.FM(hat,64445837,1.05,1,1.1,64445853)
  205. T.W(hat,char.Head,0,0,-.2,0,0,0)
  206. hat = T.P(1,1,1,'White',0,false,false)
  207. T.FM(hat,'cone',1.1,1,1.1,'cone')
  208. T.W(hat,char.Head,0,1.6,.1,0,0,0)
  209. hat = T.P(1,1,1,'White',0,false,false)
  210. T.FM(hat,13070796,1,1,1,'rainbow')
  211. T.W(hat,char.Head,0,-.2,.05,M.D(5),0,0)
  212. function l(a,x,y,z,b)
  213. if b == nil then
  214. return a.CFrame*cfn(x,y,z)
  215. else
  216. return a*cfn(x,y,z)
  217. end
  218. end
  219. function damage(hit,amount,delay)
  220. for i,v in pairs(hit:children()) do
  221. if v:IsA("Humanoid") and v.Parent ~= char then
  222. if delay then
  223. local found = v:FindFirstChild('tag')
  224. if not found then
  225. local a = Instance.new("StringValue",v)
  226. a.Name = 'tag'
  227. debris:AddItem(a,delay)
  228. v.Health = v.Health - amount
  229. end
  230. else v.Health = v.Health - amount
  231. end
  232. end
  233. end
  234. end
  235. lock = {["R"] =
  236. function(a)
  237. if a == 1 then
  238. rabrick = T.P(1,1,1,"White",1,false,false)
  239. rw = T.W(rabrick,torso,1.5,.5,0,0,0,0)
  240. T.W(rarm,rabrick,0,-.5,0,0,0,0)
  241. elseif a == 2 then
  242. rlbrick = T.P(1,1,1,"White",1,false,false)
  243. rhw = T.W(rlbrick,torso,-.5,-1.5,0,0,0,0)
  244. T.W(rleg,rlbrick,0,-.5,0,0,0,0)
  245. elseif a == 0 then
  246. rs.Parent = torso
  247. rw.Parent = nil
  248. rabrick:Destroy() rabrick = nil
  249. elseif a == -1 then
  250. rhw.Parent = nil
  251. rh.Parent = torso
  252. rlbrick:Destroy() rlbrick = nil
  253. end
  254. end
  255. , ["L"] = function(a)
  256. if a == 1 then
  257. labrick = T.P(1,1,1,"White",1,false,false)
  258. lw = T.W(labrick,torso,-1.5,.5,0,0,0,0)
  259. T.W(larm,labrick,0,-.5,0,0,0,0)
  260. elseif a == 2 then
  261. llbrick = T.P(1,1,1,"White",1,false,false)
  262. lhw = T.W(llbrick,torso,.5,-1.5,0,0,0,0)
  263. T.W(lleg,llbrick,0,-.5,0,0,0,0)
  264. elseif a == 0 then
  265. ls.Parent = torso
  266. lw.Parent = nil
  267. labrick:Destroy() labrick = nil
  268. elseif a == -1 then
  269. lhw.Parent = nil
  270. lh.Parent = torso
  271. llbrick:Destroy() llbrick = nil
  272. end
  273. end
  274. }
  275. hdl = T.P(.3,1,.3,'Black',0,false,false)
  276. T.W(hdl,rarm,0,-1,0,math.pi/2,0,0)
  277. pp = T.P(.3,1,.3,'Black',0,false,false)
  278. T.W(pp,hdl,0,0,0,0,0,math.pi/2)
  279. function lightning(startpos,endpos,times,offse,livetime,col,dmg)
  280. local curpos = startpos
  281. for i = 1,times do
  282. mag = (startpos-endpos).magnitude offs = {-offse,offse}
  283. offset = v3n(offs[M.R(1,2)],offs[M.R(1,2)],offs[M.R(1,2)])
  284. laz = T.P(.1,.1,mag/times,col,0,false,true,m)
  285. if dmg then laz.Touched:connect(function(hit) damage(hit.Parent,dmg[1],dmg[2]) end) end
  286. apos = (cfn(curpos,endpos)*cfn(0,0,-mag/times)).p+offset
  287. if times == i then
  288. mag2 = (curpos-endpos).magnitude
  289. laz.Size = v3n(.1,.1,mag2)
  290. laz.CFrame = cfn(curpos,endpos)*cfn(0,0,-mag2/2)
  291. else
  292. laz.CFrame = cfn(curpos,apos)*cfn(0,0,-mag/times/2)
  293. end
  294. curpos = laz.CFrame*cfn(0,0,-mag/times/2).p debris:AddItem(laz,livetime)
  295. end
  296. end
  297. function attack()
  298. holding = true
  299. lock.R(1)
  300. cross = Instance.new("Model",m)
  301. bg = T.BG(char.Head) cf = bg.cframe
  302. center = T.P(.9,.9,.9,'White',0,false,false,cross)
  303. cw=T.W(center,hdl,0,0,0,0,0,0)
  304. p2 = T.P(.6,1,.6,'New Yeller',0,false,false,cross)
  305. w1=T.W(p2,center,0,0,0,0,0,0)
  306. p3 = T.P(.6,1,.6,'New Yeller',0,false,false,cross)
  307. w2=T.W(p3,center,0,0,0,0,0,math.pi/2)
  308. for i = 0,1,.1 do
  309. rw.C1 = normposr*ang(0,0,M.D(90*i))
  310. neck.C0 = normposn*ang(0,0,M.D(-60*i))
  311. bg.cframe = cf*ang(0,M.D(30*i),0)
  312. p2.Size,p3.Size = v3n(.6,5*i,.6),v3n(.6,5*i,.6)
  313. w1.Part1,w2.Part1 = center,center
  314. w1.Parent,w2.Parent = m,m
  315. cw.C1 = cfn(0,0,2*i)
  316. wait()
  317. end
  318. while holding do
  319. T.S('spark',1)
  320. poslist = {
  321. p2.CFrame*cfn(0,2.5,0),p2.CFrame*cfn(0,-2.5,0),p3.CFrame*cfn(0,2.5,0),p3.CFrame*cfn(0,-2.5,0) }
  322. for _,v in pairs(poslist) do
  323. ray = Ray.new(v.p,cfn(v.p,(center.CFrame*cfn(0,0,50)).p).lookVector*50)
  324. local obj,pos = Workspace:FindPartOnRay(ray,m)
  325. if obj ~= nil then damage(obj.Parent,10,.1)
  326. lightning(v.p,(center.CFrame*cfn(0,0,(center.Position-pos).magnitude)).p,3,1,.1,'Institutional white')
  327. else
  328. lightning(v.p,(center.CFrame*cfn(0,0,50)).p,3,1,.1,'Institutional white')
  329. end
  330. end
  331. wait()
  332. end
  333. for i = 1,0,-.1 do
  334. rw.C1 = normposr*ang(0,0,M.D(90*i))
  335. neck.C0 = normposn*ang(0,0,M.D(-60*i))
  336. bg.cframe = cf*ang(0,M.D(30*i),0)
  337. p2.Size,p3.Size = v3n(.6,5*i,.6),v3n(.6,5*i,.6)
  338. w1.Part1,w2.Part1 = center,center
  339. w1.Parent,w2.Parent = m,m
  340. cw.C1 = cfn(0,0,2*i)
  341. wait()
  342. end
  343. lock.R(0)
  344. cross:Remove() bg:Remove()
  345. end
  346. function bre()
  347. welds = {}
  348. for i,v in pairs(torso:children()) do
  349. if v:IsA("Motor6D") then table.insert(welds,v) v.Parent = nil
  350. end
  351. end
  352. for _,v in pairs(char:children()) do
  353. if v:IsA("BasePart") then v.CanCollide = true end
  354. end
  355. local hum = char.Humanoid
  356. hum.Parent = nil
  357. holding = true
  358. while holding do wait() end
  359. for i,v in pairs(welds) do
  360. v.Parent = torso
  361. v.Part1 = v.Part1
  362. end
  363. hum.Parent = char
  364. end
  365. longneck = _
  366. function nec()
  367. if not longneck then
  368. local snd = T.S('harmonica1',1.5)
  369. wait(1.5/1.5)
  370. longneck = T.P(1,10,1,'Cool yellow',false,false)
  371. longneck.Position = torso.Position
  372. T.FM(longneck,'cylinder',1,1,1)
  373. T.W(longneck,torso,0,6,0,0,0,0)
  374. neck.C0 = normposn*cfn(0,0,10)
  375. else
  376. T.S('harmonica2',1.5)
  377. longneck:Remove() longneck = _
  378. neck.C0 = normposn
  379. end
  380. end
  381. function aq()
  382. a = 0 holding = true
  383. while holding do
  384. a = a+1
  385. wait(1)
  386. end
  387. print(a)
  388. end
  389. function LOL(mouse)
  390. a = true
  391. lock.R(1) lock.L(1)
  392. for i = 0,1,.1 do
  393. rw.C1 = normposr*ang(M.D(150*i),0,M.D(20*i))
  394. lw.C1 = normposl*ang(M.D(150*i),0,M.D(-20*i))
  395. wait()
  396. end
  397. T.C(function()
  398. while a do wait()
  399. p = T.P(1.5,1.5,1.5,'Lime green',.5,false,true)
  400. p.CFrame = l(rarm,0,-1,0)*ang(M.R(-10,10),M.R(-10,10),M.R(-10,10))
  401. debris:AddItem(p,.2)
  402. p = T.P(1.5,1.5,1.5,'Lime green',.5,false,true)
  403. p.CFrame = l(larm,0,-1,0)*ang(M.R(-10,10),M.R(-10,10),M.R(-10,10))
  404. debris:AddItem(p,.2)
  405. end
  406. end)
  407. holding = true
  408. while holding do
  409. char.Humanoid.Health = char.Humanoid.Health+10
  410. wait()
  411. end
  412. a = false
  413. for i = 1,0,-.1 do
  414. rw.C1 = normposr*ang(M.D(150*i),0,M.D(20*i))
  415. lw.C1 = normposl*ang(M.D(150*i),0,M.D(-20*i))
  416. wait()
  417. end
  418. lock.R(0) lock.L(0)
  419. end
  420. bow = _
  421. function cannon()
  422. if not bow then
  423. lock.R(1)
  424. bow = Instance.new("Model",m)
  425. q = T.P(1,2,1,'Brown',0,false,false,bow)
  426. T.FM(q,'cylinder',1,1,1)
  427. T.W(q,rarm,0,-2,0,0,0,0)
  428. rw.C1 = holdpos
  429. q2 = T.P(.9,.1,.9,'Black',0,false,false,bow)
  430. T.W(q2,q,0,-1,0,0,0,0)
  431. T.FM(q2,'cylinder',1,1,1)
  432. r = 1
  433. for i = 1,360,30 do
  434. q3 = T.P(1,1,1,'Institutional white',0,false,false,bow)
  435. T.FM(q3,'diamond',.5,2,.5)
  436. wld1 = T.W(q3,q,M.Cos(M.D(i))*r,1,M.Sin(M.D(i))*r,math.pi/2,0,math.pi/2+M.D(i))
  437. wld1.C1 = wld1.C1*ang(M.D(30),0,0)
  438. end
  439. elseif bow then
  440. lock.R(0) bow:Remove() bow = nil
  441. end
  442. end
  443. function findplayers(a,b)
  444. list = {}
  445. for _,v in pairs(Workspace:children()) do
  446. if v:IsA("Model") then
  447. for _,child in pairs(v:children()) do
  448. if child:IsA("Humanoid") then
  449. if (a-child.Torso.Position).magnitude < b then
  450. table.insert(list,child.Parent)
  451. end
  452. end
  453. end
  454. end
  455. end
  456. return list
  457. end
  458. function shoot()
  459. for i = 1,1 do
  460. T.S('flintlock',1)
  461. local ball = T.P(2,2,2,'White',0,false,true)
  462. ball.Shape = 0
  463. ray = Ray.new(q2.Position,cfn(q2.Position,(q2.CFrame*cfn(0,-20,0)).p).lookVector*50)
  464. local obj,pos = Workspace:FindPartOnRay(ray,m)
  465. pos2 = q2.CFrame
  466. local mag
  467. rw.C1 = holdpos*ang(M.D(30),0,0)
  468. if obj then mag = (pos2.p-pos).magnitude else mag = 50 end
  469. for i = 0,mag,mag/3 do
  470. ball.CFrame = pos2*cfn(0,-i,0)
  471. wait()
  472. end
  473. local mp = T.P(1,1,1,'Black',0,false,true)
  474. mp.CFrame = ball.CFrame
  475. local mp2 = T.P(1,1,1,'Black',0,false,true)
  476. mp2.CFrame = ball.CFrame
  477. rw.C1 = holdpos
  478. ball:Remove()
  479. local msh = T.FM(mp,'sphere',1,1,1)
  480. local msh2 = T.FM(mp2,'ring',1,1,1)
  481. for i,v in pairs(findplayers(mp.Position,15)) do
  482. damage(v,20,.1)
  483. end
  484. T.C(function()
  485. local p = T.P(1,1,1,'Black',0,false,true)
  486. p.CFrame = l(q2,0,0,0)
  487. local msh = T.FM(p,'crown',1,1,1)
  488. for i = 1,5,.5 do
  489. wait()
  490. msh.Scale = v3n(i,1,i)
  491. p.Transparency = i/5
  492. end
  493. p:Remove()
  494. end)
  495. T.C(function()
  496. T.S('thump',1)
  497. for i = 1,30 do
  498. wait()
  499. msh.Scale = v3n(i,i,i)
  500. mp.Transparency = i/30
  501. mp2.Transparency = i/30
  502. msh2.Scale = v3n(i,i,1)
  503. mp2.CFrame = mp.CFrame*ang(M.D((360/30)*i),0,0)
  504. end
  505. mp2:Remove() mp:Remove()
  506. end)
  507. end
  508. end
  509. function spiral()
  510. ray = Ray.new(q2.Position,cfn(q2.Position,(q2.CFrame*cfn(0,-20,0)).p).lookVector*100)
  511. local obj,pos = Workspace:FindPartOnRay(ray,m)
  512. cf = q2.CFrame*ang(0,math.pi/2,0)
  513. if obj then mag = (cf.p-pos).magnitude else mag = 100 end
  514. for i = 1,mag,mag/20 do o = mag/20
  515. lol,lol2 = M.Sin(150*i),M.Sin(150*i)
  516. for _,v in pairs({{0,1},{0,-1}}) do
  517. q = T.P(1,o,1,'New Yeller',0,false,true)
  518. q.CFrame = l(cf,lol*v[1],-i,lol*v[2],'')
  519. end
  520. wait()
  521. end
  522. end
  523. hum = char.Humanoid
  524. restbp = nil
  525. restbg = nil
  526. function rest()
  527. if not restbp then
  528. lock.R(1) lock.L(1) lock.R(2) lock.L(2)
  529. tyu = cfn(.2,.2,-.2)
  530. tyu1 = cfn(-.2,.2,-.2)
  531. tyu2 = cfn(-.1,.2,-.2)
  532. rw.C1 = (holdpos*tyu1)*ang(M.D(100),0,M.D(-30))
  533. lw.C1 = (holdpos2*tyu)*ang(M.D(100),0,M.D(30))
  534. neck.C0 = normposn*ang(M.D(20),0,0)
  535. lhw.C1 = (normposl2*tyu2)*ang(M.D(20),0,M.D(-20))
  536. rhw.C1 = (normposr2)*ang(M.D(5),0,M.D(10))
  537. pos = torso.CFrame
  538. restbp = T.BP(torso,pos.p)
  539. cloud = T.P(5,2,5,'White',.5,false,false) T.FM(cloud,'cloud',5,2,5)
  540. cloud.Position = pos.p
  541. T.W(cloud,torso,0,0,.8,-math.pi/2,0,0)
  542. T.C(function()
  543. while wait() do
  544. for i = 0,.5,.05 do
  545. restbp.position = pos.p+v3n(0,i,0)
  546. wait(.2)
  547. end
  548. for i = .5,0,-.05 do
  549. restbp.position = pos.p+v3n(0,i,0)
  550. wait(.2)
  551. end
  552. end
  553. end)
  554. restbg = T.BG(torso)
  555. restbg.cframe = pos*ang(math.pi/2,0,0)
  556. hum.PlatformStand = true
  557. else
  558. hum.PlatformStand = false
  559. for i = -1,0 do lock.R(i) lock.L(i) end
  560. cloud:Remove()
  561. restbp:Remove()
  562. restbg:Remove()
  563. neck.C0 = normposn
  564. torso.CFrame = pos
  565. restbp,restbg = nil,nil
  566. end
  567. end
  568. function sel()
  569. if bow then shoot()
  570. else attack()
  571. end
  572. end
  573. klist = {
  574. {'f',function(a) if bow then spiral() else LOL(a) end end,''};
  575. {'q',function() cannon() end};
  576. {'e',function() bre() end,''};
  577. {'r',function() nec() end};
  578. {'c',function() rest() end};
  579. }
  580. hop.Selected:connect(function(mouse)
  581. mouse.Button1Up:connect(function() holding = false end)
  582. 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)
  583. mouse.KeyDown:connect(function(key) if attacking then return end
  584. for i,v in pairs(klist) do
  585. if key == v[1] then attacking = true v[2](mouse) attacking = false end
  586. end
  587. end)
  588. mouse.Button1Down:connect(function() if attacking then return end attacking = true sel(mouse) attacking = false end)
  589. end)
  590. --mediafire
Add Comment
Please, Sign In to add comment