Advertisement
Godofadmin1337

Don't use this

Sep 27th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 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. Part1 = Instance.new("Part")
  21. Script2 = Instance.new("Script")
  22. Tool0.Parent = mas
  23. Part1.Name = "Handle"
  24. Part1.Parent = Tool0
  25. Part1.BrickColor = BrickColor.new("Really black")
  26. Part1.Rotation = Vector3.new(-14.2999992, -85.4599991, -14.25)
  27. Part1.Size = Vector3.new(1, 1, 0.5)
  28. Part1.CFrame = CFrame.new(0.758632243, 2.48765349, 0.0093132779, 0.0767191127, 0.0194891095, -0.99686259, 2.39853453e-08, 0.999809146, 0.0195464194, 0.997052729, -0.00149958208, 0.0767045021)
  29. Part1.BottomSurface = Enum.SurfaceType.Smooth
  30. Part1.TopSurface = Enum.SurfaceType.Smooth
  31. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  32. Part1.Position = Vector3.new(0.758632243, 2.48765349, 0.0093132779)
  33. Part1.Orientation = Vector3.new(-1.12, -85.5999985, 0)
  34. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  35. Script2.Parent = Part1
  36. table.insert(cors,sandbox(Script2,function()
  37. function onTouch(part)
  38. local humanoid = part.Parent:FindFirstChild("Humanoid")
  39. if (humanoid ~= nil) then -- if a humanoid exists, then
  40. humanoid.Health = 0 -- damage the humanoid
  41. end
  42. end
  43.  
  44. script.Parent.Touched:connect(onTouch)
  45.  
  46. end))
  47. for i,v in pairs(mas:GetChildren()) do
  48. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  49. pcall(function() v:MakeJoints() end)
  50. end
  51. mas:Destroy()
  52. for i,v in pairs(cors) do
  53. spawn(function()
  54. pcall(v)
  55. end)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement