Advertisement
Guest User

Untitled

a guest
May 19th, 2019
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.65 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148.  
  149. --By Rufus14
  150. --ears: 391268255
  151. --bamalam: 720451528
  152. --columb: 1202637744
  153. music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  154. music.Volume = 0
  155. music.SoundId = "rbxassetid://0"
  156. music.Looped = true
  157. music:Play()
  158. mouse = game.Players.LocalPlayer:GetMouse()
  159. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  160. gun:BreakJoints()
  161. gun.CanCollide = false
  162. gun.Name = "Shotgun"
  163. mesh = Instance.new("SpecialMesh", gun)
  164. mesh.MeshId = "rbxassetid://477037714"
  165. mesh.TextureId = "rbxassetid://477037796"
  166. mesh.Scale = Vector3.new(0.03,0.03,0.03)
  167. weld = Instance.new("Weld", gun)
  168. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  169. weld.Part1 = gun
  170. weld.C0 = weld.C0 * CFrame.Angles(-1.5,0,0) * CFrame.new(0,0,-2.5)
  171. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  172. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  173. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  174. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  175. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  176. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  177. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  178. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  179. shot = Instance.new("Sound", gun)
  180. shot.Volume = 10
  181. shot.SoundId = "rbxassetid://185044507"
  182. pump = Instance.new("Sound", gun)
  183. pump.Volume = 10
  184. pump.SoundId = "rbxassetid://255061173"
  185. pump.PlaybackSpeed = 0.7
  186. function owtheedge()
  187. workspace.CurrentCamera.FieldOfView = 70 + music.PlaybackLoudness / 80
  188. end
  189. game:GetService("RunService").RenderStepped:connect(owtheedge)
  190. for i = 0,0.7 , 0.01 do
  191. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  192. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
  193. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
  194. game:GetService("RunService").RenderStepped:wait()
  195. end
  196. using = false
  197. ammo = 5
  198. function shoot()
  199. if not using then
  200. using = true
  201. shot:Play()
  202. for i = 1,5 do
  203. local missle = Instance.new("Part", workspace)
  204. missle:BreakJoints()
  205. missle.Name = "bullet"
  206. missle.CanCollide = false
  207. missle.Material = "Neon"
  208. missle.Size = Vector3.new(0.1,0.1,0.1)
  209. missle.CFrame = gun.CFrame * CFrame.new(0,0,2)
  210. missle.Transparency = 1
  211. local vel = Instance.new("BodyVelocity", missle)
  212. vel.Velocity = mouse.Hit.lookVector * math.random(500,500) + Vector3.new(math.random(-50,50),math.random(-50,50),0)
  213. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  214. local function hit(part)
  215. local hitval = math.random(25,40)
  216. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  217. if humanoid then
  218. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  219. humanoid.Health = 100
  220. end
  221. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  222. humanoid.MaxHealth = 100
  223. end
  224. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  225.  
  226. else
  227. if humanoid.Health < hitval then
  228. humanoid.JumpPower = 0
  229. humanoid.PlatformStand = true
  230. humanoid.WalkSpeed = 0
  231. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  232. if findlefthip then
  233. findlefthip:Remove()
  234. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  235. glue.Part0 = humanoid.Parent.Torso
  236. glue.Part1 = humanoid.Parent["Left Leg"]
  237. glue.Name = "Left leg"
  238. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  239. collider.Position = Vector3.new(0,999,0)
  240. collider.Size = Vector3.new(1.5, 1, 1)
  241. collider.Shape = "Cylinder"
  242. local weld = Instance.new("Weld", collider)
  243. weld.Part0 = humanoid.Parent["Left Leg"]
  244. weld.Part1 = collider
  245. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  246. collider.TopSurface = "Smooth"
  247. collider.BottomSurface = "Smooth"
  248. collider.formFactor = "Symmetric"
  249. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  250. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  251. collider.Transparency = 1
  252. end
  253. --
  254. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  255. if findrighthip then
  256. findrighthip:Remove()
  257. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  258. glue.Part0 = humanoid.Parent.Torso
  259. glue.Part1 = humanoid.Parent["Right Leg"]
  260. glue.Name = "Right leg"
  261. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  262. collider.Position = Vector3.new(0,999,0)
  263. collider.Size = Vector3.new(1.5, 1, 1)
  264. collider.Shape = "Cylinder"
  265. local weld = Instance.new("Weld", collider)
  266. weld.Part0 = humanoid.Parent["Right Leg"]
  267. weld.Part1 = collider
  268. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  269. collider.TopSurface = "Smooth"
  270. collider.BottomSurface = "Smooth"
  271. collider.formFactor = "Symmetric"
  272. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  273. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  274. collider.Transparency = 1
  275. end
  276. --
  277. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  278. if findrightshoulder then
  279. findrightshoulder:Remove()
  280. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  281. glue.Part0 = humanoid.Parent.Torso
  282. glue.Part1 = humanoid.Parent["Right Arm"]
  283. glue.Name = "Right arm"
  284. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  285. collider.Position = Vector3.new(0,999,0)
  286. collider.Size = Vector3.new(1.5, 1, 1)
  287. collider.Shape = "Cylinder"
  288. local weld = Instance.new("Weld", collider)
  289. weld.Part0 = humanoid.Parent["Right Arm"]
  290. weld.Part1 = collider
  291. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  292. collider.TopSurface = "Smooth"
  293. collider.BottomSurface = "Smooth"
  294. collider.formFactor = "Symmetric"
  295. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  296. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  297. collider.Transparency = 1
  298. end
  299. --
  300. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  301. if findleftshoulder then
  302. findleftshoulder:Remove()
  303. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  304. glue.Part0 = humanoid.Parent.Torso
  305. glue.Part1 = humanoid.Parent["Left Arm"]
  306. glue.Name = "Left arm"
  307. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  308. collider.Position = Vector3.new(0,999,0)
  309. collider.Size = Vector3.new(1.5, 1, 1)
  310. collider.Shape = "Cylinder"
  311. local weld = Instance.new("Weld", collider)
  312. weld.Part0 = humanoid.Parent["Left Arm"]
  313. weld.Part1 = collider
  314. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  315. collider.TopSurface = "Smooth"
  316. collider.BottomSurface = "Smooth"
  317. collider.formFactor = "Symmetric"
  318. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  319. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  320. collider.Transparency = 1
  321. end
  322. local findhead = humanoid.Parent:findFirstChild("Head")
  323. if findhead then
  324. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  325. attachment.Position = Vector3.new(0, -0.5, 0)
  326. attachment.Name = "lol"
  327. attachment.Visible = false
  328. humanoid.Parent.Torso.NeckAttachment.Visible = false
  329. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  330. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  331. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  332. ball.Attachment1 = attachment
  333. ball.LimitsEnabled = true
  334. ball.TwistLimitsEnabled = true
  335. ball.UpperAngle = 90
  336. ball.Restitution = 0.5
  337. ball.TwistUpperAngle = 90
  338. ball.TwistLowerAngle = -90
  339. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  340. collidepartofleftleg.Name = "Bone"
  341. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  342. collidepartofleftleg.Transparency = 1
  343. collidepartofleftleg:BreakJoints()
  344. local weeld = Instance.new("Weld", collidepartofleftleg)
  345. weeld.Part0 = collidepartofleftleg
  346. weeld.Part1 = humanoid.Parent["Head"]
  347. if humanoid.Parent.Torso:findFirstChild("Neck") then
  348. humanoid.Parent.Torso.Neck:destroy()
  349. end
  350. end
  351. wait(10)
  352. humanoid.Health = 0
  353. else
  354. humanoid.Health = humanoid.Health - hitval
  355. end
  356. end
  357. else
  358. if part.Name == "Shotgun" or "bullet" then
  359.  
  360. else
  361. missle:destroy()
  362. end
  363. end
  364. end
  365. missle.Touched:connect(hit)
  366. end
  367. for i = 0,1 , 0.07 do
  368. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  369. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  370. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.748803854, -1.02752113, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  371. game:GetService("RunService").RenderStepped:wait()
  372. end
  373. for i = 0,1 , 0.05 do
  374. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  375. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  376. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  377. game:GetService("RunService").RenderStepped:wait()
  378. end
  379. pump:Play()
  380. for i = 0,1 , 0.05 do
  381. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  382. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  383. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.44393158, 0.765078783, -1.10408783, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  384. game:GetService("RunService").RenderStepped:wait()
  385. end
  386. for i = 0,1 , 0.05 do
  387. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  388. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.491810799, -0.168943405, 0.978147507, 0.204753578, -0.0361040607, 0.0289353225, -0.306021929, -0.951584637, -0.205889001, 0.929745436, -0.305259228),i)
  389. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.201648712, 0.903478384, -1.75520706, 0.939693093, -0.342019022, -2.66768012e-07, -0.0711100101, -0.195373133, -0.978147566, 0.334545016, 0.919158578, -0.207911715),i)
  390. game:GetService("RunService").RenderStepped:wait()
  391. end
  392. for i = 0,0.7 , 0.04 do
  393. weld.C0 = weld.C0:lerp(CFrame.new(-0.342021942, -1.88848877, -0.088739872, 0.978147507, -0.0289359875, -0.205888897, 0.204753578, -0.0378959738, 0.978079677, -0.0361040607, -0.998862624, -0.0311431047),i)
  394. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.917564392, 0.399175882, -0.578536987, 0.978147507, 0.204753578, -0.0361040607, -0.0289359875, -0.0378959738, -0.998862624, -0.205888897, 0.978079677, -0.0311431047),i)
  395. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.472423553, 0.409558296, -1.4746933, 0.939692736, -0.342019886, -2.0985492e-06, 0.0238559935, 0.0655499771, -0.997564137, 0.341186911, 0.937403619, 0.0697560608),i)
  396. game:GetService("RunService").RenderStepped:wait()
  397. end
  398. using = false
  399. end
  400. end
  401. mouse.Button1Down:connect(shoot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement