Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --SandWich Wand by matteo101man,DONT REMOVE--
- player=game:GetService("Players").LocalPlayer
- char=player.Character
- mouse=player:GetMouse()
- torso = char.Torso
- Sm = "Smooth"
- Smp = "SmoothPlastic"
- local idle = Instance.new("Animation", char)
- idle.AnimationId = "rbxassetid://164323791"
- idle.Name = "idle"
- local eat = Instance.new("Animation", char)
- eat.AnimationId = "rbxassetid://149165442"
- eat.Name = "eat"
- local vCharacter = char
- local hum = vCharacter:findFirstChild("Humanoid")
- blah2 = hum:LoadAnimation(char.idle)
- blah2:Play()
- local Handle = Instance.new("Part",char)
- Handle.Size = Vector3.new(1, 2.3, 1)
- Handle.Locked = true
- Handle.Material = Smp
- Handle.TopSurface = Sm
- Handle.BottomSurface = Sm
- Handle.Name = "Handle"
- Handle.Anchored = false
- Handle.BrickColor = BrickColor.new("Brown")
- Handle.CanCollide = false
- Handle.formFactor = "Plate"
- local SWeld = Instance.new("Weld",Handle)
- SWeld.Name = "SWeld"
- SWeld.Part0 = Handle
- SWeld.Part1 = char["Right Arm"]
- SWeld.C0 = CFrame.new(0,1.1,.30)
- local mesh = Instance.new("CylinderMesh",Handle)
- mesh.Scale = Vector3.new(0.2, 2, 2)
- mouse.Button1Down:connect(function()
- local s=Instance.new("Sound")
- game.Debris:AddItem(s,.2)
- s.SoundId="http://www.roblox.com/asset/?id=135362176"
- s.PlayOnRemove=false
- s.Volume=100
- s.Looped=false
- s.Pitch = 1
- s.Parent=char.Head
- s:Play()
- pcall(function()
- local mpos=mouse.Hit.p
- local ray=Ray.new(Handle.CFrame.p,(mpos-Handle.CFrame.p).unit*300)
- local rhit,bpos=workspace:FindPartOnRay(ray,char)
- local bdist=(bpos-Handle.Position).magnitude
- if rhit.Parent:findFirstChild'Humanoid' then isPlayer=rhit.Parent:findFirstChild'Humanoid'
- isPlayer.Parent.Head.CanCollide = false
- isPlayer.Parent["Left Leg"]:Remove()
- isPlayer.Parent["Right Leg"]:Remove()
- isPlayer.Parent["Left Arm"]:Remove()
- isPlayer.Parent["Right Arm"]:Remove()
- isPlayer.Parent.Head.Transparency = 1
- isPlayer.Parent.Torso.Transparency = 1
- isPlayer.Parent.Torso.CanCollide = false
- isPlayer.Parent.Head:findFirstChild("face"):Remove()
- local d = isPlayer.Parent:GetChildren()
- for i=1, #d do
- if (d[i].className == "Hat") then
- d[i]:remove()
- local hat = Instance.new("Part",isPlayer.Parent.Torso)
- hat.Size = Vector3.new(2, 1.2, 2)
- hat.Locked = true
- hat.Material = Smp
- hat.TopSurface = Sm
- hat.BottomSurface = Sm
- hat.Name = "Sandwich"
- local hatmesh = Instance.new("SpecialMesh",hat)
- hatmesh.MeshType="FileMesh"
- hatmesh.MeshId = "http://www.roblox.com/asset/?id=12510164"
- hatmesh.TextureId = "http://www.roblox.com/asset/?id=14600932"
- hatmesh.Scale = Vector3.new(4, 4, 4)
- local hatweld = Instance.new("Weld",hat)
- hatweld.Name = "Hatweld"
- hatweld.Part0 = hat
- hatweld.Part1 = isPlayer.Parent.Torso
- hatweld.C0 = CFrame.new(0,-0.3,0.03)
- local s=Instance.new("Sound")
- game.Debris:AddItem(s,.2)
- s.SoundId="http://www.roblox.com/asset/?id=138093919"
- s.PlayOnRemove=false
- s.Volume=100
- s.Looped=false
- s.Pitch = 1
- s.Parent=isPlayer.Parent.Head
- s:Play()
- end
- end
- end
- local bl=Instance.new('Part',workspace)
- bl.BrickColor=BrickColor.new("Deep orange")
- bl.Anchored=true
- bl.CanCollide=false
- bl.Transparency=0
- bl.FormFactor='Custom'
- bl.Size=Vector3.new(0.2,0.2,bdist)
- bl.CFrame=CFrame.new(bpos,Handle.Position)*CFrame.new(0,0,-bdist/2)
- game.Debris:AddItem(bl,0.3)
- coroutine.resume(coroutine.create(function()
- while (bl) do
- bl.Transparency=bl.Transparency+.1
- wait()
- end
- end))
- end)
- end)
- mouse.KeyDown:connect(function(key) local key=key:lower()
- if key=="f" and mouse.Target.Name == "Sandwich" and (mouse.Hit.p-char.Torso.CFrame.p).magnitude <20 then
- char.Animate.Disabled = true
- blah2:Stop()
- local vCharacter = char
- local hum = vCharacter:findFirstChild("Humanoid")
- blaher = hum:LoadAnimation(char.eat)
- blaher:Play()
- local s1=Instance.new("Sound")
- game.Debris:AddItem(s1,.1)
- s1.SoundId="http://www.roblox.com/asset/?id=130776108"
- s1.PlayOnRemove=false
- s1.Volume=2000
- s1.Looped=false
- s1.Pitch = 1
- s1.Parent=char.Head
- s1:Play()
- mouse.Target.Parent.Parent.Humanoid:TakeDamage(100)
- mouse.Target:Remove()
- wait(.80)
- char.Animate.Disabled = false
- blah2:Play()
- end
- end)
- --SandWich Wand by matteo101man,DONT REMOVE--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement