Advertisement
5325325325

Untitled

Oct 11th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.43 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. --Kidd_Anonymouse#9926 (thanks to whoever leaked it T-T)
  87. local player = owner
  88. local char = player.Character
  89. local head = char.Head
  90. local To = char.Torso
  91. local HRP = char.HumanoidRootPart
  92. local RA = char["Right Arm"]
  93. local LA = char["Left Arm"]
  94. local RL = char["Right Leg"]
  95. local LL = char["Left Leg"]
  96. local Hum = char:FindFirstChildOfClass("Humanoid")
  97. --game:service'InsertService':LoadAsset(14030252):children()[1].Parent=char
  98. --game:GetObjects("rbxassetid://857556803")[1].Parent=char
  99. for i = 5,1,-1 do
  100. if char:FindFirstChildOfClass("Accessory") ~= nil then char:FindFirstChildOfClass("Accessory"):remove()end
  101. end
  102. local h = Instance.new("Part",workspace)
  103. h.Size = Vector3.new()
  104. h.TopSurface = "Smooth"
  105. h.BottomSurface = "Smooth"
  106. h.CanCollide = false
  107. h.Anchored = false
  108. h.Name = "Handle"
  109. local a = Instance.new("Accessory",workspace)
  110. a.AttachmentForward = Vector3.new(0, -0.1, -0.995)
  111. a.AttachmentPos = Vector3.new(0, 0.15, -0.08)
  112. a.AttachmentRight = Vector3.new(1, 0, 0)
  113. a.AttachmentUp = Vector3.new(0, 0.995, -0.1)
  114. h.Parent = a
  115. a.Parent = char
  116. local a2 = Instance.new("Attachment",h)
  117. a2.Orientation = Vector3.new(-5.711, 0, -0)
  118. a2.Position = Vector3.new(0, 0.249, -0.09)
  119. a2.Axis = Vector3.new(1, -0, 0)
  120. a2.SecondaryAxis = Vector3.new(0, 0.995, -0.1)
  121. a2.Visible = false
  122. local m = Instance.new("SpecialMesh",h)
  123. m.MeshId = "http://www.roblox.com/asset/?id=13332444"
  124. m.MeshType = "FileMesh"
  125. m.Scale = Vector3.new(1.05, 1, 1.05)
  126. m.TextureId = "http://www.roblox.com/asset/?id=13693099"
  127. char:WaitForChild("Animate").walk.WalkAnim.AnimationId = "http://www.roblox.com/Asset?ID=252557606"
  128. ------------------------------------------------------------------------------------------
  129. ------------------------------------------------------------------------------------------
  130. ------------------------------------------------------------------------------------------
  131. ------------------------------------------------------------------------------------------
  132. --game:GetObjects("rbxassetid://857556803")[1].Parent=char
  133. ------------------------------------------------------------------------------------------
  134. ------------------------------------------------------------------------------------------
  135. ------------------------------------------------------------------------------------------
  136. ------------------------------------------------------------------------------------------
  137.  
  138. local m = Instance.new("Model",char)
  139.  
  140. local s1 = Instance.new("Sound",char)
  141. s1.SoundId = "rbxassetid://379250303"
  142. s1.Volume = 0.5
  143. s1.Looped = true
  144. s1:Play()
  145.  
  146.  
  147. if head:FindFirstChild("face")== nil then
  148. local d = Instance.new("Decal",head)
  149. d.Texture = "rbxassetid://664468442"
  150. d.Face = "Front"
  151. else
  152. head:FindFirstChild("face").Texture = "rbxassetid://664468442"
  153. end
  154.  
  155. if char:FindFirstChildOfClass("Shirt")== nil then
  156. local s = Instance.new("Shirt",char)
  157. s.ShirtTemplate = "rbxassetid://762916834"
  158. else
  159. char:FindFirstChildOfClass("Shirt").ShirtTemplate = "rbxassetid://762916834"
  160. end
  161.  
  162. if char:FindFirstChildOfClass("Pants")== nil then
  163. local s = Instance.new("Pants",char)
  164. s.PantsTemplate = "rbxassetid://843263078"
  165. else
  166. char:FindFirstChildOfClass("Pants").PantsTemplate = "rbxassetid://843263078"
  167. end
  168.  
  169.  
  170. char:WaitForChild("Body Colors").HeadColor = BrickColor.new("Pastel brown")
  171. char:WaitForChild("Body Colors").LeftArmColor = BrickColor.new("Pastel brown")
  172. char:WaitForChild("Body Colors").LeftLegColor = BrickColor.new("Pastel brown")
  173. char:WaitForChild("Body Colors").RightArmColor = BrickColor.new("Pastel brown")
  174. char:WaitForChild("Body Colors").RightLegColor = BrickColor.new("Pastel brown")
  175. char:WaitForChild("Body Colors").TorsoColor = BrickColor.new("Pastel brown")
  176.  
  177.  
  178. Hum.WalkSpeed = 100
  179. Hum.JumpPower = 100
  180. --[[
  181. head:WaitForChild("Jumping")
  182. head.Jumping.SoundId = "rbxassetid://151681170"
  183. head.Jumping.Volume = 3
  184. --]]
  185.  
  186.  
  187. local MousePart = Instance.new("Part",m)
  188. MousePart.CanCollide = false
  189. MousePart.BottomSurface = "Smooth"
  190. MousePart.TopSurface = "Smooth"
  191. MousePart.Size = Vector3.new(0.2, 0.2, 0.2)
  192. MousePart.Anchored = true
  193.  
  194.  
  195.  
  196. function despawn1(part1,part2,length)
  197.  
  198. for i = 10,1,-1 do
  199.  
  200. part1.Transparency = part1.Transparency + 0.1
  201. part1.Size = part1.Size + Vector3.new(0.2,0.2,length)
  202. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  203.  
  204. wait(0.01)
  205. end
  206. part1:remove()
  207.  
  208. for i = 10,1,-1 do
  209.  
  210. part2.Transparency = part2.Transparency + 0.1
  211.  
  212. wait(0.01)
  213. end
  214. part2:remove()
  215.  
  216. end
  217.  
  218.  
  219.  
  220. function despawn2(part1,length)
  221.  
  222. for i = 10,1,-1 do
  223.  
  224. part1.Transparency = part1.Transparency + 0.1
  225. part1.Size = part1.Size + Vector3.new(0.2,0,length)
  226. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  227.  
  228. wait(0.01)
  229. end
  230. part1:remove()
  231. end
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242. function snipe(T)
  243.  
  244. local part = Instance.new("Part", m)
  245. part.Parent = m
  246. part.Name = "Sniper"
  247. part.BottomSurface = 0
  248. part.TopSurface = 0
  249. part.BrickColor = BrickColor.new("Shamrock")
  250. part.FormFactor = "Custom"
  251. part.Size = Vector3.new(1, 1, 3)
  252. part.Anchored = true
  253. part.Locked = true
  254. part.CanCollide = false
  255. part.Transparency = 0
  256.  
  257. local S=part
  258.  
  259. part.Position = char.Torso.Position + Vector3.new(math.random(-5,5),math.random(3,8),math.random(-5,5))
  260. part.CFrame = CFrame.new(part.Position,T.Position)
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267. obj = part
  268. local lastPos = obj.CFrame.p
  269. objC = obj:Clone()
  270. wait(0.05)
  271. objC.Parent = part
  272. objC.FormFactor = "Custom"
  273. objC.Anchored = true
  274. objC.BrickColor = BrickColor.new("New Yeller")
  275. local distance = (T.Position- obj.CFrame.p).magnitude
  276. objC.Size = Vector3.new(0.2,0.2,distance)
  277. objC.CFrame = CFrame.new(T.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  278. local s = Instance.new("Sound",part)
  279. s.SoundId = "rbxassetid://441874008"
  280. s.Volume = 1
  281. s.TimePosition = math.random(15,30)
  282. s:Play()
  283. despawn1(objC,part,distance)
  284. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  285. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(20)
  286. local PETemp = Instance.new("ParticleEmitter",mouse.Target) --HitMarkers
  287. PETemp.Texture = "rbxassetid://857586798"
  288. PETemp.Acceleration = Vector3.new(0,-10,0)
  289. PETemp.Lifetime = NumberRange.new(2,4)
  290. PETemp.Speed = NumberRange.new(8,10)
  291. PETemp.Rate = 100
  292. PETemp.VelocitySpread = 50
  293. PETemp.Rotation = NumberRange.new(50,50)
  294. PETemp.RotSpeed = NumberRange.new(200,200)
  295. PETemp.Enabled = true
  296. wait(0.1)
  297. PETemp.Enabled = false
  298. end
  299. end
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321. mouse.KeyDown:connect(function(key)
  322.  
  323.  
  324. if key == "q" then
  325. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  326. snipe(MousePart)
  327. end
  328.  
  329.  
  330. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement