Advertisement
frog2128

Untitled

Mar 9th, 2015
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.73 KB | None | 0 0
  1. Player = game:GetService("Players").Fenrier
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. it=Instance.new
  17. vt=Vector3.new
  18. cf=CFrame.new
  19. euler=CFrame.fromEulerAnglesXYZ
  20. angles=CFrame.Angles
  21. act = {key = {}}
  22. hold=false
  23. MMouse=nil
  24. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. grabbed=false
  27. speed=1
  28. jumpcount=0
  29. doinganimation=false
  30. moveforward=false
  31. movebackward=false
  32. moveleft=false
  33. moveright=false
  34. doflying=false
  35. --player
  36. player = nil
  37. --save shoulders
  38. RSH, LSH = nil, nil
  39. --welds
  40. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  41. --what anim
  42. anim = "none"
  43.  
  44. bod = it("BodyPosition")
  45. bod.position = Torso.Position
  46. bod.maxForce = vt(4e+080, 4e+080, 4e+080)
  47.  
  48. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  49. local fp = it("Part")
  50. fp.formFactor = formfactor
  51. fp.Parent = parent
  52. fp.Reflectance = reflectance
  53. fp.Transparency = transparency
  54. fp.CanCollide = false
  55. fp.BrickColor = brickcolor
  56. fp.Name = name
  57. fp.Size = size
  58. fp.Position = Torso.Position
  59. fp.BottomSurface="Smooth"
  60. fp.TopSurface="Smooth"
  61. fp:BreakJoints()
  62. return fp
  63. end
  64.  
  65. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  66. local mesh = it(Mesh)
  67. mesh.Parent = part
  68. if Mesh=="SpecialMesh" then
  69. mesh.MeshType = meshtype
  70. mesh.MeshId = meshid
  71. end
  72. mesh.Offset=offset
  73. mesh.Scale=scale
  74. return mesh
  75. end
  76.  
  77. if Character:findFirstChild("Steampunk Wings",true) ~= nil then
  78. Character:findFirstChild("Steampunk Wings",true).Parent = nil
  79. end
  80.  
  81. local modelzorz = it("Model")
  82. modelzorz.Name = "Steampunk Wings"
  83. modelzorz.Parent = Character
  84.  
  85. local part1 = part(1,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part1",vt(1,1,1))
  86. local part2 = part(1,modelzorz,0,0,BrickColor.new("Dark green"),"Part2",vt(1,1,1))
  87. local part3 = part(1,modelzorz,0,0,Torso.BrickColor,"Part3",vt(1,1,1))
  88. local part4 = part(1,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part4",vt(1,1,1))
  89. local part5 = part(1,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part5",vt(1,1,1))
  90. local part6 = part(1,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part6",vt(1,1,1))
  91. local part7 = part(1,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part7",vt(1,1,1))
  92. local part8 = part(1,modelzorz,0,0,BrickColor.new("Br. yellowish green"),"Part8",vt(1,1,1))
  93. local part9 = part(1,modelzorz,0,0,BrickColor.new("Bright green"),"Part9",vt(1,1,1))
  94. local part10 = part(1,modelzorz,0,0,BrickColor.new("White"),"Part10",vt(1,1,1))
  95. local part11 = part(1,modelzorz,0,1,BrickColor.new("Black"),"Part11",vt(1,1,1))
  96. local part12 = part(1,modelzorz,0,0,BrickColor.new("White"),"Part12",vt(1,1,1))
  97. local part13 = part(1,modelzorz,0,0,BrickColor.new("White"),"Part13",vt(1,1,1))
  98. local part14 = part(1,modelzorz,0,1,BrickColor.new("Black"),"Part14",vt(1,1,1))
  99. local part15 = part(1,modelzorz,0,0,BrickColor.new("White"),"Part15",vt(1,1,1))
  100.  
  101. local mesh1 = mesh("BlockMesh",part1,"","",vt(0,0,0),vt(2.1,0.5,1.1))
  102. local mesh2 = mesh("BlockMesh",part2,"","",vt(0,0,0),vt(1.3,1.3,0.8))
  103. local mesh3 = mesh("CylinderMesh",part3,"","",vt(0,0,0),vt(0.9,0.3,0.9))
  104. local mesh4 = mesh("BlockMesh",part4,"","",vt(0,0,0),vt(0.3,1.6,0.3))
  105. local mesh5 = mesh("BlockMesh",part5,"","",vt(0,0,0),vt(0.3,1.6,0.3))
  106. local mesh6 = mesh("BlockMesh",part6,"","",vt(0,0,0),vt(0.3,1.8,0.3))
  107. local mesh7 = mesh("BlockMesh",part7,"","",vt(0,0,0),vt(0.3,2,0.3))
  108. local mesh8 = mesh("BlockMesh",part8,"","",vt(0,0,0),vt(0.3,2,0.3))
  109. local mesh9 = mesh("BlockMesh",part9,"","",vt(0,0,0),vt(0.6,2.5,0.6))
  110. local mesh10 = mesh("BlockMesh",part10,"","",vt(0,0,0),vt(0.1,1.5,2))
  111. local mesh11 = mesh("BlockMesh",part11,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  112. local mesh12 = mesh("SpecialMesh",part12,"Wedge","",vt(0,0,0),vt(0.1,1.5,2))
  113. local mesh13 = mesh("BlockMesh",part13,"","",vt(0,0,0),vt(0.1,1.5,2))
  114. local mesh14 = mesh("BlockMesh",part14,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  115. local mesh15 = mesh("SpecialMesh",part15,"Wedge","",vt(0,0,0),vt(0.1,1.5,2))
  116.  
  117. local weld1 = it("Weld")
  118. weld1.Parent = part1
  119. weld1.Part0 = part1
  120. weld1.Part1 = Torso
  121. weld1.C0 = euler(0,0,0) * cf(0,0,0)
  122. local weld2 = it("Weld")
  123. weld2.Parent = part2
  124. weld2.Part0 = part2
  125. weld2.Part1 = part1
  126. weld2.C0 = euler(0,0,0) * cf(0,0,-0.9)
  127. local weld3 = it("Weld")
  128. weld3.Parent = part3
  129. weld3.Part0 = part3
  130. weld3.Part1 = part2
  131. weld3.C0 = euler(1.57,0,0) * cf(0,0,-0.3)
  132. local weld4 = it("Weld")
  133. weld4.Parent = part4
  134. weld4.Part0 = part4
  135. weld4.Part1 = part2
  136. weld4.C0 = euler(-0.7,0,0) * cf(0,-0.8,-0.9)
  137. local weld5 = it("Weld")
  138. weld5.Parent = part5
  139. weld5.Part0 = part5
  140. weld5.Part1 = part2
  141. weld5.C0 = euler(-1.1,0,0) * cf(0,-1.1,-0.6)
  142. local weld6 = it("Weld")
  143. weld6.Parent = part6
  144. weld6.Part0 = part6
  145. weld6.Part1 = part2
  146. weld6.C0 = euler(0,0,1.57) * cf(0,-0.5,0)
  147. local weld7 = it("Weld")
  148. weld7.Parent = part7
  149. weld7.Part0 = part7
  150. weld7.Part1 = part6
  151. weld7.C0 = euler(0,0,-0.5) * cf(0.6,-0.5,-0.8)
  152. weld7.C1 = euler(1,0,0)
  153. local weld8 = it("Weld")
  154. weld8.Parent = part8
  155. weld8.Part0 = part8
  156. weld8.Part1 = part6
  157. weld8.C0 = euler(0,0,0.5) * cf(0.6,0.5,-0.8)
  158. weld8.C1 = euler(-1,0,0)
  159. local weld9 = it("Weld")
  160. weld9.Parent = part9
  161. weld9.Part0 = part9
  162. weld9.Part1 = part2
  163. weld9.C0 = euler(-1.4,0,0) * cf(0,-1.5,-1.6)
  164. local weld10 = it("Weld")
  165. weld10.Parent = part10
  166. weld10.Part0 = part10
  167. weld10.Part1 = part9
  168. weld10.C0 = cf(0,-0.59,1.2) * euler(0,1.57,0)
  169. weld10.C1 = euler(0,-0.3,0)
  170. local weld11 = it("Weld")
  171. weld11.Parent = part11
  172. weld11.Part0 = part11
  173. weld11.Part1 = part10
  174. weld11.C0 = cf(0,0,1) * euler(0,0,0)
  175. local weld12 = it("Weld")
  176. weld12.Parent = part12
  177. weld12.Part0 = part12
  178. weld12.Part1 = part11
  179. weld12.C0 = cf(0,0,1) * euler(0,0,3.14)
  180. weld12.C1 = euler(0,-0.5,0)
  181. local weld13 = it("Weld")
  182. weld13.Parent = part13
  183. weld13.Part0 = part13
  184. weld13.Part1 = part9
  185. weld13.C0 = cf(0,-0.59,-1.2) * euler(0,1.57,0)
  186. weld13.C1 = euler(0,0.3,0)
  187. local weld14 = it("Weld")
  188. weld14.Parent = part14
  189. weld14.Part0 = part14
  190. weld14.Part1 = part13
  191. weld14.C0 = cf(0,0,-1) * euler(0,0,0)
  192. local weld15 = it("Weld")
  193. weld15.Parent = part15
  194. weld15.Part0 = part15
  195. weld15.Part1 = part14
  196. weld15.C0 = cf(0,0,1) * euler(0,3.14,3.14)
  197. weld15.C1 = euler(0,0.5,0)
  198.  
  199. local refpart = part(1,modelzorz,0,0,BrickColor.new("White"),"ReferencePart",vt(1,1,1))
  200.  
  201. derp=0
  202. for i=1,4 do
  203. local part = part(1,modelzorz,0,0,Torso.BrickColor,"PartGear",vt(1,1,1))
  204. local mesh = mesh("BlockMesh",part,"","",vt(0,0,0),vt(1.1,0.3,0.2))
  205. local weld = it("Weld")
  206. weld.Parent = part
  207. weld.Part0 = part
  208. weld.Part1 = part3
  209. weld.C0 = euler(0,derp,0) * cf(0,0,0)
  210. derp = derp + math.rad(45)
  211. end
  212. derp=0
  213. for i=1,8 do
  214. local part = part(1,modelzorz,0,0,Torso.BrickColor,"Part",vt(1,1,1))
  215. local mesh = mesh("BlockMesh",part,"","",vt(0,0,0),vt(0.61,0.1,0.61))
  216. local weld = it("Weld")
  217. weld.Parent = part
  218. weld.Part0 = part
  219. weld.Part1 = part9
  220. weld.C0 = euler(0,0,0) * cf(0,1.3-derp,0)
  221. derp = derp + 0.3
  222. end
  223. derp=0
  224. for i=1,7 do
  225. local part = part(1,modelzorz,0,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  226. local mesh = mesh("CylinderMesh",part,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  227. local weld = it("Weld")
  228. weld.Parent = part
  229. weld.Part0 = part
  230. weld.Part1 = part10
  231. weld.C0 = euler(0,0,1.57) * cf(0,-0.8,-1+derp)
  232. derp = derp + 0.3
  233. end
  234. derp=0
  235. for i=1,5 do
  236. local part = part(1,modelzorz,0,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  237. local mesh = mesh("CylinderMesh",part,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  238. local weld = it("Weld")
  239. weld.Parent = part
  240. weld.Part0 = part
  241. weld.Part1 = part12
  242. weld.C0 = euler(0,0,1.57) * cf(0,0.8,-1+0.3+derp)
  243. derp = derp + 0.3
  244. end
  245. derp=0
  246. for i=1,7 do
  247. local part = part(1,modelzorz,0,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  248. local mesh = mesh("CylinderMesh",part,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  249. local weld = it("Weld")
  250. weld.Parent = part
  251. weld.Part0 = part
  252. weld.Part1 = part13
  253. weld.C0 = euler(0,0,1.57) * cf(0,-0.8,-1+derp)
  254. derp = derp + 0.3
  255. end
  256. derp=0
  257. for i=1,5 do
  258. local part = part(1,modelzorz,0,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  259. local mesh = mesh("CylinderMesh",part,"","",vt(0,0,0),vt(0.2,0.1,0.2))
  260. local weld = it("Weld")
  261. weld.Parent = part
  262. weld.Part0 = part
  263. weld.Part1 = part15
  264. weld.C0 = euler(0,0,1.57) * cf(0,0.8,-1+0.3+derp)
  265. derp = derp + 0.3
  266. end
  267.  
  268. BP=nil
  269. doflying=false
  270. --[[
  271. bv.velocity = mouse.Hit.lookVector * 40
  272. bg.cframe = CFrame.new(bg.Parent.Position, mouse.Hit.p)
  273. bv.Parent = Torso
  274. bf.Parent = Torso
  275. bf.force = Vector3.new(0, 190 * Torso:GetMass(), 0)
  276. ]]
  277. bv = Instance.new("BodyVelocity")
  278. bv.maxForce = Vector3.new(4e+020, 4e+020, 4e+020)
  279. bf = Instance.new("BodyForce")
  280. bf.force = Vector3.new(0, 196 * Torso:GetMass(), 0)
  281. local bodpos=Instance.new("BodyPosition")
  282. bodpos.maxForce = vt(80000,40000,80000)
  283. bodpos.Name = "BP"
  284. local bg = Instance.new("BodyGyro")
  285. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  286. bg.P = 2000
  287. m = Player:GetMouse()
  288. m.KeyDown:connect(function(k)
  289. if k=="w" then
  290. if doflying==true then
  291. moveforward=true
  292. while moveforward==true do
  293. wait()
  294. speed=2
  295. refpart.Parent=modelzorz
  296. refweld=Instance.new("Weld")
  297. refweld.Parent=refpart
  298. refweld.Part0=refpart
  299. refweld.Part1=Torso
  300. refweld.C0=euler(-0.5,0,0)
  301. bv.Parent=Torso
  302. bv.velocity = refpart.CFrame.lookVector*25
  303. --bodpos.position=Torso.CFrame.lookVector
  304. end
  305. end
  306. end
  307. if k=="s" then
  308. if doflying==true then
  309. movebackward=true
  310. while movebackward==true do
  311. wait()
  312. speed=2
  313. refpart.Parent=modelzorz
  314. refweld=Instance.new("Weld")
  315. refweld.Parent=refpart
  316. refweld.Part0=refpart
  317. refweld.Part1=Torso
  318. refweld.C0=euler(0.5,0,0)
  319. bv.Parent=Torso
  320. bv.velocity = refpart.CFrame.lookVector*-25
  321. --bodpos.position=Torso.CFrame.lookVector
  322. end
  323. end
  324. end
  325. if k=="a" then
  326. if doflying==true then
  327. moveleft=true
  328. while moveleft==true do
  329. wait()
  330. speed=2
  331. refpart.Parent=modelzorz
  332. refweld=Instance.new("Weld")
  333. refweld.Parent=refpart
  334. refweld.Part0=refpart
  335. refweld.Part1=Torso
  336. refweld.C0=euler(0,-1.57,0.5)
  337. bv.Parent=Torso
  338. bv.velocity = refpart.CFrame.lookVector*25
  339. --bodpos.position=Torso.CFrame.lookVector
  340. end
  341. end
  342. end
  343. if k=="d" then
  344. if doflying==true then
  345. moveright=true
  346. while moveright==true do
  347. wait()
  348. speed=2
  349. refpart.Parent=modelzorz
  350. refweld=Instance.new("Weld")
  351. refweld.Parent=refpart
  352. refweld.Part0=refpart
  353. refweld.Part1=Torso
  354. refweld.C0=euler(0,1.57,-0.5)
  355. bv.Parent=Torso
  356. bv.velocity = refpart.CFrame.lookVector*25
  357. --bodpos.position=Torso.CFrame.lookVector
  358. end
  359. end
  360. end
  361. if k:byte() == 32 then
  362. print(doflying)
  363. jumpcount=jumpcount+1
  364. coroutine.resume(coroutine.create(function()
  365. wait(1)
  366. jumpcount=0
  367. end))
  368. if jumpcount==2 then
  369. if doflying==false then
  370. --print("YUNOWORK")
  371. doflying=true
  372. bg.Parent=Torso
  373. bodpos.Parent=Torso
  374. bodpos.position=Torso.Position+vt(0,10,0)
  375. BP=bodpos.position
  376. --print(mouse.Hit.p)
  377. print(bodpos.Parent)
  378. print("FLY PUPA, FLYYYYYYY")
  379. coroutine.resume(coroutine.create(function()
  380. while doflying==true do
  381. wait()
  382. doinganimation=true
  383. for i=0,1,0.1*speed do
  384. wait()
  385. bodpos.position=BP+vt(0,-4*i,0)
  386. weld10.C1 = euler(0,-0.3+0.5*i,0)
  387. weld12.C1 = euler(0,-0.5+0.7*i,0)
  388. weld13.C1 = euler(0,0.3-0.5*i,0)
  389. weld15.C1 = euler(0,0.5-0.7*i,0)
  390. end
  391. for i=0,1,0.2*speed do
  392. wait()
  393. bodpos.position=BP+vt(0,-4-2*i,0)
  394. weld10.C1 = euler(0,-0.3+0.5+0.4*i,0)
  395. weld12.C1 = euler(0,-0.5+0.7+0.6*i,0)
  396. weld13.C1 = euler(0,0.3-0.5-0.4*i,0)
  397. weld15.C1 = euler(0,0.5-0.7-0.6*i,0)
  398. end
  399. for i=0,1,0.2*speed do
  400. wait()
  401. bodpos.position=BP+vt(0,-4-2+7*i,0)
  402. weld10.C1 = euler(0,-0.3+0.5+0.4-1.6*i,0)
  403. weld12.C1 = euler(0,-0.5+0.7+0.6-1.4*i,0)
  404. weld13.C1 = euler(0,0.3-0.5-0.4+1.6*i,0)
  405. weld15.C1 = euler(0,0.5-0.7-0.6+1.4*i,0)
  406. end
  407. for i=0,1,0.1*speed do
  408. wait()
  409. bodpos.position=BP+vt(0,-4-2+7-1*i,0)
  410. weld10.C1 = euler(0,-0.3+0.5+0.4-1.6+0.6*i,0)
  411. weld12.C1 = euler(0,-0.5+0.7+0.6-1.8,0)
  412. weld13.C1 = euler(0,0.3-0.5-0.4+1.6-0.6*i,0)
  413. weld15.C1 = euler(0,0.5-0.7-0.6+1.8,0)
  414. end
  415. doinganimation=false
  416. end
  417. end))
  418. elseif doflying==true then
  419. doflying=false
  420. bg.Parent=nil
  421. bv.Parent = nil
  422. bf.Parent = nil
  423. bodpos.Parent=nil
  424. wait()
  425. while doinganimation==true do
  426. wait()
  427. end
  428. for i=0,1,0.1 do
  429. weld10.C1 = euler(0,-0.3,0)
  430. weld12.C1 = euler(0,-0.5,0)
  431. weld13.C1 = euler(0,0.3,0)
  432. weld15.C1 = euler(0,0.5,0)
  433. wait()
  434. end
  435. end
  436. end
  437. end
  438. end)
  439. m.KeyUp:connect(function(k)
  440. if k=="w" then
  441. for i=0,1,0.1 do
  442. wait()
  443. speed=1
  444. bodpos.position=Torso.Position
  445. BP=bodpos.position
  446. refpart.Parent=nil
  447. bv.Parent=nil
  448. bv.velocity = Torso.CFrame.lookVector*0
  449. moveforward=false
  450. end
  451. end
  452. if k=="s" then
  453. for i=0,1,0.1 do
  454. wait()
  455. speed=1
  456. bodpos.position=Torso.Position
  457. BP=bodpos.position
  458. refpart.Parent=nil
  459. bv.Parent=nil
  460. bv.velocity = Torso.CFrame.lookVector*0
  461. movebackward=false
  462. end
  463. end
  464. if k=="a" then
  465. for i=0,1,0.1 do
  466. wait()
  467. speed=1
  468. bodpos.position=Torso.Position
  469. BP=bodpos.position
  470. refpart.Parent=nil
  471. bv.Parent=nil
  472. bv.velocity = Torso.CFrame.lookVector*0
  473. moveleft=false
  474. end
  475. end
  476. if k=="d" then
  477. for i=0,1,0.1 do
  478. wait()
  479. speed=1
  480. bodpos.position=Torso.Position
  481. BP=bodpos.position
  482. refpart.Parent=nil
  483. bv.Parent=nil
  484. bv.velocity = Torso.CFrame.lookVector*0
  485. moveright=false
  486. end
  487. end
  488. end)
  489.  
  490. coroutine.resume(coroutine.create(function()
  491. while true do
  492. wait()
  493. if moveforward==true then
  494. bg.cframe = workspace.CurrentCamera.CoordinateFrame*euler(-0.5,0,0)
  495. elseif movebackward==true then
  496. bg.cframe = workspace.CurrentCamera.CoordinateFrame*euler(0.5,0,0)
  497. elseif moveleft==true then
  498. bg.cframe = workspace.CurrentCamera.CoordinateFrame*euler(0,0,0.5)
  499. elseif moveright==true then
  500. bg.cframe = workspace.CurrentCamera.CoordinateFrame*euler(0,0,-0.5)
  501. else
  502. bg.cframe = workspace.CurrentCamera.CoordinateFrame
  503. end
  504. end
  505. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement