Advertisement
5325325325

Untitled

Nov 17th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.97 KB | None | 0 0
  1. ---CREATED BY SoIHeardYouLikeMemes/Kidd_Anonymouse/Teen_Anonymouse/Adult_Anonymouse/FetusAnonymouse---
  2. ---those are all my alts btw.---
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. script.Parent = Player.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent and t.Function then
  33. t.Function(...)
  34. end
  35. end
  36. m.TrigEvent = te
  37. UIS.TrigEvent = te
  38.  
  39. Event.OnServerEvent:Connect(function(plr,io)
  40. if plr~=Player then return end
  41. if io.isMouse then
  42. m.Target = io.Target
  43. m.Hit = io.Hit
  44. else
  45. local b = io.UserInputState == Enum.UserInputState.Begin
  46. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  47. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  48. end
  49. for _,t in pairs(CAS.Actions) do
  50. for _,k in pairs(t.Keys) do
  51. if k==io.KeyCode then
  52. t.Function(t.Name,io.UserInputState,io)
  53. end
  54. end
  55. end
  56. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  57. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  58. end
  59. end)
  60. Event.Parent = NLS([==[
  61. local Player = game:GetService("Players").LocalPlayer
  62. local Event = script:WaitForChild("UserInput_Event")
  63.  
  64. local UIS = game:GetService("UserInputService")
  65. local input = function(io,a)
  66. if a then return end
  67. --Since InputObject is a client-side instance, we create and pass table instead
  68. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  69. end
  70. UIS.InputBegan:Connect(input)
  71. UIS.InputEnded:Connect(input)
  72.  
  73. local Mouse = Player:GetMouse()
  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. local you = owner
  86. local char = you.Character
  87. local firing = false
  88.  
  89. local m = Instance.new("Model",char)
  90. local illum = Instance.new("Part",m)
  91. illum.CanCollide = false
  92. illum.BottomSurface = "Smooth"
  93. illum.TopSurface = "Smooth"
  94. illum.Size = Vector3.new(0.2, 0.2, 0.2)
  95. illum.Anchored = true
  96.  
  97. local s = Instance.new("Sound",m)
  98. s.SoundId = "rbxassetid://744418708"
  99. s.Volume = 0.8
  100. s.Looped = true
  101. s:Play()
  102. local SP = Instance.new("SpecialMesh",illum)
  103. SP.MeshId = "rbxassetid://438530093"
  104. SP.TextureId = "rbxassetid://438530120"
  105. SP.Scale = Vector3.new(0.2, 0.2, 0.2)
  106. SP.Offset = Vector3.new(0.5, 8, 0.03)
  107.  
  108.  
  109. local MousePart = Instance.new("Part",m)
  110. MousePart.CanCollide = false
  111. MousePart.BottomSurface = "Smooth"
  112. MousePart.TopSurface = "Smooth"
  113. MousePart.Size = Vector3.new(0.2, 0.2, 0.2)
  114. MousePart.Anchored = true
  115.  
  116.  
  117. local TipPart = Instance.new("Part",m)
  118. TipPart.CanCollide = false
  119. TipPart.BottomSurface = "Smooth"
  120. TipPart.TopSurface = "Smooth"
  121. TipPart.BrickColor = BrickColor.new("Lime green")
  122. TipPart.Material = "Neon"
  123. TipPart.FormFactor = "Custom"
  124. TipPart.Shape = "Ball"
  125. TipPart.Size = Vector3.new(2, 2, 2)
  126. TipPart.Anchored = true
  127. TipPart.Locked = true
  128. TipPart.CanCollide = false
  129. TipPart.Transparency = 0.5
  130.  
  131. local PE1 = Instance.new("ParticleEmitter",TipPart) -- dorritoes
  132. PE1.Texture = "rbxassetid://686815657"
  133. PE1.LightEmission = 0.3
  134. PE1.Acceleration = Vector3.new(0,-2,0)
  135. PE1.Lifetime = NumberRange.new(5,7)
  136. PE1.Speed = NumberRange.new(3,5)
  137. PE1.Rate = 30
  138. PE1.VelocitySpread = 50
  139.  
  140. local PE2 = Instance.new("ParticleEmitter",TipPart) --illuminati
  141. PE2.Texture = "rbxassetid://686815657"
  142. PE2.LightEmission = 1
  143. PE2.Acceleration = Vector3.new(0,-2,0)
  144. PE2.Lifetime = NumberRange.new(5,7)
  145. PE2.Speed = NumberRange.new(3,5)
  146. PE2.Rate = 10
  147. PE2.VelocitySpread = 50
  148.  
  149. local PE3 = Instance.new("ParticleEmitter",TipPart) --HitMarkers
  150. PE3.Texture = "rbxassetid://686815657"
  151. PE3.LightEmission = 1
  152. PE3.Acceleration = Vector3.new(0,-2,0)
  153. PE3.Lifetime = NumberRange.new(5,7)
  154. PE3.Speed = NumberRange.new(3,5)
  155. PE3.Rate = 10
  156. PE3.VelocitySpread = 50
  157.  
  158. local PE4 = Instance.new("ParticleEmitter",MousePart) -- dorritoes
  159. PE4.Texture = "rbxassetid://484383135"
  160. PE4.Acceleration = Vector3.new(0,-10,0)
  161. PE4.Lifetime = NumberRange.new(2,4)
  162. PE4.Speed = NumberRange.new(8,10)
  163. PE4.Rate = 100
  164. PE4.VelocitySpread = 50
  165.  
  166. local PE5 = Instance.new("ParticleEmitter",MousePart) --illuminati
  167. PE5.Texture = "rbxassetid://686815657"
  168. PE5.Acceleration = Vector3.new(0,-10,0)
  169. PE5.Lifetime = NumberRange.new(2,4)
  170. PE5.Speed = NumberRange.new(8,10)
  171. PE5.Rate = 100
  172. PE5.VelocitySpread = 50
  173.  
  174. local PE6 = Instance.new("ParticleEmitter",MousePart) --HitMarkers
  175. PE6.Texture = "rbxassetid://644165701"
  176. PE6.Acceleration = Vector3.new(0,-10,0)
  177. PE6.Lifetime = NumberRange.new(2,4)
  178. PE6.Speed = NumberRange.new(8,10)
  179. PE6.Rate = 100
  180. PE6.VelocitySpread = 50
  181.  
  182. PE1.Enabled = false
  183. PE2.Enabled = false
  184. PE3.Enabled = false
  185. PE4.Enabled = false
  186. PE5.Enabled = false
  187. PE6.Enabled = false
  188.  
  189. function drawlazer(p1,p2)
  190. part = Instance.new("Part", m)
  191. part.Name = "Location"
  192. part.BottomSurface = 0
  193. part.TopSurface = 0
  194. part.BrickColor = BrickColor.new("Lime green")
  195. part.Material = "Neon"
  196. part.FormFactor = "Custom"
  197. part.Shape = "Ball"
  198. part.Size = Vector3.new(4, 4, 4)
  199. part.Anchored = true
  200. part.Locked = true
  201. part.CanCollide = false
  202. part.Transparency = 0.5
  203. part.CFrame = CFrame.new(p1.Position.x,p1.Position.y,p1.Position.z)
  204.  
  205. obj = part
  206. local lastPos = obj.CFrame.p
  207. objC = obj:Clone()
  208. objC.Name = "Line"
  209. objC.Parent = m
  210. objC.Shape = "Ball"
  211. objC.Anchored = true
  212. local distance = (p2.Position- obj.CFrame.p).magnitude
  213. objC.Size = Vector3.new(10,10,distance)
  214. objC.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  215. lastPos = obj.CFrame.p
  216. objCC1 = objC:Clone()
  217. objCC1.Parent = objC
  218. objCC1.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2.5)
  219. objCC1.Size = Vector3.new(4,4,distance/2)
  220. objCC1.Name = "LineC1"
  221.  
  222. objCC2 = objC:Clone()
  223. objCC2.Parent = objC
  224. objCC2.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/1.5)
  225. objCC2.Size = Vector3.new(4,4,distance/2)
  226. objCC2.Name = "LineC2"
  227. objCC2:ClearAllChildren()
  228.  
  229. end
  230.  
  231. function drawlazer2(p1,p2)
  232. part = m:FindFirstChild("Location")
  233. part.CFrame = CFrame.new(p1.Position.x,p1.Position.y,p1.Position.z)
  234. obj = part
  235. local distance = (p2.Position- obj.CFrame.p).magnitude
  236. objC = m.Line:Clone()
  237. objC.Name = "Line2"
  238. objC.Parent = m
  239. objC.Size = Vector3.new(4,4,distance)
  240. objC.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  241.  
  242. objCC1 = objC.LineC1
  243.  
  244. objCC1.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/2.5)
  245. objCC1.Size = Vector3.new(4,4,distance/2)
  246.  
  247.  
  248. objCC2 = objC.LineC2
  249.  
  250. objCC2.CFrame = CFrame.new(p2.Position,obj.Position)*CFrame.new(0,0,-distance/1.5)
  251. objCC2.Size = Vector3.new(4,4,distance/2)
  252.  
  253.  
  254. m.Line:remove()
  255.  
  256. objC.Name = "Line"
  257. for _,v in pairs(game.Players:GetPlayers()) do
  258.  
  259. if v ~= you then
  260. local d = (part.Position- v.Character:WaitForChild("Torso").CFrame.p).magnitude
  261. if d <= 5 then
  262. v.Character:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  263. end
  264. end
  265. --wait()
  266. end
  267.  
  268. end
  269.  
  270.  
  271. function despawn1(part1,part2,length)
  272.  
  273. for i = 10,1,-1 do
  274.  
  275. part1.Transparency = part1.Transparency + 0.1
  276. part1.Size = part1.Size + Vector3.new(0.2,0.2,length)
  277. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  278.  
  279. wait(0.01)
  280. end
  281. part1:remove()
  282.  
  283. for i = 10,1,-1 do
  284.  
  285. part2.Transparency = part2.Transparency + 0.1
  286.  
  287. wait(0.01)
  288. end
  289. part2:remove()
  290.  
  291. end
  292.  
  293. function despawn2(part1,length)
  294.  
  295. for i = 10,1,-1 do
  296.  
  297. part1.Transparency = part1.Transparency + 0.1
  298. part1.Size = part1.Size + Vector3.new(0.2,0,length)
  299. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  300.  
  301. wait(0.01)
  302. end
  303. part1:remove()
  304. end
  305.  
  306.  
  307.  
  308. function snipe(T)
  309.  
  310. part = Instance.new("Part", m)
  311. part.Name = "Sniper"
  312. part.BottomSurface = 0
  313. part.TopSurface = 0
  314. part.BrickColor = BrickColor.new("Really black")
  315. part.Material = "Neon"
  316. part.FormFactor = "Custom"
  317. part.Size = Vector3.new(1, 1, 3)
  318. part.Anchored = true
  319. part.Locked = true
  320. part.CanCollide = false
  321. part.Transparency = 0
  322.  
  323. local SP = Instance.new("SpecialMesh",part)
  324. SP.MeshId = "rbxassetid://685827900"
  325. SP.Scale = Vector3.new(0.05, 0.05, 0.05)
  326. SP.Offset = Vector3.new(0, -0.3, 3.05)
  327.  
  328. local S=part
  329.  
  330. part.Position = char.Torso.Position + Vector3.new(math.random(-5,5),math.random(3,8),math.random(-5,5))
  331. part.CFrame = CFrame.new(part.Position,T.Position)
  332.  
  333.  
  334. obj = part
  335. local lastPos = obj.CFrame.p
  336. objC = obj:Clone()
  337. objC.Mesh:remove()
  338. wait(0.05)
  339. objC.Parent = part
  340. objC.Shape = "Ball"
  341. objC.FormFactor = "Custom"
  342. objC.Anchored = true
  343. objC.BrickColor = BrickColor.new("New Yeller")
  344. local distance = (T.Position- obj.CFrame.p).magnitude
  345. objC.Size = Vector3.new(0.2,0.2,distance)
  346. objC.CFrame = CFrame.new(T.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  347. local s = Instance.new("Sound",part)
  348. s.SoundId = "rbxassetid://744418708"
  349. s.Volume = 1
  350. s.PlayOnRemove = true
  351. s:remove()
  352. despawn1(objC,part,distance)
  353. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  354. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(20)
  355. local PETemp = Instance.new("ParticleEmitter",mouse.Target) --HitMarkers
  356. PETemp.Texture = "rbxassetid://644165701"
  357. PETemp.Acceleration = Vector3.new(0,-10,0)
  358. PETemp.Lifetime = NumberRange.new(2,4)
  359. PETemp.Speed = NumberRange.new(8,10)
  360. PETemp.Rate = 100
  361. PETemp.VelocitySpread = 50
  362. PETemp.Enabled = true
  363. wait(0.1)
  364. PETemp.Enabled = false
  365. end
  366. end
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373. function ThrowDorito(a,b)
  374. if m:FindFirstChild("Throw") == nil then
  375. local animation=Instance.new("Animation",char:FindFirstChildOfClass("Humanoid"))
  376. animation.Name="Throw"
  377. animation.AnimationId="http://www.roblox.com/asset/?id=207107855"
  378. anim=char:FindFirstChildOfClass("Humanoid"):LoadAnimation(animation)
  379. anim:Play()
  380. else
  381. local animation=char:FindFirstChildOfClass("Humanoid").Throw
  382. anim=char:FindFirstChildOfClass("Humanoid"):LoadAnimation(animation)
  383. anim:Play()
  384. end
  385.  
  386. part = Instance.new("Part", m)
  387. part.Name = "Dorito"
  388. part.BottomSurface = 0
  389. part.TopSurface = 0
  390. part.BrickColor = BrickColor.new("Neon orange")
  391. part.Material = "Neon"
  392. part.FormFactor = "Custom"
  393. part.Shape = "Ball"
  394. part.Size = Vector3.new(1,0.2,1)
  395. part.Anchored = true
  396. part.Locked = true
  397. part.CanCollide = false
  398. part.Transparency = 0
  399. part.CFrame = CFrame.new(a.Position.x,a.Position.y,a.Position.z)
  400. local SP = Instance.new("SpecialMesh",part)
  401. SP.MeshId = "rbxassetid://627995517"
  402. SP.Scale = Vector3.new(1, 1, 1)
  403.  
  404.  
  405. obj = part
  406. local lastPos = obj.CFrame.p
  407. objC = obj:Clone()
  408. objC.Name = "DoritoTrail"
  409. objC.Mesh:remove()
  410. objC.Parent = m
  411. objC.FormFactor = "Custom"
  412. objC.Anchored = true
  413. objC.Transparency = 0.5
  414. objC.BrickColor = BrickColor.new("CGA brown")
  415.  
  416. local distance = (b.Position- obj.CFrame.p).magnitude
  417. objC.Size = Vector3.new(1,0.2,distance)
  418. objC.CFrame = CFrame.new(b.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  419. lastPos = obj.CFrame.p
  420. obj.CFrame = CFrame.new(b.Position,obj.Position)*CFrame.new(0,0,-distance)
  421. obj.CFrame = obj.CFrame * CFrame.fromEulerAnglesXYZ(0,math.random(1,99),0)
  422. objC.Size = Vector3.new(1,0.2,distance)
  423. print(distance)
  424. local target = mouse.Target
  425. local weld = Instance.new("ManualWeld")
  426. weld.Part0 = part
  427. weld.Part1 = target
  428. weld.C0 = CFrame.new()
  429. weld.C1 = target.CFrame:inverse() * part.CFrame
  430. weld.Parent = part
  431. part.Anchored = false
  432. if target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  433. target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(5)
  434. end
  435. despawn2(objC,distance)
  436. end
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446. function shoot()
  447. print("FIRE!")
  448. TipPart.Transparency = 0.5
  449. if m:FindFirstChild("Line") == nil then
  450.  
  451. drawlazer(MousePart,TipPart)
  452. else
  453. drawlazer2(MousePart,TipPart)
  454. end
  455. local s = Instance.new("Sound",TipPart)
  456. s.SoundId = "rbxassetid://744418708"
  457. s.Volume = 2.5
  458. s.PlayOnRemove = true
  459. s:remove()
  460. wait()
  461. end
  462.  
  463. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS....KEYS....KEYSKEYSKEYS......--
  464. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS....KEYS..KEYSKEYS..KEYSKEYS..--
  465. --.KEYS..KEYS......KEYS..............KEYSKEYS...KEYS...........KEYS..--
  466. --.KEYS..KEYS......KEYS..............KEYSKEYS...KEYSKEYS.............--
  467. --.KEYSKEYS........KEYSKEYS............KEYS........KEYSKEYS..........--
  468. --.KEYSKEYS........KEYSKEYS............KEYS............KEYSKEYS......--
  469. --.KEYS..KEYS......KEYS..............KEYS..................KEYSKEYS..--
  470. --.KEYS..KEYS......KEYS..............KEYS.......KEYS...........KEYS..--
  471. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS.........KEYSKEYS..KEYSKEYS...--
  472. --.KEYS....KEYS....KEYSKEYSKEYS....KEYS............KEYSKEYSKEYS......--
  473. mouse.Button1Up:connect(function()
  474. firing = false
  475. print("Stop")
  476. PE1.Enabled = false
  477. PE2.Enabled = false
  478. PE3.Enabled = false
  479. PE4.Enabled = false
  480. PE5.Enabled = false
  481. PE6.Enabled = false
  482. if m:FindFirstChild("Line") ~= nil then
  483. m.Line:remove()
  484. m.Location:remove()
  485. end
  486. TipPart.Transparency = 1
  487. 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()
  488. until firing == true
  489. end)
  490.  
  491. mouse.Button1Down:connect(function()
  492. firing = true
  493. PE1.Enabled = true
  494. --PE2.Enabled = true
  495. --PE3.Enabled = true
  496. PE4.Enabled = true
  497. PE5.Enabled = true
  498. PE6.Enabled = true
  499. 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()
  500. until firing == false
  501.  
  502. end)
  503.  
  504. mouse.KeyDown:connect(function(key)
  505. if key == "q" and firing == false then
  506. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  507. snipe(MousePart)
  508. print("Snipe")
  509. elseif key == "e" and firing == false then
  510. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  511. ThrowDorito(MousePart,char:FindFirstChild("Right Arm"))
  512. print("Dorito")
  513. end
  514.  
  515. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement