Advertisement
AgentVK

Ghost God

Jul 25th, 2017
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.96 KB | None | 0 0
  1. --[[
  2. Explosion God script made by EliteShadow @ V3rm aka Crimsonal @ Roblox
  3. --]]
  4.  
  5. local Player = game.Players.LocalPlayer
  6. local Mouse = Player:GetMouse()
  7. repeat wait() until Player.Character
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local Torso = Character.Torso
  11. local Head = Character.Head
  12. local RightArm = Character["Right Arm"]
  13. local LeftArm = Character["Left Arm"]
  14. local RightLeg = Character["Right Leg"]
  15. local LeftLeg = Character["Left Leg"]
  16. local Head = Character.Head
  17. local RightShoulder = Torso["Right Shoulder"]
  18. local LeftShoulder = Torso["Left Shoulder"]
  19. local Neck = Torso["Neck"]
  20. local RightHip = Torso["Right Hip"]
  21. local LeftHip = Torso["Left Hip"]
  22. wait(1)
  23. Instance.new("ForceField", Character).Visible = false
  24.  
  25. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  26. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  27. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  28. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  29. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  31. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  32. local LeftHipC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. local RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  34. local RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. local Player = game.Players.LocalPlayer
  48. local Character = Player.Character
  49. local Humanoid = Character.Humanoid
  50. local Torso = Character.Torso
  51. local Head = Character.Head
  52. local mouse = Player:GetMouse()
  53. local Root = Character.HumanoidRootPart
  54. local RunService = game:GetService("RunService").RenderStepped
  55. local Lighting = game:GetService("Lighting")
  56.  
  57.  
  58. Player:ClearCharacterAppearance()
  59. wait(0.1)
  60. Player.Character.Head.BrickColor = BrickColor.new("Really black")
  61. Player.Character.Torso.BrickColor = BrickColor.new("Really black")
  62. Player.Character["Right Arm"].BrickColor = BrickColor.new("Really black")
  63. Player.Character["Right Leg"].BrickColor = BrickColor.new("Really black")
  64. Player.Character["Left Leg"].BrickColor = BrickColor.new("Really black")
  65. Player.Character["Left Arm"].BrickColor = BrickColor.new("Really black")
  66. pcall(function() Player.Character.Torso.roblox:Destroy() end)
  67.  
  68. z = Instance.new("Sound", Character)
  69. z.SoundId = "rbxassetid://823815836"--301463006
  70. z.Looped = true
  71. z.Pitch = 1
  72. z.Volume = math.huge
  73. wait(.1)
  74. z:Play()
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84. CV="Pastel blue"
  85.  
  86. local txt = Instance.new("BillboardGui", Character)
  87. txt.Adornee = Character .Head
  88. txt.Name = "_status"
  89. txt.Size = UDim2.new(2, 0, 1.2, 0)
  90. txt.StudsOffset = Vector3.new(-9, 8, 0)
  91. local text = Instance.new("TextLabel", txt)
  92. text.Size = UDim2.new(10, 0, 7, 0)
  93. text.FontSize = "Size24"
  94. text.TextScaled = true
  95. text.TextTransparency = 0
  96. text.BackgroundTransparency = 1
  97. text.TextTransparency = 0
  98. text.TextStrokeTransparency = 0
  99. text.Font = "Antique"
  100. text.TextStrokeColor3 = Color3.new(255,85,0)
  101.  
  102. v=Instance.new("Part")
  103. v.Name = "ColorBrick"
  104. v.Parent=Player.Character
  105. v.FormFactor="Symmetric"
  106. v.Anchored=true
  107. v.CanCollide=false
  108. v.BottomSurface="Smooth"
  109. v.TopSurface="Smooth"
  110. v.Size=Vector3.new(10,5,3)
  111. v.Transparency=1
  112. v.CFrame=Character.Torso.CFrame
  113. v.BrickColor=BrickColor.new(CV)
  114. v.Transparency=1
  115. text.TextColor3 = Color3.new(0,0,0)
  116. v.Shape="Block"
  117. text.Text = "Power Ranger God"
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. local selectionBoxOfTorso = Instance.new("SelectionBox",Torso)
  126. selectionBoxOfTorso.Adornee = Torso
  127. selectionBoxOfTorso.Color = BrickColor.new("1020")
  128. selectionBoxOfTorso.LineThickness = 0.01
  129. selectionBoxOfTorso.Transparency = 0
  130.  
  131. local selectionBoxOfRightArm = Instance.new("SelectionBox",Character["Right Arm"])
  132. selectionBoxOfRightArm.Adornee = Character["Right Arm"]
  133. selectionBoxOfRightArm.Color = BrickColor.new("1020")
  134. selectionBoxOfRightArm.LineThickness = 0.01
  135. selectionBoxOfRightArm.Transparency = 0
  136.  
  137. local selectionBoxOfRightLeg = Instance.new("SelectionBox",Character["Right Leg"])
  138. selectionBoxOfRightLeg.Adornee = Character["Right Leg"]
  139. selectionBoxOfRightLeg.Color = BrickColor.new("1020")
  140. selectionBoxOfRightLeg.LineThickness = 0.01
  141. selectionBoxOfRightLeg.Transparency = 0
  142.  
  143. local selectionBoxOfLeftArm = Instance.new("SelectionBox",Character["Left Arm"])
  144. selectionBoxOfLeftArm.Adornee = Character["Left Arm"]
  145. selectionBoxOfLeftArm.Color = BrickColor.new("1020")
  146. selectionBoxOfLeftArm.LineThickness = 0.01
  147. selectionBoxOfLeftArm.Transparency = 0
  148.  
  149. local selectionBoxOfLeftLeg = Instance.new("SelectionBox",Character["Left Leg"])
  150. selectionBoxOfLeftLeg.Adornee = Character["Left Leg"]
  151. selectionBoxOfLeftLeg.Color = BrickColor.new("1020")
  152. selectionBoxOfLeftLeg.LineThickness = 0.01
  153. selectionBoxOfLeftLeg.Transparency = 0
  154.  
  155.  
  156. LightOnBody = Instance.new("PointLight", Head)
  157. LightOnBody.Brightness = 3000
  158. LightOnBody.Range = 20
  159. LightOnBody.Color = Color3.new(255, 85, 0)
  160.  
  161. local HandCF = CFrame.new(Root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  162. local wave = Instance.new("Part", Torso)
  163. wave.BrickColor = BrickColor.new("Maroon")
  164. wave.Anchored = true
  165. wave.CanCollide = false
  166. wave.Locked = true
  167. wave.Size = Vector3.new(1, 1, 1)
  168. wave.TopSurface = "Smooth"
  169. wave.BottomSurface = "Smooth"
  170. wave.Transparency = 0.35
  171. wave.CFrame = HandCF
  172. wm = Instance.new("SpecialMesh", wave)
  173. wm.MeshId = "rbxassetid://3270017"
  174. coroutine.wrap(function()
  175. for i = 1, 14, 1 do
  176. wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
  177. wave.Size = wm.Scale
  178. wave.CFrame = HandCF
  179. wave.Transparency = i/14
  180. wait()
  181. end
  182. wait()
  183. wave:Destroy()
  184. end)()
  185.  
  186.  
  187. local function RefreshWelds()
  188. Neck.C0 = NeckC0
  189. Neck.C1 = NeckC1
  190. RightShoulder.C0 = RightShoulderC0
  191. RightShoulder.C1 = RightShoulderC1
  192. LeftShoulder.C0 = LeftShoulderC0
  193. LeftShoulder.C1 = LeftShoulderC1
  194. RightHip.C0 = RightHipC0
  195. RightHip.C1 = RightHipC1
  196. LeftHip.C0 = LeftHipC0
  197. LeftHip.C1 = LeftHipC1
  198. end
  199.  
  200. local LastArm = "Left"
  201. local Active = false
  202. game:GetService("UserInputService").InputBegan:connect(function(Key, Gpe)
  203. if not Gpe then
  204. if Key.KeyCode == Enum.KeyCode.F and not Active then
  205. Active=true
  206. RefreshWelds()
  207. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
  208. Torso.Anchored=true
  209. Humanoid.PlatformStand = true
  210. for i = 1,3 do
  211. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,-0.2,0.55)
  212. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0.2, -0.55)
  213. end
  214. local last1
  215. local last2
  216. local explosion = Instance.new("Sound", Character)
  217. explosion.Name="explosion"
  218. explosion.SoundId = "rbxassetid://2248511"
  219. explosion:Play()
  220. game.Debris:AddItem(explosion,10)
  221. spawn(function()
  222. for i = 1,15 do
  223. local p = Instance.new("Part", Character)
  224. p.Anchored=true
  225. p.CanCollide=false
  226. p.Transparency=1
  227. p.Size=Vector3.new(.1,.1,.1)
  228. p.Shape = "Ball"
  229. p.BrickColor = BrickColor.new("Really black")
  230. game.Debris:AddItem(p,1)
  231. if not last1 then
  232. p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0) * CFrame.new(0,0,-10)
  233. last1=p
  234. else
  235. p.CFrame = last1.CFrame * CFrame.new(0, 0,-i*5)
  236. last1=p
  237. end
  238. local explo = Instance.new("Explosion", workspace)
  239. explo.Position=p.Position
  240. explo.BlastPressure = math.huge
  241. explo.BlastRadius= math.huge
  242. wait()
  243. end
  244. end)
  245. spawn(function()
  246. for i = 1,15 do
  247. local p = Instance.new("Part", Character)
  248. p.Anchored=true
  249. p.CanCollide=false
  250. p.Transparency=1
  251. p.Size=Vector3.new(.1,.1,.1)
  252. p.Shape = "Ball"
  253. p.BrickColor = BrickColor.new("Really black")
  254. game.Debris:AddItem(p,1)
  255. if not last2 then
  256. p.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0) * CFrame.new(0,0,-10)
  257. last2=p
  258. else
  259. p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
  260. last2=p
  261. end
  262. local explo = Instance.new("Explosion", workspace)
  263. explo.Position=p.Position
  264. explo.BlastPressure = math.huge
  265. explo.BlastRadius= math.huge
  266. wait()
  267. end
  268. end)
  269. wait(1)
  270. Torso.Anchored=false
  271. Humanoid.PlatformStand = false
  272. RefreshWelds()
  273. Active=false
  274. elseif Key.KeyCode == Enum.KeyCode.C and not Active then
  275. Active = true
  276. RefreshWelds()
  277. Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(Mouse.hit.p.x, Torso.Position.Y, Mouse.hit.p.z))
  278. Torso.Anchored=true
  279. Humanoid.PlatformStand = true
  280. for i = 1,3 do
  281. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
  282. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, -0.5)
  283. wait()
  284. end
  285. local last1
  286. local last2
  287. local explosion = Instance.new("Sound", Character)
  288. explosion.Name="explosion"
  289. explosion.SoundId = "rbxassetid://2248511"
  290. explosion:Play()
  291. game.Debris:AddItem(explosion,10)
  292. spawn(function()
  293. for i = 1,15 do
  294. local p = Instance.new("Part", Character)
  295. p.Anchored=true
  296. p.CanCollide=false
  297. p.Transparency=1
  298. p.Size=Vector3.new(.1,.1,.1)
  299. p.Shape = "Ball"
  300. p.BrickColor = BrickColor.new("Really black")
  301. game.Debris:AddItem(p,1)
  302. if not last1 then
  303. p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
  304. last1=p
  305. else
  306. p.CFrame = last1.CFrame * CFrame.new(0,0 ,-i*5)
  307. last1=p
  308. end
  309. local explo = Instance.new("Explosion", workspace)
  310. explo.Position=p.Position
  311. explo.BlastPressure = math.huge
  312. explo.BlastRadius= math.huge
  313. wait()
  314. end
  315. end)
  316. spawn(function()
  317. for i = 1,15 do
  318. local p = Instance.new("Part", Character)
  319. p.Anchored=true
  320. p.CanCollide=false
  321. p.Transparency=1
  322. p.Size=Vector3.new(.1,.1,.1)
  323. p.Shape = "Ball"
  324. p.BrickColor = BrickColor.new("Really black")
  325. game.Debris:AddItem(p,1)
  326. if not last2 then
  327. p.CFrame = Torso.CFrame * CFrame.new(0,0 ,-i*10)
  328. last2=p
  329. else
  330. p.CFrame = last2.CFrame * CFrame.new(0,0 ,-i*5)
  331. last2=p
  332. end
  333. local explo = Instance.new("Explosion", workspace)
  334. explo.Position=p.Position
  335. explo.BlastPressure = math.huge
  336. explo.BlastRadius= math.huge
  337. wait()
  338. end
  339. end)
  340. wait(1)
  341. for i = 1,3 do
  342. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
  343. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0, 0, 0.5)
  344. wait()
  345. end
  346. Torso.Anchored=false
  347. Humanoid.PlatformStand = false
  348. RefreshWelds()
  349. Active=false
  350. elseif Key.KeyCode == Enum.KeyCode.E and not Active
  351. then Active = true
  352. RefreshWelds()
  353. Torso.Anchored=true
  354. Humanoid.PlatformStand=true
  355. if LastArm == "Left" then
  356. LastArm="Right"
  357. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
  358. for i = 1,3 do
  359. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,-0.5)
  360. wait()
  361. end
  362. wait(0.5)
  363. RefreshWelds()
  364. for i = 1,3 do
  365. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(0,0,0.5)
  366. end
  367. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
  368. local p = Instance.new("Part", Character)
  369. p.Anchored=true
  370. p.CanCollide=false
  371. p.Transparency=1
  372. p.Size=Vector3.new(.1,.1,.1)
  373. p.Shape = "Ball"
  374. p.BrickColor = BrickColor.new("Really black")
  375. p.CFrame = Torso.CFrame * CFrame.new(1.5, 0, -2)
  376. game.Debris:AddItem(p,3)
  377. local explosion = Instance.new("Sound", Character)
  378. explosion.Name="explosion"
  379. explosion.SoundId = "rbxassetid://2248511"
  380. explosion:Play()
  381. game.Debris:AddItem(explosion, 10)
  382. local explo = Instance.new("Explosion", workspace)
  383. explo.BlastPressure = math.huge
  384. explo.BlastRadius= math.huge
  385. explo.Position=p.Position
  386. elseif LastArm == "Right" then
  387. LastArm = "Left"
  388. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(45), 0)
  389. for i = 1,3 do
  390. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,0.5)
  391. wait()
  392. end
  393. wait(0.5)
  394. RefreshWelds()
  395. for i = 1,3 do
  396. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(0,0,-0.5)
  397. end
  398. Torso.CFrame = Torso.CFrame * CFrame.Angles(0, math.rad(-45), 0)
  399. local p = Instance.new("Part", Character)
  400. p.Anchored=true
  401. p.CanCollide=false
  402. p.Transparency=1
  403. p.Size=Vector3.new(.1,.1,.1)
  404. p.Shape = "Ball"
  405. p.BrickColor = BrickColor.new("Really black")
  406. p.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, -2)
  407. game.Debris:AddItem(p,3)
  408. local explosion = Instance.new("Sound", Character)
  409. explosion.Name="explosion"
  410. explosion.SoundId = "rbxassetid://2248511"
  411. explosion:Play()
  412. game.Debris:AddItem(explosion, 10)
  413. local explo = Instance.new("Explosion", workspace)
  414. explo.BlastPressure = math.huge
  415. explo.BlastRadius= math.huge
  416. explo.Position=p.Position
  417. end
  418. wait(0.5)
  419. Active = false
  420. RefreshWelds()
  421. Torso.Anchored=false
  422. Humanoid.PlatformStand=false
  423. end
  424. end
  425. end)
  426.  
  427. --=Bird wings made by Lyokofan2000
  428. --Jump Two Time
  429. --Down Press Q
  430. --Wings Spin Press A Two Time
  431. --Wings Spin Press D Two Time
  432.  
  433. script.Parent = nil
  434.  
  435. function fly()
  436.  
  437. for i,v in pairs(script:GetChildren()) do
  438.  
  439. pcall(function() v.Value = "" end)
  440.  
  441. game:GetService("Debris"):AddItem(v,.1)
  442.  
  443. end
  444.  
  445. function weld(p0,p1,c0,c1,par)
  446.  
  447. local w = Instance.new("Weld",p0 or par)
  448.  
  449. w.Part0 = p0
  450.  
  451. w.Part1 = p1
  452.  
  453. w.C0 = c0 or CFrame.new()
  454.  
  455. w.C1 = c1 or CFrame.new()
  456.  
  457. return w
  458.  
  459. end
  460.  
  461. local motors = {}
  462.  
  463. function motor(p0,p1,c0,c1,des,vel,par)
  464.  
  465. local w = Instance.new("Motor6D",p0 or par)
  466.  
  467. w.Part0 = p0
  468.  
  469. w.Part1 = p1
  470.  
  471. w.C0 = c0 or CFrame.new()
  472.  
  473. w.C1 = c1 or CFrame.new()
  474.  
  475. w.MaxVelocity = tonumber(vel) or .05
  476.  
  477. w.DesiredAngle = tonumber(des) or 0
  478.  
  479. return w
  480.  
  481. end
  482.  
  483. function lerp(a,b,c)
  484.  
  485. return a+(b-a)*c
  486.  
  487. end
  488.  
  489. function clerp(c1,c2,al)
  490.  
  491. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  492.  
  493. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  494.  
  495. for i,v in pairs(com1) do
  496.  
  497. com1[i] = lerp(v,com2[i],al)
  498.  
  499. end
  500.  
  501. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  502.  
  503. end
  504.  
  505. function ccomplerp(c1,c2,al)
  506.  
  507. local com1 = {c1:components()}
  508.  
  509. local com2 = {c2:components()}
  510.  
  511. for i,v in pairs(com1) do
  512.  
  513. com1[i] = lerp(v,com2[i],al)
  514.  
  515. end
  516.  
  517. return CFrame.new(unpack(com1))
  518.  
  519. end
  520.  
  521. function tickwave(time,length,offset)
  522.  
  523. return (math.abs((tick()+(offset or 0))%time-time/2)*2-time/2)/time/2*length
  524.  
  525. end
  526.  
  527. function invcol(c)
  528.  
  529. c = c.Color
  530.  
  531. return BrickColor.new(Color3.new(1-c.b,1-c.g,1-c.r))
  532.  
  533. end
  534.  
  535. local oc = oc or function(...) return ... end
  536.  
  537. local plr = game.Players.LocalPlayer
  538.  
  539. local char = plr.Character
  540.  
  541. local tor = char.Torso
  542.  
  543. local hum = char.Humanoid
  544.  
  545. hum.PlatformStand = false
  546.  
  547. pcall(function()
  548.  
  549. char.Wings:Destroy()
  550.  
  551. end)
  552.  
  553. pcall(function()
  554.  
  555. char.Angel:Destroy() -- hat
  556.  
  557. end)
  558.  
  559. local mod = Instance.new("Model",char)
  560.  
  561. mod.Name = "Wings"
  562.  
  563. local special = {
  564.  
  565. --antiboomz0r = {"Really black","Institutional white",0,0,false,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  566.  
  567. antiboomz0r = {"New Yeller",nil,0.4,0.7,true,Color3.new(1,1,.95),Color3.new(1,1,.6)},
  568.  
  569. --antiboomz0r = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  570.  
  571. taart = {"Royal purple",nil,.4,.4,true},
  572.  
  573. mitta = {"Black",nil,0,0,false},
  574.  
  575. penjuin3 = {"White",nil,0,0,false},
  576.  
  577. thepc8110 = {"Black","Bright red",.5,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  578.  
  579. nonspeaker = {"Cyan","Toothpaste",0,0,false,Color3.new(1,0,0),Color3.new(0,0,0)},
  580.  
  581. littleau999 = {"Reddish brown",1030,0,0,false},
  582.  
  583. unscripter = {"Really black","Really black",.2,0,true,Color3.new(0,0,0),Color3.new(0,0,0)},
  584.  
  585. oxcool1 = {"Really black","White",.2,0,false,Color3.new(0,0,0),Color3.new(0,0,0)},
  586.  
  587. krodmiss = {"Really black",nil,0,0,false},
  588.  
  589. }
  590.  
  591. local topcolor = invcol(char.Torso.BrickColor)
  592.  
  593. local feacolor = char.Torso.BrickColor
  594.  
  595. local ptrans = 0
  596.  
  597. local pref = 0
  598.  
  599. local fire = false
  600.  
  601. local fmcol = Color3.new()
  602.  
  603. local fscol = Color3.new()
  604.  
  605. local spec = special[plr.Name:lower()]
  606.  
  607. if spec then
  608.  
  609. topcolor,feacolor,ptrans,pref,fire,fmcol,fscol = spec[1] and BrickColor.new(spec[1]) or topcolor,spec[2] and BrickColor.new(spec[2]) or feacolor,spec[3],spec[4],spec[5],spec[6],spec[7]
  610.  
  611. end
  612.  
  613. local part = Instance.new("Part")
  614.  
  615. part.FormFactor = "Custom"
  616.  
  617. part.Size = Vector3.new(.2,.2,.2)
  618.  
  619. part.TopSurface,part.BottomSurface = 0,0
  620.  
  621. part.CanCollide = false
  622.  
  623. part.BrickColor = topcolor
  624.  
  625. part.Transparency = ptrans
  626.  
  627. part.Reflectance = pref
  628.  
  629. local ef = Instance.new("Fire",fire and part or nil)
  630.  
  631. ef.Size = .15
  632.  
  633. ef.Color = fmcol or Color3.new()
  634.  
  635. ef.SecondaryColor = fscol or Color3.new()
  636.  
  637. part:BreakJoints()
  638.  
  639.  
  640. function newpart()
  641.  
  642. local clone = part:Clone()
  643.  
  644. clone.Parent = mod
  645.  
  646. clone:BreakJoints()
  647.  
  648. return clone
  649.  
  650. end
  651.  
  652. local feath = newpart()
  653.  
  654. feath.BrickColor = feacolor
  655.  
  656. feath.Transparency = 0
  657.  
  658. Instance.new("SpecialMesh",feath).MeshType = "Sphere"
  659.  
  660. function newfeather()
  661.  
  662. local clone = feath:Clone()
  663.  
  664. clone.Parent = mod
  665.  
  666. clone:BreakJoints()
  667.  
  668. return clone
  669.  
  670. end
  671.  
  672.  
  673. ---------- RIGHT WING
  674.  
  675. local r1 = newpart()
  676.  
  677. r1.Size = Vector3.new(.3,1.5,.3)*1.2
  678.  
  679. local rm1 = motor(tor,r1,CFrame.new(.35,.6,.4) * CFrame.Angles(0,0,math.rad(-60)) * CFrame.Angles(math.rad(30),math.rad(-25),0),CFrame.new(0,-.8,0),.1)
  680.  
  681. local r2 = newpart()
  682.  
  683. r2.Size = Vector3.new(.4,1.8,.4)*1.2
  684.  
  685. local rm2 = motor(r1,r2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(-30),math.rad(15),0),CFrame.new(0,-.9,0),.1)
  686.  
  687. local r3 = newpart()
  688.  
  689. r3.Size = Vector3.new(.3,2.2,.3)*1.2
  690.  
  691. local rm3 = motor(r2,r3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-1.1,0),.1)
  692.  
  693. local r4 = newpart()
  694.  
  695. r4.Size = Vector3.new(.25,1.2,.25)*1.2
  696.  
  697. local rm4 = motor(r3,r4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(-3),0,0),CFrame.new(0,-.6,0),.1)
  698.  
  699. local feather = newfeather()
  700.  
  701. feather.Mesh.Scale = Vector3.new(1,1,1)
  702.  
  703. feather.Size = Vector3.new(.4,3,.3)
  704.  
  705. weld(r4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  706.  
  707. feather = newfeather()
  708.  
  709. feather.Mesh.Scale = Vector3.new(1,1,1)
  710.  
  711. feather.Size = Vector3.new(.4,2.3,.3)
  712.  
  713. weld(r4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  714.  
  715. feather = newfeather()
  716.  
  717. feather.Mesh.Scale = Vector3.new(1,1,1)
  718.  
  719. feather.Size = Vector3.new(.35,2.2,.25)
  720.  
  721. weld(r4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  722.  
  723. local rf3 = {}
  724.  
  725. for i=0,7 do
  726.  
  727. feather = newfeather()
  728.  
  729. feather.Mesh.Scale = Vector3.new(1,1,1)
  730.  
  731. feather.Size = Vector3.new(.45,2.2,.35)
  732.  
  733. table.insert(rf3,motor(r3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  734.  
  735. end
  736.  
  737. local rf2 = {}
  738.  
  739. for i=0,6 do
  740.  
  741. feather = newfeather()
  742.  
  743. feather.Mesh.Scale = Vector3.new(1,1,1)
  744.  
  745. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  746.  
  747. table.insert(rf2,motor(r2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  748.  
  749. end
  750.  
  751. local rf1 = {}
  752.  
  753. for i=0,6 do
  754.  
  755. feather = newfeather()
  756.  
  757. feather.Mesh.Scale = Vector3.new(1,1,1)
  758.  
  759. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  760.  
  761. table.insert(rf1,motor(r1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  762.  
  763. end
  764.  
  765. ---------- LEFT WING
  766.  
  767. local l1 = newpart()
  768.  
  769. l1.Size = Vector3.new(.3,1.5,.3)*1.2
  770.  
  771. local lm1 = motor(tor,l1,CFrame.new(-.35,.6,.4) * CFrame.Angles(0,0,math.rad(60)) * CFrame.Angles(math.rad(30),math.rad(25),0) * CFrame.Angles(0,-math.pi,0),CFrame.new(0,-.8,0) ,.1)
  772.  
  773. local l2 = newpart()
  774.  
  775. l2.Size = Vector3.new(.4,1.8,.4)*1.2
  776.  
  777. local lm2 = motor(l1,l2,CFrame.new(0,.75,0) * CFrame.Angles(0,0,math.rad(50)) * CFrame.Angles(math.rad(30),math.rad(-15),0),CFrame.new(0,-.9,0),.1)
  778.  
  779. local l3 = newpart()
  780.  
  781. l3.Size = Vector3.new(.3,2.2,.3)*1.2
  782.  
  783. local lm3 = motor(l2,l3,CFrame.new(.1,.9,0) * CFrame.Angles(0,0,math.rad(-140)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-1.1,0),.1)
  784.  
  785. local l4 = newpart()
  786.  
  787. l4.Size = Vector3.new(.25,1.2,.25)*1.2
  788.  
  789. local lm4 = motor(l3,l4,CFrame.new(0,1.1,0) * CFrame.Angles(0,0,math.rad(-10)) * CFrame.Angles(math.rad(3),0,0),CFrame.new(0,-.6,0),.1)
  790.  
  791. local feather = newfeather()
  792.  
  793. feather.Mesh.Scale = Vector3.new(1,1,1)
  794.  
  795. feather.Size = Vector3.new(.4,3,.3)
  796.  
  797. weld(l4,feather,CFrame.new(-.1,-.3,0),CFrame.new(0,-1.5,0))
  798.  
  799. feather = newfeather()
  800.  
  801. feather.Mesh.Scale = Vector3.new(1,1,1)
  802.  
  803. feather.Size = Vector3.new(.4,2.3,.3)
  804.  
  805. weld(l4,feather,CFrame.new(.1,-.1,0) * CFrame.Angles(0,math.random()*.1,0),CFrame.new(0,-1.1,0))
  806.  
  807. feather = newfeather()
  808.  
  809. feather.Mesh.Scale = Vector3.new(1,1,1)
  810.  
  811. feather.Size = Vector3.new(.35,2.2,.25)
  812.  
  813. weld(l4,feather,CFrame.new(.1,-.3,0) * CFrame.Angles(0,math.random()*.1,math.rad(-10)),CFrame.new(0,-1.1,0))
  814.  
  815. local lf3 = {}
  816.  
  817. for i=0,7 do
  818.  
  819. feather = newfeather()
  820.  
  821. feather.Mesh.Scale = Vector3.new(1,1,1)
  822.  
  823. feather.Size = Vector3.new(.45,2.2,.35)
  824.  
  825. table.insert(lf3,motor(l3,feather,CFrame.new(.05,1-i*.285,0) * CFrame.Angles(0,math.random()*.1,math.rad(-25-i*2)),CFrame.new(0,-feather.Size.Y/2,0)))
  826.  
  827. end
  828.  
  829. local lf2 = {}
  830.  
  831. for i=0,6 do
  832.  
  833. feather = newfeather()
  834.  
  835. feather.Mesh.Scale = Vector3.new(1,1,1)
  836.  
  837. feather.Size = Vector3.new(.45,2.2-i*.08,.3)
  838.  
  839. table.insert(lf2,motor(l2,feather,CFrame.new(.05,.75-i*.26,0) * CFrame.Angles(0,math.random()*.1,math.rad(-75-i*4)),CFrame.new(0,-feather.Size.Y/2,0)))
  840.  
  841. end
  842.  
  843. local lf1 = {}
  844.  
  845. for i=0,6 do
  846.  
  847. feather = newfeather()
  848.  
  849. feather.Mesh.Scale = Vector3.new(1,1,1)
  850.  
  851. feather.Size = Vector3.new(.37,1.65-i*.06,.25)
  852.  
  853. table.insert(lf1,motor(l1,feather,CFrame.new(.05,.63-i*.21,0) * CFrame.Angles(0,math.random()*.05,math.rad(-75)),CFrame.new(0,-feather.Size.Y/2,0)))
  854.  
  855. end
  856.  
  857. local rwing = {rm1,rm2,rm3,rm4}
  858.  
  859. local lwing = {lm1,lm2,lm3,lm4}
  860.  
  861. local oc0 = {}
  862.  
  863. for i,v in pairs(rwing) do
  864.  
  865. oc0[v] = v.C0
  866.  
  867. end
  868.  
  869. for i,v in pairs(lwing) do
  870.  
  871. oc0[v] = v.C0
  872.  
  873. end
  874.  
  875. function gotResized()
  876.  
  877. if lastsize then
  878.  
  879. if tor.Size == lastsize then return end -- This shouldn't happen?
  880.  
  881. local scaleVec = tor.Size/lastsize
  882.  
  883. for i,v in pairs(oc0) do
  884.  
  885. oc0[i] = v-v.p+scaleVec*v.p
  886.  
  887. end
  888.  
  889. lastsize = tor.Size
  890.  
  891. end
  892.  
  893. lastsize = tor.Size
  894.  
  895. end
  896.  
  897. tor.Changed:connect(function(p)
  898.  
  899. if p == "Size" then
  900.  
  901. gotResized()
  902.  
  903. end
  904.  
  905. end)
  906.  
  907. gotResized()
  908.  
  909. local idle = {0,0.5,-.2,0; .05,.05,.1,.05; -.6,-1.5,.1,0;}--0,.3,0,0
  910.  
  911. local outlow = {-.7,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  912.  
  913. local outhigh = {.5,-.2,1.8,0; .3,.05,.1,.05; .2,0,0,0}
  914.  
  915. local veryhigh = {.9,-.3,1.9,0; .3,.05,.1,.05; .2,0,0,0}
  916.  
  917. local flap1 = {-.3,.3,1.1,-.2; .3,.05,.1,.05; .2,-.6,0,0}
  918.  
  919. local divebomb = {0,.2,.4,-.7; .3,.05,.1,.05; 0,-.5,-.6,0}
  920.  
  921.  
  922. function setwings(tab,time)
  923.  
  924. time = time or 10
  925.  
  926. for i=1,4 do
  927.  
  928. rwing[i].DesiredAngle = tab[i]
  929.  
  930. lwing[i].DesiredAngle = tab[i]
  931.  
  932. rwing[i].MaxVelocity = math.abs(tab[i]-rwing[i].CurrentAngle)/time
  933.  
  934. lwing[i].MaxVelocity = math.abs(tab[i]-lwing[i].CurrentAngle)/time
  935.  
  936. local rcf = oc0[rwing[i]] * (tab[12+i] or CFrame.new())
  937.  
  938. local lcf = oc0[lwing[i]] * (tab[12+i] or CFrame.new())
  939.  
  940. end
  941.  
  942. for i,v in pairs(rf1) do
  943.  
  944. v.DesiredAngle = tab[9]
  945.  
  946. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  947.  
  948. end
  949.  
  950. for i,v in pairs(lf1) do
  951.  
  952. v.DesiredAngle = tab[9]
  953.  
  954. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  955.  
  956. end
  957.  
  958. for i,v in pairs(rf2) do
  959.  
  960. v.DesiredAngle = tab[10]
  961.  
  962. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  963.  
  964. end
  965.  
  966. for i,v in pairs(lf2) do
  967.  
  968. v.DesiredAngle = tab[10]
  969.  
  970. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  971.  
  972. end
  973.  
  974. for i,v in pairs(rf3) do
  975.  
  976. v.DesiredAngle = tab[11]
  977.  
  978. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  979.  
  980. end
  981.  
  982. for i,v in pairs(lf3) do
  983.  
  984. v.DesiredAngle = tab[11]
  985.  
  986. v.MaxVelocity = math.abs(v.DesiredAngle-v.CurrentAngle)/time
  987.  
  988. end
  989.  
  990. end
  991.  
  992. setwings(outhigh,1)
  993.  
  994. flying = false
  995.  
  996. moving = false
  997.  
  998. for i,v in pairs(tor:GetChildren()) do
  999.  
  1000. if v.ClassName:lower():match("body") then
  1001.  
  1002. v:Destroy()
  1003.  
  1004. end
  1005.  
  1006. end
  1007.  
  1008. local ctor = tor:Clone()
  1009.  
  1010. ctor:ClearAllChildren()
  1011.  
  1012. ctor.Name = "cTorso"
  1013.  
  1014. ctor.Transparency = 1
  1015.  
  1016. ctor.CanCollide = false
  1017.  
  1018. ctor.FormFactor = "Custom"
  1019.  
  1020. ctor.Size = Vector3.new(.2,.2,.2)
  1021.  
  1022. ctor.Parent = mod
  1023.  
  1024. weld(tor,ctor)
  1025.  
  1026. local bg = Instance.new("BodyGyro",ctor)
  1027.  
  1028. bg.maxTorque = Vector3.new()
  1029.  
  1030. bg.P = 15000
  1031.  
  1032. bg.D = 1000
  1033.  
  1034. local bv = Instance.new("BodyVelocity",ctor)
  1035.  
  1036. bv.maxForce = Vector3.new()
  1037.  
  1038. bv.P = 15000
  1039.  
  1040. vel = Vector3.new()
  1041.  
  1042. cf = CFrame.new()
  1043.  
  1044. flspd = 0
  1045.  
  1046.  
  1047. keysdown = {}
  1048.  
  1049. keypressed = {}
  1050.  
  1051. ktime = {}
  1052.  
  1053. descendtimer = 0
  1054.  
  1055. jumptime = tick()
  1056.  
  1057. hum.Jumping:connect(function()
  1058.  
  1059. jumptime = tick()
  1060.  
  1061. end)
  1062.  
  1063. cam = workspace.CurrentCamera
  1064.  
  1065. kd = plr:GetMouse().KeyDown:connect(oc(function(key)
  1066.  
  1067. keysdown[key] = true
  1068.  
  1069. keypressed[key] = true
  1070.  
  1071. if key == "q" then
  1072.  
  1073. descendtimer = tick()
  1074.  
  1075. elseif key == " " and not hum.Jump then
  1076.  
  1077. jumptime = tick()
  1078.  
  1079. elseif (key == "a" or key == "d") and ktime[key] and tick()-ktime[key] < .3 and math.abs(reqrotx) < .3 then
  1080.  
  1081. reqrotx = key == "a" and math.pi*2 or -math.pi*2
  1082.  
  1083. end
  1084.  
  1085. ktime[key] = tick()
  1086.  
  1087. end))
  1088.  
  1089. ku = plr:GetMouse().KeyUp:connect(function(key)
  1090.  
  1091. keysdown[key] = false
  1092.  
  1093. if key == " " then
  1094.  
  1095. descendtimer = tick()
  1096.  
  1097. end
  1098.  
  1099. end)
  1100.  
  1101. function mid(a,b,c)
  1102.  
  1103. return math.max(a,math.min(b,c or -a))
  1104.  
  1105. end
  1106.  
  1107. function bn(a)
  1108.  
  1109. return a and 1 or 0
  1110.  
  1111. end
  1112.  
  1113. function gm(tar)
  1114.  
  1115. local m = 0
  1116.  
  1117. for i,v in pairs(tar:GetChildren()) do
  1118.  
  1119. if v:IsA("BasePart") then
  1120.  
  1121. m = m + v:GetMass()
  1122.  
  1123. end
  1124.  
  1125. m = m + gm(v)
  1126.  
  1127. end
  1128.  
  1129. return m
  1130.  
  1131. end
  1132.  
  1133. reqrotx = 0
  1134.  
  1135. local grav = 196.2
  1136.  
  1137. local con
  1138.  
  1139. con = game:GetService("RunService").Stepped:connect(oc(function()
  1140.  
  1141. --[[if not mod:IsDescendantOf(workspace) then
  1142.  
  1143. pcall(function() kd:disconnect() end)
  1144.  
  1145. pcall(function() ku:disconnect() end)
  1146.  
  1147. bg:Destroy()
  1148.  
  1149. bv:Destroy()
  1150.  
  1151. con:disconnect()
  1152.  
  1153. script:Destroy()
  1154.  
  1155. return
  1156.  
  1157. end]]
  1158.  
  1159. local obvel = tor.CFrame:vectorToObjectSpace(tor.Velocity)
  1160.  
  1161. local sspd, uspd,fspd = obvel.X,obvel.Y,obvel.Z
  1162.  
  1163. if flying then
  1164.  
  1165. local lfldir = fldir
  1166.  
  1167. fldir = cam.CoordinateFrame:vectorToWorldSpace(Vector3.new(bn(keysdown.d)-bn(keysdown.a),0,bn(keysdown.s)-bn(keysdown.w))).unit
  1168.  
  1169. local lmoving = moving
  1170.  
  1171. moving = fldir.magnitude > .1
  1172.  
  1173. if lmoving and not moving then
  1174.  
  1175. idledir = lfldir*Vector3.new(1,0,1)
  1176.  
  1177. descendtimer = tick()
  1178.  
  1179. end
  1180.  
  1181. local dbomb = fldir.Y < -.6 or (moving and keysdown["1"])
  1182.  
  1183. if moving and keysdown["0"] and lmoving then
  1184.  
  1185. fldir = (Vector3.new(lfldir.X,math.min(fldir.Y,lfldir.Y+.01)-.1,lfldir.Z)+(fldir*Vector3.new(1,0,1))*.05).unit
  1186.  
  1187. end
  1188.  
  1189. local down = tor.CFrame:vectorToWorldSpace(Vector3.new(0,-1,0))
  1190.  
  1191. local descending = (not moving and keysdown["q"] and not keysdown[" "])
  1192.  
  1193. cf = ccomplerp(cf,CFrame.new(tor.Position,tor.Position+(not moving and idledir or fldir)),keysdown["0"] and .02 or .07)
  1194.  
  1195. local gdown = not dbomb and cf.lookVector.Y < -.2 and tor.Velocity.unit.Y < .05
  1196.  
  1197. hum.PlatformStand = true
  1198.  
  1199. bg.maxTorque = Vector3.new(1,1,1)*9e5
  1200.  
  1201. local rotvel = CFrame.new(Vector3.new(),tor.Velocity):toObjectSpace(CFrame.new(Vector3.new(),fldir)).lookVector
  1202.  
  1203. bg.cframe = cf * CFrame.Angles(not moving and -.1 or -math.pi/2+.2,moving and mid(-2.5,rotvel.X/1.5) + reqrotx or 0,0)
  1204.  
  1205. reqrotx = reqrotx - reqrotx/10
  1206.  
  1207. bv.maxForce = Vector3.new(1,1,1)*9e4*.5
  1208.  
  1209. local anioff =(bn(keysdown[" "])-bn(keysdown["q"]))/2
  1210.  
  1211. local ani = tickwave(1.5-anioff,1)
  1212.  
  1213. bv.velocity = bv.velocity:Lerp(Vector3.new(0,bn(not moving)*-ani*15+(descending and math.min(20,tick()-descendtimer)*-8 or bn(keysdown[" "])-bn(keysdown["q"]))*15,0)+vel,.6)
  1214.  
  1215. vel = moving and cf.lookVector*flspd or Vector3.new()
  1216.  
  1217. flspd = math.min(120,lerp(flspd,moving and (fldir.Y<0 and flspd+(-fldir.Y)*grav/60 or math.max(50,flspd-fldir.Y*grav/300)) or 60,.4))
  1218.  
  1219. setwings(moving and (gdown and outlow or dbomb and divebomb) or (descending and veryhigh or flap1),15)
  1220.  
  1221. for i=1,4 do
  1222.  
  1223. --CFrame.Angles(-.5+bn(i==3)*2.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1)
  1224.  
  1225. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-.5+bn(i==3)*.4+bn(i==4)*.5,.1+bn(i==2)*.5-bn(i==3)*1.1,bn(i==3)*.1) or descending and CFrame.Angles(.3,0,0) or CFrame.Angles((i*.1+1.5)*ani,ani*-.5,1*ani)),descending and .8 or .2)
  1226.  
  1227. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * (gdown and CFrame.new() or dbomb and CFrame.Angles(-(-.5+bn(i==3)*.4+bn(i==4)*.5),-(.1+bn(i==2)*.5-bn(i==3)*1.1),bn(i==3)*.1) or descending and CFrame.Angles(-.3,0,0) or CFrame.Angles(-(i*.1+1.5)*ani,ani*.5,1*ani)),descending and .8 or .2)
  1228.  
  1229. end
  1230.  
  1231. local hit,ray = workspace:FindPartOnRayWithIgnoreList(Ray.new(tor.Position,Vector3.new(0,-3.5+math.min(0,bv.velocity.y)/30,0)),{char})
  1232.  
  1233. if hit and down.Y < -.85 and tick()-flystart > 1 then
  1234.  
  1235. flying = false
  1236.  
  1237. hum.PlatformStand = false
  1238.  
  1239. tor.Velocity = Vector3.new()
  1240.  
  1241. end
  1242.  
  1243. else
  1244.  
  1245. bg.maxTorque = Vector3.new()
  1246.  
  1247. bv.maxForce = Vector3.new()
  1248.  
  1249. local ani = tickwave(walking and .8 or 4.5,1)
  1250.  
  1251. setwings(idle,10)
  1252.  
  1253. local x,y,z = fspd/160,uspd/700,sspd/900
  1254.  
  1255. for i=1,4 do
  1256.  
  1257. rwing[i].C0 = clerp(rwing[i].C0,oc0[rwing[i]] * CFrame.Angles(ani*.1 + -mid(-.1,x),0 + -mid(-.1,y) + bn(i==2)*.6,ani*.02 + -mid(-.1,z)),.2)
  1258.  
  1259. lwing[i].C0 = clerp(lwing[i].C0,oc0[lwing[i]] * CFrame.Angles(ani*-.05 + mid(-.1,x),0 + mid(-.1,y) + -bn(i==2)*.6,ani*.02 + mid(-.1,z)),.2)
  1260.  
  1261. end
  1262.  
  1263. if keypressed[" "] and not flying and (tick()-jumptime > .05 and (tick()-jumptime < 3 or hum.Jump)) then
  1264.  
  1265. vel = Vector3.new(0,50,0)
  1266.  
  1267. bv.velocity = vel
  1268.  
  1269. idledir = cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)
  1270.  
  1271. cf = tor.CFrame * CFrame.Angles(-.01,0,0)
  1272.  
  1273. tor.CFrame = cf
  1274.  
  1275. bg.cframe = cf
  1276.  
  1277. flystart = tick()
  1278.  
  1279. flying = true
  1280.  
  1281. end
  1282.  
  1283. end
  1284.  
  1285. keypressed = {}
  1286.  
  1287. end))
  1288.  
  1289.  
  1290.  
  1291. end fly()
  1292.  
  1293. --Bird Wings By Lyokofan2000
  1294.  
  1295.  
  1296. local time = tick()
  1297.  
  1298. local plr = game:GetService("Players").LocalPlayer
  1299. local mouse,char = plr:GetMouse(),plr.Character
  1300.  
  1301. local amountGhosts = 5
  1302.  
  1303. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  1304.  
  1305. local toggle,cd,mcd = false,false,false
  1306. local ghosts = {}
  1307. local temptab = {}
  1308.  
  1309. char:WaitForChild("Animate"):Destroy()
  1310. char.Humanoid:WaitForChild("Animator"):Destroy()
  1311.  
  1312. local state = "idle"
  1313.  
  1314. local gt = false
  1315.  
  1316. local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart")) --Stops the character from glitching out on enter/exit
  1317. gyro.MaxTorque = Vector3.new(0,0,0)
  1318. gyro.D = 0
  1319. gyro.P = 100000000
  1320.  
  1321.  
  1322. local wCol = BrickColor.new("Really red")
  1323. local wCol2 = BrickColor.new("Really black")
  1324. local gCol = BrickColor.new("Toothpaste")
  1325. local gCol2 = BrickColor.new("Institutional white")
  1326.  
  1327. function searchAll(m,clear)
  1328. if clear then
  1329. if clear == true then
  1330. for i,v in pairs(temptab) do
  1331. table.remove(temptab,1)
  1332. end
  1333. end
  1334. end
  1335. for i,v in pairs(m:GetChildren()) do
  1336. if v then
  1337. local s = v:Clone()
  1338. for _,b in pairs(s:GetChildren()) do
  1339. b:Destroy()
  1340. end
  1341. if s:IsA("Part") or s:IsA("WedgePart") or s:IsA("TrussPart") or s:IsA("UnionOperation") then
  1342. if s.Name ~= "HumanoidRootPart" then
  1343. s.Anchored = true
  1344. s.CanCollide = false
  1345. s.Transparency = 0.95
  1346. s.TopSurface = "Smooth"
  1347. s.BottomSurface = "Smooth"
  1348. s.FrontSurface = "Smooth"
  1349. s.RightSurface = "Smooth"
  1350. s.BackSurface = "Smooth"
  1351. s.LeftSurface = "Smooth"
  1352. if s.Material ~= Enum.Material.Neon then
  1353. if gt == true then
  1354. s.BrickColor = wCol2
  1355. else
  1356. s.BrickColor = gCol2
  1357. end
  1358. else
  1359. if gt == true then
  1360. s.BrickColor = wCol
  1361. else
  1362. s.BrickColor = gCol
  1363. end
  1364. end
  1365. for _,c in pairs(v:GetChildren()) do
  1366. if c:IsA("SpecialMesh") or c:IsA("CylinderMesh") then
  1367. c:Clone().Parent = s
  1368. end
  1369. end
  1370. local objValue = Instance.new("ObjectValue",s)
  1371. objValue.Name = "Target"
  1372. objValue.Value = v
  1373. table.insert(temptab,s)
  1374. end
  1375. --elseif s:IsA("CharacterMesh") then
  1376. --table.insert(temptab,s)
  1377. end
  1378. --searchAll(v)
  1379. end
  1380. end
  1381. return temptab
  1382. end
  1383.  
  1384. function CreateGhost()
  1385. local ghost = Instance.new("Model",game.Workspace)
  1386. searchAll(char,true)
  1387. ghost.Name = char.Name.."'s Ghost "..#ghosts..#plr.Name
  1388. --Instance.new("Humanoid",ghost)
  1389. for i,v in pairs(temptab) do
  1390. v:Clone().Parent = ghost
  1391. end
  1392. table.insert(ghosts,ghost)
  1393. end
  1394.  
  1395. function ClearGhosts()
  1396. for i,v in pairs(ghosts) do
  1397. v:Destroy()
  1398. end
  1399. for i,v in pairs(ghosts) do
  1400. table.remove(ghosts,1)
  1401. end
  1402. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  1403. if string.sub(v.Name,1,#plr.Name+9) == plr.Name.."'s Ghost " then
  1404. v:Destroy()
  1405. end
  1406. end
  1407. end
  1408.  
  1409. Instance.new("ForceField",char).Visible = false
  1410.  
  1411. local e1 = Instance.new("Part",char)
  1412. e1.Size = Vector3.new(0.2,0.2,0.2)
  1413. e1.TopSurface = "Smooth"
  1414. e1.BottomSurface = "Smooth"
  1415. e1.Material = "Neon"
  1416. e1.Transparency = 1
  1417. e1.Anchored = true
  1418. e1.CanCollide = false
  1419. e1.BrickColor = gCol
  1420. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.6)
  1421. local em1 = Instance.new("SpecialMesh",e1)
  1422. em1.MeshType = "Sphere"
  1423. local e2 = Instance.new("Part",char)
  1424. e2.Size = Vector3.new(0.2,0.2,0.2)
  1425. e2.TopSurface = "Smooth"
  1426. e2.BottomSurface = "Smooth"
  1427. e2.Transparency = 1
  1428. e2.Material = "Neon"
  1429. e2.Anchored = true
  1430. e2.CanCollide = false
  1431. e2.BrickColor = gCol
  1432. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.6)
  1433. local em2 = Instance.new("SpecialMesh",e2)
  1434. em2.MeshType = "Sphere"
  1435.  
  1436. toggle = true
  1437. for i=1,amountGhosts do
  1438. CreateGhost()
  1439. end
  1440. char.Parent = game:GetService("Workspace").CurrentCamera
  1441. char:FindFirstChild("Head").Transparency = 1
  1442. char:FindFirstChild("Torso").Transparency = 1
  1443. char:FindFirstChild("Right Arm").Transparency = 1
  1444. char:FindFirstChild("Left Arm").Transparency = 1
  1445. char:FindFirstChild("Right Leg").Transparency = 1
  1446. char:FindFirstChild("Left Leg").Transparency = 1
  1447. for i,v in pairs(char:GetChildren()) do
  1448. if v:IsA("Accessory") then
  1449. v:FindFirstChild("Handle").Transparency = 1
  1450. end
  1451. end
  1452. char:FindFirstChild("Head"):FindFirstChild("face"):Destroy()
  1453.  
  1454. local p1 = Instance.new("Part",workspace)
  1455. local m1 = Instance.new("SpecialMesh",p1)
  1456. m1.MeshType = "Sphere"
  1457. m1.Scale = Vector3.new(5,5,5)
  1458. p1.Size = Vector3.new(1,1,1)
  1459. p1.Anchored = true
  1460. p1.CanCollide = false
  1461. p1.TopSurface = "Smooth"
  1462. p1.BottomSurface = "Smooth"
  1463. p1.BrickColor = gCol
  1464. p1.Material = "Neon"
  1465. local p2 = Instance.new("Part",workspace)
  1466. local m2 = Instance.new("SpecialMesh",p2)
  1467. m2.MeshType = "Sphere"
  1468. m2.Scale = Vector3.new(8,8,8)
  1469. p2.Size = Vector3.new(1,1,1)
  1470. p2.Anchored = true
  1471. p2.CanCollide = false
  1472. p2.TopSurface = "Smooth"
  1473. p2.BottomSurface = "Smooth"
  1474. p2.BrickColor = gCol2
  1475. p2.Material = "Neon"
  1476. local p3 = Instance.new("Part",workspace)
  1477. local m3 = Instance.new("BlockMesh",p3)
  1478. m3.Scale = Vector3.new(7,7,7)
  1479. p3.Size = Vector3.new(1,1,1)
  1480. p3.Transparency = 0.4
  1481. p3.Anchored = true
  1482. p3.CanCollide = false
  1483. p3.TopSurface = "Smooth"
  1484. p3.BottomSurface = "Smooth"
  1485. p3.BrickColor = gCol
  1486. p3.Material = "Neon"
  1487. local p4 = Instance.new("Part",workspace)
  1488. local m4 = Instance.new("BlockMesh",p4)
  1489. m4.Scale = Vector3.new(10,10,10)
  1490. p4.Size = Vector3.new(1,1,1)
  1491. p4.Transparency = 0.4
  1492. p4.Anchored = true
  1493. p4.CanCollide = false
  1494. p4.TopSurface = "Smooth"
  1495. p4.BottomSurface = "Smooth"
  1496. p4.BrickColor = gCol2
  1497. p4.Material = "Neon"
  1498. local currentframe = 0
  1499. local frmR
  1500.  
  1501. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1502. currentframe = currentframe + 1
  1503. if currentframe < 1*60 then
  1504. p1.CFrame = char:WaitForChild("Torso").CFrame
  1505. p2.CFrame = char:WaitForChild("Torso").CFrame
  1506. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1507. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1508. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1509. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1510. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1511. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1512. p1.Transparency = p1.Transparency + (1/(1*60))
  1513. p2.Transparency = p2.Transparency + (1/(1*60))
  1514. p3.Transparency = p3.Transparency + (1/(1*60))
  1515. p4.Transparency = p4.Transparency + (1/(1*60))
  1516. else
  1517. p1:Destroy()
  1518. p2:Destroy()
  1519. p3:Destroy()
  1520. p4:Destroy()
  1521. frmR:disconnect()
  1522. end
  1523. end)
  1524.  
  1525. char.Humanoid.MaxHealth = math.huge
  1526. wait()
  1527. char.Humanoid.Health = math.huge
  1528.  
  1529. --[[mouse.KeyDown:connect(function(key)
  1530. if key == "r" then
  1531. print("R!")
  1532. if cd == false then
  1533. print("No cooldown!")
  1534. cd = true
  1535. if toggle == false then
  1536. print("Entering godmode")
  1537. toggle = true
  1538. Instance.new("ForceField",char)
  1539. for i=1,amountGhosts do
  1540. CreateGhost()
  1541. end
  1542. char.Parent = game:GetService("Workspace").CurrentCamera
  1543. char:FindFirstChild("Head").Transparency = 1
  1544. char:FindFirstChild("Torso").Transparency = 1
  1545. char:FindFirstChild("Right Arm").Transparency = 1
  1546. char:FindFirstChild("Left Arm").Transparency = 1
  1547. char:FindFirstChild("Right Leg").Transparency = 1
  1548. char:FindFirstChild("Left Leg").Transparency = 1
  1549. for i,v in pairs(char:GetChildren()) do
  1550. if v:IsA("Accessory") then
  1551. v:FindFirstChild("Handle").Transparency = 1
  1552. end
  1553. end
  1554. else
  1555. print("Exiting godmode")
  1556. toggle = false
  1557. for i,v in pairs(ghosts) do
  1558. v:Destroy()
  1559. end
  1560. char.Parent = game:GetService("Workspace")
  1561. char:FindFirstChild("ForceField"):Destroy()
  1562. char:FindFirstChild("Head").Transparency = 0
  1563. char:FindFirstChild("Torso").Transparency = 0
  1564. char:FindFirstChild("Right Arm").Transparency = 0
  1565. char:FindFirstChild("Left Arm").Transparency = 0
  1566. char:FindFirstChild("Right Leg").Transparency = 0
  1567. char:FindFirstChild("Left Leg").Transparency = 0
  1568. for i,v in pairs(char:GetChildren()) do
  1569. if v:IsA("Accessory") then
  1570. v:FindFirstChild("Handle").Transparency = 0
  1571. end
  1572. end
  1573. end
  1574. cd = false
  1575. end
  1576. end
  1577. end)]]
  1578.  
  1579. mouse.KeyDown:connect(function(key)
  1580. spawn(function()
  1581. if key == "f" and toggle == true and mcd == false then
  1582. if #ghosts < amountGhosts then
  1583. print(#ghosts.."<")
  1584. mcd = true
  1585.  
  1586. ClearGhosts()
  1587.  
  1588. for i=1,amountGhosts do
  1589. CreateGhost()
  1590. end
  1591. local p1 = Instance.new("Part",workspace)
  1592. local m1 = Instance.new("SpecialMesh",p1)
  1593. m1.MeshType = "Sphere"
  1594. m1.Scale = Vector3.new(7,7,7)
  1595. p1.Size = Vector3.new(1,1,1)
  1596. p1.Anchored = true
  1597. p1.CanCollide = false
  1598. p1.TopSurface = "Smooth"
  1599. p1.BottomSurface = "Smooth"
  1600. if gt == false then
  1601. p1.BrickColor = gCol
  1602. else
  1603. p1.BrickColor = wCol
  1604. end
  1605. p1.Material = "Neon"
  1606. local p2 = Instance.new("Part",workspace)
  1607. local m2 = Instance.new("SpecialMesh",p2)
  1608. m2.MeshType = "Sphere"
  1609. m2.Scale = Vector3.new(9,9,9)
  1610. p2.Size = Vector3.new(1,1,1)
  1611. p2.Anchored = true
  1612. p2.CanCollide = false
  1613. p2.TopSurface = "Smooth"
  1614. p2.BottomSurface = "Smooth"
  1615. if gt == false then
  1616. p2.BrickColor = gCol2
  1617. else
  1618. p2.BrickColor = wCol2
  1619. end
  1620. p2.Material = "Neon"
  1621. local currentframe = 0
  1622. local frmR
  1623.  
  1624. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1625. currentframe = currentframe + 1
  1626. if currentframe < 0.25*60 then
  1627. p1.CFrame = char:WaitForChild("Torso").CFrame
  1628. p2.CFrame = char:WaitForChild("Torso").CFrame
  1629. p1.Transparency = p1.Transparency + (1/(0.25*60))
  1630. p2.Transparency = p2.Transparency + (1/(0.25*60))
  1631. else
  1632. p1:Destroy()
  1633. p2:Destroy()
  1634. mcd = false
  1635. frmR:disconnect()
  1636. end
  1637. end)
  1638. else
  1639. mcd = true
  1640.  
  1641. ClearGhosts()
  1642.  
  1643. local p1 = Instance.new("Part",workspace)
  1644. local m1 = Instance.new("SpecialMesh",p1)
  1645. m1.MeshType = "Sphere"
  1646. m1.Scale = Vector3.new(7,7,7)
  1647. p1.Size = Vector3.new(1,1,1)
  1648. p1.Anchored = true
  1649. p1.CanCollide = false
  1650. p1.TopSurface = "Smooth"
  1651. p1.BottomSurface = "Smooth"
  1652. if gt == false then
  1653. p1.BrickColor = gCol
  1654. else
  1655. p1.BrickColor = wCol
  1656. end
  1657. p1.Material = "Neon"
  1658. local p2 = Instance.new("Part",workspace)
  1659. local m2 = Instance.new("SpecialMesh",p2)
  1660. m2.MeshType = "Sphere"
  1661. m2.Scale = Vector3.new(9,9,9)
  1662. p2.Size = Vector3.new(1,1,1)
  1663. p2.Anchored = true
  1664. p2.CanCollide = false
  1665. p2.TopSurface = "Smooth"
  1666. p2.BottomSurface = "Smooth"
  1667. if gt == false then
  1668. p2.BrickColor = gCol2
  1669. else
  1670. p2.BrickColor = wCol2
  1671. end
  1672. p2.Material = "Neon"
  1673. local currentframe = 0
  1674. local frmR
  1675.  
  1676. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1677. currentframe = currentframe + 1
  1678. if currentframe < 0.25*60 then
  1679. p1.CFrame = char:WaitForChild("Torso").CFrame
  1680. p2.CFrame = char:WaitForChild("Torso").CFrame
  1681. p1.Transparency = p1.Transparency + (1/(0.25*60))
  1682. p2.Transparency = p2.Transparency + (1/(0.25*60))
  1683. else
  1684. p1:Destroy()
  1685. p2:Destroy()
  1686. mcd = false
  1687. frmR:disconnect()
  1688. end
  1689. end)
  1690. end
  1691. elseif key == "g" and toggle == true and mcd == false then
  1692. if gt == true then
  1693. gt = false
  1694. local p1 = Instance.new("Part",workspace)
  1695. local m1 = Instance.new("SpecialMesh",p1)
  1696. m1.MeshType = "Sphere"
  1697. m1.Scale = Vector3.new(5,5,5)
  1698. p1.Size = Vector3.new(1,1,1)
  1699. p1.Anchored = true
  1700. p1.CanCollide = false
  1701. p1.TopSurface = "Smooth"
  1702. p1.BottomSurface = "Smooth"
  1703. p1.BrickColor = gCol
  1704. p1.Material = "Neon"
  1705. local p2 = Instance.new("Part",workspace)
  1706. local m2 = Instance.new("SpecialMesh",p2)
  1707. m2.MeshType = "Sphere"
  1708. m2.Scale = Vector3.new(8,8,8)
  1709. p2.Size = Vector3.new(1,1,1)
  1710. p2.Anchored = true
  1711. p2.CanCollide = false
  1712. p2.TopSurface = "Smooth"
  1713. p2.BottomSurface = "Smooth"
  1714. p2.BrickColor = gCol2
  1715. p2.Material = "Neon"
  1716. local p3 = Instance.new("Part",workspace)
  1717. local m3 = Instance.new("BlockMesh",p3)
  1718. m3.Scale = Vector3.new(7,7,7)
  1719. p3.Size = Vector3.new(1,1,1)
  1720. p3.Transparency = 0.4
  1721. p3.Anchored = true
  1722. p3.CanCollide = false
  1723. p3.TopSurface = "Smooth"
  1724. p3.BottomSurface = "Smooth"
  1725. p3.BrickColor = gCol
  1726. p3.Material = "Neon"
  1727. local p4 = Instance.new("Part",workspace)
  1728. local m4 = Instance.new("BlockMesh",p4)
  1729. m4.Scale = Vector3.new(10,10,10)
  1730. p4.Size = Vector3.new(1,1,1)
  1731. p4.Transparency = 0.4
  1732. p4.Anchored = true
  1733. p4.CanCollide = false
  1734. p4.TopSurface = "Smooth"
  1735. p4.BottomSurface = "Smooth"
  1736. p4.BrickColor = gCol2
  1737. p4.Material = "Neon"
  1738.  
  1739. ClearGhosts()
  1740.  
  1741. for i=1,amountGhosts do
  1742. CreateGhost()
  1743. end
  1744.  
  1745. local currentframe = 0
  1746. local frmR
  1747.  
  1748. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1749. currentframe = currentframe + 1
  1750. if currentframe < 1*60 then
  1751. p1.CFrame = char:WaitForChild("Torso").CFrame
  1752. p2.CFrame = char:WaitForChild("Torso").CFrame
  1753. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1754. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1755. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1756. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1757. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1758. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1759. p1.Transparency = p1.Transparency + (1/(1*60))
  1760. p2.Transparency = p2.Transparency + (1/(1*60))
  1761. p3.Transparency = p3.Transparency + (1/(1*60))
  1762. p4.Transparency = p4.Transparency + (1/(1*60))
  1763. else
  1764. p1:Destroy()
  1765. p2:Destroy()
  1766. p3:Destroy()
  1767. p4:Destroy()
  1768. frmR:disconnect()
  1769. end
  1770. end)
  1771. else
  1772. gt = true
  1773. local p1 = Instance.new("Part",workspace)
  1774. local m1 = Instance.new("SpecialMesh",p1)
  1775. m1.MeshType = "Sphere"
  1776. m1.Scale = Vector3.new(5,5,5)
  1777. p1.Size = Vector3.new(1,1,1)
  1778. p1.Anchored = true
  1779. p1.CanCollide = false
  1780. p1.TopSurface = "Smooth"
  1781. p1.BottomSurface = "Smooth"
  1782. p1.BrickColor = wCol
  1783. p1.Material = "Neon"
  1784. local p2 = Instance.new("Part",workspace)
  1785. local m2 = Instance.new("SpecialMesh",p2)
  1786. m2.MeshType = "Sphere"
  1787. m2.Scale = Vector3.new(8,8,8)
  1788. p2.Size = Vector3.new(1,1,1)
  1789. p2.Anchored = true
  1790. p2.CanCollide = false
  1791. p2.TopSurface = "Smooth"
  1792. p2.BottomSurface = "Smooth"
  1793. p2.BrickColor = wCol2
  1794. p2.Material = "Neon"
  1795. local p3 = Instance.new("Part",workspace)
  1796. local m3 = Instance.new("BlockMesh",p3)
  1797. m3.Scale = Vector3.new(7,7,7)
  1798. p3.Size = Vector3.new(1,1,1)
  1799. p3.Transparency = 0.4
  1800. p3.Anchored = true
  1801. p3.CanCollide = false
  1802. p3.TopSurface = "Smooth"
  1803. p3.BottomSurface = "Smooth"
  1804. p3.BrickColor = wCol
  1805. p3.Material = "Neon"
  1806. local p4 = Instance.new("Part",workspace)
  1807. local m4 = Instance.new("BlockMesh",p4)
  1808. m4.Scale = Vector3.new(10,10,10)
  1809. p4.Size = Vector3.new(1,1,1)
  1810. p4.Transparency = 0.4
  1811. p4.Anchored = true
  1812. p4.CanCollide = false
  1813. p4.TopSurface = "Smooth"
  1814. p4.BottomSurface = "Smooth"
  1815. p4.BrickColor = wCol2
  1816. p4.Material = "Neon"
  1817.  
  1818. ClearGhosts()
  1819.  
  1820. for i=1,amountGhosts do
  1821. CreateGhost()
  1822. end
  1823.  
  1824. local currentframe = 0
  1825. local frmR
  1826.  
  1827. frmR = game:GetService("RunService").RenderStepped:connect(function()
  1828. currentframe = currentframe + 1
  1829. if currentframe < 1*60 then
  1830. p1.CFrame = char:WaitForChild("Torso").CFrame
  1831. p2.CFrame = char:WaitForChild("Torso").CFrame
  1832. p3.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1833. p4.CFrame = char:WaitForChild("Torso").CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  1834. m1.Scale = m1.Scale + Vector3.new(0.25,0.25,0.25)
  1835. m2.Scale = m2.Scale + Vector3.new(0.25,0.25,0.25)
  1836. m3.Scale = m3.Scale + Vector3.new(0.25,0.25,0.25)
  1837. m4.Scale = m4.Scale + Vector3.new(0.25,0.25,0.25)
  1838. p1.Transparency = p1.Transparency + (1/(1*60))
  1839. p2.Transparency = p2.Transparency + (1/(1*60))
  1840. p3.Transparency = p3.Transparency + (1/(1*60))
  1841. p4.Transparency = p4.Transparency + (1/(1*60))
  1842. else
  1843. p1:Destroy()
  1844. p2:Destroy()
  1845. p3:Destroy()
  1846. p4:Destroy()
  1847. frmR:disconnect()
  1848. end
  1849. end)
  1850. end
  1851. end
  1852. end)
  1853. end)
  1854.  
  1855. local frm = 0
  1856.  
  1857. local toRemove = {}
  1858.  
  1859. game:GetService("RunService").RenderStepped:connect(function()
  1860. frm = frm + 1
  1861. if char.Parent == game:GetService("Workspace").CurrentCamera then
  1862.  
  1863. e1.CFrame = char.Head.CFrame * CFrame.new(0.15,0.1,-0.55)
  1864. e2.CFrame = char.Head.CFrame * CFrame.new(-0.15,0.1,-0.55)
  1865.  
  1866. local delay = 0.9
  1867.  
  1868. for i,v in pairs(ghosts) do
  1869. for _,b in pairs(v:GetChildren()) do
  1870. if b:IsA("Part") or b:IsA("WedgePart") or b:IsA("TrussPart") or b:IsA("UnionOperation") then
  1871. b.CFrame = b.CFrame:lerp(b:FindFirstChild("Target").Value.CFrame,delay)
  1872. end
  1873. end
  1874. delay = delay - (0.5/(#ghosts+1))
  1875. end
  1876.  
  1877. --[[if math.floor(frm/8) == frm/8 then
  1878. local isub = 0
  1879. for i,v in pairs(ghosts) do
  1880. if #v:GetChildren() < 6 then
  1881. v:Destroy()
  1882. table.remove(ghosts,i - isub)
  1883. isub = isub + 1
  1884. CreateGhost()
  1885. end
  1886. end
  1887. end]]
  1888. end
  1889.  
  1890. --Animation states
  1891.  
  1892. local ray = Ray.new(char.HumanoidRootPart.CFrame.p, Vector3.new(0,-3,0).unit*4)
  1893. local part,pos,normal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(ray,ghosts,false,true)
  1894.  
  1895. if state ~= "busy" then
  1896. if char.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
  1897. state = "idle"
  1898. elseif char.HumanoidRootPart.Velocity.Magnitude > 0.5 then
  1899. state = "running"
  1900. --[[elseif char.HumanoidRootPart.Velocity.Y < 0.1 and not part then
  1901. state = "falling"
  1902. elseif char.HumanoidRootPart.Velocity.Y >= 0.1 and not part then
  1903. state = "jumping"]]
  1904. end
  1905. char.Humanoid.WalkSpeed = 50
  1906. char.Humanoid.JumpPower = 70
  1907. end
  1908.  
  1909. --Actual animations
  1910.  
  1911. if state == "idle" then
  1912. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(80 + math.cos(tick())*4),math.rad(180),math.rad(0)),0.06)
  1913. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  1914. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  1915. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.43 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  1916. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.6) * CFrame.Angles(math.rad(-15 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  1917. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  1918. elseif state == "running" then
  1919. char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0:lerp(CFrame.new(0,1 + (math.cos(tick())/5),0) * CFrame.Angles(math.rad(65 + math.cos(tick())*4),math.rad(180),math.rad(-char.HumanoidRootPart.RotVelocity.Y*10)),0.06)
  1920. char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0:lerp(CFrame.new(0.5,-0.1 + (math.cos((tick())*2)/10),-0.2) * CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),0.06)
  1921. char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0:lerp(CFrame.new(-0.5,-0.5 + (math.cos((tick()-0.5)*2)/6),0.3) * CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)),0.06)
  1922. char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0:lerp(CFrame.new(1.5,0.70 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(50 + math.cos((tick())*2)*10),math.rad(0),math.rad(math.cos(tick()/3)*3)),0.06)
  1923. char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0:lerp(CFrame.new(-1.5,0.3 + (math.cos((tick()-0.5)*1.5)/30),-0.4) * CFrame.Angles(math.rad(-35 + math.cos((tick()))*7),math.rad(0),math.rad(math.cos(tick()/2)*4)),0.06)
  1924. char.Torso.Neck.C0 = char.Torso.Neck.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(math.rad(90 + math.cos(tick()*1.5)*6),math.rad(180),math.rad(0)),0.06)
  1925. end
  1926. end)
  1927.  
  1928. char.Humanoid.Died:connect(function()
  1929. toggle = false
  1930.  
  1931. ClearGhosts()
  1932.  
  1933. char.Parent = game.Workspace
  1934. char.Parent = game:GetService("Workspace")
  1935. char:FindFirstChild("ForceField"):Destroy()
  1936. char:FindFirstChild("Head").Transparency = 0
  1937. char:FindFirstChild("Torso").Transparency = 0
  1938. char:FindFirstChild("Right Arm").Transparency = 0
  1939. char:FindFirstChild("Left Arm").Transparency = 0
  1940. char:FindFirstChild("Right Leg").Transparency = 0
  1941. char:FindFirstChild("Left Leg").Transparency = 0
  1942. for i,v in pairs(char:GetChildren()) do
  1943. if v:IsA("Accessory") then
  1944. v:FindFirstChild("Handle").Transparency = 0
  1945. end
  1946. end
  1947. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  1948. plr:LoadCharacter()
  1949. end)
  1950.  
  1951. local msgidGlob = 0
  1952. local state = true
  1953. local font = "Arcade"
  1954. local tcol = Color3.fromRGB(255,217,0)
  1955. local tscol = Color3.fromRGB(0,0,0)
  1956. local fsiz = 28
  1957. local tr = true
  1958. local tsr = false
  1959. local fade = 2
  1960.  
  1961. local p = Instance.new("Part",game.Workspace)
  1962. p.Size = Vector3.new(0.2,0.2,0.2)
  1963. p.Transparency = 1
  1964. p.Anchored = true
  1965. p.CanCollide = false
  1966. p.Name = "Msg"
  1967. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  1968.  
  1969. local r = 255
  1970. local b = 0
  1971. local g = 0
  1972.  
  1973. plr.Chatted:connect(function(c)
  1974. msgidGlob = msgidGlob + 1
  1975. local curMsgId = msgidGlob
  1976. if string.lower(c) == "!disable" then
  1977. state = false
  1978. elseif string.lower(c) == "!enable" then
  1979. state = true
  1980. elseif string.lower(string.sub(c,1,6)) == "!font " then
  1981. local old = font
  1982. font = string.sub(c,7,#c) or old
  1983. elseif string.lower(string.sub(c,1,8)) == "!tcolor " then
  1984. if string.lower(string.sub(c,9,#c)) == "rainbow" then
  1985. tr = true
  1986. else
  1987. tr = false
  1988. local old = tcol
  1989. tcol = Color3.fromRGB(string.sub(c,9,11),string.sub(c,13,15),string.sub(c,17,19)) or old
  1990. end
  1991. elseif string.lower(string.sub(c,1,9)) == "!tscolor " then
  1992. if string.sub(c,10,#c) == "rainbow" then
  1993. tsr = true
  1994. else
  1995. tsr = false
  1996. local old = tscol
  1997. tscol = Color3.fromRGB(string.sub(c,10,12),string.sub(c,14,16),string.sub(c,18,20)) or old
  1998. end
  1999. elseif string.lower(string.sub(c,1,6)) == "!size " then
  2000. local old = fsiz
  2001. fsiz = string.sub(c,7,#c) or old
  2002. elseif string.lower(string.sub(c,1,6)) == "!fade " then
  2003. local old = fade
  2004. fade = string.sub(c,7,#c) or old
  2005. end
  2006. if plr.Character and state == true then
  2007. if plr.Character:FindFirstChild("Head") then
  2008. for i,v in pairs(p:GetChildren()) do
  2009. if v:IsA("BillboardGui") and v.Name == "J2CMSG" then
  2010. v:Destroy()
  2011. end
  2012. end
  2013. local bbgui = Instance.new("BillboardGui",p)
  2014. bbgui.Name = "J2CMSG"
  2015. bbgui.AlwaysOnTop = true
  2016. bbgui.ExtentsOffsetWorldSpace = Vector3.new(0,4.5,0)
  2017. bbgui.Size = UDim2.new(0.2,0,0.14,0)
  2018. local tl = Instance.new("TextLabel",bbgui)
  2019. tl.BackgroundTransparency = 1
  2020. tl.BorderSizePixel = 0
  2021. tl.Size = UDim2.new(1,0,10,0)
  2022. tl.Position = UDim2.new(0,0,-5,0)
  2023. tl.Font = font or "SciFi"
  2024. tl.FontSize = "Size"..fsiz or "Size36"
  2025. tl.TextColor3 = tcol
  2026. tl.TextScaled = false
  2027. tl.TextWrapped = false
  2028. tl.TextStrokeColor3 = tscol
  2029. tl.TextStrokeTransparency = 0
  2030.  
  2031. game:GetService("RunService").RenderStepped:connect(function()
  2032. if tr then
  2033. if tl.Parent ~= nil then
  2034. tl.TextColor3 = Color3.fromRGB(r,g,b)
  2035. end
  2036. end
  2037. end)
  2038.  
  2039. for i=1,#c do
  2040. if msgidGlob == curMsgId then
  2041. tl.Text = string.sub(c,1,i)
  2042. if string.sub(c,i,i) ~= " " then
  2043. local s = Instance.new("Sound",p)
  2044. s.SoundId = "rbxassetid://418252437"
  2045. s.Volume = 1
  2046. s.Pitch = 1
  2047. s:Play()
  2048. game.Debris:AddItem(s,2)
  2049. end
  2050. wait()
  2051. end
  2052. end
  2053. wait(fade)
  2054. if msgidGlob == curMsgId then
  2055. for i=1,10 do
  2056. if msgidGlob == curMsgId then
  2057. tl.TextTransparency = tl.TextTransparency + 0.1
  2058. tl.TextStrokeTransparency = tl.TextStrokeTransparency + 0.1
  2059. tl.Position = tl.Position + UDim2.new(0,0,0,-3)
  2060. wait()
  2061. end
  2062. end
  2063. if msgidGlob == curMsgId then
  2064. bbgui:Destroy()
  2065. end
  2066. end
  2067. end
  2068. end
  2069. end)
  2070.  
  2071. coroutine.resume(coroutine.create(function()
  2072. while wait() do
  2073. for i=0,255,10 do g = i wait() end
  2074. for i=255,0,-10 do r = i wait() end
  2075. for i=0,255,10 do b = i wait() end
  2076. for i=255,0,-10 do g = i wait() end
  2077. for i=0,255,10 do r = i wait() end
  2078. for i=255,0,-10 do b = i wait() end
  2079. end
  2080. end))
  2081.  
  2082. game:GetService("RunService").RenderStepped:connect(function()
  2083. if p.Parent ~= nil then
  2084. p.CFrame = p.CFrame:lerp(plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0),0.16)
  2085. else
  2086. p = Instance.new("Part",game.Workspace)
  2087. p.Size = Vector3.new(0.2,0.2,0.2)
  2088. p.Transparency = 1
  2089. p.Anchored = true
  2090. p.CanCollide = false
  2091. p.Name = "Msg"
  2092. p.CFrame = plr.Character:WaitForChild("Head").CFrame + Vector3.new(0,2.25,0)
  2093. end
  2094. end)
  2095.  
  2096. print("Ghost loaded! Time elapsed: "..tick() - time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement