Advertisement
cat568

Untitled

Mar 29th, 2019
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. plr = owner
  2. character =plr.Character
  3. torso = character.Torso
  4. function yeet(Hit)
  5. if Hit.Name ~= "base" then
  6. Hit.Anchored = false
  7. local d = Hit:GetChildren()
  8. if d.ClassName == Attachment then
  9. Hit:BreakJoints()
  10. end
  11.  
  12. --Converted with ttyyuu12345's model to script plugin v4
  13. function sandbox(var,func)
  14. local env = getfenv(func)
  15. local newenv = setmetatable({},{
  16. __index = function(self,k)
  17. if k=="script" then
  18. return var
  19. else
  20. return env[k]
  21. end
  22. end,
  23. })
  24. setfenv(func,newenv)
  25. return func
  26. end
  27. cors = {}
  28. mas = Instance.new("Model",game:GetService("Lighting"))
  29. Script0 = Instance.new("Script")
  30. Script0.Parent = Hit
  31. table.insert(cors,sandbox(Script0,function()
  32. function yeet(hit)
  33. if hit.Name ~= "Base" then
  34. if hit.Parent.ClassName ~= "Model" then
  35.  
  36. if hit.Parent.Name ~= "gdfPlace" then
  37. hit.Anchored = false
  38. local d = hit:GetChildren()
  39. if d.ClassName == Attachment then
  40. hit:BreakJoints()
  41. end
  42. local a = script:Clone()
  43. a.Parent = hit
  44. end
  45. if hit.Parent.ClassName == "Model" then
  46.  
  47. if hit.Parent.Name == "Tabby_Cxt" then
  48. end
  49. if hit.Parent.Name ~= "Tabby_Cxt" then
  50.  
  51. hit.Anchored = false
  52. local d = hit:GetChildren()
  53. if d.ClassName == Attachment then
  54. hit:BreakJoints()
  55. end
  56. local b = script:Clone()
  57. b.Parent = hit
  58. end
  59. end
  60. end
  61. end
  62. end
  63.  
  64. script.Parent.Touched:Connect(yeet)
  65. end))
  66. for i,v in pairs(mas:GetChildren()) do
  67. v.Parent = workspace
  68. pcall(function() v:MakeJoints() end)
  69. end
  70. mas:Destroy()
  71. for i,v in pairs(cors) do
  72. spawn(function()
  73. pcall(v)
  74. end)
  75. end
  76.  
  77. end
  78. end
  79. torso.Touched:Connect(yeet)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement