roblox1234createscri

test

Nov 6th, 2020 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.46 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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 Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  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.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. --By naser2018
  146. mouse = game.Players.LocalPlayer:GetMouse()
  147. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  148. gun.Size = Vector3.new(0.5, 1, 2)
  149. gun.CanCollide = false
  150. gun:BreakJoints()
  151. weld = Instance.new("Weld", gun)
  152. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  153. weld.Part1 = gun
  154. weld.C0 = weld.C0 * CFrame.new(-0.2,-1.7,-0.25) * CFrame.Angles(0,1.6,-1.53)
  155. mesh = Instance.new("SpecialMesh", gun)
  156. mesh.MeshId = "rbxassetid://623102664"
  157. mesh.TextureId = "rbxassetid://623102879"
  158. mesh.Scale = Vector3.new(0.01,0.01,0.01)
  159. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  160. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  161. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  162. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  163. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  164. shooting = false
  165. for i = 1,2 do
  166. wait()
  167. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  168. end
  169. for i = 1,2 do
  170. wait()
  171. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  172. end
  173. for i = 1,7 do
  174. wait()
  175. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.17)
  176. end
  177. for i = 1,2 do
  178. wait()
  179. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  180. end
  181. for i = 1,2 do
  182. wait()
  183. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  184. end
  185. function shoot()
  186. if not shooting then
  187. shooting = true
  188. local shotsound = Instance.new("Sound", gun)
  189. shotsound.EmitterSize = 1
  190. shotsound.SoundId = "rbxassetid://139593133"
  191. shotsound.Volume = 3
  192. shotsound:Play()
  193. local missle = Instance.new("Part", workspace)
  194. missle.Size = Vector3.new(0.05,0.05,0.05)
  195. missle.CanCollide = false
  196. missle.BrickColor = BrickColor.new("New Yeller")
  197. missle.Shape = "Ball"
  198. missle.CFrame = gun.CFrame
  199. missle:BreakJoints()
  200. local velo = Instance.new("BodyVelocity", missle)
  201. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  202. velo.Velocity = mouse.Hit.lookVector * 190
  203. for i = 1,2 do
  204. weld.C0 = weld.C0 * CFrame.Angles(0,0,0.14)
  205. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.14)
  206. end
  207. for i = 1,2 do
  208. wait()
  209. weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  210. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  211. end
  212. local function kill(part)
  213. local hum = part.Parent:findFirstChild("Humanoid")
  214. local torso = part.Parent:findFirstChild("Torso")
  215. local larm = part.Parent:findFirstChild("Left Arm")
  216. local rarm = part.Parent:findFirstChild("Right Arm")
  217. local lleg = part.Parent:findFirstChild("Left Leg")
  218. local rleg = part.Parent:findFirstChild("Right Leg")
  219. missle:destroy()
  220. if hum ~= nil then
  221. if torso then
  222. hum.Health = hum.Health - math.random(25,68)
  223. local shotsound1 = Instance.new("Sound", torso)
  224. shotsound1:Play()
  225. shotsound1.EmitterSize = 2
  226. shotsound1.SoundId = "rbxassetid://144884872"
  227. shotsound1.Volume = 8
  228. shotsound1:Play()
  229. local shotsound1 = Instance.new("Sound", torso)
  230. shotsound1:Play()
  231. shotsound1.EmitterSize = 2
  232. shotsound1.SoundId = "rbxassetid://175272131"
  233. shotsound1.Volume = 8
  234. shotsound1:Play()
  235. using = false
  236. hit = Instance.new("Sound", torso)
  237. hit.SoundId = "rbxassetid://260430060"
  238. hit.Volume = 5
  239. hit1 = Instance.new("Sound", torso)
  240. hit1.SoundId = "rbxassetid://138087186"
  241. hit1.Volume = 5
  242. hit2 = Instance.new("Sound", torso)
  243. hit2.SoundId = "rbxassetid://131237241"
  244. hit2.Volume = 5
  245. hit3 = Instance.new("Sound", torso)
  246. hit3.SoundId = "rbxassetid://278062209"
  247. hit3.Volume = 5
  248. hit3.TimePosition = 0.33
  249. print("You killed "..hum.Parent.Name)
  250. hum.PlatformStand = true
  251. ----------
  252. local lhip = torso:findFirstChild("Left Hip")
  253. if lhip then
  254. ---
  255. torso["Left Hip"]:destroy()
  256. local head = game.Players.LocalPlayer.Character.Head
  257. local glue = Instance.new("Glue", torso)
  258. glue.Part0 = torso
  259. glue.Part1 = torso.Parent["Left Leg"]
  260. glue.Name = "Left leg"
  261. local collider = Instance.new("Part", torso.Parent["Left Leg"])
  262. collider.Position = Vector3.new(0,999,0)
  263. collider.Size = Vector3.new(1.7, 1, 1)
  264. collider.Shape = "Cylinder"
  265. local weld = Instance.new("Weld", collider)
  266. weld.Part0 = torso.Parent["Left Leg"]
  267. weld.Part1 = collider
  268. weld.C0 = CFrame.Angles(0, 0, 80)
  269. collider.TopSurface = "Smooth"
  270. collider.BottomSurface = "Smooth"
  271. collider.formFactor = "Symmetric"
  272. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  273. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  274. collider.Transparency = 1
  275. end
  276. local rhip = torso:findFirstChild("Right Hip")
  277. if rhip then
  278. ------------
  279. torso["Right Hip"]:destroy()
  280. local glue1 = Instance.new("Glue", torso)
  281. glue1.Part0 = torso
  282. glue1.Part1 = torso.Parent["Right Leg"]
  283. glue1.Name = "Right leg"
  284. local collider1 = Instance.new("Part", torso.Parent["Right Leg"])
  285. collider1.Position = Vector3.new(0,9999,0)
  286. collider1.Size = Vector3.new(1.7, 1, 1)
  287. collider1.Shape = "Cylinder"
  288. local weld1 = Instance.new("Weld", collider1)
  289. weld1.Part0 = torso.Parent["Right Leg"]
  290. weld1.Part1 = collider1
  291. weld1.C0 = CFrame.Angles(0, 0, 80)
  292. collider1.TopSurface = "Smooth"
  293. collider1.BottomSurface = "Smooth"
  294. collider1.formFactor = "Symmetric"
  295. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  296. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  297. collider1.Transparency = 1
  298. end
  299. ------------
  300. local rshoulder = torso:findFirstChild("Right Shoulder")
  301. if rshoulder then
  302. torso["Right Shoulder"]:destroy()
  303. local glue11 = Instance.new("Glue", torso)
  304. glue11.Part0 = torso
  305. glue11.Part1 = torso.Parent["Right Arm"]
  306. glue11.Name = "Right shoulder"
  307. local collider11 = Instance.new("Part", torso.Parent["Right Arm"])
  308. collider11.Position = Vector3.new(0,9999,0)
  309. collider11.Size = Vector3.new(1.8,1,1)
  310. collider11.Shape = "Cylinder"
  311. local weld11 = Instance.new("Weld", collider11)
  312. weld11.Part0 = torso.Parent["Right Arm"]
  313. weld11.Part1 = collider11
  314. weld11.C0 = CFrame.Angles(0, 0, 80)
  315. collider11.TopSurface = "Smooth"
  316. collider11.BottomSurface = "Smooth"
  317. collider11.formFactor = "Symmetric"
  318. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  319. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  320. collider11.Transparency = 1
  321. end
  322. ------------
  323. local lshoulder = torso:findFirstChild("Left Shoulder")
  324. if lshoulder then
  325. torso["Left Shoulder"]:destroy()
  326. local glue111 = Instance.new("Glue", torso)
  327. glue111.Part0 = torso
  328. glue111.Part1 = torso.Parent["Left Arm"]
  329. glue111.Name = "Left shoulder"
  330. local collider111 = Instance.new("Part", torso.Parent["Left Arm"])
  331. collider111.Position = Vector3.new(0,9999,0)
  332. collider111.Size = Vector3.new(1.8,1,1)
  333. collider111.Shape = "Cylinder"
  334. local weld111 = Instance.new("Weld", collider111)
  335. weld111.Part0 = torso.Parent["Left Arm"]
  336. weld111.Part1 = collider111
  337. weld111.C0 = CFrame.Angles(0, 0, 80)
  338. collider111.TopSurface = "Smooth"
  339. collider111.BottomSurface = "Smooth"
  340. collider111.formFactor = "Symmetric"
  341. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  342. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  343. collider111.Transparency = 1
  344. end
  345. -----------------
  346. local sensoring = Instance.new("Part", torso)
  347. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  348. sensoring.CanCollide = false
  349. sensoring.Position = torso.Position
  350. local welder = Instance.new("Weld", sensoring)
  351. welder.Part0 = torso
  352. welder.Part1 = sensoring
  353. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  354. sensoring.Transparency = 1
  355. -----------------
  356. local sensoring1 = Instance.new("Part", torso)
  357. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  358. sensoring1.CanCollide = false
  359. sensoring1.Position = torso.Position
  360. local welder1 = Instance.new("Weld", sensoring)
  361. welder1.Part0 = torso
  362. welder1.Part1 = sensoring1
  363. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  364. sensoring1.Transparency = 1
  365. local function touch()
  366. if not using then
  367. using = true
  368. local Math = math.random(1,4)
  369. if Math == 1 then
  370. hit:Play()
  371. end
  372. if Math == 2 then
  373. hit1:Play()
  374. end
  375. if Math == 3 then
  376. hit2:Play()
  377. end
  378. if Math == 4 then
  379. hit3:Play()
  380. end
  381. wait(0.1)
  382. using = false
  383. end
  384. end
  385. sensoring.Touched:connect(touch)
  386. sensoring1.Touched:connect(touch)
  387. if part.Name == "Head" then
  388. local hed = Instance.new("Sound", torso)
  389. hed.SoundId = "rbxassetid://147936251"
  390. hed.Volume = 5
  391. hed:Play()
  392. hum.Health = 0.00001
  393. for i,v in pairs(torso.Parent:GetChildren()) do
  394. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  395. v:destroy()
  396. end
  397. end
  398. for i,v in pairs(torso.Parent.Head:GetChildren()) do
  399. if v.ClassName == "Decal" then
  400. v:destroy()
  401. end
  402. end
  403. torso.Parent.Head.Transparency = 1
  404. wait(3)
  405. hum.Health = 0
  406. end
  407. while true do
  408. wait(0.3)
  409. hum.PlatformStand = true
  410. end
  411.  
  412. --di ent
  413. end
  414. end
  415. end
  416. missle.Touched:connect(kill)
  417. for i = 1,2 do
  418. wait()
  419. weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  420. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  421. end
  422. shooting = false
  423. wait(3)
  424. shotsound:destroy()
  425. end
  426. end
  427. mouse.Button1Down:connect(shoot)
  428. function ragdoll()
  429. game.Players.LocalPlayer.Character.Archivable = true
  430. clone = game.Players.LocalPlayer.Character:Clone()
  431. clone.Parent = workspace
  432. for i,v in pairs(clone:GetChildren()) do
  433. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  434. v:destroy()
  435. end
  436. for i,p in pairs(v:GetChildren()) do
  437. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  438. p:destroy()
  439. end
  440. end
  441. end
  442. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  443. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  444. t:destroy()
  445. end
  446. end
  447. vel = Instance.new("BodyVelocity", clone.Torso)
  448. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  449. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  450. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  451. using = false
  452. hit = Instance.new("Sound", clone.Torso)
  453. hit.SoundId = "rbxassetid://260430060"
  454. hit.Volume = 5
  455. hit1 = Instance.new("Sound", clone.Torso)
  456. hit1.SoundId = "rbxassetid://138087186"
  457. hit1.Volume = 5
  458. hit2 = Instance.new("Sound", clone.Torso)
  459. hit2.SoundId = "rbxassetid://131237241"
  460. hit2.Volume = 5
  461. hit3 = Instance.new("Sound", clone.Torso)
  462. hit3.SoundId = "rbxassetid://278062209"
  463. hit3.Volume = 5
  464. hit3.TimePosition = 0.33
  465. ded = Instance.new("Sound", clone.Torso)
  466. ded.SoundId = "rbxassetid://418892870"
  467. ded.Volume = 5
  468. local leftarm = clone:findFirstChild("Left Arm")
  469. local rightrm = clone:findFirstChild("Right Arm")
  470. local leftleg = clone:findFirstChild("Left Leg")
  471. local rightleg = clone:findFirstChild("Right Leg")
  472. local head = clone:findFirstChild("Head")
  473. local welding = Instance.new("Weld", clone.Torso)
  474. welding.Part0 = clone.Torso
  475. welding.Part1 = head
  476. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  477. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  478. if g.ClassName == "Part" then
  479. g:destroy()
  480. end
  481. end
  482. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  483. if h.ClassName == "Accesory" then
  484. h:destroy()
  485. end
  486. end
  487. game.Workspace.CurrentCamera.CameraSubject = head
  488. if leftleg ~= nil then
  489. local glue = Instance.new("Glue", clone.Torso)
  490. glue.Part0 = clone.Torso
  491. glue.Part1 = leftleg
  492. glue.Name = "Left leg"
  493. local collider = Instance.new("Part", leftleg)
  494. collider.Position = Vector3.new(0,999,0)
  495. collider.Size = Vector3.new(1.7, 1, 1)
  496. collider.Shape = "Cylinder"
  497. local weld = Instance.new("Weld", collider)
  498. weld.Part0 = leftleg
  499. weld.Part1 = collider
  500. weld.C0 = CFrame.Angles(0, 0, 80)
  501. collider.TopSurface = "Smooth"
  502. collider.BottomSurface = "Smooth"
  503. collider.formFactor = "Symmetric"
  504. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  505. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  506. collider.Transparency = 1
  507. end
  508. ------------
  509. if rightleg ~= nil then
  510. local glue1 = Instance.new("Glue", clone.Torso)
  511. glue1.Part0 = clone.Torso
  512. glue1.Part1 = rightleg
  513. glue1.Name = "Right leg"
  514. local collider1 = Instance.new("Part", rightleg)
  515. collider1.Position = Vector3.new(0,999,0)
  516. collider1.Size = Vector3.new(1.7, 1, 1)
  517. collider1.Shape = "Cylinder"
  518. local weld1 = Instance.new("Weld", collider1)
  519. weld1.Part0 = rightleg
  520. weld1.Part1 = collider1
  521. weld1.C0 = CFrame.Angles(0, 0, 80)
  522. collider1.TopSurface = "Smooth"
  523. collider1.BottomSurface = "Smooth"
  524. collider1.formFactor = "Symmetric"
  525. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  526. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  527. collider1.Transparency = 1
  528. end
  529. ------------
  530. if rightrm ~= nil then
  531. local glue11 = Instance.new("Glue", clone.Torso)
  532. glue11.Part0 = clone.Torso
  533. glue11.Part1 = rightrm
  534. glue11.Name = "Right shoulder"
  535. local collider11 = Instance.new("Part", rightrm)
  536. collider11.Position = Vector3.new(0,9999,0)
  537. collider11.Size = Vector3.new(1.8,1,1)
  538. collider11.Shape = "Cylinder"
  539. local weld11 = Instance.new("Weld", collider11)
  540. weld11.Part0 = rightrm
  541. weld11.Part1 = collider11
  542. weld11.C0 = CFrame.Angles(0, 0, 80)
  543. collider11.TopSurface = "Smooth"
  544. collider11.BottomSurface = "Smooth"
  545. collider11.formFactor = "Symmetric"
  546. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  547. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  548. collider11.Transparency = 1
  549. end
  550. ------------
  551. if leftarm ~= nil then
  552. local glue111 = Instance.new("Glue", clone.Torso)
  553. glue111.Part0 = clone.Torso
  554. glue111.Part1 = leftarm
  555. glue111.Name = "Left shoulder"
  556. local collider111 = Instance.new("Part", leftarm)
  557. collider111.Position = Vector3.new(0,9999,0)
  558. collider111.Size = Vector3.new(1.8,1,1)
  559. collider111.Shape = "Cylinder"
  560. local weld111 = Instance.new("Weld", collider111)
  561. weld111.Part0 = leftarm
  562. weld111.Part1 = collider111
  563. weld111.C0 = CFrame.Angles(0, 0, 80)
  564. collider111.TopSurface = "Smooth"
  565. collider111.BottomSurface = "Smooth"
  566. collider111.formFactor = "Symmetric"
  567. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  568. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  569. collider111.Transparency = 1
  570. ----------------
  571. sensoring = Instance.new("Part", clone.Torso)
  572. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  573. sensoring.CanCollide = false
  574. sensoring.Position = clone.Torso.Position
  575. local welder = Instance.new("Weld", sensoring)
  576. welder.Part0 = clone.Torso
  577. welder.Part1 = sensoring
  578. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  579. sensoring.Transparency = 1
  580. -----------------
  581. sensoring1 = Instance.new("Part", clone.Torso)
  582. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  583. sensoring1.CanCollide = false
  584. sensoring1.Position = clone.Torso.Position
  585. local welder1 = Instance.new("Weld", sensoring)
  586. welder1.Part0 = clone.Torso
  587. welder1.Part1 = sensoring1
  588. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  589. sensoring1.Transparency = 1
  590. end
  591. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  592. ded:Play()
  593. vel:destroy()
  594. wait(0.5)
  595. local function touch()
  596. if not using then
  597. using = true
  598. local Math = math.random(1,4)
  599. if Math == 1 then
  600. hit:Play()
  601. end
  602. if Math == 2 then
  603. hit1:Play()
  604. end
  605. if Math == 3 then
  606. hit2:Play()
  607. end
  608. if Math == 4 then
  609. hit3:Play()
  610. end
  611. wait(0.1)
  612. using = false
  613. end
  614. end
  615. sensoring.Touched:connect(touch)
  616. sensoring1.Touched:connect(touch)
  617. wait(4.47)
  618. hit1.Volume = 0
  619. hit2.Volume = 0
  620. hit3.Volume = 0
  621. hit.Volume = 0
  622. end
  623.  
  624. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  625.  
  626. --di ent
Add Comment
Please, Sign In to add comment