Advertisement
Donny526

Want a Cookie? xD for void script builder

Jul 6th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. -- I got very bored this time. --
  2. -- Made by Donny526 --
  3. -- Donny526#1886 --
  4.  
  5. wait(.2)
  6.  
  7. player = game.Players.LocalPlayer
  8. backpack = player:WaitForChild("Backpack")
  9.  
  10. wait()
  11.  
  12. print(player.Name.." is using the Want A Cookie? xD script by Donny526!")
  13.  
  14. wait()
  15.  
  16. cookie = Instance.new("Tool",backpack)
  17. cookie.Name = "Cookie"
  18. cookie.ToolTip = "Want a cookie? xD"
  19.  
  20. cookiehandle = Instance.new("Part",cookie)
  21. cookiehandle.Name = "Handle"
  22. cookiehandle.Size = Vector3.new(1, 0.8, 1)
  23.  
  24. cookiemesh = Instance.new("SpecialMesh",cookiehandle)
  25. cookiemesh.MeshType = "FileMesh"
  26. cookiemesh.Scale = Vector3.new(0.4,0.4,0.4)
  27. cookiemesh.MeshId = "rbxassetid://20939848"
  28. cookiemesh.TextureId = "rbxassetid://21456464"
  29.  
  30. wantacookie = Instance.new("Sound",cookiehandle)
  31. wantacookie.Name = "ClickSound"
  32. wantacookie.SoundId = "rbxassetid://2039501287"
  33. wantacookie.Volume = 1
  34.  
  35. wait()
  36.  
  37. function onActivated()
  38. wantacookie:Play()
  39. end
  40.  
  41. cookie.Activated:connect(onActivated)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement