Advertisement
awzp

Cross (not by me)

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