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")
- Sound2 = Instance.new("Sound")
- Sound3 = Instance.new("Sound")
- Decal4 = Instance.new("Decal")
- Decal5 = Instance.new("Decal")
- Decal6 = Instance.new("Decal")
- Decal7 = Instance.new("Decal")
- Decal8 = Instance.new("Decal")
- Decal9 = Instance.new("Decal")
- Script10 = Instance.new("Script")
- Tool0.Name = "Temmie Flakes"
- Tool0.Parent = mas
- Tool0.GripPos = Vector3.new(0, 0, 0.400000006)
- Tool0.CanBeDropped = false
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Really black")
- Part1.CanCollide = false
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.Size = Vector3.new(1.86000001, 2.17000008, 0.699999988)
- Part1.CFrame = CFrame.new(-5.92999983, 1.08503401, -11.3500004, 1.00000012, -2.55099497e-10, -8.94069672e-08, 2.19268514e-09, 1, -4.4408921e-16, 8.94069672e-08, -2.2340938e-09, 1.00000012)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part1.Position = Vector3.new(-5.92999983, 1.08503401, -11.3500004)
- Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Sound2.Name = "DrinkSound"
- Sound2.Parent = Part1
- Sound2.SoundId = "http://www.roblox.com/asset/?id=12544690"
- Sound2.Volume = 0.30000001192093
- Sound3.Name = "OpenSound"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=331174925"
- Sound3.Volume = 1
- Decal4.Parent = Part1
- Decal4.Texture = "http://www.roblox.com/asset/?id=327473548"
- Decal5.Parent = Part1
- Decal5.Texture = "http://www.roblox.com/asset/?id=327473548"
- Decal5.Face = Enum.NormalId.Back
- Decal6.Parent = Part1
- Decal6.Texture = "http://www.roblox.com/asset/?id=131299877"
- Decal6.Face = Enum.NormalId.Left
- Decal7.Parent = Part1
- Decal7.Texture = "http://www.roblox.com/asset/?id=131299877"
- Decal7.Face = Enum.NormalId.Right
- Decal8.Parent = Part1
- Decal8.Texture = "http://www.roblox.com/asset/?id=131299877"
- Decal8.Face = Enum.NormalId.Bottom
- Decal9.Parent = Part1
- Decal9.Texture = "http://www.roblox.com/asset/?id=131299877"
- Decal9.Face = Enum.NormalId.Top
- Script10.Name = "SandwichScript"
- Script10.Parent = Tool0
- table.insert(cors,sandbox(Script10,function()
- local Tool = script.Parent;
- enabled = true
- function onActivated()
- if not enabled then
- return
- end
- enabled = false
- Tool.GripForward = Vector3.new(0,-.759,-.651)
- Tool.GripPos = Vector3.new(1.5,-0.3,.3)
- Tool.GripRight = Vector3.new(1,0,0)
- Tool.GripUp = Vector3.new(0,.651,-.759)
- Tool.Handle.DrinkSound:Play()
- wait(.8)
- Tool.GripForward = Vector3.new(0, 0, -1)
- Tool.GripPos = Vector3.new(0, 0, 0.4)
- Tool.GripRight = Vector3.new(1, 0, 0)
- Tool.GripUp = Vector3.new(0, 1, 0)
- enabled = true
- end
- function onEquipped()
- Tool.Handle.OpenSound:play()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment