Advertisement
Dark_EccentricYT

Untitled

Nov 25th, 2016
3,495
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.94 KB | None | 1 0
  1. player = game.Players.LocalPlayer
  2. mouse = player:GetMouse()
  3.  
  4. caketool = Instance.new("Tool")
  5. caketool.Name = "CAIK"
  6. caketool.CanBeDropped = false
  7. caketool.ToolTip = "CLEEK TUH TROW DE CAIK!"
  8. cake = Instance.new("Part", caketool)
  9. cake.Name = "Handle"
  10. cake.Size = Vector3.new(1, 1, 1)
  11. cakemesh = Instance.new("SpecialMesh", cake)
  12. cakemesh.MeshType = "FileMesh"
  13. cakemesh.MeshId = "http://www.roblox.com/asset/?id=16211718"
  14. cakemesh.TextureId = "http://www.roblox.com/asset/?id=145411558"
  15. wait()
  16. caketool.Parent = player.Backpack
  17.  
  18. caketool.Equipped:connect(function()
  19. trowdecaik = true
  20. end)
  21.  
  22. caketool.Unequipped:connect(function()
  23. trowdecaik = false
  24. end)
  25.  
  26. mouse.Button1Down:connect(function()
  27. if trowdecaik then
  28. hit = mouse.Hit
  29. cake2 = cake:Clone()
  30. cake2.CanCollide = false
  31. cake2.Parent = game.Workspace
  32. cake2.CFrame = cake.CFrame
  33. direction = Instance.new("BodyGyro", cake2)
  34. direction.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  35. direction.cframe = CFrame.new(cake.Position, hit.p)
  36. speed = Instance.new("BodyVelocity", cake2)
  37. speed.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  38. speed.velocity = direction.cframe.lookVector.unit * 50
  39. cake2.Touched:connect(function(part)
  40. if part.Parent ~= player.Character and part.Parent.Parent ~= player.Character and game.Players:GetPlayerFromCharacter(part.Parent) then
  41. char = part.Parent
  42. char.Head.face.Texture = "http://www.roblox.com/asset/?id=145405176"
  43. partyhat = Instance.new("Hat")
  44. partyhat.AttachmentPos = Vector3.new(0.1, -0.8, 0)
  45. partyhat.AttachmentUp = Vector3.new(0.3, 1, 0)
  46. hat = Instance.new("Part", partyhat)
  47. hat.Name = "Handle"
  48. hat.Size = Vector3.new(1, 1, 1)
  49. hatmesh = Instance.new("SpecialMesh", hat)
  50. hatmesh.MeshType = "FileMesh"
  51. hatmesh.MeshId = "http://www.roblox.com/asset/?id=1778999"
  52. hatmesh.TextureId = "http://www.roblox.com/asset/?id=34150228"
  53. partyhat.Parent = char
  54. cake2:Destroy()
  55. end
  56. end)
  57. game:GetService("Debris"):AddItem(cake2, 20)
  58. end
  59. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement