Advertisement
BINO2002

Untitled

Apr 3rd, 2016
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.10 KB | None | 0 0
  1. --SandWich Wand by matteo101man,DONT REMOVE--
  2. player=game:GetService("Players").LocalPlayer
  3. char=player.Character
  4. mouse=player:GetMouse()
  5. torso = char.Torso
  6. Sm = "Smooth"
  7. Smp = "SmoothPlastic"
  8.  
  9. local idle = Instance.new("Animation", char)
  10. idle.AnimationId = "rbxassetid://164323791"
  11. idle.Name = "idle"
  12.  
  13. local eat = Instance.new("Animation", char)
  14. eat.AnimationId = "rbxassetid://149165442"
  15. eat.Name = "eat"
  16.  
  17. local vCharacter = char
  18. local hum = vCharacter:findFirstChild("Humanoid")
  19. blah2 = hum:LoadAnimation(char.idle)
  20. blah2:Play()
  21.  
  22. local Handle = Instance.new("Part",char)
  23. Handle.Size = Vector3.new(1, 2.3, 1)
  24. Handle.Locked = true
  25. Handle.Material = Smp
  26. Handle.TopSurface = Sm
  27. Handle.BottomSurface = Sm
  28. Handle.Name = "Handle"
  29. Handle.Anchored = false
  30. Handle.BrickColor = BrickColor.new("Brown")
  31. Handle.CanCollide = false
  32. Handle.formFactor = "Plate"
  33. local SWeld = Instance.new("Weld",Handle)
  34. SWeld.Name = "SWeld"
  35. SWeld.Part0 = Handle
  36. SWeld.Part1 = char["Right Arm"]
  37. SWeld.C0 = CFrame.new(0,1.1,.30)
  38. local mesh = Instance.new("CylinderMesh",Handle)
  39. mesh.Scale = Vector3.new(0.2, 2, 2)
  40.  
  41. mouse.Button1Down:connect(function()
  42. local s=Instance.new("Sound")
  43. game.Debris:AddItem(s,.2)
  44. s.SoundId="http://www.roblox.com/asset/?id=135362176"
  45. s.PlayOnRemove=false
  46. s.Volume=100
  47. s.Looped=false
  48. s.Pitch = 1
  49. s.Parent=char.Head
  50. s:Play()
  51. pcall(function()
  52. local mpos=mouse.Hit.p
  53. local ray=Ray.new(Handle.CFrame.p,(mpos-Handle.CFrame.p).unit*300)
  54. local rhit,bpos=workspace:FindPartOnRay(ray,char)
  55. local bdist=(bpos-Handle.Position).magnitude
  56. if rhit.Parent:findFirstChild'Humanoid' then isPlayer=rhit.Parent:findFirstChild'Humanoid'
  57. isPlayer.Parent.Head.CanCollide = false
  58. isPlayer.Parent["Left Leg"]:Remove()
  59. isPlayer.Parent["Right Leg"]:Remove()
  60. isPlayer.Parent["Left Arm"]:Remove()
  61. isPlayer.Parent["Right Arm"]:Remove()
  62. isPlayer.Parent.Head.Transparency = 1
  63. isPlayer.Parent.Torso.Transparency = 1
  64. isPlayer.Parent.Torso.CanCollide = false
  65. isPlayer.Parent.Head:findFirstChild("face"):Remove()
  66. local d = isPlayer.Parent:GetChildren()
  67. for i=1, #d do
  68. if (d[i].className == "Hat") then
  69. d[i]:remove()
  70. local hat = Instance.new("Part",isPlayer.Parent.Torso)
  71. hat.Size = Vector3.new(2, 1.2, 2)
  72. hat.Locked = true
  73. hat.Material = Smp
  74. hat.TopSurface = Sm
  75. hat.BottomSurface = Sm
  76. hat.Name = "Sandwich"
  77. local hatmesh = Instance.new("SpecialMesh",hat)
  78. hatmesh.MeshType="FileMesh"
  79. hatmesh.MeshId = "http://www.roblox.com/asset/?id=12510164"
  80. hatmesh.TextureId = "http://www.roblox.com/asset/?id=14600932"
  81. hatmesh.Scale = Vector3.new(4, 4, 4)
  82. local hatweld = Instance.new("Weld",hat)
  83. hatweld.Name = "Hatweld"
  84. hatweld.Part0 = hat
  85. hatweld.Part1 = isPlayer.Parent.Torso
  86. hatweld.C0 = CFrame.new(0,-0.3,0.03)
  87. local s=Instance.new("Sound")
  88. game.Debris:AddItem(s,.2)
  89. s.SoundId="http://www.roblox.com/asset/?id=138093919"
  90. s.PlayOnRemove=false
  91. s.Volume=100
  92. s.Looped=false
  93. s.Pitch = 1
  94. s.Parent=isPlayer.Parent.Head
  95. s:Play()
  96. end
  97. end
  98. end
  99. local bl=Instance.new('Part',workspace)
  100. bl.BrickColor=BrickColor.new("Deep orange")
  101. bl.Anchored=true
  102. bl.CanCollide=false
  103. bl.Transparency=0
  104. bl.FormFactor='Custom'
  105. bl.Size=Vector3.new(0.2,0.2,bdist)
  106. bl.CFrame=CFrame.new(bpos,Handle.Position)*CFrame.new(0,0,-bdist/2)
  107. game.Debris:AddItem(bl,0.3)
  108. coroutine.resume(coroutine.create(function()
  109. while (bl) do
  110. bl.Transparency=bl.Transparency+.1
  111. wait()
  112. end
  113. end))
  114. end)
  115. end)
  116. mouse.KeyDown:connect(function(key) local key=key:lower()
  117. if key=="f" and mouse.Target.Name == "Sandwich" and (mouse.Hit.p-char.Torso.CFrame.p).magnitude <20 then
  118. char.Animate.Disabled = true
  119. blah2:Stop()
  120. local vCharacter = char
  121. local hum = vCharacter:findFirstChild("Humanoid")
  122. blaher = hum:LoadAnimation(char.eat)
  123. blaher:Play()
  124. local s1=Instance.new("Sound")
  125. game.Debris:AddItem(s1,.1)
  126. s1.SoundId="http://www.roblox.com/asset/?id=130776108"
  127. s1.PlayOnRemove=false
  128. s1.Volume=2000
  129. s1.Looped=false
  130. s1.Pitch = 1
  131. s1.Parent=char.Head
  132. s1:Play()
  133. mouse.Target.Parent.Parent.Humanoid:TakeDamage(100)
  134. mouse.Target:Remove()
  135. wait(.80)
  136. char.Animate.Disabled = false
  137. blah2:Play()
  138. end
  139. end)
  140. --SandWich Wand by matteo101man,DONT REMOVE--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement