Advertisement
jayrock3401

Untitled

Dec 25th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.89 KB | None | 0 0
  1.  
  2. -- This script has been converted to FE by iPxter
  3.  
  4.  
  5. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  6. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  7. do
  8. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  9. script.Parent = Player.Character
  10.  
  11. --RemoteEvent for communicating
  12. local Event = Instance.new("RemoteEvent")
  13. Event.Name = "UserInput_Event"
  14.  
  15. --Fake event to make stuff like Mouse.KeyDown work
  16. local function fakeEvent()
  17. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  18. t.connect = t.Connect
  19. return t
  20. end
  21.  
  22. --Creating fake input objects with fake variables
  23. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  24. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  25. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  26. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  27. end}
  28. --Merged 2 functions into one by checking amount of arguments
  29. CAS.UnbindAction = CAS.BindAction
  30.  
  31. --This function will trigger the events that have been :Connect()'ed
  32. local function te(self,ev,...)
  33. local t = m[ev]
  34. if t and t._fakeEvent and t.Function then
  35. t.Function(...)
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=Player then return end
  43. if io.isMouse then
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. else
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. for _,t in pairs(CAS.Actions) do
  52. for _,k in pairs(t.Keys) do
  53. if k==io.KeyCode then
  54. t.Function(t.Name,io.UserInputState,io)
  55. end
  56. end
  57. end
  58. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  59. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  60. end
  61. end)
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local Mouse = Player:GetMouse()
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  86. end
  87.  
  88. local Player = owner
  89.  
  90. local Character = owner
  91.  
  92.  
  93. -------------------------------------------------------------------------------------
  94. -------------------------------------------------------------------------------------
  95.  
  96. local Color = ColorSequence.new(Color3.new(10,0,0), Color3.new(0,0,0))
  97.  
  98. local Num = 0.8
  99.  
  100. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  101. local Size = 0.8
  102. local Rate = 400
  103. -------------------------------------------------------------------------------------
  104. local Player = owner
  105. local Character = Player.Character
  106. Torso = Character:WaitForChild'Torso'
  107.  
  108. local Wing1 = Instance.new("Part",Character)
  109. Wing1.FormFactor = Enum.FormFactor.Custom
  110. Wing1.Size = Vector3.new(.2, .2, .2)
  111. Wing1.Name = "WIng_1"
  112.  
  113. local fire = Instance.new("ParticleEmitter", Wing1)
  114. fire.VelocitySpread = 10
  115. fire.Lifetime = NumberRange.new(2)
  116. fire.Acceleration = Vector3.new(0, 2, 2)
  117. fire.RotSpeed = NumberRange.new(10)
  118. fire.Rate = Rate
  119. fire.Rotation = NumberRange.new(151515)
  120. fire.Name = "Fire"
  121. fire.LightEmission = 0.8
  122. fire.LockedToPart = true
  123. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  124. fire.Color = Color
  125. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  126.  
  127. local Wing2 = Wing1:Clone()
  128. Wing2.Parent = Torso
  129. local x,y,z = 0,-1,-6
  130.  
  131. Wld = function(a,b,cf)
  132. local Weld = Instance.new('Weld',a)
  133. Weld.Part0 = a
  134. Weld.Part1 = b
  135. Weld.C1 = cf
  136. return Weld
  137. end
  138.  
  139. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  140. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  141.  
  142.  
  143. game:service'RunService'.Stepped:connect(function()
  144. --z = 6+math.sin(tick()*2)
  145. y = -1+math.sin(tick()*Num)*Num2
  146. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  147. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  148. end)
  149. ------------------------------------------------------------------------------------------------
  150. local Player = owner
  151. local Character = Player.Character
  152. Torso = Character:WaitForChild'Torso'
  153.  
  154. local Wing1 = Instance.new("Part",Character)
  155. Wing1.FormFactor = Enum.FormFactor.Custom
  156. Wing1.Size = Vector3.new(.2, .2, .2)
  157. Wing1.Name = "WIng_1"
  158.  
  159. local fire = Instance.new("ParticleEmitter", Wing1)
  160. fire.VelocitySpread = 10
  161. fire.Lifetime = NumberRange.new(2.5)
  162. fire.Acceleration = Vector3.new(0, 4, 4)
  163. fire.RotSpeed = NumberRange.new(10)
  164. fire.Rate = Rate
  165. fire.Rotation = NumberRange.new(151515)
  166. fire.Name = "Fire"
  167. fire.LightEmission = 0.8
  168. fire.LockedToPart = true
  169. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  170. fire.Color = Color
  171. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  172.  
  173. local Wing2 = Wing1:Clone()
  174. Wing2.Parent = Torso
  175. local x,y,z = 0,-1,-6
  176.  
  177. Wld = function(a,b,cf)
  178. local Weld = Instance.new('Weld',a)
  179. Weld.Part0 = a
  180. Weld.Part1 = b
  181. Weld.C1 = cf
  182. return Weld
  183. end
  184.  
  185. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  186. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  187.  
  188. print'Loaded'
  189.  
  190. game:service'RunService'.Stepped:connect(function()
  191. --z = 6+math.sin(tick()*2)
  192. y = -1+math.sin(tick()*Num)*Num2
  193. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  194. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  195. end)
  196.  
  197. ------------------------------------------------------------------------------------------------
  198. local Player = owner
  199. local Character = Player.Character
  200. Torso = Character:WaitForChild'Torso'
  201.  
  202. local Wing1 = Instance.new("Part",Character)
  203. Wing1.FormFactor = Enum.FormFactor.Custom
  204. Wing1.Size = Vector3.new(.2, .2, .2)
  205. Wing1.Name = "WIng_1"
  206.  
  207. local fire = Instance.new("ParticleEmitter", Wing1)
  208. fire.VelocitySpread = 10
  209. fire.Lifetime = NumberRange.new(2.8)
  210. fire.Acceleration = Vector3.new(0, 4, 4)
  211. fire.RotSpeed = NumberRange.new(10)
  212. fire.Rate = Rate
  213. fire.Rotation = NumberRange.new(151515)
  214. fire.Name = "Fire"
  215. fire.LightEmission = 0.8
  216. fire.LockedToPart = true
  217. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  218. fire.Color = Color
  219. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  220.  
  221. local Wing2 = Wing1:Clone()
  222. Wing2.Parent = Torso
  223. local x,y,z = 0,-1,-6
  224.  
  225. Wld = function(a,b,cf)
  226. local Weld = Instance.new('Weld',a)
  227. Weld.Part0 = a
  228. Weld.Part1 = b
  229. Weld.C1 = cf
  230. return Weld
  231. end
  232.  
  233. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  234. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  235.  
  236. print'Loaded'
  237.  
  238. game:service'RunService'.Stepped:connect(function()
  239. --z = 6+math.sin(tick()*2)
  240. y = -1+math.sin(tick()*Num)*Num2
  241. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  242. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  243. end)
  244.  
  245. ------------------------------------------------------------------------------------------------
  246. local Player = owner
  247. local Character = Player.Character
  248. Torso = Character:WaitForChild'Torso'
  249.  
  250. local Wing1 = Instance.new("Part",Character)
  251. Wing1.FormFactor = Enum.FormFactor.Custom
  252. Wing1.Size = Vector3.new(.2, .2, .2)
  253. Wing1.Name = "WIng_1"
  254.  
  255. local fire = Instance.new("ParticleEmitter", Wing1)
  256. fire.VelocitySpread = 10
  257. fire.Lifetime = NumberRange.new(3)
  258. fire.Acceleration = Vector3.new(0, 4, 4)
  259. fire.RotSpeed = NumberRange.new(10)
  260. fire.Rate = Rate
  261. fire.Rotation = NumberRange.new(151515)
  262. fire.Name = "Fire"
  263. fire.LightEmission = 0.8
  264. fire.LockedToPart = true
  265. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  266. fire.Color = Color
  267. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  268.  
  269. local Wing2 = Wing1:Clone()
  270. Wing2.Parent = Torso
  271. local x,y,z = 0,-1,-6
  272.  
  273. Wld = function(a,b,cf)
  274. local Weld = Instance.new('Weld',a)
  275. Weld.Part0 = a
  276. Weld.Part1 = b
  277. Weld.C1 = cf
  278. return Weld
  279. end
  280.  
  281. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  282. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  283.  
  284. print'Loaded'
  285.  
  286. game:service'RunService'.Stepped:connect(function()
  287. --z = 6+math.sin(tick()*2)
  288. y = -1+math.sin(tick()*Num)*Num2
  289. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  290. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  291. end)
  292.  
  293. ------------------------------------------------------------------------------------------------
  294. local Player = owner
  295. local Character = Player.Character
  296. Torso = Character:WaitForChild'Torso'
  297.  
  298. local Wing1 = Instance.new("Part",Character)
  299. Wing1.FormFactor = Enum.FormFactor.Custom
  300. Wing1.Size = Vector3.new(.2, .2, .2)
  301. Wing1.Name = "WIng_1"
  302.  
  303. local fire = Instance.new("ParticleEmitter", Wing1)
  304. fire.VelocitySpread = 10
  305. fire.Lifetime = NumberRange.new(3.1)
  306. fire.Acceleration = Vector3.new(0, 4, 4)
  307. fire.RotSpeed = NumberRange.new(10)
  308. fire.Rate = Rate
  309. fire.Rotation = NumberRange.new(151515)
  310. fire.Name = "Fire"
  311. fire.LightEmission = 0.8
  312. fire.LockedToPart = true
  313. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  314. fire.Color = Color
  315. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(1, Size)})
  316.  
  317. local Wing2 = Wing1:Clone()
  318. Wing2.Parent = Torso
  319. local x,y,z = 0,-1,-6
  320.  
  321. Wld = function(a,b,cf)
  322. local Weld = Instance.new('Weld',a)
  323. Weld.Part0 = a
  324. Weld.Part1 = b
  325. Weld.C1 = cf
  326. return Weld
  327. end
  328.  
  329. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  330. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  331.  
  332. print'Loaded'
  333.  
  334. game:service'RunService'.Stepped:connect(function()
  335. --z = 6+math.sin(tick()*2)
  336. y = -1+math.sin(tick()*Num)*Num2
  337. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  338. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  339. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement