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")
- Script4 = Instance.new("Script")
- Script5 = Instance.new("Script")
- Animation6 = Instance.new("Animation")
- LocalScript7 = Instance.new("LocalScript")
- Script8 = Instance.new("Script")
- Tool0.Name = "DecoyDeploy"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=29516265"
- Tool0.GripForward = Vector3.new(-0, -0, 1)
- Tool0.GripPos = Vector3.new(-0.200000003, 0, -0.150000006)
- Tool0.GripRight = Vector3.new(-1, 0, 0)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.Rotation = Vector3.new(-179.98999, 37.9300003, 180)
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.Size = Vector3.new(1, 1, 1)
- Part1.CFrame = CFrame.new(6.41808987, 2.50013089, 1.29437196, -0.788797498, -2.63914299e-05, 0.614653111, 9.74847644e-05, 1, 0.000168041413, -0.614653111, 0.000192469975, -0.788797498)
- Part1.Position = Vector3.new(6.41808987, 2.50013089, 1.29437196)
- Part1.Orientation = Vector3.new(-0.00999999978, 142.069992, 0.00999999978)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=29515710"
- SpecialMesh2.Scale = Vector3.new(1.89999998, 1.89999998, 1.89999998)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=29515756"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(1.89999998, 1.89999998, 1.89999998)
- Sound3.Name = "Drink"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=29529397"
- Sound3.Volume = 0.80000001192093
- Script4.Name = "Welder"
- Script4.Parent = Tool0
- Script4.Disabled = true
- table.insert(cors,sandbox(Script4,function()
- local noob= script.Parent
- noob.Torso.Anchored = true
- noob:FindFirstChild("Left Arm").Anchored = true
- noob:FindFirstChild("Right Arm").Anchored = true
- noob:FindFirstChild("Left Leg").Anchored = true
- noob:FindFirstChild("Right Leg").Anchored = true
- noob.Head.Anchored = true
- local keepYoHead = Instance.new("Weld")
- keepYoHead.Part0 = noob.Head
- keepYoHead.Part1 = noob.Torso
- keepYoHead.C0 = CFrame.new(0,-1.5,0)
- keepYoHead.Parent = noob.Head
- local keepYoRightArm = Instance.new("Weld")
- keepYoRightArm.Part0 = noob.Torso
- keepYoRightArm.Part1 = noob:FindFirstChild("Right Arm")
- keepYoRightArm.C0 = CFrame.new(1.5,0,0)
- keepYoRightArm.Parent = noob.Torso
- local keepYoLeftArm = Instance.new("Weld")
- keepYoLeftArm.Part0 = noob.Torso
- keepYoLeftArm.Part1 = noob:FindFirstChild("Left Arm")
- keepYoLeftArm.C0 = CFrame.new(-1.5,0,0)
- keepYoLeftArm.Parent = noob.Torso
- local keepYoLeftLeg = Instance.new("Weld")
- keepYoLeftLeg.Part0 = noob.Torso
- keepYoLeftLeg.Part1 = noob:FindFirstChild("Left Leg")
- keepYoLeftLeg.C0 = CFrame.new(-0.5,-2,0)
- keepYoLeftLeg.Parent = noob.Torso
- local keepYoRightLeg = Instance.new("Weld")
- keepYoRightLeg.Part0 = noob.Torso
- keepYoRightLeg.Part1 = noob:FindFirstChild("Right Leg")
- keepYoRightLeg.C0 = CFrame.new(0.5,-2,0)
- keepYoRightLeg.Parent = noob.Torso
- noob.Torso.Anchored = false
- noob:FindFirstChild("Left Arm").Anchored = false
- noob:FindFirstChild("Right Arm").Anchored = false
- noob:FindFirstChild("Left Leg").Anchored = false
- noob:FindFirstChild("Right Leg").Anchored = false
- noob.Head.Anchored = false
- print("welded")
- end))
- Script5.Name = "SelfDestruct"
- Script5.Parent = Tool0
- Script5.Disabled = true
- table.insert(cors,sandbox(Script5,function()
- local humanoid = script.Parent:FindFirstChild("Humanoid")
- local torso = script.Parent:FindFirstChild("Torso")
- function destroyAll()
- local e = Instance.new("Explosion")
- e.Parent = game.Workspace
- e.Position = torso.Position
- e.BlastPressure = 100000
- e.BlastRadius = 15
- wait(1)
- script.Parent:remove()
- end
- humanoid.Died:connect(destroyAll)
- end))
- Animation6.Name = "drink"
- Animation6.Parent = Tool0
- Animation6.AnimationId = "http://www.roblox.com/Asset?ID=29517689"
- LocalScript7.Name = "AnimScript"
- LocalScript7.Parent = Tool0
- table.insert(cors,sandbox(LocalScript7,function()
- local Tool = script.Parent
- local humanoid = nil
- local drinker = nil
- local con = nil
- local enabled = false
- function onEquipped(mouse)
- humanoid = Tool.Parent:FindFirstChild("Humanoid")
- if humanoid ~= nil then
- drinker = humanoid:LoadAnimation(Tool.drink)
- end
- con = mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- function onUnequipped(mouse)
- humanoid = nil
- if drinker ~= nil then
- drinker:remove()
- drinker = nil
- end
- if con ~= nil then
- con:disconnect()
- end
- end
- function onButton1Down(mouse)
- if enabled then
- return
- end
- enabled = true
- drinker:Play()
- wait(3000000)
- enabled = false
- end
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- end))
- Script8.Name = "DecoyDeployScript"
- Script8.Parent = Tool0
- table.insert(cors,sandbox(Script8,function()
- local Tool = script.Parent
- local decoy = nil
- local humanoid = nil
- local enabled = false
- local amountInFront = 10
- local debris = game:GetService("Debris")
- function onEquipped()
- humanoid = Tool.Parent:FindFirstChild("Humanoid")
- end
- function onUnequipped()
- end
- function createDecoy()
- if humanoid ~= nil then
- local lookVector = humanoid.Parent.Torso.CFrame.lookVector
- local denom = math.abs(lookVector.x) + math.abs(lookVector.z)
- local posX = amountInFront * (lookVector.x/denom)
- local posZ = amountInFront * (lookVector.z/denom)
- Tool.Parent.archivable = true
- decoy = Tool.Parent:clone()
- Tool.Parent.archivable = false
- local cloneStuff = decoy:GetChildren()
- for i = 1, #cloneStuff do
- if cloneStuff[i].className == "Tool" or cloneStuff[i].className == "ForceField" then
- cloneStuff[i]:remove()
- end
- end
- decoy.Parent = game.Workspace
- decoy:MoveTo(Vector3.new(posX + humanoid.Parent.Torso.Position.x,humanoid.Parent.Torso.Position.y,posZ + humanoid.Parent.Torso.Position.z))
- plyr = Tool.Parent
- for i, v in pairs(plyr:GetChildren()) do
- if v.className == "Hat" then
- hat = Instance.new("Hat")
- Hpart = v.Handle:clone()
- Hpart.Parent = hat
- Hpart.Position = decoy.Head.Position
- hat.Name = v.Name
- hat.Parent = decoy
- hat.AttachmentPos = v.AttachmentPos
- hat.AttachmentRight = v.AttachmentRight
- hat.AttachmentUp = v.AttachmentUp
- hat.AttachmentForward = v.AttachmentForward
- end
- end
- local weldScript = Tool.Welder:clone()
- weldScript.Parent = decoy
- decoy.Welder.Disabled = false
- local destroyScript = Tool.SelfDestruct:clone()
- destroyScript.Parent = decoy
- decoy.SelfDestruct.Disabled = false
- debris:AddItem(decoy,math.random(6000,9000))
- end
- end
- function onActivated()
- if enabled then
- return
- end
- enabled = true
- Tool.Handle.Drink:Play()
- createDecoy()
- wait(.01)
- enabled = false
- end
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(Unequipped)
- Tool.Activated:connect(onActivated)
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement