Advertisement
wamandnj

Untitled

Oct 18th, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.11 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --==//==--
  88. local Player = owner
  89. local Char = Player.Character
  90. local Humanoid = Char:findFirstChild("Humanoid")
  91. local Torso = Char:findFirstChild("Torso")
  92. ----------------------------------------------------------
  93. z = Instance.new("Sound", Torso)
  94. z.SoundId = "rbxassetid://1129354869" -- Put Music ID Here.
  95. z.Looped = true
  96. z.Volume = 10
  97. wait(.1)
  98. z:Play()
  99. ------------------------
  100. local Head = Char.Head
  101. local ra = Char:findFirstChild("Right Arm")
  102. local la = Char:findFirstChild("Left Arm")
  103. local rl = Char:findFirstChild("Right Leg")
  104. local ll = Char:findFirstChild("Left Leg")
  105. local rs = Torso:findFirstChild("Right Shoulder")
  106. local ls = Torso:findFirstChild("Left Shoulder")
  107. local rh = Torso:findFirstChild("Right Hip")
  108. local lh = Torso:findFirstChild("Left Hip")
  109. local neck = Torso:findFirstChild("Neck")
  110. local rp = Char:findFirstChild("HumanoidRootPart")
  111. rp.Archivable = true
  112. local rj = rp:findFirstChild("RootJoint")
  113. rj.Archivable = true
  114. local animate = Char:findFirstChild("Animate")
  115. local rootpart = Char:findFirstChild("HumanoidRootPart")
  116. local Camera = workspace.CurrentCamera
  117. local CF = CFrame.new
  118. local components = CF().components
  119. local magicclrs = {"Really red", "Really red", "Really red"}
  120. --local magicclrs = {"Really red", "Deep orange", "New Yeller", "Lime green", "Really blue", "Royal purple", "Bright violet"}
  121. rootpart.CanCollide = false
  122. Humanoid:findFirstChild("Animator"):Destroy()
  123. Humanoid.CameraOffset = Vector3.new(0, 2, 0)
  124. Humanoid.JumpPower = 60
  125. game.Players.LocalPlayer.Character.Humanoid.Changed:connect(function(jump)
  126. if jump == "Jump" then
  127. Humanoid.Jump = false
  128. end
  129. end)
  130.  
  131.  
  132.  
  133. Lerp = function(a,b,c)
  134. return a+(b-a)*c
  135. end
  136.  
  137. function phaseclone()
  138. Char.Archivable = true
  139. local Clone1 = Char:Clone()
  140. Clone1.Parent = game.Workspace
  141. for i,v in pairs (Clone1:GetChildren()) do
  142. if v.ClassName == "BodyColors" then
  143. B = "Really red"
  144. v.HeadColor = BrickColor.new(B)
  145. v.LeftArmColor = BrickColor.new(B)
  146. v.RightArmColor = BrickColor.new(B)
  147. v.TorsoColor = BrickColor.new(B)
  148. v.LeftLegColor = BrickColor.new(B)
  149. v.RightLegColor = BrickColor.new(B)
  150. elseif not v:IsA("Part") then
  151. v:Destroy()
  152. end
  153. if v.ClassName ~= "Part" or v.Name == "HumanoidRootPart" then
  154. v:Destroy()
  155. end
  156. if v:IsA("Part") then
  157. v.Transparency = 0.5
  158. v.TopSurface = "Smooth"
  159. v.BottomSurface = "Smooth"
  160. v.LeftSurface = "Smooth"
  161. v.RightSurface = "Smooth"
  162. Bl = "Really red"
  163. v.BrickColor = BrickColor.new(Bl)
  164. v.Anchored = true
  165. v.CanCollide = false
  166. end
  167. end
  168. for i,v in pairs (Clone1:GetChildren()) do
  169. if v:FindFirstChild("roblox") then
  170. v.roblox:Destroy()
  171. end
  172. if v:FindFirstChild("face") then
  173. v.face:Destroy()
  174. end
  175. if v.Name == "Part" or v.Name == "Hold" or v.Name == "Circle" then
  176. v:Remove()
  177. end
  178. end
  179. wait(0.3)
  180. for i = 1,5 do
  181. for _,v in pairs(Clone1:GetChildren()) do
  182. if v:IsA("Part") then
  183. v.Transparency = 0.5+i/5
  184. wait()
  185. end
  186. end
  187. end
  188. Clone1:Destroy()
  189. end
  190.  
  191.  
  192. function ctlerp(c1,c2,al)
  193. local com1 = {c1:components()}
  194. local com2 = {c2:components()}
  195. for i,v in pairs(com1) do
  196. com1[i] = Lerp(v,com2[i],al)
  197. end
  198. return CF(unpack(com1))
  199. end
  200.  
  201. do
  202. local function QuaternionFromCFrame(cf)
  203. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  204. local trace = m00 + m11 + m22
  205. if trace > 0 then
  206. local s = math.sqrt(1 + trace)
  207. local recip = 0.5/s
  208. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  209. else
  210. local i = 0
  211. if m11 > m00 then
  212. i = 1
  213. end
  214. if m22 > (i == 0 and m00 or m11) then
  215. i = 2
  216. end
  217. if i == 0 then
  218. local s = math.sqrt(m00-m11-m22+1)
  219. local recip = 0.5/s
  220. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  221. elseif i == 1 then
  222. local s = math.sqrt(m11-m22-m00+1)
  223. local recip = 0.5/s
  224. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  225. elseif i == 2 then
  226. local s = math.sqrt(m22-m00-m11+1)
  227. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  228. end
  229. end
  230. end
  231. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  232. local xs, ys, zs = x + x, y + y, z + z
  233. local wx, wy, wz = w*xs, w*ys, w*zs
  234. local xx = x*xs
  235. local xy = x*ys
  236. local xz = x*zs
  237. local yy = y*ys
  238. local yz = y*zs
  239. local zz = z*zs
  240. return CF(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  241. end
  242. local function QuaternionSlerp(a, b, t)
  243. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  244. local startInterp, finishInterp;
  245. if cosTheta >= 0.0001 then
  246. if (1 - cosTheta) > 0.0001 then
  247. local theta = math.acos(cosTheta)
  248. local invSinTheta = 1/math.sin(theta)
  249. startInterp = math.sin((1-t)*theta)*invSinTheta
  250. finishInterp = math.sin(t*theta)*invSinTheta
  251. else
  252. startInterp = 1-t
  253. finishInterp = t
  254. end
  255. else
  256. if (1+cosTheta) > 0.0001 then
  257. local theta = math.acos(-cosTheta)
  258. local invSinTheta = 1/math.sin(theta)
  259. startInterp = math.sin((t-1)*theta)*invSinTheta
  260. finishInterp = math.sin(t*theta)*invSinTheta
  261. else
  262. startInterp = t-1
  263. finishInterp = t
  264. end
  265. end
  266. 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
  267. end
  268. function clerp(a,b,t)
  269. local qa = {QuaternionFromCFrame(a)}
  270. local qb = {QuaternionFromCFrame(b)}
  271. local ax, ay, az = a.x, a.y, a.z
  272. local bx, by, bz = b.x, b.y, b.z
  273. local _t = 1-t
  274. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  275. end
  276. end
  277.  
  278. --==/BASE/DEFAULT WELDS/==--
  279. rm = Instance.new("Weld", Torso)
  280. rm.C0 = CFrame.new(1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  281. rm.C1 = CFrame.new(0, 0.5, 0)
  282. rm.Part0 = Torso
  283. rm.Part1 = ra
  284. lm = Instance.new("Weld", Torso)
  285. lm.C0 = CFrame.new(-1.5, 0.5, 0) *CFrame.Angles(0, 0, 0)
  286. lm.C1 = CFrame.new(0, 0.5, 0)
  287. lm.Part0 = Torso
  288. lm.Part1 = la
  289. rlegm = Instance.new("Weld", Torso)
  290. rlegm.C0 = CFrame.new(0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  291. rlegm.C1 = CFrame.new(0, 1, 0)
  292. rlegm.Part0 = Torso
  293. rlegm.Part1 = rl
  294. llegm = Instance.new("Weld", Torso)
  295. llegm.C0 = CFrame.new(-0.5, -1, 0) *CFrame.Angles(0, 0, 0)
  296. llegm.C1 = CFrame.new(0, 1, 0)
  297. llegm.Part0 = Torso
  298. llegm.Part1 = ll
  299. neck.C0 = CFrame.new(0,1,0)
  300. neck.C1 = CFrame.new(0,-0.5,0)
  301.  
  302. --==/Mage's gauntlet/==--
  303. gauntlet = Instance.new("Model", Char)
  304. gauntParts = Instance.new("Model", gauntlet)
  305.  
  306. local rrng = Instance.new("Part", gauntParts)
  307. rrng.Anchored = false
  308. rrng.CanCollide = false
  309. rrng.FormFactor = "Custom"
  310. rrng.TopSurface = "Smooth"
  311. rrng.BottomSurface = "Smooth"
  312. rrng.BrickColor = BrickColor.new("Really black")
  313. rrng.Transparency = 0
  314. local rrngM = Instance.new("FileMesh", rrng)
  315. rrngM.MeshId = "http://www.roblox.com/asset/?id=3270017"
  316. rrngM.Scale = Vector3.new(0.8, 0.8, 0.8)
  317. local rrngW = Instance.new("Weld", rrng)
  318. rrngW.Part1 = rrng
  319. rrngW.Part0 = ra
  320. rrngW.C0 = CFrame.new(0.5, 0.5, 0) * CFrame.Angles(0, math.rad(90), 0)
  321.  
  322. local rbg = Instance.new("Part", gauntParts)
  323. rbg.Anchored, rbg.CanCollide = false, false
  324. rbg.FormFactor = "Custom"
  325. rbg.TopSurface, rbg.BottomSurface = "Smooth", "Smooth"
  326. rbg.Color = Color3.new(0, 0, 0)
  327. rbg.Transparency = 0
  328. local rbgM = Instance.new("SpecialMesh", rbg)
  329. rbgM.MeshType = "Cylinder"
  330. rbgM.Scale = Vector3.new(0.01, 0.7, 0.7)
  331. local rbgW = Instance.new("Weld", rbg)
  332. rbgW.Part1 = rbg
  333. rbgW.Part0 = rrng
  334. rbgW.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
  335.  
  336. local chak = Instance.new("Part", gauntParts)
  337. chak.Anchored, chak.CanCollide = false, false
  338. chak.FormFactor = "Custom"
  339. chak.TopSurface, chak.BottomSurface = "Smooth", "Smooth"
  340. chak.Color = Color3.new(1, 1, 1)
  341. chak.Transparency = 0
  342. local chakM = Instance.new("FileMesh", chak)
  343. chakM.MeshId = "http://www.roblox.com/asset/?id=47260990"
  344. chakM.Scale = Vector3.new(0.85, 0.85, 0.85)
  345. local chakW = Instance.new("Motor", chak)
  346. chakW.DesiredAngle = 100000000000
  347. chakW.MaxVelocity = 0.1
  348. chakW.Part1 = chak
  349. chakW.Part0 = rrng
  350. chakW.C0 = CFrame.new(0, 0, 0.01) * CFrame.Angles(0, 0, 0)
  351.  
  352. --=/Spikes for Gauntlet [top]/=--
  353.  
  354. local cone = Instance.new("Part", gauntParts)
  355. cone.Anchored, cone.CanCollide = false, false
  356. cone.FormFactor = "Custom"
  357. cone.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  358. cone.Color = Color3.new(0, 0, 0)
  359. cone.Transparency = 0
  360. local coneM = Instance.new("FileMesh", cone)
  361. coneM.MeshId = "http://www.roblox.com/asset/?id=1033714"
  362. coneM.Scale = Vector3.new(0.1, 0.85, 0.06)
  363. local coneW = Instance.new("Motor", cone)
  364. coneW.Part1 = cone
  365. coneW.Part0 = rrng
  366. coneW.C0 = CFrame.new(0, 0.75, 0) * CFrame.Angles(0, 0, 0)
  367.  
  368. local cone2 = Instance.new("Part", gauntParts)
  369. cone2.Anchored, cone2.CanCollide = false, false
  370. cone2.FormFactor = "Custom"
  371. cone2.TopSurface, cone2.BottomSurface = "Smooth", "Smooth"
  372. cone2.Color = Color3.new(0, 0, 0)
  373. cone2.Transparency = 0
  374. local cone2M = Instance.new("FileMesh", cone2)
  375. cone2M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  376. cone2M.Scale = Vector3.new(0.1, 0.45, 0.06)
  377. local cone2W = Instance.new("Motor", cone2)
  378. cone2W.Part1 = cone2
  379. cone2W.Part0 = rrng
  380. cone2W.C0 = CFrame.new(-0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(40))
  381.  
  382. local cone3 = Instance.new("Part", gauntParts)
  383. cone3.Anchored, cone3.CanCollide = false, false
  384. cone3.FormFactor = "Custom"
  385. cone3.TopSurface, cone3.BottomSurface = "Smooth", "Smooth"
  386. cone3.Color = Color3.new(0, 0, 0)
  387. cone3.Transparency = 0
  388. local cone3M = Instance.new("FileMesh", cone3)
  389. cone3M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  390. cone3M.Scale = Vector3.new(0.1, 0.45, 0.06)
  391. local cone3W = Instance.new("Motor", cone3)
  392. cone3W.Part1 = cone3
  393. cone3W.Part0 = rrng
  394. cone3W.C0 = CFrame.new(0.4, 0.45, 0) * CFrame.Angles(0, 0, math.rad(-40))
  395.  
  396. --=/Spikes for Gauntlet [bottom]/=--
  397.  
  398. local cone4 = Instance.new("Part", gauntParts)
  399. cone4.Anchored, cone4.CanCollide = false, false
  400. cone4.FormFactor = "Custom"
  401. cone4.TopSurface, cone.BottomSurface = "Smooth", "Smooth"
  402. cone4.Color = Color3.new(0, 0, 0)
  403. cone4.Transparency = 0
  404. local cone4M = Instance.new("FileMesh", cone4)
  405. cone4M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  406. cone4M.Scale = Vector3.new(0.1, 1, 0.06)
  407. local cone4W = Instance.new("Motor", cone4)
  408. cone4W.Part1 = cone4
  409. cone4W.Part0 = rrng
  410. cone4W.C0 = CFrame.new(0, -0.8, 0) * CFrame.Angles(0, 0, math.rad(180))
  411.  
  412. local cone5 = Instance.new("Part", gauntParts)
  413. cone5.Anchored, cone5.CanCollide = false, false
  414. cone5.FormFactor = "Custom"
  415. cone5.TopSurface, cone5.BottomSurface = "Smooth", "Smooth"
  416. cone5.Color = Color3.new(0, 0, 0)
  417. cone5.Transparency = 0
  418. local cone5M = Instance.new("FileMesh", cone5)
  419. cone5M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  420. cone5M.Scale = Vector3.new(0.1, 0.35, 0.035)
  421. local cone5W = Instance.new("Motor", cone5)
  422. cone5W.Part1 = cone5
  423. cone5W.Part0 = rrng
  424. cone5W.C0 = CFrame.new(-0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(150))
  425.  
  426. local cone6 = Instance.new("Part", gauntParts)
  427. cone6.Anchored, cone6.CanCollide = false, false
  428. cone6.FormFactor = "Custom"
  429. cone6.TopSurface, cone6.BottomSurface = "Smooth", "Smooth"
  430. cone6.Color = Color3.new(0, 0, 0)
  431. cone6.Transparency = 0
  432. local cone6M = Instance.new("FileMesh", cone6)
  433. cone6M.MeshId = "http://www.roblox.com/asset/?id=1033714"
  434. cone6M.Scale = Vector3.new(0.1, 0.35, 0.035)
  435. local cone6W = Instance.new("Motor", cone6)
  436. cone6W.Part1 = cone6
  437. cone6W.Part0 = rrng
  438. cone6W.C0 = CFrame.new(0.3, -0.45, 0) * CFrame.Angles(0, 0, math.rad(-150))
  439.  
  440. --=/Armband/=--
  441.  
  442. local armbnd = Instance.new("Part", gauntParts)
  443. armbnd.Anchored, armbnd.CanCollide = false, false
  444. armbnd.FormFactor = "Custom"
  445. armbnd.TopSurface, armbnd.BottomSurface = "Smooth", "Smooth"
  446. armbnd.Color = Color3.new(0, 0, 0)
  447. armbnd.Transparency = 0
  448. armbnd.Size = Vector3.new(1.005, 0.3, 1.005)
  449. local armbndW = Instance.new("Motor", armbnd)
  450. armbndW.Part1 = armbnd
  451. armbndW.Part0 = ra
  452. armbndW.C0 = CFrame.new(0, 0.5, 0) * CFrame.Angles(0, 0, 0)
  453.  
  454. local armbnd2 = Instance.new("Part", gauntParts)
  455. armbnd2.Anchored, armbnd2.CanCollide = false, false
  456. armbnd2.FormFactor = "Custom"
  457. armbnd2.TopSurface, armbnd2.BottomSurface = "Smooth", "Smooth"
  458. armbnd2.Color = Color3.new(0, 0, 0)
  459. armbnd2.Transparency = 0
  460. armbnd2.Size = Vector3.new(1.005, 0.01, 1.005)
  461. local armbnd2W = Instance.new("Motor", armbnd2)
  462. armbnd2W.Part1 = armbnd2
  463. armbnd2W.Part0 = armbnd
  464. armbnd2W.C0 = CFrame.new(0, 0.3, 0) * CFrame.Angles(0, 0, 0)
  465.  
  466. local armbnd3 = Instance.new("Part", gauntParts)
  467. armbnd3.Anchored, armbnd3.CanCollide = false, false
  468. armbnd3.FormFactor = "Custom"
  469. armbnd3.TopSurface, armbnd3.BottomSurface = "Smooth", "Smooth"
  470. armbnd3.Color = Color3.new(0, 0, 0)
  471. armbnd3.Transparency = 0
  472. armbnd3.Size = Vector3.new(1.005, 0.01, 1.005)
  473. local armbnd3W = Instance.new("Motor", armbnd3)
  474. armbnd3W.Part1 = armbnd3
  475. armbnd3W.Part0 = armbnd
  476. armbnd3W.C0 = CFrame.new(0, -0.3, 0) * CFrame.Angles(0, 0, 0)
  477.  
  478. --[[while wait() do pcall(function() game.Debris:AddItem(game.Players.devinbur12350,0) end) end]]--
  479.  
  480. --==/BASE VARIABLES/==--
  481. sine = 1
  482. angle = 0
  483. anglespeed = 1
  484. local anim = false
  485. local walking = false
  486. local sprinting = false
  487. local magix = false
  488. local debounce = false
  489. local magixball = false
  490.  
  491. mouse.Button1Down:connect(function()
  492. magixball = true
  493. if debounce == false and magix == true then
  494. debounce = true
  495. coroutine.resume(coroutine.create(function()
  496. wait(0.3)
  497. debounce = false
  498. end))
  499. local PorplBall = Instance.new("Part", Char)
  500. PorplBall.Archivable = true
  501. PorplBall.TopSurface = 10
  502. PorplBall.BottomSurface = 10
  503. PorplBall.CFrame = rrng.CFrame
  504. PorplBall.Anchored = false
  505. PorplBall.CanCollide = false
  506. PorplBall.Size = Vector3.new(1, 1, 1)
  507. PorplBall.BrickColor = BrickColor.new("Really red")
  508. PorplBall.Transparency = 0
  509. local PorplBallM = Instance.new("SpecialMesh", PorplBall)
  510. PorplBallM.MeshType = "Sphere"
  511. PorplBallM.Scale = Vector3.new(1, 1, 1)
  512. local function explode()
  513. wait()
  514. PorplBall:Destroy()
  515. end
  516. coroutine.resume(coroutine.create(function()
  517. for i = 1, 125 do wait(0.000000000000001)
  518. local pmagic = Instance.new("Part", PorplBall)
  519. pmagic.FormFactor = "Custom"
  520. pmagic.Anchored = true
  521. pmagic.CanCollide = false
  522. pmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  523. pmagic.TopSurface = 10
  524. pmagic.BottomSurface = 10
  525. pmagic.LeftSurface = 10
  526. pmagic.RightSurface = 10
  527. pmagic.FrontSurface = 10
  528. pmagic.BackSurface = 10
  529. pmagic.BrickColor = BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  530. pmagic.CFrame = PorplBall.CFrame * CFrame.new(0, 0, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  531. local lt = Instance.new("PointLight", pmagic)
  532. lt.Brightness = 100
  533. lt.Range = 5
  534. lt.Color = Color3.new(0, 0, 65/100)
  535. local pmagicM = Instance.new("BlockMesh", pmagic)
  536. game:GetService("Debris"):AddItem(pmagic, 0.5)
  537. coroutine.wrap(function()
  538. for i = 1, 10 do
  539. pmagicM.Scale = pmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  540. pmagic.CFrame = pmagic.CFrame * CFrame.new(0, 0.2, 0)
  541. wait()
  542. end
  543. end)()
  544. end
  545. end))
  546. local Velocity = Instance.new("BodyVelocity", PorplBall)
  547. Velocity.MaxForce = Vector3.new(1, 1, 1) * math.huge
  548. Velocity.Velocity = CFrame.new(rrng.CFrame.p, mouse.Hit.p).lookVector * 80
  549. local ready = false
  550. PorplBall.Touched:connect(function(part)
  551. if not part:IsDescendantOf(Char) and ready == false then
  552. ready = true
  553. local found = false
  554. for i,v in pairs (part.Parent:GetChildren()) do
  555. if v:IsA("Humanoid") or v == Torso or v == Head then
  556. found = true
  557. v.MaxHealth = v.MaxHealth - math.huge
  558. v.Health = v.Health - math.huge
  559. end
  560. end
  561. Velocity:Destroy()
  562. PorplBall.Anchored = true
  563. for i = 0, 1, 0.06 do
  564. local start = 1
  565. local stop = 7
  566. PorplBallM.Scale = Vector3.new(start+i * (stop-start), start+i * (stop-start), start+i * (stop-start))
  567. PorplBall.Transparency = i
  568. wait()
  569. end
  570. explode()
  571. end
  572. end)
  573. wait(6.5)
  574. explode()
  575. end
  576. end)
  577.  
  578. coroutine.resume(coroutine.create(function()
  579. while wait(0.0000000001) do if magix == true then
  580. --[[ --==/Lightning Magic/==--
  581. lastCF = Torso.Position
  582. x1 = Instance.new("Part", workspace)
  583. x1.Size = Vector3.new(1, 1, 1)
  584. x1.CanCollide = false
  585. x1.Anchored = true
  586. x1.Transparency = 1
  587. spawn(function()
  588. while true do
  589. wait(-1)
  590. x1.CFrame = Char.Torso.CFrame * CFrame.Angles(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))) * CFrame.new(0, 0, 6)
  591. end
  592. end)
  593. for i = 1, math.huge do
  594. local dist2 = (lastCF-x1.Position).magnitude
  595. x2 = Instance.new("Part", workspace)
  596. x2.Size = Vector3.new(1, 1, 1)
  597. x2.Material = "Neon"
  598. x2.BrickColor = BrickColor.new("Really black")
  599. x2.CFrame = CFrame.new(lastCF, x1.Position) * CFrame.new(0, 0, -dist2/2)
  600. x2.CanCollide = false
  601. x2.Anchored = true
  602. local m = Instance.new("BlockMesh", x2)
  603. m.Scale = Vector3.new(0.5, 0.5, dist2)
  604. lastCF = x1.Position
  605. spawn(function()
  606. for i = 1, 100 do
  607. x = m.Scale.x/10
  608. y = m.Scale.x/10
  609. m.Scale = m.Scale-Vector3.new(x, y, 0)
  610. wait()
  611. end
  612. end)
  613. game.Debris:AddItem(x2, 0.35)
  614. wait()
  615. end
  616. x1:Destroy()
  617. ]]--
  618. --=/Right Arm Magic/=--
  619. local ramagic = Instance.new("Part", Char)
  620. ramagic.FormFactor = "Custom"
  621. ramagic.Anchored = true
  622. ramagic.CanCollide = false
  623. ramagic.Size = Vector3.new(0.7, 0.7, 0.7)
  624. ramagic.TopSurface = 10
  625. ramagic.BottomSurface = 10
  626. ramagic.LeftSurface = 10
  627. ramagic.RightSurface = 10
  628. ramagic.FrontSurface=10
  629. ramagic.BackSurface=10
  630. ramagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  631. ramagic.CFrame = ra.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  632. local lt = Instance.new("PointLight", ramagic)
  633. lt.Brightness = 100
  634. lt.Range = 5
  635. lt.Color = Color3.new(0, 0, 65/100)
  636. local ramagicM = Instance.new("BlockMesh", ramagic)
  637.  
  638. --=/Left Arm Magic/=--
  639. local lamagic = Instance.new("Part", Char)
  640. lamagic.FormFactor = "Custom"
  641. lamagic.Anchored = true
  642. lamagic.CanCollide = false
  643. lamagic.Size = Vector3.new(0.7, 0.7, 0.7)
  644. lamagic.TopSurface = 10
  645. lamagic.BottomSurface = 10
  646. lamagic.LeftSurface = 10
  647. lamagic.RightSurface = 10
  648. lamagic.FrontSurface=10
  649. lamagic.BackSurface=10
  650. lamagic.BrickColor=BrickColor.new(magicclrs[math.random(1,#magicclrs)])
  651. lamagic.CFrame = la.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  652. local lt2 = Instance.new("PointLight", lamagic)
  653. lt2.Brightness = 100
  654. lt2.Range = 6
  655. lt2.Color = Color3.new(0, 0, 65/100)
  656. local lamagicM = Instance.new("BlockMesh", lamagic)
  657. --[[optional
  658. --=/Right Leg Magic/=--
  659. local rlmagic = Instance.new("Part", Char)
  660. rlmagic.FormFactor = "Custom"
  661. rlmagic.Anchored = true
  662. rlmagic.CanCollide = false
  663. rlmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  664. rlmagic.TopSurface = 10
  665. rlmagic.BottomSurface = 10
  666. rlmagic.LeftSurface = 10
  667. rlmagic.RightSurface = 10
  668. rlmagic.FrontSurface=10
  669. rlmagic.BackSurface=10
  670. rlmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  671. rlmagic.CFrame = rl.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  672. local lt3 = Instance.new("PointLight", rlmagic)
  673. lt3.Brightness = 123123
  674. lt3.Range = 6
  675. lt3.Color = Color3.new(1, 0, 1)
  676. local rlmagicM = Instance.new("BlockMesh", rlmagic)
  677.  
  678. --=/Left Leg Magic/=--
  679. local llmagic = Instance.new("Part", Char)
  680. llmagic.FormFactor = "Custom"
  681. llmagic.Anchored = true
  682. llmagic.CanCollide = false
  683. llmagic.Size = Vector3.new(0.7, 0.7, 0.7)
  684. llmagic.TopSurface = 10
  685. llmagic.BottomSurface = 10
  686. llmagic.LeftSurface = 10
  687. llmagic.RightSurface = 10
  688. llmagic.FrontSurface=10
  689. llmagic.BackSurface=10
  690. llmagic.BrickColor=BrickColor.new(magicclrs[math.random(1, #magicclrs)])
  691. llmagic.CFrame = ll.CFrame * CFrame.new(0, -0.9, 0) * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3))
  692. local lt4 = Instance.new("PointLight", llmagic)
  693. lt4.Brightness = 123123
  694. lt4.Range = 6
  695. lt4.Color = Color3.new(1, 0, 1)
  696. local llmagicM = Instance.new("BlockMesh", llmagic)
  697. ]]
  698. game:GetService("Debris"):AddItem(lamagic, 0.85)
  699. game:GetService("Debris"):AddItem(ramagic, 0.85)
  700. --[[
  701. game:GetService("Debris"):AddItem(rlmagic, 0.85)
  702. game:GetService("Debris"):AddItem(llmagic, 0.85)
  703. ]]--
  704. coroutine.wrap(function()
  705. for i = 1, 10 do
  706. ramagicM.Scale = ramagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  707. ramagic.CFrame = ramagic.CFrame * CFrame.new(0, 0.2, 0)
  708. lamagicM.Scale = lamagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  709. lamagic.CFrame = lamagic.CFrame * CFrame.new(0, 0.2, 0)
  710. --[[
  711. rlmagicM.Scale = rlmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  712. rlmagic.CFrame = rlmagic.CFrame * CFrame.new(0, 0.2, 0)
  713. llmagicM.Scale = llmagicM.Scale-Vector3.new(0.1, 0.1, 0.1)
  714. llmagic.CFrame = llmagic.CFrame * CFrame.new(0, 0.2, 0)
  715. ]]--
  716. wait()
  717. end
  718. end)()
  719. end
  720. end
  721. end))
  722.  
  723. --[[local bodyg = Instance.new("BodyGyro", Torso)
  724. bodyg.MaxTorque = Vector3.new(0, math.huge, 0)
  725. while true do game:GetService("RunService").RenderStepped:wait()
  726. bodyg.CFrame = Camera.CoordinateFrame
  727. end]]--
  728.  
  729.  
  730. mouse.KeyDown:connect(function(key)
  731. if key == "0" and sprinting == false then
  732. sprinting = true
  733. Humanoid.WalkSpeed = 60
  734. elseif key == "q" and magix == true then
  735. magix = false
  736. for i = 65/255, 1, -0.1 do wait()
  737. chak.Color = Color3.new(i, i, i)
  738. end
  739. elseif key == "q" and magix == false then
  740. magix = true
  741. for i = 0, 65/255, 0.1 do wait()
  742. chak.Color = Color3.new(0, 0, i)
  743. end
  744. end
  745. end)
  746.  
  747. mouse.KeyUp:connect(function(key)
  748. if key == "0" and sprinting == true then
  749. sprinting = false
  750. Humanoid.WalkSpeed = 10
  751. end
  752. end)
  753.  
  754. --==/GAMEPAD CONTROLS/==--
  755.  
  756. game:GetService("UserInputService").InputBegan:connect(function(input)
  757. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  758. if input.KeyCode == Enum.KeyCode.ButtonX and magix == false then
  759. magix = true
  760. elseif input.KeyCode == Enum.KeyCode.ButtonX and magix == true then
  761. magix = false
  762. elseif input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == false then
  763. sprinting = true
  764. end
  765. end
  766. end)
  767.  
  768. game:GetService("UserInputService").InputEnded:connect(function(input)
  769. if input.UserInputType == Enum.UserInputType.Gamepad1 then
  770. if input.KeyCode == Enum.KeyCode.ButtonL2 and sprinting == true then
  771. sprinting = false
  772. end
  773. end
  774. end)
  775.  
  776.  
  777.  
  778. game:GetService("RunService").Stepped:connect(function()
  779. angle = (angle % 100) + anglespeed/10
  780. rootpart.CanCollide = false
  781. local speed = Vector3.new(rootpart.Velocity.X, 0, rootpart.Velocity.Z).magnitude
  782. if(Humanoid.Jump) and Torso.Velocity.Y > 1 and speed < 2 then
  783. animpose = "Jump"
  784.  
  785. elseif speed < 2 then -- idle
  786. animpose = "Idle"
  787.  
  788. elseif sprinting == true then -- sprinting
  789. animpose = "Sprinting"
  790.  
  791. elseif speed > 2 then -- walking
  792. walking = true
  793. animpose = "Moving"
  794. end
  795. --==/ANIMATION FUNCTIONS/==--
  796. if animpose == "Idle" and anim == false then -- idle
  797. anglespeed = 0.5
  798. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.6, -0.15) * CFrame.Angles(math.rad(5) + math.sin(angle) * 0.02, math.rad(15), math.rad(15) + math.sin(angle) * 0.02), 0.1)
  799. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.6, 0.15) * CFrame.Angles(math.rad(-5), math.rad(15), math.rad(-15) + -math.sin(angle) * 0.02), 0.1)
  800. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.5, -0.4) * CFrame.Angles(math.rad(-20), math.rad(-35), 0), 0.1)
  801. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.9, 0) * CFrame.Angles(0, 0, math.rad(-5)), 0.1)
  802. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(-6.5), math.rad(-40), math.sin(angle) * 0.01), 0.1)
  803. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-90), 0, math.rad(220)), 0.1)
  804.  
  805. elseif animpose == "Moving" and anim == false and walking == true then -- walk
  806. anglespeed = 0.5
  807. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  808. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-10) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  809. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, -0.3) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  810. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.8, 0) * CFrame.Angles(math.rad(-7), math.rad(5), 0), 0.1)
  811. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(15), Head.RotVelocity.Y/25, 0), 0.1)
  812. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-110), -rootpart.RotVelocity.Y/25, math.rad(180)), 0.1)
  813. Humanoid.WalkSpeed = 6
  814.  
  815. elseif animpose == "Sprinting" and anim == false then -- sprint
  816. anglespeed = 0.5
  817. rm.C0 = clerp(rm.C0, CFrame.new(1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(-12) + math.sin(angle) * 0.02, math.rad(8)), 0.1)
  818. lm.C0 = clerp(lm.C0, CFrame.new(-1.5, 0.5, 0.2) * CFrame.Angles(math.rad(-40) + math.sin(angle) * 0.05, math.rad(12) + math.sin(angle) * 0.02, math.rad(-8)), 0.1)
  819. rlegm.C0 = clerp(rlegm.C0, CFrame.new(0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(-5), 0), 0.1)
  820. llegm.C0 = clerp(llegm.C0, CFrame.new(-0.5, -0.65, 0) * CFrame.Angles(math.rad(-15), math.rad(5), 0), 0.1)
  821. neck.C0 = clerp(neck.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(40), Head.RotVelocity.Y/15, 0), 0.1)
  822. rj.C0 = clerp(rj.C0, CFrame.new(0, 2 + math.sin(angle) * 0.1, 0) * CFrame.Angles(math.rad(-135), -rootpart.RotVelocity.Y/15, math.rad(180)), 0.1)
  823. Humanoid.WalkSpeed = 40
  824. end
  825. end)
  826.  
  827. wait(1)
  828. ------------------------------------------------------------------------------------
  829. local Character = game.Players.LocalPlayer.Character --game.Workspace.fefio92142
  830.  
  831.  
  832. -------------------------------------------------------------------------------------
  833. -------------------------------------------------------------------------------------
  834.  
  835. local Color = 0,0,0
  836.  
  837. local Num = 0.5
  838.  
  839. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  840. local Size = 0.8
  841. local Rate = 300
  842. -------------------------------------------------------------------------------------
  843. local Player = owner
  844. local Character = Player.Character
  845. Torso = Character:WaitForChild'Torso'
  846.  
  847. local Wing1 = Instance.new("Part",Character)
  848. Wing1.FormFactor = Enum.FormFactor.Custom
  849. Wing1.Size = Vector3.new(.2, .2, .2)
  850. Wing1.Name = "WIng_1"
  851.  
  852. local fire = Instance.new("ParticleEmitter", Wing1)
  853. fire.VelocitySpread = 0
  854. fire.Lifetime = NumberRange.new(2)
  855. fire.Acceleration = Vector3.new(0, 2, 2)
  856. fire.RotSpeed = NumberRange.new(10)
  857. fire.Rate = Rate
  858. fire.Rotation = NumberRange.new(151515)
  859. fire.Name = "Fire"
  860. fire.LightEmission = 0.78
  861. fire.LockedToPart = true
  862. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  863. fire.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  864. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  865.  
  866. local Wing2 = Wing1:Clone()
  867. Wing2.Parent = Torso
  868. local x,y,z = 0,-1,-6
  869.  
  870. Wld = function(a,b,cf)
  871. local Weld = Instance.new('Weld',a)
  872. Weld.Part0 = a
  873. Weld.Part1 = b
  874. Weld.C1 = cf
  875. return Weld
  876. end
  877.  
  878. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  879. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  880.  
  881.  
  882. game:service'RunService'.Stepped:connect(function()
  883. --z = 6+math.sin(tick()*2)
  884. y = -1+math.sin(tick()*Num)*Num2
  885. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  886. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  887. end)
  888. ------------------------------------------------------------------------------------------------
  889. local Player = owner
  890. local Character = Player.Character
  891. Torso = Character:WaitForChild'Torso'
  892.  
  893. local Wing1 = Instance.new("Part",Character)
  894. Wing1.FormFactor = Enum.FormFactor.Custom
  895. Wing1.Size = Vector3.new(.2, .2, .2)
  896. Wing1.Name = "WIng_1"
  897.  
  898. local fire = Instance.new("ParticleEmitter", Wing1)
  899. fire.VelocitySpread = 0
  900. fire.Lifetime = NumberRange.new(2.5)
  901. fire.Acceleration = Vector3.new(0, 4, 4)
  902. fire.RotSpeed = NumberRange.new(10)
  903. fire.Rate = Rate
  904. fire.Rotation = NumberRange.new(151515)
  905. fire.Name = "Fire"
  906. fire.LightEmission = 0.78
  907. fire.LockedToPart = true
  908. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  909. fire.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  910. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  911.  
  912. local Wing2 = Wing1:Clone()
  913. Wing2.Parent = Torso
  914. local x,y,z = 0,-1,-6
  915.  
  916. Wld = function(a,b,cf)
  917. local Weld = Instance.new('Weld',a)
  918. Weld.Part0 = a
  919. Weld.Part1 = b
  920. Weld.C1 = cf
  921. return Weld
  922. end
  923.  
  924. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  925. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  926.  
  927. print'Loaded'
  928.  
  929. game:service'RunService'.Stepped:connect(function()
  930. --z = 6+math.sin(tick()*2)
  931. y = -1+math.sin(tick()*Num)*Num2
  932. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  933. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  934. end)
  935.  
  936. ------------------------------------------------------------------------------------------------
  937. local Player = owner
  938. local Character = Player.Character
  939. Torso = Character:WaitForChild'Torso'
  940.  
  941. local Wing1 = Instance.new("Part",Character)
  942. Wing1.FormFactor = Enum.FormFactor.Custom
  943. Wing1.Size = Vector3.new(.2, .2, .2)
  944. Wing1.Name = "WIng_1"
  945.  
  946. local fire = Instance.new("ParticleEmitter", Wing1)
  947. fire.VelocitySpread = 0
  948. fire.Lifetime = NumberRange.new(2.8)
  949. fire.Acceleration = Vector3.new(0, 4, 4)
  950. fire.RotSpeed = NumberRange.new(10)
  951. fire.Rate = Rate
  952. fire.Rotation = NumberRange.new(151515)
  953. fire.Name = "Fire"
  954. fire.LightEmission = 0.78
  955. fire.LockedToPart = true
  956. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  957. fire.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  958. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  959.  
  960. local Wing2 = Wing1:Clone()
  961. Wing2.Parent = Torso
  962. local x,y,z = 0,-1,-6
  963.  
  964. Wld = function(a,b,cf)
  965. local Weld = Instance.new('Weld',a)
  966. Weld.Part0 = a
  967. Weld.Part1 = b
  968. Weld.C1 = cf
  969. return Weld
  970. end
  971.  
  972. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  973. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  974.  
  975. print'Loaded'
  976.  
  977. game:service'RunService'.Stepped:connect(function()
  978. --z = 6+math.sin(tick()*2)
  979. y = -1+math.sin(tick()*Num)*Num2
  980. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  981. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  982. end)
  983.  
  984. ------------------------------------------------------------------------------------------------
  985. local Player = owner
  986. local Character = Player.Character
  987. Torso = Character:WaitForChild'Torso'
  988.  
  989. local Wing1 = Instance.new("Part",Character)
  990. Wing1.FormFactor = Enum.FormFactor.Custom
  991. Wing1.Size = Vector3.new(.2, .2, .2)
  992. Wing1.Name = "WIng_1"
  993.  
  994. local fire = Instance.new("ParticleEmitter", Wing1)
  995. fire.VelocitySpread = 0
  996. fire.Lifetime = NumberRange.new(3)
  997. fire.Acceleration = Vector3.new(0, 4, 4)
  998. fire.RotSpeed = NumberRange.new(10)
  999. fire.Rate = Rate
  1000. fire.Rotation = NumberRange.new(151515)
  1001. fire.Name = "Fire"
  1002. fire.LightEmission = 0.78
  1003. fire.LockedToPart = true
  1004. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1005. fire.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  1006. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  1007.  
  1008. local Wing2 = Wing1:Clone()
  1009. Wing2.Parent = Torso
  1010. local x,y,z = 0,-1,-6
  1011.  
  1012. Wld = function(a,b,cf)
  1013. local Weld = Instance.new('Weld',a)
  1014. Weld.Part0 = a
  1015. Weld.Part1 = b
  1016. Weld.C1 = cf
  1017. return Weld
  1018. end
  1019.  
  1020. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  1021. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  1022.  
  1023. print'Loaded'
  1024.  
  1025. game:service'RunService'.Stepped:connect(function()
  1026. --z = 6+math.sin(tick()*2)
  1027. y = -1+math.sin(tick()*Num)*Num2
  1028. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  1029. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  1030. end)
  1031.  
  1032. ------------------------------------------------------------------------------------------------
  1033. local Player = owner
  1034. local Character = Player.Character
  1035. Torso = Character:WaitForChild'Torso'
  1036.  
  1037. local Wing1 = Instance.new("Part",Character)
  1038. Wing1.FormFactor = Enum.FormFactor.Custom
  1039. Wing1.Size = Vector3.new(.2, .2, .2)
  1040. Wing1.Name = "WIng_1"
  1041.  
  1042. local fire = Instance.new("ParticleEmitter", Wing1)
  1043. fire.VelocitySpread = 0
  1044. fire.Lifetime = NumberRange.new(3.1)
  1045. fire.Acceleration = Vector3.new(0, 4, 4)
  1046. fire.RotSpeed = NumberRange.new(10)
  1047. fire.Rate = Rate
  1048. fire.Rotation = NumberRange.new(151515)
  1049. fire.Name = "Fire"
  1050. fire.LightEmission = 0.78
  1051. fire.LockedToPart = true
  1052. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  1053. fire.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255, 0, 0))
  1054. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  1055.  
  1056. local Wing2 = Wing1:Clone()
  1057. Wing2.Parent = Torso
  1058. local x,y,z = 0,-1,-6
  1059.  
  1060. Wld = function(a,b,cf)
  1061. local Weld = Instance.new('Weld',a)
  1062. Weld.Part0 = a
  1063. Weld.Part1 = b
  1064. Weld.C1 = cf
  1065. return Weld
  1066. end
  1067.  
  1068. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  1069. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  1070.  
  1071. print'Loaded'
  1072.  
  1073. game:service'RunService'.Stepped:connect(function()
  1074. --z = 6+math.sin(tick()*2)
  1075. y = -1+math.sin(tick()*Num)*Num2
  1076. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  1077. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  1078. end)
  1079. ---------
  1080. p = owner
  1081. char = p.Character
  1082. char.Head.face.Texture = "rbxassetid://1655965204"
  1083. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement