Advertisement
jayrock3401

Untitled

Dec 25th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.89 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. local Player = owner
  88.  
  89. local Character = owner
  90.  
  91.  
  92. -------------------------------------------------------------------------------------
  93. -------------------------------------------------------------------------------------
  94.  
  95. local Color = ColorSequence.new(Color3.new(139,0,0), Color3.new(0,10,0))
  96.  
  97. local Num = 0.8
  98.  
  99. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  100. local Size = 0.12
  101. local Rate = 400
  102. -------------------------------------------------------------------------------------
  103. local Player = owner
  104. local Character = Player.Character
  105. Torso = Character:WaitForChild'Torso'
  106.  
  107. local Wing1 = Instance.new("Part",Character)
  108. Wing1.FormFactor = Enum.FormFactor.Custom
  109. Wing1.Size = Vector3.new(.2, .2, .2)
  110. Wing1.Name = "WIng_1"
  111.  
  112. local fire = Instance.new("ParticleEmitter", Wing1)
  113. fire.VelocitySpread = 10
  114. fire.Lifetime = NumberRange.new(2)
  115. fire.Acceleration = Vector3.new(0, 2, 2)
  116. fire.RotSpeed = NumberRange.new(10)
  117. fire.Rate = Rate
  118. fire.Rotation = NumberRange.new(151515)
  119. fire.Name = "Fire"
  120. fire.LightEmission = 0.8
  121. fire.LockedToPart = true
  122. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  123. fire.Color = Color
  124. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  125.  
  126. local Wing2 = Wing1:Clone()
  127. Wing2.Parent = Torso
  128. local x,y,z = 0,-1,-6
  129.  
  130. Wld = function(a,b,cf)
  131. local Weld = Instance.new('Weld',a)
  132. Weld.Part0 = a
  133. Weld.Part1 = b
  134. Weld.C1 = cf
  135. return Weld
  136. end
  137.  
  138. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  139. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  140.  
  141.  
  142. game:service'RunService'.Stepped:connect(function()
  143. --z = 6+math.sin(tick()*2)
  144. y = -1+math.sin(tick()*Num)*Num2
  145. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  146. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  147. end)
  148. ------------------------------------------------------------------------------------------------
  149. local Player = owner
  150. local Character = Player.Character
  151. Torso = Character:WaitForChild'Torso'
  152.  
  153. local Wing1 = Instance.new("Part",Character)
  154. Wing1.FormFactor = Enum.FormFactor.Custom
  155. Wing1.Size = Vector3.new(.2, .2, .2)
  156. Wing1.Name = "WIng_1"
  157.  
  158. local fire = Instance.new("ParticleEmitter", Wing1)
  159. fire.VelocitySpread = 10
  160. fire.Lifetime = NumberRange.new(2.5)
  161. fire.Acceleration = Vector3.new(0, 4, 4)
  162. fire.RotSpeed = NumberRange.new(10)
  163. fire.Rate = Rate
  164. fire.Rotation = NumberRange.new(151515)
  165. fire.Name = "Fire"
  166. fire.LightEmission = 0.8
  167. fire.LockedToPart = true
  168. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  169. fire.Color = Color
  170. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  171.  
  172. local Wing2 = Wing1:Clone()
  173. Wing2.Parent = Torso
  174. local x,y,z = 0,-1,-6
  175.  
  176. Wld = function(a,b,cf)
  177. local Weld = Instance.new('Weld',a)
  178. Weld.Part0 = a
  179. Weld.Part1 = b
  180. Weld.C1 = cf
  181. return Weld
  182. end
  183.  
  184. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  185. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  186.  
  187. print'Loaded'
  188.  
  189. game:service'RunService'.Stepped:connect(function()
  190. --z = 6+math.sin(tick()*2)
  191. y = -1+math.sin(tick()*Num)*Num2
  192. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  193. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  194. end)
  195.  
  196. ------------------------------------------------------------------------------------------------
  197. local Player = owner
  198. local Character = Player.Character
  199. Torso = Character:WaitForChild'Torso'
  200.  
  201. local Wing1 = Instance.new("Part",Character)
  202. Wing1.FormFactor = Enum.FormFactor.Custom
  203. Wing1.Size = Vector3.new(.2, .2, .2)
  204. Wing1.Name = "WIng_1"
  205.  
  206. local fire = Instance.new("ParticleEmitter", Wing1)
  207. fire.VelocitySpread = 10
  208. fire.Lifetime = NumberRange.new(2.8)
  209. fire.Acceleration = Vector3.new(0, 4, 4)
  210. fire.RotSpeed = NumberRange.new(10)
  211. fire.Rate = Rate
  212. fire.Rotation = NumberRange.new(151515)
  213. fire.Name = "Fire"
  214. fire.LightEmission = 0.8
  215. fire.LockedToPart = true
  216. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  217. fire.Color = Color
  218. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  219.  
  220. local Wing2 = Wing1:Clone()
  221. Wing2.Parent = Torso
  222. local x,y,z = 0,-1,-6
  223.  
  224. Wld = function(a,b,cf)
  225. local Weld = Instance.new('Weld',a)
  226. Weld.Part0 = a
  227. Weld.Part1 = b
  228. Weld.C1 = cf
  229. return Weld
  230. end
  231.  
  232. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  233. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  234.  
  235. print'Loaded'
  236.  
  237. game:service'RunService'.Stepped:connect(function()
  238. --z = 6+math.sin(tick()*2)
  239. y = -1+math.sin(tick()*Num)*Num2
  240. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  241. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  242. end)
  243.  
  244. ------------------------------------------------------------------------------------------------
  245. local Player = owner
  246. local Character = Player.Character
  247. Torso = Character:WaitForChild'Torso'
  248.  
  249. local Wing1 = Instance.new("Part",Character)
  250. Wing1.FormFactor = Enum.FormFactor.Custom
  251. Wing1.Size = Vector3.new(.2, .2, .2)
  252. Wing1.Name = "WIng_1"
  253.  
  254. local fire = Instance.new("ParticleEmitter", Wing1)
  255. fire.VelocitySpread = 10
  256. fire.Lifetime = NumberRange.new(3)
  257. fire.Acceleration = Vector3.new(0, 4, 4)
  258. fire.RotSpeed = NumberRange.new(10)
  259. fire.Rate = Rate
  260. fire.Rotation = NumberRange.new(151515)
  261. fire.Name = "Fire"
  262. fire.LightEmission = 0.8
  263. fire.LockedToPart = true
  264. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  265. fire.Color = Color
  266. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  267.  
  268. local Wing2 = Wing1:Clone()
  269. Wing2.Parent = Torso
  270. local x,y,z = 0,-1,-6
  271.  
  272. Wld = function(a,b,cf)
  273. local Weld = Instance.new('Weld',a)
  274. Weld.Part0 = a
  275. Weld.Part1 = b
  276. Weld.C1 = cf
  277. return Weld
  278. end
  279.  
  280. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  281. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  282.  
  283. print'Loaded'
  284.  
  285. game:service'RunService'.Stepped:connect(function()
  286. --z = 6+math.sin(tick()*2)
  287. y = -1+math.sin(tick()*Num)*Num2
  288. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  289. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  290. end)
  291.  
  292. ------------------------------------------------------------------------------------------------
  293. local Player = owner
  294. local Character = Player.Character
  295. Torso = Character:WaitForChild'Torso'
  296.  
  297. local Wing1 = Instance.new("Part",Character)
  298. Wing1.FormFactor = Enum.FormFactor.Custom
  299. Wing1.Size = Vector3.new(.2, .2, .2)
  300. Wing1.Name = "WIng_1"
  301.  
  302. local fire = Instance.new("ParticleEmitter", Wing1)
  303. fire.VelocitySpread = 10
  304. fire.Lifetime = NumberRange.new(3.1)
  305. fire.Acceleration = Vector3.new(0, 4, 4)
  306. fire.RotSpeed = NumberRange.new(10)
  307. fire.Rate = Rate
  308. fire.Rotation = NumberRange.new(151515)
  309. fire.Name = "Fire"
  310. fire.LightEmission = 0.8
  311. fire.LockedToPart = true
  312. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  313. fire.Color = Color
  314. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  315.  
  316. local Wing2 = Wing1:Clone()
  317. Wing2.Parent = Torso
  318. local x,y,z = 0,-1,-6
  319.  
  320. Wld = function(a,b,cf)
  321. local Weld = Instance.new('Weld',a)
  322. Weld.Part0 = a
  323. Weld.Part1 = b
  324. Weld.C1 = cf
  325. return Weld
  326. end
  327.  
  328. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  329. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  330.  
  331. print'Loaded'
  332.  
  333. game:service'RunService'.Stepped:connect(function()
  334. --z = 6+math.sin(tick()*2)
  335. y = -1+math.sin(tick()*Num)*Num2
  336. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  337. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  338. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement