Advertisement
Guest User

Roblox LUCAS_KENJK2 Wings

a guest
Sep 22nd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.61 KB | None | 0 0
  1. local Player = game:GetService("Players").LUCAS_KENJK2--<=== Replace With Your Name
  2.  
  3.  
  4. local Mouse,mouse,UserInputService,ContextActionService
  5. do
  6. script.Parent = Player.Character
  7. local CAS = {Actions={}}
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10. Event.Parent = Player.Character
  11. local fakeEvent = function()
  12. local t = {_fakeEvent=true}
  13. t.Connect = function(self,f)self.Function=f end
  14. t.connect = t.Connect
  15. return t
  16. end
  17. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  18. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  19. function CAS:BindAction(name,fun,touch,...)
  20. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  21. end
  22. function CAS:UnbindAction(name)
  23. CAS.Actions[name] = nil
  24. end
  25. local function te(self,ev,...)
  26. local t = m[ev]
  27. if t and t._fakeEvent and t.Function then
  28. t.Function(...)
  29. end
  30. end
  31. m.TrigEvent = te
  32. UIS.TrigEvent = te
  33. Event.OnServerEvent:Connect(function(plr,io)
  34. if plr~=Player then return end
  35. if io.isMouse then
  36. m.Target = io.Target
  37. m.Hit = io.Hit
  38. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  39. if io.UserInputState == Enum.UserInputState.Begin then
  40. m:TrigEvent("Button1Down")
  41. else
  42. m:TrigEvent("Button1Up")
  43. end
  44. else
  45. for n,t in pairs(CAS.Actions) do
  46. for _,k in pairs(t.Keys) do
  47. if k==io.KeyCode then
  48. t.Function(t.Name,io.UserInputState,io)
  49. end
  50. end
  51. end
  52. if io.UserInputState == Enum.UserInputState.Begin then
  53. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  54. UIS:TrigEvent("InputBegan",io,false)
  55. else
  56. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent("InputEnded",io,false)
  58. end
  59. end
  60. end)
  61. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  62. end
  63.  
  64. ---------Replace All "LocalPlayer" With Your Name.
  65. --Remove "Mouse =" or "local mouse =" at the start.
  66. --Replace Kermat161 At The Top Of The Script With You Name.
  67. -----------------------------Script In The Line's.
  68.  
  69. plr = script.Parent.Parent
  70. wait()
  71. char = plr.Character
  72. hum = char:FindFirstChildOfClass"Humanoid"
  73. h = char.Head
  74. root = char.HumanoidRootPart
  75. hed = char.Head
  76. local tors
  77. local larm
  78. local rarm
  79.  
  80. if hum.RigType == Enum.HumanoidRigType.R6 then
  81. tors = char.Torso
  82. larm = char['Left Arm']
  83. rarm = char['Right Arm']
  84. else
  85. tors = char.UpperTorso
  86. larm = char.LeftLowerArm
  87. rarm = char.RightLowerArm
  88. end
  89.  
  90. local halocolor = BrickColor.new("Pastel light blue")
  91. local halocolor2 = BrickColor.new("Cool yellow")
  92. local starcolor = BrickColor.new("Bright yellow")
  93. local lunacolor = BrickColor.new("Navy blue")
  94. local lunacolor2 = BrickColor.new("Bright blue")
  95. local wepcolor = BrickColor.new("Really black")
  96. local maincolor = BrickColor.new("Really black")
  97.  
  98. showextrawings = false
  99. WingColor = BrickColor.new("Really red")
  100.  
  101. local Create = LoadLibrary("RbxUtility").Create
  102.  
  103. CFuncs = {
  104. ["Part"] = {
  105. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  106. local Part = Create("Part"){
  107. Parent = Parent,
  108. Reflectance = Reflectance,
  109. Transparency = Transparency,
  110. CanCollide = false,
  111. Locked = true,
  112. BrickColor = BrickColor.new(tostring(BColor)),
  113. Name = Name,
  114. Size = Size,
  115. Material = Material,
  116. }
  117. RemoveOutlines(Part)
  118. return Part
  119. end;
  120. };
  121.  
  122. ["Mesh"] = {
  123. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  124. local Msh = Create(Mesh){
  125. Parent = Part,
  126. Offset = OffSet,
  127. Scale = Scale,
  128. }
  129. if Mesh == "SpecialMesh" then
  130. Msh.MeshType = MeshType
  131. Msh.MeshId = MeshId
  132. end
  133. return Msh
  134. end;
  135. };
  136.  
  137. ["Mesh"] = {
  138. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  139. local Msh = Create(Mesh){
  140. Parent = Part,
  141. Offset = OffSet,
  142. Scale = Scale,
  143. }
  144. if Mesh == "SpecialMesh" then
  145. Msh.MeshType = MeshType
  146. Msh.MeshId = MeshId
  147. end
  148. return Msh
  149. end;
  150. };
  151.  
  152. ["Weld"] = {
  153. Create = function(Parent, Part0, Part1, C0, C1)
  154. local Weld = Create("Weld"){
  155. Parent = Parent,
  156. Part0 = Part0,
  157. Part1 = Part1,
  158. C0 = C0,
  159. C1 = C1,
  160. }
  161. return Weld
  162. end;
  163. };
  164.  
  165. ["Sound"] = {
  166. Create = function(id, par, vol, pit)
  167. coroutine.resume(coroutine.create(function()
  168. local S = Create("Sound"){
  169. Volume = vol,
  170. Name = "EffectSoundo",
  171. Pitch = pit or 1,
  172. SoundId = id,
  173. Parent = par or workspace,
  174. }
  175. wait()
  176. S:play()
  177. game:GetService("Debris"):AddItem(S, 10)
  178. end))
  179. end;
  180. };
  181.  
  182. ["LongSound"] = {
  183. Create = function(id, par, vol, pit)
  184. coroutine.resume(coroutine.create(function()
  185. local S = Create("Sound"){
  186. Volume = vol,
  187. Pitch = pit or 1,
  188. SoundId = id,
  189. Parent = par or workspace,
  190. }
  191. wait()
  192. S:play()
  193. game:GetService("Debris"):AddItem(S, 30)
  194. end))
  195. end;
  196. };
  197.  
  198. ["ParticleEmitter"] = {
  199. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  200. local fp = Create("ParticleEmitter"){
  201. Parent = Parent,
  202. Color = ColorSequence.new(Color1, Color2),
  203. LightEmission = LightEmission,
  204. Size = Size,
  205. Texture = Texture,
  206. Transparency = Transparency,
  207. ZOffset = ZOffset,
  208. Acceleration = Accel,
  209. Drag = Drag,
  210. LockedToPart = LockedToPart,
  211. VelocityInheritance = VelocityInheritance,
  212. EmissionDirection = EmissionDirection,
  213. Enabled = Enabled,
  214. Lifetime = LifeTime,
  215. Rate = Rate,
  216. Rotation = Rotation,
  217. RotSpeed = RotSpeed,
  218. Speed = Speed,
  219. VelocitySpread = VelocitySpread,
  220. }
  221. return fp
  222. end;
  223. };
  224.  
  225. CreateTemplate = {
  226.  
  227. };
  228. }
  229.  
  230.  
  231.  
  232. New = function(Object, Parent, Name, Data)
  233. local Object = Instance.new(Object)
  234. for Index, Value in pairs(Data or {}) do
  235. Object[Index] = Value
  236. end
  237. Object.Parent = Parent
  238. Object.Name = Name
  239. return Object
  240. end
  241.  
  242. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  243. local p = Instance.new("Part")
  244. p.TopSurface = 0
  245. p.BottomSurface = 0
  246. p.Parent = parent
  247. p.Size = Vector3.new(0.1,0.1,0.1)
  248. p.Transparency = transparency
  249. p.Reflectance = reflectance
  250. p.CanCollide = false
  251. p.Locked = true
  252. p.BrickColor = brickcolor
  253. p.Material = material
  254. return p
  255. end
  256.  
  257. function CreateMesh(parent,meshtype,x1,y1,z1)
  258. local mesh = Instance.new("SpecialMesh",parent)
  259. mesh.MeshType = meshtype
  260. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  261. return mesh
  262. end
  263.  
  264. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  265. local mesh = Instance.new("SpecialMesh",parent)
  266. mesh.MeshType = "FileMesh"
  267. mesh.MeshId = meshid
  268. mesh.Scale = Vector3.new(x1,y1,z1)
  269. return mesh
  270. end
  271.  
  272.  
  273. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  274. local mesh = Instance.new("SpecialMesh",parent)
  275. mesh.MeshType = "FileMesh"
  276. mesh.MeshId = meshid
  277. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  278. mesh.Scale = Vector3.new(x1,y1,z1)
  279. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  280. return mesh
  281. end
  282.  
  283. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  284. local weld = Instance.new("Weld")
  285. weld.Parent = parent
  286. weld.Part0 = part0
  287. weld.Part1 = part1
  288. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  289. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  290. return weld
  291. end
  292.  
  293. function createchar()
  294. local m = Instance.new("Model",char)
  295. local m2 = Instance.new("Model",char)
  296. local m3 = Instance.new("Model",char)
  297. local mw1 = Instance.new("Model",char)
  298. local mw2 = Instance.new("Model",char)
  299.  
  300. local extrawingmod1 = Instance.new("Model",char)
  301. local extrawingmod2 = Instance.new("Model",char)
  302.  
  303. local handle = CreateParta(m,1,1,"Neon",maincolor)
  304. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  305. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  306.  
  307. --------------
  308.  
  309. --- Left wing.
  310.  
  311. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  312. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  313. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  314.  
  315. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  316. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  317. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  318. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  319. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  320. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  321. A0 = Instance.new('Attachment',wed)
  322. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  323. CreateMesh(wed,"Wedge",0.05,0.5,3)
  324. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  325. A1 = Instance.new('Attachment',wed)
  326. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  327. CreateMesh(wed,"Wedge",0.05,3,0.5)
  328. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  329.  
  330. tl1 = Instance.new('Trail',wed)
  331. tl1.Attachment0 = A0
  332. tl1.Attachment1 = A1
  333. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  334. tl1.LightEmission = 1
  335. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  336. tl1.Color = ColorSequence.new(WingColor.Color)
  337. tl1.Lifetime = 0.6
  338.  
  339.  
  340. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  341. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  342. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  343.  
  344. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  345. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  346. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  347. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  348. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  349. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  350. A0 = Instance.new('Attachment',wed)
  351. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  352. CreateMesh(wed,"Wedge",0.05,0.5,3)
  353. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  354. A1 = Instance.new('Attachment',wed)
  355. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  356. CreateMesh(wed,"Wedge",0.05,3,0.5)
  357. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  358.  
  359. tl2 = Instance.new('Trail',wed)
  360. tl2.Attachment0 = A0
  361. tl2.Attachment1 = A1
  362. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  363. tl2.LightEmission = 1
  364. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  365. tl2.Color = ColorSequence.new(WingColor.Color)
  366. tl2.Lifetime = 0.6
  367.  
  368. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  369. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  370. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  371.  
  372. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  373. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  374. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  375. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  376. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  377. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  378. A0 = Instance.new('Attachment',wed)
  379. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  380. CreateMesh(wed,"Wedge",0.05,0.5,3)
  381. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  382. A1 = Instance.new('Attachment',wed)
  383. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  384. CreateMesh(wed,"Wedge",0.05,3,0.5)
  385. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  386.  
  387. tl3 = Instance.new('Trail',wed)
  388. tl3.Attachment0 = A0
  389. tl3.Attachment1 = A1
  390. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  391. tl3.LightEmission = 1
  392. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  393. tl3.Color = ColorSequence.new(WingColor.Color)
  394. tl3.Lifetime = 0.6
  395.  
  396. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  397. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  398. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  399.  
  400. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  401. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  402. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  403. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  404. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  405. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  406. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  407. CreateMesh(wed,"Wedge",0.05,0.5,3)
  408. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  409. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  410. CreateMesh(wed,"Wedge",0.05,3,0.5)
  411. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  412.  
  413. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  414. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  415. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  416.  
  417. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  418. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  419. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  420. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  421. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  422. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  423. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  424. CreateMesh(wed,"Wedge",0.05,0.5,3)
  425. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  426. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  427. CreateMesh(wed,"Wedge",0.05,3,0.5)
  428. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  429.  
  430. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  431. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  432. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  433.  
  434. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  435. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  436. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  437. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  438. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  439. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  440. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  441. CreateMesh(wed,"Wedge",0.05,0.5,3)
  442. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  443. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  444. CreateMesh(wed,"Wedge",0.05,3,0.5)
  445. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  446.  
  447. -- Right wing.
  448.  
  449. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  450. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  451. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  452.  
  453. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  454. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  455. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  456. A0 = Instance.new('Attachment',wed)
  457. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  458. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  459. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  460. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  461. CreateMesh(wed,"Wedge",0.05,0.5,3)
  462. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  463. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  464. CreateMesh(wed,"Wedge",0.05,3,0.5)
  465. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  466. A1 = Instance.new('Attachment',wed)
  467.  
  468. tr1 = Instance.new('Trail',wed)
  469. tr1.Attachment0 = A0
  470. tr1.Attachment1 = A1
  471. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  472. tr1.LightEmission = 1
  473. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  474. tr1.Color = ColorSequence.new(WingColor.Color)
  475. tr1.Lifetime = 0.6
  476.  
  477. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  478. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  479. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  480.  
  481. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  482. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  483. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  484. A0 = Instance.new('Attachment',wed)
  485. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  486. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  487. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  488. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  489. CreateMesh(wed,"Wedge",0.05,0.5,3)
  490. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  491. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  492. CreateMesh(wed,"Wedge",0.05,3,0.5)
  493. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  494. A1 = Instance.new('Attachment',wed)
  495.  
  496. tr2 = Instance.new('Trail',wed)
  497. tr2.Attachment0 = A0
  498. tr2.Attachment1 = A1
  499. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  500. tr2.LightEmission = 1
  501. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  502. tr2.Color = ColorSequence.new(WingColor.Color)
  503. tr2.Lifetime = 0.6
  504.  
  505. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  506. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  507. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  508.  
  509. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  510. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  511. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  512. A0 = Instance.new('Attachment',wed)
  513. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  514. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  515. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  516. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  517. CreateMesh(wed,"Wedge",0.05,0.5,3)
  518. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  519. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  520. CreateMesh(wed,"Wedge",0.05,3,0.5)
  521. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  522. A1 = Instance.new('Attachment',wed)
  523.  
  524. tr3 = Instance.new('Trail',wed)
  525. tr3.Attachment0 = A0
  526. tr3.Attachment1 = A1
  527. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  528. tr3.LightEmission = 1
  529. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  530. tr3.Color = ColorSequence.new(WingColor.Color)
  531. tr3.Lifetime = 0.6
  532.  
  533.  
  534. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  535. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  536. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  537.  
  538. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  539. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  540. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  541. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  542. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  543. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  544. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  545. CreateMesh(wed,"Wedge",0.05,0.5,3)
  546. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  547. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  548. CreateMesh(wed,"Wedge",0.05,3,0.5)
  549. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  550.  
  551. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  552. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  553. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  554.  
  555. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  556. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  557. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  558. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  559. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  560. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  561. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  562. CreateMesh(wed,"Wedge",0.05,0.5,3)
  563. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  564. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  565. CreateMesh(wed,"Wedge",0.05,3,0.5)
  566. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  567.  
  568. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  569. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  570. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  571.  
  572. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  573. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  574. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  575. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  576. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  577. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  578. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  579. CreateMesh(wed,"Wedge",0.05,0.5,3)
  580. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  581. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  582. CreateMesh(wed,"Wedge",0.05,3,0.5)
  583. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  584.  
  585. ---- HERES THE RING
  586.  
  587.  
  588. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  589. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  590. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  591. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  592. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  593. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  594. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  595. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  596. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  597.  
  598.  
  599. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  600. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  601. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  602.  
  603. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  604. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  605. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  606.  
  607.  
  608.  
  609. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  610. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  611. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  612.  
  613. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  614. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  615. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  616.  
  617. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  618. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  619. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  620.  
  621. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  622. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  623. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  624. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  625. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  626. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627.  
  628. --- second ring
  629.  
  630. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  631. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  632. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  633. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  634. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  635. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  636. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  637. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  638. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  639.  
  640. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  641. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  642. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  643.  
  644. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  645. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  646. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  647.  
  648.  
  649.  
  650. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  651. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  652. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  653.  
  654. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  655. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  656. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  657.  
  658. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  659. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  660. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  661.  
  662. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  663. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  664. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  665. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  666. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  667. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  668.  
  669.  
  670.  
  671. for i, v in pairs(m:GetChildren()) do
  672. if v:IsA("Part") then
  673. v.BrickColor = BrickColor.new("Really black")
  674. v.Material = "Glass"
  675. end
  676. end
  677. for i, v in pairs(m2:GetChildren()) do
  678. if v:IsA("Part") then
  679. v.BrickColor = BrickColor.new("Crimson")
  680. v.Material = "Granite"
  681. end
  682. end
  683. for i, v in pairs(m3:GetChildren()) do
  684. if v:IsA("Part") then
  685. v.BrickColor = WingColor
  686. v.Material = "Neon"
  687. end
  688. end
  689. for i, v in pairs(mw2:GetChildren()) do
  690. if v:IsA("Part") then
  691. v.BrickColor = WingColor
  692. v.Material = "Neon"
  693. end
  694. end
  695. for i, v in pairs(mw1:GetChildren()) do
  696. if v:IsA("Part") then
  697. v.Transparency = 0
  698. v.BrickColor = WingColor
  699. v.Material = "Neon"
  700. end
  701. end
  702. for i, v in pairs(extrawingmod1:GetChildren()) do
  703. if v:IsA("Part") then
  704. v.Transparency = 1
  705. v.BrickColor = WingColor
  706. v.Material = "Neon"
  707. end
  708. end
  709. for i, v in pairs(extrawingmod2:GetChildren()) do
  710. if v:IsA("Part") then
  711. v.Transparency = 1
  712. v.BrickColor = WingColor
  713. v.Material = "Neon"
  714. end
  715. end
  716.  
  717. function swait(num)
  718. if num==0 or num==nil then
  719. game:service'RunService'.Stepped:wait(0)
  720. else
  721. for i=0,num do
  722. game:service'RunService'.Stepped:wait(0)
  723. end
  724. end
  725. end
  726.  
  727. it=Instance.new
  728. vt=Vector3.new
  729. cf=CFrame.new
  730. euler=CFrame.fromEulerAnglesXYZ
  731. angles=CFrame.Angles
  732.  
  733. function clerp(a,b,t)
  734. local qa = {QuaternionFromCFrame(a)}
  735. local qb = {QuaternionFromCFrame(b)}
  736. local ax, ay, az = a.x, a.y, a.z
  737. local bx, by, bz = b.x, b.y, b.z
  738. local _t = 1-t
  739. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  740. end
  741.  
  742. function QuaternionFromCFrame(cf)
  743. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  744. local trace = m00 + m11 + m22
  745. if trace > 0 then
  746. local s = math.sqrt(1 + trace)
  747. local recip = 0.5/s
  748. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  749. else
  750. local i = 0
  751. if m11 > m00 then
  752. i = 1
  753. end
  754. if m22 > (i == 0 and m00 or m11) then
  755. i = 2
  756. end
  757. if i == 0 then
  758. local s = math.sqrt(m00-m11-m22+1)
  759. local recip = 0.5/s
  760. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  761. elseif i == 1 then
  762. local s = math.sqrt(m11-m22-m00+1)
  763. local recip = 0.5/s
  764. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  765. elseif i == 2 then
  766. local s = math.sqrt(m22-m00-m11+1)
  767. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  768. end
  769. end
  770. end
  771.  
  772. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  773. local xs, ys, zs = x + x, y + y, z + z
  774. local wx, wy, wz = w*xs, w*ys, w*zs
  775. local xx = x*xs
  776. local xy = x*ys
  777. local xz = x*zs
  778. local yy = y*ys
  779. local yz = y*zs
  780. local zz = z*zs
  781. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  782. end
  783.  
  784. function QuaternionSlerp(a, b, t)
  785. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  786. local startInterp, finishInterp;
  787. if cosTheta >= 0.0001 then
  788. if (1 - cosTheta) > 0.0001 then
  789. local theta = math.acos(cosTheta)
  790. local invSinTheta = 1/math.sin(theta)
  791. startInterp = math.sin((1-t)*theta)*invSinTheta
  792. finishInterp = math.sin(t*theta)*invSinTheta
  793. else
  794. startInterp = 1-t
  795. finishInterp = t
  796. end
  797. else
  798. if (1+cosTheta) > 0.0001 then
  799. local theta = math.acos(-cosTheta)
  800. local invSinTheta = 1/math.sin(theta)
  801. startInterp = math.sin((t-1)*theta)*invSinTheta
  802. finishInterp = math.sin(t*theta)*invSinTheta
  803. else
  804. startInterp = t-1
  805. finishInterp = t
  806. end
  807. end
  808. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  809. end
  810.  
  811. local sine = 0
  812. local change = 1
  813.  
  814. coroutine.resume(coroutine.create(function()
  815. game:GetService("RunService").Stepped:connect(function()
  816. coroutine.resume(coroutine.create(function()
  817. swait()
  818. for i, v in pairs(m:GetChildren()) do
  819. if v:IsA("Part") then
  820. v.BrickColor = BrickColor.new("Really black")
  821. v.Material = "Glass"
  822. end
  823. end
  824. for i, v in pairs(m2:GetChildren()) do
  825. if v:IsA("Part") then
  826. v.BrickColor = BrickColor.new("Crimson")
  827. v.Material = "Granite"
  828. end
  829. end
  830. for i, v in pairs(m3:GetChildren()) do
  831. if v:IsA("Part") then
  832. v.BrickColor = WingColor
  833. v.Material = "Neon"
  834. end
  835. end
  836. for i, v in pairs(mw2:GetChildren()) do
  837. if v:IsA("Part") then
  838. v.BrickColor = WingColor
  839. v.Material = "Neon"
  840. end
  841. end
  842. for i, v in pairs(mw1:GetChildren()) do
  843. if v:IsA("Part") then
  844. v.BrickColor = WingColor
  845. v.Material = "Neon"
  846. end
  847. end
  848. for i, v in pairs(extrawingmod1:GetChildren()) do
  849. if v:IsA("Part") then
  850. v.BrickColor = WingColor
  851. if showextrawings then
  852. v.Transparency = 0
  853. elseif not showextrawings then
  854. v.Transparency = 1
  855. end
  856. v.Material = "Neon"
  857. end
  858. end
  859. for i, v in pairs(extrawingmod2:GetChildren()) do
  860. if v:IsA("Part") then
  861. v.BrickColor = WingColor
  862. if showextrawings then
  863. v.Transparency = 0
  864. elseif not showextrawings then
  865. v.Transparency = 1
  866. end
  867. v.Material = "Neon"
  868. end
  869. end
  870. tr1.Color = ColorSequence.new(WingColor.Color)
  871. tr2.Color = ColorSequence.new(WingColor.Color)
  872. tr3.Color = ColorSequence.new(WingColor.Color)
  873. tl1.Color = ColorSequence.new(WingColor.Color)
  874. tl2.Color = ColorSequence.new(WingColor.Color)
  875. tl3.Color = ColorSequence.new(WingColor.Color)
  876. swait(1)
  877. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  878. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  879. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  880. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  881. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  882. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  883.  
  884. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  885. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  886. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  887. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  888. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  889. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  890. sine = sine + change
  891.  
  892. end))
  893. end)
  894. end))
  895. end
  896.  
  897. createchar()
  898.  
  899. plr.Chatted:connect(function(msg)
  900. if msg:sub(3) == "/e " then
  901. msg = msg:sub(4)
  902. end
  903. if msg:sub(1,#"color="):lower() == "color=" then
  904. local arg = msg:sub(#"color="+1)
  905. local color = BrickColor.new(arg)
  906. WingColor = color
  907. elseif msg:sub(1,#"showexwings="):lower() == "showexwings=" then
  908. local arg = msg:sub(#"showexwings="+1)
  909. showextrawings = arg
  910. end
  911. end)
  912.  
  913. plr.CharacterAdded:connect(function()
  914. char = plr.Character
  915. hum = char:FindFirstChildOfClass"Humanoid"
  916. h = char.Head
  917. root = char.HumanoidRootPart
  918. hed = char.Head
  919.  
  920. if hum.RigType == Enum.HumanoidRigType.R6 then
  921. tors = char.Torso
  922. larm = char['Left Arm']
  923. rarm = char['Right Arm']
  924. else
  925. tors = char.UpperTorso
  926. larm = char.LeftLowerArm
  927. rarm = char.RightLowerArm
  928. end
  929. createchar()
  930. end)
  931.  
  932. -------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement