Advertisement
teotv202

Untitled

Feb 16th, 2019
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5. plr = game.Players.LocalPlayer
  6. char = plr.Character
  7. music = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  8. music.Volume = 0
  9. music.SoundId = "rbxassetid://0"
  10. music.Looped = true
  11. music:Play()
  12. mouse = plr:GetMouse()
  13. gun = Instance.new("Part", char)
  14. gun:BreakJoints()
  15. gun.CanCollide = false
  16. gun.Name = "Shotgun"
  17. mesh = Instance.new("SpecialMesh", gun)
  18. mesh.MeshId = "rbxassetid://464095282"
  19. mesh.TextureId = "rbxassetid://464095285"
  20. mesh.Scale = Vector3.new(0.005,0.005,0.005)
  21. weld = Instance.new("Weld", gun)
  22. weld.Part0 = plr.Character["Right Arm"]
  23. weld.Part1 = gun
  24. weld.C0 = weld.C0 * CFrame.Angles(-1.5,0,0) * CFrame.new(0,0,-2.5)
  25. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  26. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  27. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  28. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  30. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  31. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  32. lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  33. shot = Instance.new("Sound", gun)
  34. shot.Volume = 10
  35. shot.SoundId = "rbxassetid://1215330653"
  36. pump = Instance.new("Sound", gun)
  37. pump.Volume = 10
  38. pump.SoundId = "rbxassetid://2148137859"
  39. --pump.PlaybackSpeed = 0.7
  40. function owtheedge()
  41. workspace.CurrentCamera.FieldOfView = 70 + music.PlaybackLoudness / 80
  42. end
  43. game:GetService("RunService").RenderStepped:connect(owtheedge)
  44. for i = 0,0.7 , 0.01 do
  45. 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)
  46. 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)
  47. 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)
  48. game:GetService("RunService").RenderStepped:wait()
  49. end
  50. using = false
  51. ammo = 5
  52. function shoot()
  53. if not using then
  54. using = true
  55. shot:Play()
  56. for i = 1,5 do
  57. local missle = Instance.new("Part", workspace)
  58. missle:BreakJoints()
  59. missle.Name = "bullet"
  60. missle.CanCollide = false
  61. missle.Material = "Neon"
  62. missle.Size = Vector3.new(0.1,0.1,0.1)
  63. missle.CFrame = gun.CFrame * CFrame.new(0,0,2)
  64. missle.Transparency = 1
  65. local vel = Instance.new("BodyVelocity", missle)
  66. vel.Velocity = mouse.Hit.lookVector * math.random(500,500) + Vector3.new(math.random(-50,50),math.random(-50,50),0)
  67. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  68. local function hit(part)
  69. local hitval = math.random(8,36)
  70. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  71. if humanoid then
  72. if humanoid.Health == math.huge or humanoid.Health >= 600 then
  73. humanoid.Health = 100
  74. end
  75. if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  76. humanoid.MaxHealth = 100
  77. end
  78. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  79.  
  80. else
  81. if humanoid.Health < hitval then
  82. humanoid.JumpPower = 0
  83. humanoid.PlatformStand = true
  84. humanoid.WalkSpeed = 0
  85. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  86. if findlefthip then
  87. findlefthip:Remove()
  88. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  89. glue.Part0 = humanoid.Parent.Torso
  90. glue.Part1 = humanoid.Parent["Left Leg"]
  91. glue.Name = "Left leg"
  92. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  93. collider.Position = Vector3.new(0,999,0)
  94. collider.Size = Vector3.new(1.5, 1, 1)
  95. collider.Shape = "Cylinder"
  96. local weld = Instance.new("Weld", collider)
  97. weld.Part0 = humanoid.Parent["Left Leg"]
  98. weld.Part1 = collider
  99. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  100. collider.TopSurface = "Smooth"
  101. collider.BottomSurface = "Smooth"
  102. collider.formFactor = "Symmetric"
  103. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  104. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  105. collider.Transparency = 1
  106. end
  107. --
  108. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  109. if findrighthip then
  110. findrighthip:Remove()
  111. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  112. glue.Part0 = humanoid.Parent.Torso
  113. glue.Part1 = humanoid.Parent["Right Leg"]
  114. glue.Name = "Right leg"
  115. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  116. collider.Position = Vector3.new(0,999,0)
  117. collider.Size = Vector3.new(1.5, 1, 1)
  118. collider.Shape = "Cylinder"
  119. local weld = Instance.new("Weld", collider)
  120. weld.Part0 = humanoid.Parent["Right Leg"]
  121. weld.Part1 = collider
  122. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  123. collider.TopSurface = "Smooth"
  124. collider.BottomSurface = "Smooth"
  125. collider.formFactor = "Symmetric"
  126. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  127. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  128. collider.Transparency = 1
  129. end
  130. --
  131. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  132. if findrightshoulder then
  133. findrightshoulder:Remove()
  134. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  135. glue.Part0 = humanoid.Parent.Torso
  136. glue.Part1 = humanoid.Parent["Right Arm"]
  137. glue.Name = "Right arm"
  138. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  139. collider.Position = Vector3.new(0,999,0)
  140. collider.Size = Vector3.new(1.5, 1, 1)
  141. collider.Shape = "Cylinder"
  142. local weld = Instance.new("Weld", collider)
  143. weld.Part0 = humanoid.Parent["Right Arm"]
  144. weld.Part1 = collider
  145. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  146. collider.TopSurface = "Smooth"
  147. collider.BottomSurface = "Smooth"
  148. collider.formFactor = "Symmetric"
  149. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  150. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  151. collider.Transparency = 1
  152. end
  153. --
  154. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  155. if findleftshoulder then
  156. findleftshoulder:Remove()
  157. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  158. glue.Part0 = humanoid.Parent.Torso
  159. glue.Part1 = humanoid.Parent["Left Arm"]
  160. glue.Name = "Left arm"
  161. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  162. collider.Position = Vector3.new(0,999,0)
  163. collider.Size = Vector3.new(1.5, 1, 1)
  164. collider.Shape = "Cylinder"
  165. local weld = Instance.new("Weld", collider)
  166. weld.Part0 = humanoid.Parent["Left Arm"]
  167. weld.Part1 = collider
  168. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  169. collider.TopSurface = "Smooth"
  170. collider.BottomSurface = "Smooth"
  171. collider.formFactor = "Symmetric"
  172. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  173. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  174. collider.Transparency = 1
  175. end
  176. local findhead = humanoid.Parent:findFirstChild("Head")
  177. if findhead then
  178. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  179. attachment.Position = Vector3.new(0, -0.5, 0)
  180. attachment.Name = "lol"
  181. attachment.Visible = false
  182. humanoid.Parent.Torso.NeckAttachment.Visible = false
  183. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  184. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  185. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  186. ball.Attachment1 = attachment
  187. ball.LimitsEnabled = true
  188. ball.TwistLimitsEnabled = true
  189. ball.UpperAngle = 90
  190. ball.Restitution = 0.5
  191. ball.TwistUpperAngle = 90
  192. ball.TwistLowerAngle = -90
  193. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  194. collidepartofleftleg.Name = "Bone"
  195. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  196. collidepartofleftleg.Transparency = 1
  197. collidepartofleftleg:BreakJoints()
  198. local weeld = Instance.new("Weld", collidepartofleftleg)
  199. weeld.Part0 = collidepartofleftleg
  200. weeld.Part1 = humanoid.Parent["Head"]
  201. if humanoid.Parent.Torso:findFirstChild("Neck") then
  202. humanoid.Parent.Torso.Neck:destroy()
  203. end
  204. end
  205. wait(10)
  206. humanoid.Parent:BreakJoints()
  207. humanoid.Health = 0
  208. humanoid.MaxHealth = 0
  209. humanoid.Name "0 ANTI-RESET 0"
  210. else
  211. humanoid.Health = humanoid.Health - hitval
  212. end
  213. end
  214. else
  215. if part.Name == "Shotgun" or "bullet" then
  216.  
  217. else
  218. missle:destroy()
  219. end
  220. end
  221. end
  222. missle.Touched:connect(hit)
  223. end
  224. for i = 0,1 , 0.02 do
  225. 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)
  226. 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)
  227. 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)
  228. game:GetService("RunService").RenderStepped:wait()
  229. end
  230. for i = 0,1 , 0.02 do
  231. 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)
  232. 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)
  233. 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)
  234. game:GetService("RunService").RenderStepped:wait()
  235. end
  236. pump:Play()
  237. for i = 0,1 , 0.02 do
  238. 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)
  239. 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)
  240. 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)
  241. game:GetService("RunService").RenderStepped:wait()
  242. end
  243. for i = 0,1 , 0.02 do
  244. 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)
  245. 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)
  246. 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)
  247. game:GetService("RunService").RenderStepped:wait()
  248. end
  249. for i = 0,0.7 , 0.01 do
  250. 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)
  251. 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)
  252. 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)
  253. game:GetService("RunService").RenderStepped:wait()
  254. end
  255. using = false
  256. end
  257. end
  258. mouse.Button1Down:connect(shoot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement