Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Script1 = Instance.new("Script")
- Part2 = Instance.new("Part")
- Sound3 = Instance.new("Sound")
- Script4 = Instance.new("Script")
- Tool0.Name = "OOUGH"
- Tool0.Parent = mas
- Tool0.ToolTip = "Hes gone."
- Script1.Parent = Tool0
- table.insert(cors,sandbox(Script1,function()
- tool = script.Parent
- handle = tool:WaitForChild("Handle")
- tool.Activated:Connect(function()
- tool.Activated:Connect(function()
- local s = Instance.new("Sound",owner.Character.Head)
- s.SoundId = "rbxassetid://975173739"
- s.Volume = 9.5
- s:Play()
- end)
- end)
- end))
- Part2.Name = "Handle"
- Part2.Parent = Tool0
- Part2.CFrame = CFrame.new(31, 2.00000501, 51, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(31, 2.00000501, 51)
- Part2.Size = Vector3.new(4, 4, 4)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Shape = Enum.PartType.Ball
- Sound3.Name = "TestSound"
- Sound3.Parent = Part2
- Script4.Parent = Tool0
- table.insert(cors,sandbox(Script4,function()
- OOUGH.Parent = owner.Backpack
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement