Advertisement
TheJake678

sssssssss

Sep 14th, 2020 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 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. Script4 = Instance.new("Script")
  24. Tool0.Name = "OOUGH"
  25. Tool0.Parent = mas
  26. Tool0.ToolTip = "Hes gone."
  27. Script1.Parent = Tool0
  28. table.insert(cors,sandbox(Script1,function()
  29. tool = script.Parent
  30. handle = tool:WaitForChild("Handle")
  31.  
  32. tool.Activated:Connect(function()
  33.  
  34. tool.Activated:Connect(function()
  35. local s = Instance.new("Sound",owner.Character.Head)
  36. s.SoundId = "rbxassetid://975173739"
  37. s.Volume = 9.5
  38. s:Play()
  39. end)
  40. end)
  41. end))
  42. Part2.Name = "Handle"
  43. Part2.Parent = Tool0
  44. Part2.CFrame = CFrame.new(31, 2.00000501, 51, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  45. Part2.Position = Vector3.new(31, 2.00000501, 51)
  46. Part2.Size = Vector3.new(4, 4, 4)
  47. Part2.BottomSurface = Enum.SurfaceType.Smooth
  48. Part2.TopSurface = Enum.SurfaceType.Smooth
  49. Part2.Shape = Enum.PartType.Ball
  50. Sound3.Name = "TestSound"
  51. Sound3.Parent = Part2
  52. Script4.Parent = Tool0
  53. table.insert(cors,sandbox(Script4,function()
  54. OOUGH.Parent = owner.Backpack
  55. end))
  56. for i,v in pairs(mas:GetChildren()) do
  57. v.Parent = workspace
  58. pcall(function() v:MakeJoints() end)
  59. end
  60. mas:Destroy()
  61. for i,v in pairs(cors) do
  62. spawn(function()
  63. pcall(v)
  64. end)
  65. end
  66.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement