Advertisement
5325325325

Untitled

Oct 11th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.99 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 = owner
  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 h,t
  75. --Give the server mouse data 30 times every second, but only if the values changed
  76. --If player is not moving their mouse, client won't fire events
  77. while wait(1/30) do
  78. if h~=Mouse.Hit or t~=Mouse.Target then
  79. h,t=Mouse.Hit,Mouse.Target
  80. Event:FireServer({isMouse=true,Target=t,Hit=h})
  81. end
  82. end]==],Player.Character)
  83. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  84. end
  85.  
  86. ---CREATED BY SoIHeardYouLikeMemes/Kidd_Anonymouse/Teen_Anonymouse/Adult_Anonymouse/FetusAnonymouse---
  87. ---those are all my alts btw.---
  88. local you = owner
  89. local char = you.Character
  90. local firing = false
  91.  
  92. local m = Instance.new("Model",char)
  93. local illum = Instance.new("Part",m)
  94. illum.CanCollide = false
  95. illum.BottomSurface = "Smooth"
  96. illum.TopSurface = "Smooth"
  97. illum.Size = Vector3.new(0.2, 0.2, 0.2)
  98. illum.Anchored = true
  99.  
  100. local s = Instance.new("Sound",m)
  101. s.SoundId = "rbxassetid://185492305"
  102. s.Volume = 0.8
  103. s.Looped = true
  104. s:Play()
  105. local SP = Instance.new("SpecialMesh",illum)
  106. SP.MeshId = "rbxassetid://438530093"
  107. SP.TextureId = "rbxassetid://438530120"
  108. SP.Scale = Vector3.new(0.2, 0.2, 0.2)
  109. SP.Offset = Vector3.new(0.5, 8, 0.03)
  110.  
  111.  
  112. local MousePart = Instance.new("Part",m)
  113. MousePart.CanCollide = false
  114. MousePart.BottomSurface = "Smooth"
  115. MousePart.TopSurface = "Smooth"
  116. MousePart.Size = Vector3.new(0.2, 0.2, 0.2)
  117. MousePart.Anchored = true
  118.  
  119.  
  120. local TipPart = Instance.new("Part",m)
  121. TipPart.CanCollide = false
  122. TipPart.BottomSurface = "Smooth"
  123. TipPart.TopSurface = "Smooth"
  124. TipPart.BrickColor = BrickColor.new("Lime green")
  125. TipPart.Material = "Neon"
  126. TipPart.FormFactor = "Custom"
  127. TipPart.Shape = "Ball"
  128. TipPart.Size = Vector3.new(2, 2, 2)
  129. TipPart.Anchored = true
  130. TipPart.Locked = true
  131. TipPart.CanCollide = false
  132. TipPart.Transparency = 0.5
  133.  
  134. local PE1 = Instance.new("ParticleEmitter",TipPart) -- dorritoes
  135. PE1.Texture = "rbxassetid://686815657"
  136. PE1.LightEmission = 0.3
  137. PE1.Acceleration = Vector3.new(0,-2,0)
  138. PE1.Lifetime = NumberRange.new(5,7)
  139. PE1.Speed = NumberRange.new(3,5)
  140. PE1.Rate = 30
  141. PE1.VelocitySpread = 50
  142.  
  143. local PE2 = Instance.new("ParticleEmitter",TipPart) --illuminati
  144. PE2.Texture = "rbxassetid://686815657"
  145. PE2.LightEmission = 1
  146. PE2.Acceleration = Vector3.new(0,-2,0)
  147. PE2.Lifetime = NumberRange.new(5,7)
  148. PE2.Speed = NumberRange.new(3,5)
  149. PE2.Rate = 10
  150. PE2.VelocitySpread = 50
  151.  
  152. local PE3 = Instance.new("ParticleEmitter",TipPart) --HitMarkers
  153. PE3.Texture = "rbxassetid://686815657"
  154. PE3.LightEmission = 1
  155. PE3.Acceleration = Vector3.new(0,-2,0)
  156. PE3.Lifetime = NumberRange.new(5,7)
  157. PE3.Speed = NumberRange.new(3,5)
  158. PE3.Rate = 10
  159. PE3.VelocitySpread = 50
  160.  
  161. local PE4 = Instance.new("ParticleEmitter",MousePart) -- dorritoes
  162. PE4.Texture = "rbxassetid://484383135"
  163. PE4.Acceleration = Vector3.new(0,-10,0)
  164. PE4.Lifetime = NumberRange.new(2,4)
  165. PE4.Speed = NumberRange.new(8,10)
  166. PE4.Rate = 100
  167. PE4.VelocitySpread = 50
  168.  
  169. local PE5 = Instance.new("ParticleEmitter",MousePart) --illuminati
  170. PE5.Texture = "rbxassetid://686815657"
  171. PE5.Acceleration = Vector3.new(0,-10,0)
  172. PE5.Lifetime = NumberRange.new(2,4)
  173. PE5.Speed = NumberRange.new(8,10)
  174. PE5.Rate = 100
  175. PE5.VelocitySpread = 50
  176.  
  177. local PE6 = Instance.new("ParticleEmitter",MousePart) --HitMarkers
  178. PE6.Texture = "rbxassetid://644165701"
  179. PE6.Acceleration = Vector3.new(0,-10,0)
  180. PE6.Lifetime = NumberRange.new(2,4)
  181. PE6.Speed = NumberRange.new(8,10)
  182. PE6.Rate = 100
  183. PE6.VelocitySpread = 50
  184.  
  185. PE1.Enabled = false
  186. PE2.Enabled = false
  187. PE3.Enabled = false
  188. PE4.Enabled = false
  189. PE5.Enabled = false
  190. PE6.Enabled = false
  191.  
  192. function drawlazer(p1,p2)
  193. part = Instance.new("Part", m)
  194. part.Name = "Location"
  195. part.BottomSurface = 0
  196. part.TopSurface = 0
  197. part.BrickColor = BrickColor.new("Lime green")
  198. part.Material = "Neon"
  199. part.FormFactor = "Custom"
  200. part.Shape = "Ball"
  201. part.Size = Vector3.new(4, 4, 4)
  202. part.Anchored = true
  203. part.Locked = true
  204. part.CanCollide = false
  205. part.Transparency = 0.5
  206. part.CFrame = CFrame.new(p1.Position.x,p1.Position.y,p1.Position.z)
  207.  
  208. obj = part
  209. local lastPos = obj.CFrame.p
  210. objC = obj:Clone()
  211. objC.Name = "Line"
  212. objC.Parent = m
  213. objC.Shape = "Ball"
  214. objC.Anchored = true
  215. local distance = (p2.Position- obj.CFrame.p).magnitude
  216. objC.Size = Vector3.new(10,10,distance)
  217. objC.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  218. lastPos = obj.CFrame.p
  219. objCC1 = objC:Clone()
  220. objCC1.Parent = objC
  221. objCC1.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2.5)
  222. objCC1.Size = Vector3.new(4,4,distance/2)
  223. objCC1.Name = "LineC1"
  224.  
  225. objCC2 = objC:Clone()
  226. objCC2.Parent = objC
  227. objCC2.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/1.5)
  228. objCC2.Size = Vector3.new(4,4,distance/2)
  229. objCC2.Name = "LineC2"
  230. objCC2:ClearAllChildren()
  231.  
  232. end
  233.  
  234. function drawlazer2(p1,p2)
  235. part = m:FindFirstChild("Location")
  236. part.CFrame = CFrame.new(p1.Position.x,p1.Position.y,p1.Position.z)
  237. obj = part
  238. local distance = (p2.Position- obj.CFrame.p).magnitude
  239. objC = m.Line:Clone()
  240. objC.Name = "Line2"
  241. objC.Parent = m
  242. objC.Size = Vector3.new(4,4,distance)
  243. objC.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  244.  
  245. objCC1 = objC.LineC1
  246.  
  247. objCC1.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2.5)
  248. objCC1.Size = Vector3.new(4,4,distance/2)
  249.  
  250.  
  251. objCC2 = objC.LineC2
  252.  
  253. objCC2.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/1.5)
  254. objCC2.Size = Vector3.new(4,4,distance/2)
  255.  
  256.  
  257. m.Line:remove()
  258.  
  259. objC.Name = "Line"
  260. for _,v in pairs(game.Players:GetPlayers()) do
  261.  
  262. if v ~= you then
  263. local d = (part.Position- v.Character:WaitForChild("Torso").CFrame.p).magnitude
  264. if d <= 5 then
  265. v.Character:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  266. end
  267. end
  268. --wait()
  269. end
  270.  
  271. end
  272.  
  273.  
  274. function despawn1(part1,part2,length)
  275.  
  276. for i = 10,1,-1 do
  277.  
  278. part1.Transparency = part1.Transparency + 0.1
  279. part1.Size = part1.Size + Vector3.new(0.2,0.2,length)
  280. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  281.  
  282. wait(0.01)
  283. end
  284. part1:remove()
  285.  
  286. for i = 10,1,-1 do
  287.  
  288. part2.Transparency = part2.Transparency + 0.1
  289.  
  290. wait(0.01)
  291. end
  292. part2:remove()
  293.  
  294. end
  295.  
  296. function despawn2(part1,length)
  297.  
  298. for i = 10,1,-1 do
  299.  
  300. part1.Transparency = part1.Transparency + 0.1
  301. part1.Size = part1.Size + Vector3.new(0.2,0,length)
  302. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  303.  
  304. wait(0.01)
  305. end
  306. part1:remove()
  307. end
  308.  
  309.  
  310.  
  311. function snipe(T)
  312.  
  313. part = Instance.new("Part", m)
  314. part.Name = "Sniper"
  315. part.BottomSurface = 0
  316. part.TopSurface = 0
  317. part.BrickColor = BrickColor.new("Really black")
  318. part.Material = "Neon"
  319. part.FormFactor = "Custom"
  320. part.Size = Vector3.new(1, 1, 3)
  321. part.Anchored = true
  322. part.Locked = true
  323. part.CanCollide = false
  324. part.Transparency = 0
  325.  
  326. local SP = Instance.new("SpecialMesh",part)
  327. SP.MeshId = "rbxassetid://685827900"
  328. SP.Scale = Vector3.new(0.05, 0.05, 0.05)
  329. SP.Offset = Vector3.new(0, -0.3, 3.05)
  330.  
  331. local S=part
  332.  
  333. part.Position = char.Torso.Position + Vector3.new(math.random(-5,5),math.random(3,8),math.random(-5,5))
  334. part.CFrame = CFrame.new(part.Position,T.Position)
  335.  
  336.  
  337. obj = part
  338. local lastPos = obj.CFrame.p
  339. objC = obj:Clone()
  340. objC.Mesh:remove()
  341. wait(0.05)
  342. objC.Parent = part
  343. objC.Shape = "Ball"
  344. objC.FormFactor = "Custom"
  345. objC.Anchored = true
  346. objC.BrickColor = BrickColor.new("New Yeller")
  347. local distance = (T.Position- obj.CFrame.p).magnitude
  348. objC.Size = Vector3.new(0.2,0.2,distance)
  349. objC.CFrame = CFrame.new(T.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  350. local s = Instance.new("Sound",part)
  351. s.SoundId = "rbxassetid://680140087"
  352. s.Volume = 1
  353. s.PlayOnRemove = true
  354. s:remove()
  355. despawn1(objC,part,distance)
  356. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  357. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(20)
  358. local PETemp = Instance.new("ParticleEmitter",mouse.Target) --HitMarkers
  359. PETemp.Texture = "rbxassetid://644165701"
  360. PETemp.Acceleration = Vector3.new(0,-10,0)
  361. PETemp.Lifetime = NumberRange.new(2,4)
  362. PETemp.Speed = NumberRange.new(8,10)
  363. PETemp.Rate = 100
  364. PETemp.VelocitySpread = 50
  365. PETemp.Enabled = true
  366. wait(0.1)
  367. PETemp.Enabled = false
  368. end
  369. end
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376. function ThrowDorito(a,b)
  377. if m:FindFirstChild("Throw") == nil then
  378. local animation=Instance.new("Animation",char:FindFirstChildOfClass("Humanoid"))
  379. animation.Name="Throw"
  380. animation.AnimationId="http://www.roblox.com/asset/?id=207107855"
  381. anim=char:FindFirstChildOfClass("Humanoid"):LoadAnimation(animation)
  382. anim:Play()
  383. else
  384. local animation=char:FindFirstChildOfClass("Humanoid").Throw
  385. anim=char:FindFirstChildOfClass("Humanoid"):LoadAnimation(animation)
  386. anim:Play()
  387. end
  388.  
  389. part = Instance.new("Part", m)
  390. part.Name = "Dorito"
  391. part.BottomSurface = 0
  392. part.TopSurface = 0
  393. part.BrickColor = BrickColor.new("Neon orange")
  394. part.Material = "Neon"
  395. part.FormFactor = "Custom"
  396. part.Shape = "Ball"
  397. part.Size = Vector3.new(1,0.2,1)
  398. part.Anchored = true
  399. part.Locked = true
  400. part.CanCollide = false
  401. part.Transparency = 0
  402. part.CFrame = CFrame.new(a.Position.x,a.Position.y,a.Position.z)
  403. local SP = Instance.new("SpecialMesh",part)
  404. SP.MeshId = "rbxassetid://627995517"
  405. SP.Scale = Vector3.new(1, 1, 1)
  406.  
  407.  
  408. obj = part
  409. local lastPos = obj.CFrame.p
  410. objC = obj:Clone()
  411. objC.Name = "DoritoTrail"
  412. objC.Mesh:remove()
  413. objC.Parent = m
  414. objC.FormFactor = "Custom"
  415. objC.Anchored = true
  416. objC.Transparency = 0.5
  417. objC.BrickColor = BrickColor.new("CGA brown")
  418.  
  419. local distance = (b.Position- obj.CFrame.p).magnitude
  420. objC.Size = Vector3.new(1,0.2,distance)
  421. objC.CFrame = CFrame.new(b.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  422. lastPos = obj.CFrame.p
  423. obj.CFrame = CFrame.new(b.Position,obj.Position)*CFrame.new(0,0,-distance)
  424. obj.CFrame = obj.CFrame * CFrame.fromEulerAnglesXYZ(0,math.random(1,99),0)
  425. objC.Size = Vector3.new(1,0.2,distance)
  426. print(distance)
  427. local target = mouse.Target
  428. local weld = Instance.new("ManualWeld")
  429. weld.Part0 = part
  430. weld.Part1 = target
  431. weld.C0 = CFrame.new()
  432. weld.C1 = target.CFrame:inverse() * part.CFrame
  433. weld.Parent = part
  434. part.Anchored = false
  435. if target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  436. target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  437. end
  438. despawn2(objC,distance)
  439. end
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449. function shoot()
  450. print("FIRE!")
  451. TipPart.Transparency = 0.5
  452. if m:FindFirstChild("Line") == nil then
  453.  
  454. drawlazer(MousePart,TipPart)
  455. else
  456. drawlazer2(MousePart,TipPart)
  457. end
  458. local s = Instance.new("Sound",TipPart)
  459. s.SoundId = "rbxassetid://705502934"
  460. s.Volume = 2.5
  461. s.PlayOnRemove = true
  462. s:remove()
  463. wait()
  464. end
  465.  
  466. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS....KEYS....KEYSKEYSKEYS......--
  467. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS....KEYS..KEYSKEYS..KEYSKEYS..--
  468. --.KEYS..KEYS......KEYS..............KEYSKEYS...KEYS...........KEYS..--
  469. --.KEYS..KEYS......KEYS..............KEYSKEYS...KEYSKEYS.............--
  470. --.KEYSKEYS........KEYSKEYS............KEYS........KEYSKEYS..........--
  471. --.KEYSKEYS........KEYSKEYS............KEYS............KEYSKEYS......--
  472. --.KEYS..KEYS......KEYS..............KEYS..................KEYSKEYS..--
  473. --.KEYS..KEYS......KEYS..............KEYS.......KEYS...........KEYS..--
  474. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS.........KEYSKEYS..KEYSKEYS...--
  475. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS............KEYSKEYSKEYS......--
  476. mouse.Button1Up:connect(function()
  477. firing = false
  478. print("Stop")
  479. PE1.Enabled = false
  480. PE2.Enabled = false
  481. PE3.Enabled = false
  482. PE4.Enabled = false
  483. PE5.Enabled = false
  484. PE6.Enabled = false
  485. if m:FindFirstChild("Line") ~= nil then
  486. m.Line:remove()
  487. m.Location:remove()
  488. end
  489. TipPart.Transparency = 1
  490. repeat illum.CFrame = illum.CFrame * CFrame.fromEulerAnglesXYZ(0,0.05,0) illum.Position = char.Torso.Position + Vector3.new(0,.01,0) if m:FindFirstChild("Line") ~= nil then m:FindFirstChild("Line"):remove() end if m:FindFirstChild("Location") ~= nil then m:FindFirstChild("Location"):remove() end wait()
  491. until firing == true
  492. end)
  493.  
  494. mouse.Button1Down:connect(function()
  495. firing = true
  496. PE1.Enabled = true
  497. --PE2.Enabled = true
  498. --PE3.Enabled = true
  499. PE4.Enabled = true
  500. PE5.Enabled = true
  501. PE6.Enabled = true
  502. repeat MousePart.CFrame = CFrame.new(mouse.Hit.p) TipPart.Position = char.Head.Position + Vector3.new(0,9,0) illum.CFrame = illum.CFrame * CFrame.fromEulerAnglesXYZ(0,0.05,0) illum.Position = char.Torso.Position + Vector3.new(0,.01,0) shoot() wait()
  503. until firing == false
  504.  
  505. end)
  506.  
  507. mouse.KeyDown:connect(function(key)
  508. if key == "q" and firing == false then
  509. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  510. snipe(MousePart)
  511. print("Snipe")
  512. elseif key == "e" and firing == false then
  513. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  514. ThrowDorito(MousePart,char:FindFirstChild("Right Arm"))
  515. print("Dorito")
  516. end
  517.  
  518. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement