Advertisement
Guest User

Untitled

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