AnormalPerson

testing

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