reset234567890

.........................................

May 31st, 2019
146
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. --By Rufus14
  148. --ears: 391268255
  149. --bamalam: 720451528
  150. --columb: 1202637744
  151. music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  152. music.Volume = 0
  153. music.SoundId = "rbxassetid://0"
  154. music.Looped = true
  155. music:Play()
  156. mouse = game.Players.LocalPlayer:GetMouse()
  157. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  158. gun:BreakJoints()
  159. gun.CanCollide = false
  160. gun.Name = "Shotgun"
  161. mesh = Instance.new("SpecialMesh", gun)
  162. mesh.MeshId = "rbxassetid://477037714"
  163. mesh.TextureId = "rbxassetid://477037796"
  164. mesh.Scale = Vector3.new(0.03,0.03,0.03)
  165. weld = Instance.new("Weld", gun)
  166. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  167. weld.Part1 = gun
  168. weld.C0 = weld.C0 * CFrame.Angles(-1.5,0,0) * CFrame.new(0,0,-2.5)
  169. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  170. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  171. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  172. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  173. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  174. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  175. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  176. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  177. shot = Instance.new("Sound", gun)
  178. shot.Volume = 10
  179. shot.SoundId = "rbxassetid://185044507"
  180. pump = Instance.new("Sound", gun)
  181. pump.Volume = 10
  182. pump.SoundId = "rbxassetid://255061173"
  183. pump.PlaybackSpeed = 0.7
  184. function owtheedge()
  185. workspace.CurrentCamera.FieldOfView = 70 + music.PlaybackLoudness / 80
  186. end
  187. game:GetService("RunService").RenderStepped:connect(owtheedge)
  188. for i = 0,0.7 , 0.01 do
  189. 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)
  190. 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)
  191. 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)
  192. game:GetService("RunService").RenderStepped:wait()
  193. end
  194. using = false
  195. ammo = 5
  196. function shoot()
  197. if not using then
  198. using = true
  199. shot:Play()
  200. for i = 1,5 do
  201. local missle = Instance.new("Part", workspace)
  202. missle:BreakJoints()
  203. missle.Name = "bullet"
  204. missle.CanCollide = false
  205. missle.Material = "Neon"
  206. missle.Size = Vector3.new(0.1,0.1,0.1)
  207. missle.CFrame = gun.CFrame * CFrame.new(0,0,2)
  208. missle.Transparency = 1
  209. local vel = Instance.new("BodyVelocity", missle)
  210. vel.Velocity = mouse.Hit.lookVector * math.random(500,500) + Vector3.new(math.random(-50,50),math.random(-50,50),0)
  211. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  212. local function hit(part)
  213. local hitval = math.random(25,40)
  214. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  215. if humanoid then
  216. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  217. humanoid.Health = 100
  218. end
  219. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  220. humanoid.MaxHealth = 100
  221. end
  222. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  223.  
  224. else
  225. if humanoid.Health < hitval then
  226. humanoid.JumpPower = 0
  227. humanoid.PlatformStand = true
  228. humanoid.WalkSpeed = 0
  229. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  230. if findlefthip then
  231. findlefthip:Remove()
  232. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  233. glue.Part0 = humanoid.Parent.Torso
  234. glue.Part1 = humanoid.Parent["Left Leg"]
  235. glue.Name = "Left leg"
  236. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  237. collider.Position = Vector3.new(0,999,0)
  238. collider.Size = Vector3.new(1.5, 1, 1)
  239. collider.Shape = "Cylinder"
  240. local weld = Instance.new("Weld", collider)
  241. weld.Part0 = humanoid.Parent["Left Leg"]
  242. weld.Part1 = collider
  243. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  244. collider.TopSurface = "Smooth"
  245. collider.BottomSurface = "Smooth"
  246. collider.formFactor = "Symmetric"
  247. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  248. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  249. collider.Transparency = 1
  250. end
  251. --
  252. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  253. if findrighthip then
  254. findrighthip:Remove()
  255. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  256. glue.Part0 = humanoid.Parent.Torso
  257. glue.Part1 = humanoid.Parent["Right Leg"]
  258. glue.Name = "Right leg"
  259. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  260. collider.Position = Vector3.new(0,999,0)
  261. collider.Size = Vector3.new(1.5, 1, 1)
  262. collider.Shape = "Cylinder"
  263. local weld = Instance.new("Weld", collider)
  264. weld.Part0 = humanoid.Parent["Right Leg"]
  265. weld.Part1 = collider
  266. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  267. collider.TopSurface = "Smooth"
  268. collider.BottomSurface = "Smooth"
  269. collider.formFactor = "Symmetric"
  270. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  271. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  272. collider.Transparency = 1
  273. end
  274. --
  275. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  276. if findrightshoulder then
  277. findrightshoulder:Remove()
  278. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  279. glue.Part0 = humanoid.Parent.Torso
  280. glue.Part1 = humanoid.Parent["Right Arm"]
  281. glue.Name = "Right arm"
  282. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  283. collider.Position = Vector3.new(0,999,0)
  284. collider.Size = Vector3.new(1.5, 1, 1)
  285. collider.Shape = "Cylinder"
  286. local weld = Instance.new("Weld", collider)
  287. weld.Part0 = humanoid.Parent["Right Arm"]
  288. weld.Part1 = collider
  289. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  290. collider.TopSurface = "Smooth"
  291. collider.BottomSurface = "Smooth"
  292. collider.formFactor = "Symmetric"
  293. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  294. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  295. collider.Transparency = 1
  296. end
  297. --
  298. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  299. if findleftshoulder then
  300. findleftshoulder:Remove()
  301. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  302. glue.Part0 = humanoid.Parent.Torso
  303. glue.Part1 = humanoid.Parent["Left Arm"]
  304. glue.Name = "Left arm"
  305. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  306. collider.Position = Vector3.new(0,999,0)
  307. collider.Size = Vector3.new(1.5, 1, 1)
  308. collider.Shape = "Cylinder"
  309. local weld = Instance.new("Weld", collider)
  310. weld.Part0 = humanoid.Parent["Left Arm"]
  311. weld.Part1 = collider
  312. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  313. collider.TopSurface = "Smooth"
  314. collider.BottomSurface = "Smooth"
  315. collider.formFactor = "Symmetric"
  316. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  317. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  318. collider.Transparency = 1
  319. end
  320. local findhead = humanoid.Parent:findFirstChild("Head")
  321. if findhead then
  322. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  323. attachment.Position = Vector3.new(0, -0.5, 0)
  324. attachment.Name = "lol"
  325. attachment.Visible = false
  326. humanoid.Parent.Torso.NeckAttachment.Visible = false
  327. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  328. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  329. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  330. ball.Attachment1 = attachment
  331. ball.LimitsEnabled = true
  332. ball.TwistLimitsEnabled = true
  333. ball.UpperAngle = 90
  334. ball.Restitution = 0.5
  335. ball.TwistUpperAngle = 90
  336. ball.TwistLowerAngle = -90
  337. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  338. collidepartofleftleg.Name = "Bone"
  339. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  340. collidepartofleftleg.Transparency = 1
  341. collidepartofleftleg:BreakJoints()
  342. local weeld = Instance.new("Weld", collidepartofleftleg)
  343. weeld.Part0 = collidepartofleftleg
  344. weeld.Part1 = humanoid.Parent["Head"]
  345. if humanoid.Parent.Torso:findFirstChild("Neck") then
  346. humanoid.Parent.Torso.Neck:destroy()
  347. end
  348. end
  349. wait(10)
  350. humanoid.Health = 0
  351. else
  352. humanoid.Health = humanoid.Health - hitval
  353. end
  354. end
  355. else
  356. if part.Name == "Shotgun" or "bullet" then
  357.  
  358. else
  359. missle:destroy()
  360. end
  361. end
  362. end
  363. missle.Touched:connect(hit)
  364. end
  365. for i = 0,1 , 0.07 do
  366. 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)
  367. 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)
  368. 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)
  369. game:GetService("RunService").RenderStepped:wait()
  370. end
  371. for i = 0,1 , 0.05 do
  372. 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)
  373. 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)
  374. 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)
  375. game:GetService("RunService").RenderStepped:wait()
  376. end
  377. pump:Play()
  378. for i = 0,1 , 0.05 do
  379. 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)
  380. 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)
  381. 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)
  382. game:GetService("RunService").RenderStepped:wait()
  383. end
  384. for i = 0,1 , 0.05 do
  385. 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)
  386. 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)
  387. 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)
  388. game:GetService("RunService").RenderStepped:wait()
  389. end
  390. for i = 0,0.7 , 0.04 do
  391. 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)
  392. 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)
  393. 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)
  394. game:GetService("RunService").RenderStepped:wait()
  395. end
  396. using = false
  397. end
  398. end
  399. mouse.Button1Down:connect(shoot)
Advertisement
Add Comment
Please, Sign In to add comment