Jerrychan123

Untitled

Jun 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. repeat wait() until player.Character.Humanoid
  3. local humanoid = player.Character.Humanoid
  4. local mouse = player:GetMouse()
  5. --game.Players.LocalPlayer.Character.Shirt.ShirtTemplate='rbxassetid://473465498'
  6. local player=game.Players.LocalPlayer;
  7. local char=game.Players.LocalPlayer.Character;
  8. local humanoid = player.Character.Humanoid;
  9. Tool=Instance.new('Tool', game.Players.LocalPlayer.Backpack);
  10. Tool.GripRight=Vector3.new(-0.816, 0, 0.577);
  11. Tool.GripUp=Vector3.new(-0.027, 0.996, -0.089);
  12. Tool.GripPos=Vector3.new(-0.3, -0.4, 0.4);
  13. Tool.GripForward=Vector3.new(-1, 0, -0); --0.485, 0.14, -0.863
  14. Tool.Name='kys';
  15. Handle=Instance.new('Part', Tool);
  16. Handle.Name = 'Handle';
  17. Handle.BrickColor=BrickColor.new('Really black')
  18. Handle.Size=Vector3.new(0.26, 1.11, 4.85);
  19. Handle.Position=Vector3.new(-18.53, 0.555, -16.825)
  20. gunfire=Instance.new('Part', Tool)
  21. gunfire.Name='GunFire'
  22. gunfire.Size=Vector3.new(0.2, 0.2, 0.2)
  23. gunfire.Transparency=1
  24. gunfire.Position=Vector3.new(-18.56, 1.1, -19.35)
  25. gunfirefx=Instance.new('BillboardGui', gunfire)
  26. gunfirefx.Enabled=false
  27. gunfirefx.Adornee = gunfire
  28. gunfirefx.Size=UDim2.new(1.1, 0, 1.1, 0)
  29. gunfirefx2=Instance.new('ImageLabel', gunfirefx)
  30. gunfirefx2.Image='http://www.roblox.com/asset/?id=117472237'
  31. gunfirefx2.BackgroundTransparency=1
  32. gunfirefx2.Size=UDim2.new(1.2, 0, 1.2, 0)
  33.  
  34. shootsound=Instance.new('Sound', char.Torso)
  35. shootsound.Volume=8
  36. shootsound.SoundId='rbxassetid://230622620'
  37. c4mesh=Instance.new('SpecialMesh', Handle);
  38. c4mesh.MeshType = 'FileMesh';
  39. c4mesh.MeshId='http://www.roblox.com/asset/?id=95356090';
  40. c4mesh.TextureId='http://www.roblox.com/asset/?id=95387789';
  41. c4mesh.Scale=Vector3.new(1.8, 1.8, 1.8);
  42.  
  43. local anim5 = Instance.new("Animation", player.Character)
  44. anim5.AnimationId = "http://www.roblox.com/asset/?id=95383474"
  45. local playAnim10 = humanoid:LoadAnimation(anim5)
  46.  
  47. Tool.GripRight=Vector3.new(-0.816, 0, 0.577)
  48.  
  49. function equipped()
  50. wait()
  51. playAnim10:Play()
  52. end
  53.  
  54. function unequipped()
  55. wait()
  56. playAnim10:Stop()
  57. end
  58.  
  59. Tool.Equipped:connect(equipped)
  60. Tool.Unequipped:connect(unequipped)
  61.  
  62. light=Instance.new('PointLight', Handle);
  63. light.Color = Color3.new(255, 255, 0)
  64. light.Range=10;
  65. light.Enabled=false;
  66.  
  67.  
  68. function Shoot()
  69. shootsound:Play()
  70. light.Enabled=true
  71. wait(0.1)
  72. light.Enabled=false
  73. player.Character.Humanoid.Health=0
  74. wait()
  75. Tool:Destroy()
  76. end
  77. Tool.Activated:connect(Shoot)
  78.  
  79. --ragdoll
  80.  
  81. print("Loaded.")
  82. --You don't need to edit this!
  83.  
  84. Character = player.Character
  85. Humanoid = Character.Humanoid
  86. Torso = Character.Torso
  87. mode = Instance.new("Model")
  88. mode.Name = ""
  89. mode.Parent = game.Workspace
  90.  
  91. function OnDeath()
  92.  
  93. print("Death")
  94. wait(0.00000001)
  95. Humanoid.Parent = nil
  96. if Torso then
  97. zam=Torso:Clone()
  98. zam.Parent=mode
  99. x=Character:GetChildren()
  100. for i=1,#x do
  101. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  102. local zor=x[i]:Clone()
  103. zor.Parent=mode
  104. end
  105. if x[i].Name=="Head" then
  106. local zem=x[i]:Clone()
  107. zem.Parent=mode --Made by MatrixComplexity
  108. local Neck = Instance.new("Weld")
  109. Neck.Name = "Neck"
  110. Neck.Part0 = zam
  111. Neck.Part1 = zem
  112. Neck.C0 = CFrame.new(0, 1.5, 0)
  113. Neck.C1 = CFrame.new()
  114. Neck.Parent = zam
  115. end
  116. if x[i].Name=="Right Arm" then
  117. local Limb=x[i]:Clone()
  118. Limb.Parent=mode
  119. Limb.CFrame = zam.CFrame * CFrame.new(1.5, 0, 0)
  120. local Joint = Instance.new("Glue")
  121. Joint.Name = "RightShoulder"
  122. Joint.Part0 = zam
  123. Joint.Part1 = Limb
  124. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  125. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  126. Joint.Parent = zam
  127.  
  128. local B = Instance.new("Part")
  129. B.TopSurface = 0
  130. B.BottomSurface = 0
  131. B.formFactor = "Symmetric"
  132. B.Size = Vector3.new(1, 1, 1)
  133. B.Transparency = 1
  134. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  135. B.Parent = mode
  136. local W = Instance.new("Weld")
  137. W.Part0 = Limb
  138. W.Part1 = B
  139. W.C0 = CFrame.new(0, -0.5, 0)
  140. W.Parent = Limb
  141.  
  142. end
  143. if x[i].Name=="Left Arm" then
  144. local Limb=x[i]:Clone()
  145. Limb.Parent=mode
  146.  
  147. Limb.CFrame = zam.CFrame * CFrame.new(-1.5, 0, 0)
  148. local Joint = Instance.new("Glue")
  149. Joint.Name = "LeftShoulder"
  150. Joint.Part0 = zam
  151. Joint.Part1 = Limb
  152. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  153. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  154. Joint.Parent = zam
  155.  
  156. local B = Instance.new("Part")
  157. B.TopSurface = 0
  158. B.BottomSurface = 0
  159. B.formFactor = "Symmetric"
  160. B.Size = Vector3.new(1, 1, 1)
  161. B.Transparency = 1
  162. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  163. B.Parent = mode
  164. local W = Instance.new("Weld")
  165. W.Part0 = Limb
  166. W.Part1 = B
  167. W.C0 = CFrame.new(0, -0.5, 0)
  168. W.Parent = Limb
  169.  
  170. end
  171. if x[i].Name=="Right Leg" then
  172. local Limb=x[i]:Clone()
  173. Limb.Parent=mode
  174.  
  175. Limb.CFrame = zam.CFrame * CFrame.new(0.5, -2, 0)
  176. local Joint = Instance.new("Glue")
  177. Joint.Name = "RightHip"
  178. Joint.Part0 = zam
  179. Joint.Part1 = Limb
  180. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  181. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  182. Joint.Parent = zam
  183.  
  184. local B = Instance.new("Part")
  185. B.TopSurface = 0
  186. B.BottomSurface = 0
  187. B.formFactor = "Symmetric"
  188. B.Size = Vector3.new(1, 1, 1)
  189. B.Transparency = 1
  190. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  191. B.Parent = mode
  192. local W = Instance.new("Weld")
  193. W.Part0 = Limb
  194. W.Part1 = B
  195. W.C0 = CFrame.new(0, -0.5, 0)
  196. W.Parent = Limb
  197.  
  198. end
  199. if x[i].Name=="Left Leg" then
  200. local Limb=x[i]:Clone()
  201. Limb.Parent=mode
  202.  
  203. Limb.CFrame = zam.CFrame * CFrame.new(-0.5, -2, 0)
  204. local Joint = Instance.new("Glue")
  205. Joint.Name = "LeftHip"
  206. Joint.Part0 = zam
  207. Joint.Part1 = Limb
  208. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  209. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  210. Joint.Parent = zam
  211.  
  212. local B = Instance.new("Part")
  213. B.TopSurface = 0
  214. B.BottomSurface = 0
  215. B.formFactor = "Symmetric"
  216. B.Size = Vector3.new(1, 1, 1)
  217. B.Transparency = 1
  218. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  219. B.Parent = mode
  220. local W = Instance.new("Weld")
  221. W.Part0 = Limb
  222. W.Part1 = B
  223. W.C0 = CFrame.new(0, -0.5, 0)
  224. W.Parent = Limb
  225.  
  226. end
  227. bland=Instance.new("Humanoid")
  228. bland.Health = 0
  229. bland.MaxHealth = 0
  230. bland.Parent=mode
  231. if ((x[i].Name=="Shirt") or (x[i].Name=="Pants")) then
  232. local zor=x[i]:Clone()
  233. zor.Parent=mode
  234. end
  235. --[
  236. if (x[i].ClassName=="CharacterMesh") then
  237. local zor=x[i]:Clone()
  238. zor.Parent=mode
  239. end
  240. if (x[i].ClassName=="Hat") then
  241. local zor=x[i]:Clone()
  242. zor.Parent=mode
  243. end
  244. local cam = Instance.new("Camera")
  245. cam.Parent = game.Players:FindFirstChild(Character.Name)
  246. cam.CameraSubject = mode.Humanoid
  247. local Bar = Instance.new("Part")
  248. Bar.TopSurface = 0
  249. Bar.BottomSurface = 0
  250. Bar.formFactor = "Symmetric"
  251. Bar.Size = Vector3.new(1, 1, 1)
  252. Bar.Transparency = 1
  253. Bar.CFrame = zam.CFrame * CFrame.new(0, 0.5, 0)
  254. Bar.Parent = mode
  255. local Weld = Instance.new("Weld")
  256. Weld.Part0 = zam
  257. Weld.Part1 = Bar
  258. Weld.C0 = CFrame.new(0, 0.5, 0)
  259. Weld.Parent = zam
  260. --]]
  261. end
  262. end
  263. wait()
  264. Character:Remove()
  265. wait(6)
  266. mode:Destroy()
  267. end
  268.  
  269. Humanoid.Died:connect(OnDeath)
Add Comment
Please, Sign In to add comment