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")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- Decal4 = Instance.new("Decal")
- Animation5 = Instance.new("Animation")
- LocalScript6 = Instance.new("LocalScript")
- Tool0.Name = "WindowsVuvuzela"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://467529252"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.Size = Vector3.new(1, 3.60000014, 1)
- Part1.CFrame = CFrame.new(-8.5, 1.80003595, -63, 1, -1.04046094e-07, -8.94069672e-08, 1.04046094e-07, 1, -1.13686838e-13, 8.94069672e-08, 1.13686838e-13, 1)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Position = Vector3.new(-8.5, 1.80003595, -63)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=29086478"
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=29086192"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Sound3.Name = "Startup"
- Sound3.Parent = Part1
- Sound3.SoundId = "rbxassetid://1107208252"
- Decal4.Parent = Part1
- Decal4.Texture = "http://www.roblox.com/asset/?id=25268714"
- Decal4.Face = Enum.NormalId.Back
- Animation5.Name = "hornblow"
- Animation5.Parent = Tool0
- Animation5.AnimationId = "http://www.roblox.com/Asset?ID=29095462"
- LocalScript6.Parent = Tool0
- table.insert(cors,sandbox(LocalScript6,function()
- local Tool = script.Parent
- local blow = nil
- local sounds = {}
- for i,v in pairs(Tool.Handle:GetChildren()) do
- if v:IsA("Sound") then
- table.insert(sounds,v)
- end
- end
- function onEquipped()
- blow = Tool.Parent:FindFirstChild("Humanoid"):LoadAnimation(Tool.hornblow)
- end
- local enabled = false
- function onActivated()
- if enabled then
- return
- end
- enabled = true
- local sound = sounds[math.random(1,#sounds)]
- sound.Volume = 10
- sound:Play()
- blow:Play()
- wait(1)
- enabled = false
- end
- Tool.Activated:connect(onActivated)
- Tool.Equipped:connect(onEquipped)
- 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