Advertisement
BNutty07

Kidnapper

Nov 12th, 2017
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.20 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Script1 = Instance.new("Script")
  21. Part2 = Instance.new("Part")
  22. Sound3 = Instance.new("Sound")
  23. Sound4 = Instance.new("Sound")
  24. Sound5 = Instance.new("Sound")
  25. SpecialMesh6 = Instance.new("SpecialMesh")
  26. Script7 = Instance.new("Script")
  27. Script8 = Instance.new("Script")
  28. Script9 = Instance.new("Script")
  29. Script10 = Instance.new("Script")
  30. ParticleEmitter11 = Instance.new("ParticleEmitter")
  31. Tool0.Name = "Chainsaw"
  32. Tool0.Parent = mas
  33. Tool0.TextureId = "rbxassetid://1166197683"
  34. Tool0.GripPos = Vector3.new(0, 0, 1.5)
  35. Script1.Name = "SwordScript"
  36. Script1.Parent = Tool0
  37. table.insert(cors,sandbox(Script1,function()
  38. -------- OMG HAX
  39. local game = game
  40.  
  41. r = game:service("RunService")
  42.  
  43.  
  44. local damage = 19
  45.  
  46. sword = script.Parent.Handle
  47. Tool = script.Parent
  48.  
  49. function slice(hit)
  50. if (hit.Parent == nil) then return end -- happens when bullet hits sword
  51. local humanoid = hit.Parent:findFirstChild("Humanoid")
  52. end
  53.  
  54. function blow(hit)
  55. local humanoid = hit.Parent:findFirstChild("Humanoid")
  56. local vCharacter = Tool.Parent
  57. local vPlayer = game.Players:playerFromCharacter(vCharacter)
  58. local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  59. if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  60. tagHumanoid(humanoid, vPlayer)
  61. humanoid:TakeDamage(damage)
  62. wait(1)
  63. untagHumanoid(humanoid)
  64. end
  65. end
  66.  
  67. function tagHumanoid(humanoid)
  68. creator_tag = Instance.new("ObjectValue")
  69. creator_tag.Value = player
  70. creator_tag.Name = "creator"
  71. creator_tag.Parent = humanoid
  72. end
  73.  
  74. function untagHumanoid(humanoid)
  75. if humanoid ~= nil then
  76. local tag = humanoid:findFirstChild("creator")
  77. if tag ~= nil then
  78. tag.Parent = nil
  79. end
  80. end
  81. end
  82.  
  83.  
  84. firing = false
  85. function onActivated()
  86.  
  87. if not Tool.Enabled then
  88. return
  89. end
  90.  
  91. character = Tool.Parent;
  92.  
  93. local humanoid = character.Humanoid
  94. if humanoid == nil then
  95. print("Humanoid not found")
  96. return
  97. end
  98.  
  99. player = game.Players:findFirstChild(character.Name)
  100.  
  101. if Tool.Handle:findFirstChild("Startup") ~= nil then
  102. Tool.Handle.Startup:play()
  103. end
  104.  
  105. Tool.Enabled = false
  106. firing = true
  107. connection = script.Parent.Handle.Touched:connect(blow)
  108. Tool.Handle.attack:play()
  109. Tool.Handle.idle:stop()
  110. while firing do -- hold down the mouse button for a continuous attack
  111.  
  112. Tool.Enabled = false
  113. wait(.25)
  114. end
  115. Tool.Handle.attack:stop()
  116. Tool.Handle.idle:play()
  117. connection:disconnect()
  118. Tool.Enabled = true
  119. end
  120.  
  121. function onDeactivated()
  122. firing = false
  123. end
  124.  
  125. function onEquipped() --gotta start the sounds!
  126. Tool.Handle.idle:play()
  127. Tool.Handle.start:play()
  128. end
  129.  
  130.  
  131. script.Parent.Activated:connect(onActivated)
  132. script.Parent.Deactivated:connect(onDeactivated)
  133. script.Parent.Equipped:connect(onEquipped)
  134.  
  135.  
  136.  
  137. end))
  138. Part2.Name = "Handle"
  139. Part2.Parent = Tool0
  140. Part2.Material = Enum.Material.SmoothPlastic
  141. Part2.BrickColor = BrickColor.new("Dark stone grey")
  142. Part2.Reflectance = 0.40000000596046
  143. Part2.Rotation = Vector3.new(-90, 56, 90)
  144. Part2.FormFactor = Enum.FormFactor.Plate
  145. Part2.Size = Vector3.new(1, 0.800000012, 4)
  146. Part2.CFrame = CFrame.new(-6.00945282, 1.45000994, -11.5, 0, -0.559192896, 0.829037607, 0, 0.829037607, 0.559192896, -1, 0, 0)
  147. Part2.BottomSurface = Enum.SurfaceType.Smooth
  148. Part2.TopSurface = Enum.SurfaceType.Smooth
  149. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  150. Part2.Position = Vector3.new(-6.00945282, 1.45000994, -11.5)
  151. Part2.Orientation = Vector3.new(-34, 90, 0)
  152. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  153. Sound3.Name = "idle"
  154. Sound3.Parent = Part2
  155. Sound3.SoundId = "http://www.roblox.com/asset/?id=2766581"
  156. Sound3.Volume = 1
  157. Sound3.Looped = true
  158. Sound4.Name = "attack"
  159. Sound4.Parent = Part2
  160. Sound4.SoundId = "http://www.roblox.com/asset/?id=161420059"
  161. Sound4.Looped = true
  162. Sound5.Name = "start"
  163. Sound5.Parent = Part2
  164. Sound5.SoundId = "rbxassetid://258741207"
  165. Sound5.Volume = 2
  166. SpecialMesh6.Name = "KnifeMesh"
  167. SpecialMesh6.Parent = Part2
  168. SpecialMesh6.MeshId = "rbxassetid://536945307"
  169. SpecialMesh6.Offset = Vector3.new(0, -0.200000003, 0)
  170. SpecialMesh6.Scale = Vector3.new(0.111000001, 0.111000001, 0.111000001)
  171. SpecialMesh6.TextureId = "rbxassetid://536945378"
  172. SpecialMesh6.MeshType = Enum.MeshType.FileMesh
  173. SpecialMesh6.Scale = Vector3.new(0.111000001, 0.111000001, 0.111000001)
  174. Script7.Name = "Entry"
  175. Script7.Parent = mas
  176. table.insert(cors,sandbox(Script7,function()
  177. function enter(plyr)
  178. plyr.CharacterAdded:connect(function()
  179. print("Corpsifying...")
  180. local scrip = script.Corpse:clone()
  181. scrip.Disabled = false
  182. scrip.Parent = plyr.Character
  183. end)
  184. end
  185.  
  186. game.Players.PlayerAdded:connect(enter)
  187. for i, v in pairs(game.Players:GetChildren()) do
  188. repeat wait() until v.Character
  189. if v.Character:findFirstChild("Corpse") == nil then
  190. local scrip = script.Corpse:clone()
  191. scrip.Disabled = false
  192. scrip.Parent = v.Character
  193. enter(v)
  194. end
  195. end
  196.  
  197. end))
  198. Script8.Name = "Corpse"
  199. Script8.Parent = Script7
  200. Script8.Disabled = true
  201. table.insert(cors,sandbox(Script8,function()
  202. Character = script.Parent
  203. Humanoid = Character.Humanoid
  204. Torso = Character.Torso
  205.  
  206. function OnDeath()
  207. print("Death")
  208. local cleaner = script:findFirstChild("BodyCleanup")
  209. cleaner.Parent = nil
  210. cleaner.Disabled = false
  211. Character.archivable = true
  212. oldCharacter = Character
  213. Humanoid.MaxHealth = 0
  214. for i,v in pairs(oldCharacter.Head:GetChildren()) do
  215. if v:IsA("Sound") then
  216. v:Remove()
  217. end
  218. end
  219. Character = Character:Clone()
  220. Character.Parent = workspace
  221. Character.Name = ""
  222. Character:findFirstChild("Corpse"):Remove()
  223. for i,v in pairs(oldCharacter:GetChildren()) do
  224. if v:IsA("BasePart") then
  225. v.CanCollide = false
  226. v.Transparency = 1
  227. end
  228. end
  229. Humanoid.Parent = nil
  230. cleaner.Parent = Character
  231. Torso = Character:findFirstChild("Torso")
  232. if Torso then
  233. local Head = Character:FindFirstChild("Head")
  234. if Head then
  235. local Neck = Instance.new("Weld")
  236. Neck.Name = "Neck"
  237. Neck.Part0 = Torso
  238. Neck.Part1 = Head
  239. Neck.C0 = CFrame.new(0, 1.5, 0)
  240. Neck.C1 = CFrame.new()
  241. Neck.Parent = Torso
  242. end
  243. local Limb = Character:FindFirstChild("Right Arm")
  244. if Limb then
  245.  
  246. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  247. local Joint = Instance.new("Glue")
  248. Joint.Name = "RightShoulder"
  249. Joint.Part0 = Torso
  250. Joint.Part1 = Limb
  251. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  252. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  253. Joint.Parent = Torso
  254.  
  255. local B = Instance.new("Part")
  256. B.TopSurface = 0
  257. B.BottomSurface = 0
  258. B.formFactor = "Symmetric"
  259. B.Size = Vector3.new(1, 1, 1)
  260. B.Transparency = 1
  261. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  262. B.Parent = Character
  263. local W = Instance.new("Weld")
  264. W.Part0 = Limb
  265. W.Part1 = B
  266. W.C0 = CFrame.new(0, -0.5, 0)
  267. W.Parent = Limb
  268.  
  269. end
  270. local Limb = Character:FindFirstChild("Left Arm")
  271. if Limb then
  272.  
  273. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  274. local Joint = Instance.new("Glue")
  275. Joint.Name = "LeftShoulder"
  276. Joint.Part0 = Torso
  277. Joint.Part1 = Limb
  278. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  279. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  280. Joint.Parent = Torso
  281.  
  282. local B = Instance.new("Part")
  283. B.TopSurface = 0
  284. B.BottomSurface = 0
  285. B.formFactor = "Symmetric"
  286. B.Size = Vector3.new(1, 1, 1)
  287. B.Transparency = 1
  288. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  289. B.Parent = Character
  290. local W = Instance.new("Weld")
  291. W.Part0 = Limb
  292. W.Part1 = B
  293. W.C0 = CFrame.new(0, -0.5, 0)
  294. W.Parent = Limb
  295.  
  296. end
  297. local Limb = Character:FindFirstChild("Right Leg")
  298. if Limb then
  299.  
  300. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  301. local Joint = Instance.new("Glue")
  302. Joint.Name = "RightHip"
  303. Joint.Part0 = Torso
  304. Joint.Part1 = Limb
  305. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  306. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  307. Joint.Parent = Torso
  308.  
  309. local B = Instance.new("Part")
  310. B.TopSurface = 0
  311. B.BottomSurface = 0
  312. B.formFactor = "Symmetric"
  313. B.Size = Vector3.new(1, 1, 1)
  314. B.Transparency = 1
  315. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  316. B.Parent = Character
  317. local W = Instance.new("Weld")
  318. W.Part0 = Limb
  319. W.Part1 = B
  320. W.C0 = CFrame.new(0, -0.5, 0)
  321. W.Parent = Limb
  322.  
  323. end
  324. local Limb = Character:FindFirstChild("Left Leg")
  325. if Limb then
  326.  
  327. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  328. local Joint = Instance.new("Glue")
  329. Joint.Name = "LeftHip"
  330. Joint.Part0 = Torso
  331. Joint.Part1 = Limb
  332. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  333. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  334. Joint.Parent = Torso
  335.  
  336. local B = Instance.new("Part")
  337. B.TopSurface = 0
  338. B.BottomSurface = 0
  339. B.formFactor = "Symmetric"
  340. B.Size = Vector3.new(1, 1, 1)
  341. B.Transparency = 1
  342. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  343. B.Parent = Character
  344. local W = Instance.new("Weld")
  345. W.Part0 = Limb
  346. W.Part1 = B
  347. W.C0 = CFrame.new(0, -0.5, 0)
  348. W.Parent = Limb
  349.  
  350. end
  351. --[
  352. local Bar = Instance.new("Part")
  353. Bar.TopSurface = 0
  354. Bar.BottomSurface = 0
  355. Bar.formFactor = "Symmetric"
  356. Bar.Size = Vector3.new(1, 1, 1)
  357. Bar.Transparency = 1
  358. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  359. Bar.Parent = Character
  360. local Weld = Instance.new("Weld")
  361. Weld.Part0 = Torso
  362. Weld.Part1 = Bar
  363. Weld.C0 = CFrame.new(0, 0.5, 0)
  364. Weld.Parent = Torso
  365. --]]
  366. end
  367. wait(3)
  368. Character:Remove()
  369. end
  370.  
  371. Humanoid.Died:connect(OnDeath)
  372.  
  373. end))
  374. Script9.Name = "BodyCleanup"
  375. Script9.Parent = Script8
  376. Script9.Disabled = true
  377. table.insert(cors,sandbox(Script9,function()
  378. wait(5)
  379. script.Parent.Parent = nil
  380.  
  381. end))
  382. Script10.Name = "Realistic Blood"
  383. Script10.Parent = mas
  384. table.insert(cors,sandbox(Script10,function()
  385. ------/// PUT IN Workspace OR ServerScriptStorage <3 \\\------
  386.  
  387. ------ Programmed by BuildIntoGames; Removing this line will kill 5 children
  388.  
  389. ---- Change these settings to change stuff (keep the commas, lua doesn't understand n00b syntax)
  390.  
  391. local settings = {
  392. splatters_per_health_inc = 1, ---- The amount of blood splatters made when you lose (damage_inc) of health
  393. damage_inc = 3, ---- The increment of damage that must be done at a time to trigger blood splatters
  394. remove_time = 20, ---- The time (in seconds) until a blood splatter is removed after it is created
  395. min_splatter_time = 0, ---- The delay time (minimum) until another blood splatter is made
  396. max_splatter_time = 0.05, ---- The delay time (maximum) until another blood splatter is made
  397. min_transparency = 0.2, ---- The (minimum) transparency of a blood splatter
  398. max_transparency = 0, ---- The (maximum) transparency of a blood splatter
  399. min_size_x = 3, ---- The (minimum) size of a blood splatter on the X axis
  400. max_size_x = 8, ---- The (maximum) size of a blood splatter on the X axis
  401. min_size_z = 3, ---- The (minimum) size of a blood splatter on the Z axis
  402. max_size_z = 8, ---- The (maximum) size of a blood splatter on the Z axis
  403. tran_tw_time_min = 0.1, ---- The (minimum) time to tween the size of a blood splatter
  404. tran_tw_time_max = 0.5, ---- The (maximum) time to tween the size of a blood splatter
  405. size_tw_time_min = 0.1, ---- The (minimum) time to tween the transparency of a blood splatter
  406. size_tw_time_max = 0.6 ---- The (maximum) time to tween the transparency of a blood splatter
  407. }
  408.  
  409. --- These are the IDs of possible blood textures, I already set 3 up for u k
  410.  
  411. local blood_textures = {
  412. 176678030,
  413. 176678048,
  414. 176678086
  415. }
  416.  
  417.  
  418. -------------- I'm not responsible for any PAIN if you edit past this (pun intended)
  419.  
  420. local blood_folder = Instance.new("Folder",game.Workspace)
  421. blood_folder.Name = "Blood.Splatter.Particles"
  422.  
  423.  
  424.  
  425. function create_blood_splatter(player_class)
  426. local blood_parts = {"Left Leg","Right Leg","Torso","Right Arm","Left Arm","Head"}
  427. local chosen_part
  428. if(player_class.humanoid.Health <= 0) then
  429. repeat wait() chosen_part = blood_parts[math.random(1,#blood_parts)] until player_class.character:FindFirstChild(chosen_part)
  430. chosen_part = player_class.character[chosen_part]
  431. local blood_emmiter = script.Blood:Clone()
  432. blood_emmiter.Parent = chosen_part
  433. blood_emmiter.Enabled = true
  434. else
  435. chosen_part = player_class.torso
  436. end
  437. local ray = Ray.new(chosen_part.Position, Vector3.new(0,-100,0))
  438. local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, {blood_folder , unpack(player_class.character:GetChildren())} , true)
  439. if(hit) then
  440. local blood = Instance.new("Part",blood_folder)
  441. blood.Anchored = true
  442. blood.CanCollide = false
  443. blood.Transparency = 1
  444. blood.Name = "Particle_Blood"
  445. blood.FormFactor = Enum.FormFactor.Custom
  446. blood.Size = Vector3.new(0.01 , 0.1 , 0.01)
  447. blood.CFrame = CFrame.new(position)
  448. local blood_decal = Instance.new("Decal",blood)
  449. blood_decal.Transparency = 1
  450. blood_decal.Texture = "http://www.roblox.com/asset/?id=" .. blood_textures[math.random(1,#blood_textures)]
  451. blood_decal.Face = "Top"
  452. game.Debris:AddItem(blood,settings.remove_time+20)
  453. local edit_blood = coroutine.wrap(function()
  454. local original_size = blood.Size
  455. local original_transparency = blood_decal.Transparency
  456. local new_transparency = math.random(settings.max_transparency*100,settings.min_transparency*100)/100
  457. local new_size = Vector3.new(math.random(settings.min_size_x*100,settings.max_size_x*100)/100 , blood.Size.Y , math.random(settings.min_size_z*100,settings.max_size_z*100)/100)
  458. local tran_tw_time = math.random(settings.tran_tw_time_min*100,settings.tran_tw_time_max*100)/100
  459. local size_tw_time = math.random(settings.size_tw_time_min*100,settings.size_tw_time_max*100)/100
  460. for i = 1,10*tran_tw_time do
  461. wait()
  462. local perc = i/(10*tran_tw_time)
  463. blood_decal.Transparency = original_transparency - (perc*new_transparency)
  464. end
  465. for i = 1,10*size_tw_time do
  466. wait()
  467. local perc = i/(10*size_tw_time)
  468. blood.Size = Vector3.new(original_size.X+(perc*new_size.X) , original_size.Y , original_size.Z+(perc*new_size.Z))
  469. end
  470. wait(settings.remove_time)
  471. blood:Destroy()
  472. end)
  473. edit_blood()
  474. end
  475. end
  476.  
  477.  
  478.  
  479.  
  480.  
  481. function monitor_character(player_class)
  482. local last_health = player_class.humanoid.Health
  483. player_class.humanoid.HealthChanged:connect(function()
  484. if(player_class.humanoid.Health < last_health) then
  485. if(last_health - player_class.humanoid.Health >= settings.damage_inc) then
  486. for i = 1,settings.splatters_per_health_inc*((last_health - player_class.humanoid.Health)/settings.damage_inc) do
  487. create_blood_splatter(player_class)
  488. if(settings.max_splatter_time > 0) then
  489. wait(math.random(settings.min_splatter_time*100,settings.max_splatter_time*100)/100)
  490. end
  491. end
  492. end
  493. end
  494. last_health = player_class.humanoid.Health
  495. end)
  496. end
  497.  
  498.  
  499.  
  500.  
  501.  
  502. function monitor_player(player)
  503. repeat wait() until player.Character ~= nil
  504. player.CharacterAdded:connect(function()
  505. local player_class = {
  506. player = player,
  507. character = player.Character,
  508. torso = player.Character:WaitForChild("Torso"),
  509. head = player.Character:WaitForChild("Head"),
  510. humanoid = player.Character:WaitForChild("Humanoid"),
  511. }
  512. monitor_character(player_class)
  513. end)
  514. local player_class = {
  515. player = player,
  516. character = player.Character,
  517. torso = player.Character:WaitForChild("Torso"),
  518. head = player.Character:WaitForChild("Head"),
  519. humanoid = player.Character:WaitForChild("Humanoid"),
  520. }
  521. monitor_character(player_class)
  522. end
  523.  
  524.  
  525.  
  526.  
  527. game.Players.PlayerAdded:connect(function(player)
  528. monitor_player(player)
  529. end)
  530.  
  531.  
  532. for i,v in ipairs(game.Players:GetChildren()) do
  533. if(v.ClassName == "Player") then
  534. monitor_player(v)
  535. end
  536. end
  537.  
  538.  
  539.  
  540. ----- Bonus credit to BuildIntoGames if you try to steal this and remove the credits at the top, you shady n00b
  541. end))
  542. ParticleEmitter11.Name = "Blood"
  543. ParticleEmitter11.Parent = Script10
  544. ParticleEmitter11.Transparency = NumberSequence.new(1,0.33125001192093,0.32499998807907,1)
  545. ParticleEmitter11.Size = NumberSequence.new(0,1.1250001192093,1)
  546. ParticleEmitter11.Color = ColorSequence.new(Color3.new(0.337255, 0.337255, 0.337255),Color3.new(1, 1, 1))
  547. ParticleEmitter11.Enabled = false
  548. ParticleEmitter11.Texture = "http://www.roblox.com/asset/?id=251300537"
  549. ParticleEmitter11.Acceleration = Vector3.new(0, -10, 0)
  550. ParticleEmitter11.Lifetime = NumberRange.new(1, 2)
  551. ParticleEmitter11.Speed = NumberRange.new(1, 2)
  552. ParticleEmitter11.Color = ColorSequence.new(Color3.new(0.337255, 0.337255, 0.337255),Color3.new(1, 1, 1))
  553. for i,v in pairs(mas:GetChildren()) do
  554. v.Parent = workspace
  555. pcall(function() v:MakeJoints() end)
  556. end
  557. mas:Destroy()
  558. for i,v in pairs(cors) do
  559. spawn(function()
  560. pcall(v)
  561. end)
  562. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement