daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = owner
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --By Rufus14
  88. isshootingwithfirstgun = true
  89. game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
  90. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  91. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  92. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  93. rhandweld.C1 = CFrame.new(0,1,0)
  94. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  95. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  96. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  97. lhandweld.C1 = CFrame.new(0,1,0)
  98. --Converted with ttyyuu12345's model to script plugin v4
  99. function sandbox(var,func)
  100.     local env = getfenv(func)
  101.     local newenv = setmetatable({},{
  102.         __index = function(self,k)
  103.             if k=="script" then
  104.                 return var
  105.             else
  106.                 return env[k]
  107.             end
  108.         end,
  109.     })
  110.     setfenv(func,newenv)
  111.     return func
  112. end
  113. cors = {}
  114. mas = Instance.new("Model",game:GetService("Lighting"))
  115. Model0 = Instance.new("Model")
  116. Part1 = Instance.new("Part")
  117. Part2 = Instance.new("Part")
  118. Part3 = Instance.new("Part")
  119. Weld4 = Instance.new("Weld")
  120. Weld5 = Instance.new("Weld")
  121. Model0.Name = "Glock"
  122. Model0.Parent = mas
  123. Part1.Parent = Model0
  124. Part1.Material = Enum.Material.Glass
  125. Part1.BrickColor = BrickColor.new("Black")
  126. Part1.Name = "up"
  127. Part1.Rotation = Vector3.new(0, 0, -90)
  128. Part1.Size = Vector3.new(0.199999958, 1.74999976, 0.449999988)
  129. Part1.CFrame = CFrame.new(-3.10613155, 1.13166213, -9.12499809, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  130. Part1.BottomSurface = Enum.SurfaceType.Smooth
  131. Part1.TopSurface = Enum.SurfaceType.Smooth
  132. Part1.Color = Color3.new(0.180392, 0.180392, 0.184314)
  133. Part1.Position = Vector3.new(-3.10613155, 1.13166213, -9.12499809)
  134. Part1.Orientation = Vector3.new(0, 0, -90)
  135. Part1.Color = Color3.new(0.180392, 0.180392, 0.184314)
  136. Part2.Parent = Model0
  137. Part2.Material = Enum.Material.Glass
  138. Part2.BrickColor = BrickColor.new("Really black")
  139. Part2.Rotation = Vector3.new(0, 0, -90)
  140. Part2.Size = Vector3.new(0.349999964, 1.74999976, 0.449999988)
  141. Part2.CFrame = CFrame.new(-3.10613203, 0.856638014, -9.12499809, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  142. Part2.BottomSurface = Enum.SurfaceType.Smooth
  143. Part2.TopSurface = Enum.SurfaceType.Smooth
  144. Part2.Color = Color3.new(0, 0, 0)
  145. Part2.Position = Vector3.new(-3.10613203, 0.856638014, -9.12499809)
  146. Part2.Orientation = Vector3.new(0, 0, -90)
  147. Part2.Color = Color3.new(0, 0, 0)
  148. Part3.Parent = Model0
  149. Part3.Material = Enum.Material.Glass
  150. Part3.BrickColor = BrickColor.new("Bright yellow")
  151. Part3.Name = "Handl"
  152. Part3.Rotation = Vector3.new(0, 0, -15)
  153. Part3.Size = Vector3.new(0.449999988, 1, 0.349999964)
  154. Part3.CFrame = CFrame.new(-3.88113117, 0.556637883, -9.12499809, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)
  155. Part3.BottomSurface = Enum.SurfaceType.Smooth
  156. Part3.TopSurface = Enum.SurfaceType.Smooth
  157. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  158. Part3.Position = Vector3.new(-3.88113117, 0.556637883, -9.12499809)
  159. Part3.Orientation = Vector3.new(0, 0, -15)
  160. Part3.Color = Color3.new(0.960784, 0.803922, 0.188235)
  161. Part1:BreakJoints()
  162. Part2:BreakJoints()
  163. Part3:BreakJoints()
  164. Weld4.Parent = Part3
  165. Weld4.C0 = CFrame.new(0.670945883, 0.490362346, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  166. Weld4.Part0 = Part3
  167. Weld4.Part1 = Part2
  168. Weld5.Parent = Part3
  169. Weld5.C0 = CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  170. Weld5.Part0 = Part3
  171. Weld5.Part1 = Part1
  172. for i,v in pairs(mas:GetChildren()) do
  173.     v.Parent = workspace
  174.     pcall(function() v:MakeJoints() end)
  175. end
  176. mas:Destroy()
  177. for i,v in pairs(cors) do
  178.     spawn(function()
  179.         pcall(v)
  180.     end)
  181. end
  182. for i,v in pairs(Model0:GetChildren()) do
  183.     if v.ClassName == "Part" then
  184.         v.CanCollide = false
  185.     end
  186. end
  187. local weld = Instance.new("Weld", Part1)
  188. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  189. weld.Part1 = Part3
  190. weld.C0 = CFrame.new(-0.0413382053, -1.06609058, -0.169539452, 0.0437759161, 0.0173978098, 0.998889983, -0.962771356, -0.266229749, 0.0468300879, 0.266748905, -0.963752568, 0.0050956551)
  191. ---
  192. --Converted with ttyyuu12345's model to script plugin v4
  193. function sandbox(var,func)
  194.     local env = getfenv(func)
  195.     local newenv = setmetatable({},{
  196.         __index = function(self,k)
  197.             if k=="script" then
  198.                 return var
  199.             else
  200.                 return env[k]
  201.             end
  202.         end,
  203.     })
  204.     setfenv(func,newenv)
  205.     return func
  206. end
  207. cors = {}
  208. mas = Instance.new("Model",game:GetService("Lighting"))
  209. Model00 = Instance.new("Model")
  210. Part11 = Instance.new("Part")
  211. Part22 = Instance.new("Part")
  212. Part33 = Instance.new("Part")
  213. Weld44 = Instance.new("Weld")
  214. Weld55 = Instance.new("Weld")
  215. Model00.Name = "Glock2"
  216. Model00.Parent = mas
  217. Part11.Parent = Model00
  218. Part11.Material = Enum.Material.Glass
  219. Part11.BrickColor = BrickColor.new("Black")
  220. Part11.Name = "up"
  221. Part11.Rotation = Vector3.new(0, 0, -90)
  222. Part11.Size = Vector3.new(0.199999958, 1.74999976, 0.449999988)
  223. Part11.CFrame = CFrame.new(-3.10613155, 1.13166213, -9.12499809, 0, 1, -0, -1, 0, 0, 0, 0, 1)
  224. Part11.BottomSurface = Enum.SurfaceType.Smooth
  225. Part11.TopSurface = Enum.SurfaceType.Smooth
  226. Part11.Color = Color3.new(0.180392, 0.180392, 0.184314)
  227. Part11.Position = Vector3.new(-3.10613155, 1.13166213, -9.12499809)
  228. Part11.Orientation = Vector3.new(0, 0, -90)
  229. Part11.Color = Color3.new(0.180392, 0.180392, 0.184314)
  230. Part22.Parent = Model00
  231. Part22.Material = Enum.Material.Glass
  232. Part22.BrickColor = BrickColor.new("Really black")
  233. Part22.Rotation = Vector3.new(0, 0, -90)
  234. Part22.Size = Vector3.new(0.349999964, 1.74999976, 0.449999988)
  235. Part22.CFrame = CFrame.new(-3.10613203, 0.856638014, -9.12499809, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  236. Part22.BottomSurface = Enum.SurfaceType.Smooth
  237. Part22.TopSurface = Enum.SurfaceType.Smooth
  238. Part22.Color = Color3.new(0, 0, 0)
  239. Part22.Position = Vector3.new(-3.10613203, 0.856638014, -9.12499809)
  240. Part22.Orientation = Vector3.new(0, 0, -90)
  241. Part22.Color = Color3.new(0, 0, 0)
  242. Part33.Parent = Model00
  243. Part33.Material = Enum.Material.Glass
  244. Part33.BrickColor = BrickColor.new("Bright yellow")
  245. Part33.Name = "Handl"
  246. Part33.Rotation = Vector3.new(0, 0, -15)
  247. Part33.Size = Vector3.new(0.449999988, 1, 0.349999964)
  248. Part33.CFrame = CFrame.new(-3.88113117, 0.556637883, -9.12499809, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872, 0, 0, 0, 1)
  249. Part33.BottomSurface = Enum.SurfaceType.Smooth
  250. Part33.TopSurface = Enum.SurfaceType.Smooth
  251. Part33.Color = Color3.new(0.960784, 0.803922, 0.188235)
  252. Part33.Position = Vector3.new(-3.88113117, 0.556637883, -9.12499809)
  253. Part33.Orientation = Vector3.new(0, 0, -15)
  254. Part33.Color = Color3.new(0.960784, 0.803922, 0.188235)
  255. Part11:BreakJoints()
  256. Part22:BreakJoints()
  257. Part33:BreakJoints()
  258. Weld44.Parent = Part33
  259. Weld44.C0 = CFrame.new(0.670945883, 0.490362346, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  260. Weld44.Part0 = Part33
  261. Weld44.Part1 = Part22
  262. Weld55.Parent = Part33
  263. Weld55.C0 = CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1)
  264. Weld55.Part0 = Part33
  265. Weld55.Part1 = Part11
  266. for i,v in pairs(mas:GetChildren()) do
  267.     v.Parent = workspace
  268.     pcall(function() v:MakeJoints() end)
  269. end
  270. mas:Destroy()
  271. for i,v in pairs(cors) do
  272.     spawn(function()
  273.         pcall(v)
  274.     end)
  275. end
  276. for i,v in pairs(Model0:GetChildren()) do
  277.     if v.ClassName == "Part" then
  278.         v.CanCollide = false
  279.     end
  280. end
  281. for i,v in pairs(Model00:GetChildren()) do
  282.     if v.ClassName == "Part" then
  283.         v.CanCollide = false
  284.     end
  285. end
  286. local welded = Instance.new("Weld", Part11)
  287. welded.Part0 = game.Players.LocalPlayer.Character["Left Arm"]
  288. welded.Part1 = Part33
  289. welded.C0 = CFrame.new(-0.0413382053, -1.06609058, -0.169539452, 0.0437759161, 0.0173978098, 0.998889983, -0.962771356, -0.266229749, 0.0468300879, 0.266748905, -0.963752568, 0.0050956551)
  290. function fpstoggle()
  291.     if not fps then
  292.         fps = true
  293.     else
  294.         fps = false
  295.     end
  296. end
  297. game.Players.LocalPlayer.Character.Archivable = true
  298. local music = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  299. local musicrandom = math.random(1,5)
  300. if musicrandom == 1 then
  301.     music.SoundId = "rbxassetid://226041794"
  302. end
  303. if musicrandom == 2 then
  304.     music.SoundId = "rbxassetid://742849183"
  305. end
  306. if musicrandom == 3 then
  307.     music.SoundId = "rbxassetid://226041622"
  308. end
  309. if musicrandom == 4 then
  310.     music.SoundId = "rbxassetid://915703919"
  311. end
  312. if musicrandom == 5 then
  313.     music.SoundId = "rbxassetid://216295506"
  314. end
  315. music.Looped = true
  316. music.Volume = 10
  317. music:Play()
  318. local shooot = Instance.new("Sound", Part1)
  319. shooot.SoundId = "rbxassetid://680140087"
  320. shooot.Volume = 7
  321. local hand = game.Players.LocalPlayer.Character["Right Arm"]:Clone()
  322. hand.Parent = workspace.CurrentCamera
  323. local hand2 = game.Players.LocalPlayer.Character["Left Arm"]:Clone()
  324. hand2.Parent = workspace.CurrentCamera
  325. local deathplr = Instance.new("Sound", game.Players.LocalPlayer.Character)
  326. deathplr.SoundId = "rbxassetid://884348443"
  327. deathplr.Volume = 7
  328. fps = false
  329. using = false
  330. function fpsswitch(key)
  331.     key = key:lower()
  332.     if key == "z" then
  333.         if fps then
  334.             fps = false
  335.         else
  336.             fps = true
  337.         end
  338.     end
  339. end
  340. mouse.KeyDown:connect(fpsswitch)
  341. function shoot()
  342.     if not using then
  343.         if isshootingwithfirstgun then
  344.             isshootingwithfirstgun = false
  345.             using = true
  346.             shooot:Play()
  347.             local missle = Instance.new("Part", workspace)
  348.                 missle:BreakJoints()
  349.                 missle.Name = "bullet"
  350.                 missle.CanCollide = false
  351.                 missle.Material = "Neon"
  352.                 missle.Size = Vector3.new(0.1,0.1,3)
  353.                 missle.CFrame = Part2.CFrame * CFrame.new(0,2.5,0)
  354.                 missle.Transparency = 0.3
  355.                 missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
  356.                 local vel = Instance.new("BodyVelocity", missle)
  357.                 vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  358.                 vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  359.                 local function hit(part)
  360.                     local hitval = math.random(25,40)
  361.                     local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  362.                     if humanoid then
  363.                         if humanoid.Health == math.huge or humanoid.Health >= 600 then
  364.                             humanoid.Health = 100
  365.                         end
  366.                         if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  367.                             humanoid.MaxHealth = 100
  368.                         end
  369.                         if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  370.                            
  371.                         else
  372.                             if humanoid.Health < hitval then
  373.                                 local isded = deathplr:Clone()
  374.                                 isded.Parent = humanoid.Parent.Head
  375.                                 isded:Play()
  376.                                 humanoid.JumpPower = 0
  377.                                 humanoid.PlatformStand = true
  378.                                 humanoid.WalkSpeed = 0
  379.                                 for i,v in pairs(humanoid.Parent:GetChildren()) do
  380.                                     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  381.                                         v:Remove()
  382.                                     end
  383.                                 end
  384.                                 local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  385.                                 if humpart then
  386.                                     humpart:destroy()
  387.                                 end
  388.                                 local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  389.                                 if findlefthip then
  390.                                     findlefthip:Remove()
  391.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  392.                                     glue.Part0 = humanoid.Parent.Torso
  393.                                     glue.Part1 = humanoid.Parent["Left Leg"]
  394.                                     glue.Name = "Left leg"
  395.                                     local collider = Instance.new("Part",  humanoid.Parent["Left Leg"])
  396.                                     collider.Position = Vector3.new(0,999,0)
  397.                                     collider.Size = Vector3.new(1.5, 1, 1)
  398.                                     collider.Shape = "Cylinder"
  399.                                     local weld = Instance.new("Weld", collider)
  400.                                     weld.Part0 =  humanoid.Parent["Left Leg"]
  401.                                     weld.Part1 = collider
  402.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  403.                                     collider.TopSurface = "Smooth"
  404.                                     collider.BottomSurface = "Smooth"
  405.                                     collider.formFactor = "Symmetric"
  406.                                     glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  407.                                     glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  408.                                     collider.Transparency = 1
  409.                                 end
  410.                                 --
  411.                                 local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  412.                                 if findrighthip then
  413.                                     findrighthip:Remove()
  414.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  415.                                     glue.Part0 = humanoid.Parent.Torso
  416.                                     glue.Part1 = humanoid.Parent["Right Leg"]
  417.                                     glue.Name = "Right leg"
  418.                                     local collider = Instance.new("Part",  humanoid.Parent["Right Leg"])
  419.                                     collider.Position = Vector3.new(0,999,0)
  420.                                     collider.Size = Vector3.new(1.5, 1, 1)
  421.                                     collider.Shape = "Cylinder"
  422.                                     local weld = Instance.new("Weld", collider)
  423.                                     weld.Part0 =  humanoid.Parent["Right Leg"]
  424.                                     weld.Part1 = collider
  425.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  426.                                     collider.TopSurface = "Smooth"
  427.                                     collider.BottomSurface = "Smooth"
  428.                                     collider.formFactor = "Symmetric"
  429.                                     glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  430.                                     glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  431.                                     collider.Transparency = 1
  432.                                 end
  433.                                 --
  434.                                 local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  435.                                 if findrightshoulder then
  436.                                     findrightshoulder:Remove()
  437.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  438.                                     glue.Part0 = humanoid.Parent.Torso
  439.                                     glue.Part1 = humanoid.Parent["Right Arm"]
  440.                                     glue.Name = "Right arm"
  441.                                     local collider = Instance.new("Part",  humanoid.Parent["Right Arm"])
  442.                                     collider.Position = Vector3.new(0,999,0)
  443.                                     collider.Size = Vector3.new(1.5, 1, 1)
  444.                                     collider.Shape = "Cylinder"
  445.                                     local weld = Instance.new("Weld", collider)
  446.                                     weld.Part0 =  humanoid.Parent["Right Arm"]
  447.                                     weld.Part1 = collider
  448.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  449.                                     collider.TopSurface = "Smooth"
  450.                                     collider.BottomSurface = "Smooth"
  451.                                     collider.formFactor = "Symmetric"
  452.                                     glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  453.                                     glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  454.                                     collider.Transparency = 1
  455.                                 end
  456.                                 --
  457.                                 local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  458.                                 if findleftshoulder then
  459.                                     findleftshoulder:Remove()
  460.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  461.                                     glue.Part0 = humanoid.Parent.Torso
  462.                                     glue.Part1 = humanoid.Parent["Left Arm"]
  463.                                     glue.Name = "Left arm"
  464.                                     local collider = Instance.new("Part",  humanoid.Parent["Left Arm"])
  465.                                     collider.Position = Vector3.new(0,999,0)
  466.                                     collider.Size = Vector3.new(1.5, 1, 1)
  467.                                     collider.Shape = "Cylinder"
  468.                                     local weld = Instance.new("Weld", collider)
  469.                                     weld.Part0 =  humanoid.Parent["Left Arm"]
  470.                                     weld.Part1 = collider
  471.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  472.                                     collider.TopSurface = "Smooth"
  473.                                     collider.BottomSurface = "Smooth"
  474.                                     collider.formFactor = "Symmetric"
  475.                                     glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  476.                                     glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  477.                                     collider.Transparency = 1
  478.                                 end
  479.                                 local findhead = humanoid.Parent:findFirstChild("Head")
  480.                                 if findhead then
  481.                                     local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  482.                                     attachment.Position = Vector3.new(0, -0.5, 0)
  483.                                     attachment.Name = "lol"
  484.                                     attachment.Visible = false
  485.                                     humanoid.Parent.Torso.NeckAttachment.Visible = false
  486.                                     humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  487.                                     local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  488.                                     ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  489.                                     ball.Attachment1 = attachment
  490.                                     ball.LimitsEnabled = true
  491.                                     ball.TwistLimitsEnabled = true
  492.                                     ball.UpperAngle = 90
  493.                                     ball.Restitution = 0.5
  494.                                     ball.TwistUpperAngle = 90
  495.                                     ball.TwistLowerAngle = -90
  496.                                     local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  497.                                     collidepartofleftleg.Name = "Bone"
  498.                                     collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  499.                                     collidepartofleftleg.Transparency = 1
  500.                                     collidepartofleftleg:BreakJoints()
  501.                                     local weeld = Instance.new("Weld", collidepartofleftleg)
  502.                                     weeld.Part0 = collidepartofleftleg
  503.                                     weeld.Part1 = humanoid.Parent["Head"]
  504.                                     if humanoid.Parent.Torso:findFirstChild("Neck") then
  505.                                         humanoid.Parent.Torso.Neck:destroy()
  506.                                     end
  507.                                 end
  508.                                 wait(10)
  509.                                 humanoid.Health = 0
  510.                         else
  511.                             humanoid.Health = humanoid.Health - hitval
  512.                         end
  513.                         end
  514.                     else
  515.                         if part.Name == "Shotgun" or "bullet" then
  516.                            
  517.                         else
  518.                             missle:destroy()
  519.                         end
  520.                     end
  521.                 end
  522.                 missle.Touched:connect(hit)
  523.             for i = 0,1 , 0.25 do
  524.                 rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
  525.                 Weld5.C0 = Weld5.C0:lerp(CFrame.new(-0.172976017, 0.548959255, -1.1920929e-07, 0.258818805, 0.965925217, -5.66244125e-07, -0.965925753, 0.258818984, -1.11758709e-07, -5.0291419e-08, -6.2584877e-07, 1.00000143),i)
  526.                 game:GetService("RunService").RenderStepped:wait()
  527.             end
  528.             for i = 0,1 , 0.25 do
  529.                 rhandweld.C1 = rhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  530.                 Weld5.C0 = Weld5.C0:lerp(CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1),i)
  531.                 game:GetService("RunService").RenderStepped:wait()
  532.             end
  533.             using = false
  534.         else
  535.             isshootingwithfirstgun = true
  536.             using = true
  537.             shooot:Play()
  538.             local missle = Instance.new("Part", workspace)
  539.                 missle:BreakJoints()
  540.                 missle.Name = "bullet"
  541.                 missle.CanCollide = false
  542.                 missle.Material = "Neon"
  543.                 missle.Size = Vector3.new(0.1,0.1,3)
  544.                 missle.CFrame = Part22.CFrame * CFrame.new(0,2.5,0)
  545.                 missle.Transparency = 0.3
  546.                 missle.CFrame = CFrame.new(missle.Position, mouse.Hit.p)
  547.                 local vel = Instance.new("BodyVelocity", missle)
  548.                 vel.Velocity = mouse.Hit.lookVector * math.random(600,600) + Vector3.new(math.random(-15,15),math.random(-15,15),0)
  549.                 vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  550.                 local function hit(part)
  551.                     local hitval = math.random(25,40)
  552.                     local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  553.                     if humanoid then
  554.                         if humanoid.Health == math.huge or humanoid.Health >= 600 then
  555.                             humanoid.Health = 100
  556.                         end
  557.                         if humanoid.MaxHealth == math.huge or humanoid.MaxHealth >= 600 then
  558.                             humanoid.MaxHealth = 100
  559.                         end
  560.                         if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  561.                            
  562.                         else
  563.                             if humanoid.Health < hitval then
  564.                                 local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
  565.                                 if humpart then
  566.                                     humpart:destroy()
  567.                                 end
  568.                                 for i,v in pairs(humanoid.Parent:GetChildren()) do
  569.                                     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  570.                                         v:Remove()
  571.                                     end
  572.                                 end
  573.                                 local isded = deathplr:Clone()
  574.                                 isded.Parent = humanoid.Parent.Head
  575.                                 isded:Play()
  576.                                 humanoid.JumpPower = 0
  577.                                 humanoid.PlatformStand = true
  578.                                 humanoid.WalkSpeed = 0
  579.                                 local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  580.                                 if findlefthip then
  581.                                     findlefthip:Remove()
  582.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  583.                                     glue.Part0 = humanoid.Parent.Torso
  584.                                     glue.Part1 = humanoid.Parent["Left Leg"]
  585.                                     glue.Name = "Left leg"
  586.                                     local collider = Instance.new("Part",  humanoid.Parent["Left Leg"])
  587.                                     collider.Position = Vector3.new(0,999,0)
  588.                                     collider.Size = Vector3.new(1.5, 1, 1)
  589.                                     collider.Shape = "Cylinder"
  590.                                     local weld = Instance.new("Weld", collider)
  591.                                     weld.Part0 =  humanoid.Parent["Left Leg"]
  592.                                     weld.Part1 = collider
  593.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  594.                                     collider.TopSurface = "Smooth"
  595.                                     collider.BottomSurface = "Smooth"
  596.                                     collider.formFactor = "Symmetric"
  597.                                     glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  598.                                     glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  599.                                     collider.Transparency = 1
  600.                                 end
  601.                                 --
  602.                                 local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  603.                                 if findrighthip then
  604.                                     findrighthip:Remove()
  605.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  606.                                     glue.Part0 = humanoid.Parent.Torso
  607.                                     glue.Part1 = humanoid.Parent["Right Leg"]
  608.                                     glue.Name = "Right leg"
  609.                                     local collider = Instance.new("Part",  humanoid.Parent["Right Leg"])
  610.                                     collider.Position = Vector3.new(0,999,0)
  611.                                     collider.Size = Vector3.new(1.5, 1, 1)
  612.                                     collider.Shape = "Cylinder"
  613.                                     local weld = Instance.new("Weld", collider)
  614.                                     weld.Part0 =  humanoid.Parent["Right Leg"]
  615.                                     weld.Part1 = collider
  616.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  617.                                     collider.TopSurface = "Smooth"
  618.                                     collider.BottomSurface = "Smooth"
  619.                                     collider.formFactor = "Symmetric"
  620.                                     glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  621.                                     glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  622.                                     collider.Transparency = 1
  623.                                 end
  624.                                 --
  625.                                 local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  626.                                 if findrightshoulder then
  627.                                     findrightshoulder:Remove()
  628.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  629.                                     glue.Part0 = humanoid.Parent.Torso
  630.                                     glue.Part1 = humanoid.Parent["Right Arm"]
  631.                                     glue.Name = "Right arm"
  632.                                     local collider = Instance.new("Part",  humanoid.Parent["Right Arm"])
  633.                                     collider.Position = Vector3.new(0,999,0)
  634.                                     collider.Size = Vector3.new(1.5, 1, 1)
  635.                                     collider.Shape = "Cylinder"
  636.                                     local weld = Instance.new("Weld", collider)
  637.                                     weld.Part0 =  humanoid.Parent["Right Arm"]
  638.                                     weld.Part1 = collider
  639.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  640.                                     collider.TopSurface = "Smooth"
  641.                                     collider.BottomSurface = "Smooth"
  642.                                     collider.formFactor = "Symmetric"
  643.                                     glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  644.                                     glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  645.                                     collider.Transparency = 1
  646.                                 end
  647.                                 --
  648.                                 local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  649.                                 if findleftshoulder then
  650.                                     findleftshoulder:Remove()
  651.                                     local glue = Instance.new("Glue",  humanoid.Parent.Torso)
  652.                                     glue.Part0 = humanoid.Parent.Torso
  653.                                     glue.Part1 = humanoid.Parent["Left Arm"]
  654.                                     glue.Name = "Left arm"
  655.                                     local collider = Instance.new("Part",  humanoid.Parent["Left Arm"])
  656.                                     collider.Position = Vector3.new(0,999,0)
  657.                                     collider.Size = Vector3.new(1.5, 1, 1)
  658.                                     collider.Shape = "Cylinder"
  659.                                     local weld = Instance.new("Weld", collider)
  660.                                     weld.Part0 =  humanoid.Parent["Left Arm"]
  661.                                     weld.Part1 = collider
  662.                                     weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  663.                                     collider.TopSurface = "Smooth"
  664.                                     collider.BottomSurface = "Smooth"
  665.                                     collider.formFactor = "Symmetric"
  666.                                     glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  667.                                     glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  668.                                     collider.Transparency = 1
  669.                                 end
  670.                                 local findhead = humanoid.Parent:findFirstChild("Head")
  671.                                 if findhead then
  672.                                     local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  673.                                     attachment.Position = Vector3.new(0, -0.5, 0)
  674.                                     attachment.Name = "lol"
  675.                                     attachment.Visible = false
  676.                                     humanoid.Parent.Torso.NeckAttachment.Visible = false
  677.                                     humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  678.                                     local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  679.                                     ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  680.                                     ball.Attachment1 = attachment
  681.                                     ball.LimitsEnabled = true
  682.                                     ball.TwistLimitsEnabled = true
  683.                                     ball.UpperAngle = 90
  684.                                     ball.Restitution = 0.5
  685.                                     ball.TwistUpperAngle = 90
  686.                                     ball.TwistLowerAngle = -90
  687.                                     local  collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  688.                                     collidepartofleftleg.Name = "Bone"
  689.                                     collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  690.                                     collidepartofleftleg.Transparency = 1
  691.                                     collidepartofleftleg:BreakJoints()
  692.                                     local weeld = Instance.new("Weld", collidepartofleftleg)
  693.                                     weeld.Part0 = collidepartofleftleg
  694.                                     weeld.Part1 = humanoid.Parent["Head"]
  695.                                     if humanoid.Parent.Torso:findFirstChild("Neck") then
  696.                                         humanoid.Parent.Torso.Neck:destroy()
  697.                                     end
  698.                                 end
  699.                                 wait(10)
  700.                                 humanoid.Health = 0
  701.                         else
  702.                             humanoid.Health = humanoid.Health - hitval
  703.                         end
  704.                         end
  705.                     else
  706.                         if part.Name == "Shotgun" or "bullet" then
  707.                            
  708.                         else
  709.                             missle:destroy()
  710.                         end
  711.                     end
  712.                 end
  713.                 missle.Touched:connect(hit)
  714.             for i = 0,1 , 0.25 do
  715.                 lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(-0.05,0,0)
  716.                 Weld55.C0 = Weld55.C0:lerp(CFrame.new(-0.172976017, 0.548959255, -1.1920929e-07, 0.258818805, 0.965925217, -5.66244125e-07, -0.965925753, 0.258818984, -1.11758709e-07, -5.0291419e-08, -6.2584877e-07, 1.00000143),i)
  717.                 game:GetService("RunService").RenderStepped:wait()
  718.             end
  719.             for i = 0,1 , 0.25 do
  720.                 lhandweld.C1 = lhandweld.C1 * CFrame.fromEulerAnglesXYZ(0.05,0,0)
  721.                 Weld55.C0 = Weld55.C0:lerp(CFrame.new(0.599765062, 0.75601542, 0, 0.258818984, 0.965925872, 0, -0.965925872, 0.258818984, 0, 0, 0, 1),i)
  722.                 game:GetService("RunService").RenderStepped:wait()
  723.             end
  724.             using = false
  725.         end
  726.     end
  727. end
  728. mouse.Button1Down:connect(shoot)
  729. function ragdoll()
  730. music:Stop()
  731. game.Players.LocalPlayer.Character.Archivable = true
  732. clone = game.Players.LocalPlayer.Character:Clone()
  733. clone.Parent = workspace
  734. for i,v in pairs(clone:GetChildren()) do
  735.     if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  736.         v:destroy()
  737.     end
  738.     for i,p in pairs(v:GetChildren()) do
  739.     if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  740.         p:destroy()
  741.     end
  742. end
  743. end
  744. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  745.     if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  746.         t:destroy()
  747.     end
  748. end
  749. vel = Instance.new("BodyVelocity", clone.Torso)
  750. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  751. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  752. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  753. using = false
  754. hit = Instance.new("Sound", clone.Torso)
  755. hit.SoundId = "rbxassetid://260430060"
  756. hit.Volume = 0
  757. hit1 = Instance.new("Sound", clone.Torso)
  758. hit1.SoundId = "rbxassetid://138087186"
  759. hit1.Volume = 0
  760. hit2 = Instance.new("Sound", clone.Torso)
  761. hit2.SoundId = "rbxassetid://131237241"
  762. hit2.Volume = 0
  763. hit3 = Instance.new("Sound", clone.Torso)
  764. hit3.SoundId = "rbxassetid://278062209"
  765. hit3.Volume = 0
  766. hit3.TimePosition = 0.33
  767. ded = Instance.new("Sound", clone.Torso)
  768. ded.SoundId = "rbxassetid://884348443"
  769. ded.Volume =10
  770. local leftarm = clone:findFirstChild("Left Arm")
  771. local rightrm = clone:findFirstChild("Right Arm")
  772. local leftleg = clone:findFirstChild("Left Leg")
  773. local rightleg = clone:findFirstChild("Right Leg")
  774. local head = clone:findFirstChild("Head")
  775. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  776.     if g.ClassName == "Part" then
  777.         g:destroy()
  778.     end
  779. end
  780. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  781.     if h.ClassName == "Accesory" then
  782.         h:destroy()
  783.     end
  784. end
  785. game.Workspace.CurrentCamera.CameraSubject = head
  786. if head then
  787.             local attachment = Instance.new("Attachment", clone.Head)
  788.             attachment.Position = Vector3.new(0, -0.5, 0)
  789.             attachment.Name = "lol"
  790.             attachment.Visible = false
  791.             clone.Torso.NeckAttachment.Visible = false
  792.             clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  793.             local ball = Instance.new("BallSocketConstraint", clone)
  794.             ball.Attachment0 = clone.Torso.NeckAttachment
  795.             ball.Attachment1 = attachment
  796.             ball.LimitsEnabled = true
  797.             ball.TwistLimitsEnabled = true
  798.             ball.UpperAngle = 90
  799.             ball.Restitution = 0.5
  800.             ball.TwistUpperAngle = 90
  801.             ball.TwistLowerAngle = -90
  802.             local  collidepartofleftleg = Instance.new("Part", clone.Torso)
  803.             collidepartofleftleg.Name = "Bone"
  804.             collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  805.             collidepartofleftleg.Transparency = 1
  806.             collidepartofleftleg:BreakJoints()
  807.             local weeld = Instance.new("Weld", collidepartofleftleg)
  808.             weeld.Part0 = collidepartofleftleg
  809.             weeld.Part1 = clone["Head"]
  810.         end
  811. if leftleg ~= nil then
  812. local glue = Instance.new("Glue", clone.Torso)
  813. glue.Part0 = clone.Torso
  814. glue.Part1 = leftleg
  815. glue.Name = "Left leg"
  816. local collider = Instance.new("Part", leftleg)
  817. collider.Position = Vector3.new(0,999,0)
  818. collider.Size = Vector3.new(1.5, 1, 1)
  819. collider.Shape = "Cylinder"
  820. local weld = Instance.new("Weld", collider)
  821. weld.Part0 = leftleg
  822. weld.Part1 = collider
  823. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  824. collider.TopSurface = "Smooth"
  825. collider.BottomSurface = "Smooth"
  826. collider.formFactor = "Symmetric"
  827. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  828. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  829. collider.Transparency = 1
  830. end
  831. ------------
  832. if rightleg ~= nil then
  833. local glue1 = Instance.new("Glue", clone.Torso)
  834. glue1.Part0 = clone.Torso
  835. glue1.Part1 = rightleg
  836. glue1.Name = "Right leg"
  837. local collider1 = Instance.new("Part", rightleg)
  838. collider1.Position = Vector3.new(0,999,0)
  839. collider1.Size = Vector3.new(1.5, 1, 1)
  840. collider1.Shape = "Cylinder"
  841. local weld1 = Instance.new("Weld", collider1)
  842. weld1.Part0 = rightleg
  843. weld1.Part1 = collider1
  844. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  845. collider1.TopSurface = "Smooth"
  846. collider1.BottomSurface = "Smooth"
  847. collider1.formFactor = "Symmetric"
  848. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  849. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  850. collider1.Transparency = 1
  851. end
  852. ------------
  853. if rightrm ~= nil then
  854. local glue11 = Instance.new("Glue", clone.Torso)
  855. glue11.Part0 = clone.Torso
  856. glue11.Part1 = rightrm
  857. glue11.Name = "Right shoulder"
  858. local collider11 = Instance.new("Part", rightrm)
  859. collider11.Position = Vector3.new(0,9999,0)
  860. collider11.Size = Vector3.new(1.5,1,1)
  861. collider11.Shape = "Cylinder"
  862. local weld11 = Instance.new("Weld", collider11)
  863. weld11.Part0 = rightrm
  864. weld11.Part1 = collider11
  865. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  866. collider11.TopSurface = "Smooth"
  867. collider11.BottomSurface = "Smooth"
  868. collider11.formFactor = "Symmetric"
  869. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  870. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  871. collider11.Transparency = 1
  872. end
  873. ------------
  874. if leftarm ~= nil then
  875. local glue111 = Instance.new("Glue", clone.Torso)
  876. glue111.Part0 = clone.Torso
  877. glue111.Part1 = leftarm
  878. glue111.Name = "Left shoulder"
  879. local collider111 = Instance.new("Part", leftarm)
  880. collider111.Position = Vector3.new(0,9999,0)
  881. collider111.Size = Vector3.new(1.5,1,1)
  882. collider111.Shape = "Cylinder"
  883. local weld111 = Instance.new("Weld", collider111)
  884. weld111.Part0 = leftarm
  885. weld111.Part1 = collider111
  886. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  887. collider111.TopSurface = "Smooth"
  888. collider111.BottomSurface = "Smooth"
  889. collider111.formFactor = "Symmetric"
  890. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  891. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  892. collider111.Transparency = 1
  893. ----------------
  894. sensoring = Instance.new("Part", clone.Torso)
  895. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  896. sensoring.CanCollide = false
  897. sensoring.Position = clone.Torso.Position
  898. local welder = Instance.new("Weld", sensoring)
  899. welder.Part0 = clone.Torso
  900. welder.Part1 = sensoring
  901. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  902. sensoring.Transparency = 1
  903. -----------------
  904. sensoring1 = Instance.new("Part", clone.Torso)
  905. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  906. sensoring1.CanCollide = false
  907. sensoring1.Position = clone.Torso.Position
  908. local welder1 = Instance.new("Weld", sensoring)
  909. welder1.Part0 = clone.Torso
  910. welder1.Part1 = sensoring1
  911. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  912. sensoring1.Transparency = 1
  913. end
  914. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  915. ded:Play()
  916. vel:destroy()
  917. wait(0.5)
  918. local function touch()
  919.     if not using then
  920.         using = true
  921.         local Math = math.random(1,4)
  922.         if Math == 1 then
  923.             hit:Play()
  924.         end
  925.         if Math == 2 then
  926.             hit1:Play()
  927.         end
  928.         if Math == 3 then
  929.             hit2:Play()
  930.         end
  931.         if Math == 4 then
  932.             hit3:Play()
  933.         end
  934.         wait(0.1)
  935.         using = false
  936.     end
  937. end
  938. sensoring.Touched:connect(touch)
  939. sensoring1.Touched:connect(touch)
  940. wait(0.5)
  941. while true do
  942.     clone.Head.CanCollide = false
  943.     game:GetService("RunService").Stepped:wait()
  944. end
  945. end
  946.  
  947. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  948. while true do
  949.     game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.Torso.Position.y,mouse.Hit.p.z))
  950.     lhandweld.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,0.1)
  951.     rhandweld.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,-0.1)
  952.     game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
  953.     hand.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame
  954.     hand2.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame
  955.     if Model0.Parent == nil then
  956.         Model0.Parent = workspace
  957.     end
  958.     if hand.Parent == nil then
  959.         hand.Parent = workspace
  960.     end
  961.     if music.Parent == nil then
  962.         music.Parent = game.Players.LocalPlayer.Character.Head
  963.     end
  964.     if shooot.Parent == nil then
  965.         shooot.Parent = Part2
  966.     end
  967.     if fps then
  968.         game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
  969.         Model0.Parent = workspace
  970.         Model00.Parent = workspace
  971.         hand.Transparency = 0
  972.         hand2.Transparency = 0
  973.     else
  974.         game.Players.LocalPlayer.CameraMode = "Classic"
  975.         Model0.Parent = game.Players.LocalPlayer.Character
  976.         Model00.Parent = game.Players.LocalPlayer.Character
  977.         hand.Transparency = 1
  978.         hand2.Transparency = 1
  979.     end
  980.     game:GetService("RunService").RenderStepped:wait()
  981. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top