Advertisement
ahmetgamer1234YT

COLLECTABLE EASTER EGG SCRIPT

Apr 23rd, 2019
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. -LEADERSTATS - DO NOT CHANGE-
  2. game.Players.PlayerAdded:connect(function(plr)
  3. local f = Instance.new("Folder", plr)
  4. f.Name = "leaderstats"
  5. local coins = Instance.new("IntValue", f)
  6. coins.Name = "Coins"
  7. coins.Value = 0
  8. end)
  9. =COLLECT SCRIPT-
  10. local db = true
  11. script.Parent.Touched:connect(function(hit)
  12. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  13. if db == true then
  14. db = false
  15. script.Parent.Transparency = 1
  16. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  17. player.leaderstats.Coins.Value = player.leaderstats.Coins.Value + 1
  18. script.Sound:Play()
  19. wait(1)
  20. script.Parent:Remove()
  21. end
  22. end
  23. end)
  24. -FLOAT SCRIPT-
  25. while true do
  26. wait(0.1)
  27. v = script.Parent.Position
  28. for i = 1,5 do
  29. wait(0.1)
  30. script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
  31. end
  32. for i = 4,1,-1 do
  33. wait(0.1)
  34. script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
  35. end
  36. for i = 1,5 do
  37. wait(0.1)
  38. script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
  39. end
  40. for i = 4,1,-1 do
  41. wait(0.1)
  42. script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
  43. end
  44. script.Parent.Position = v
  45. end
  46. -ROTATE SCRIPT-
  47. while true do
  48. wait()
  49. script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0.1,0,0)
  50. end
  51. -SOUND ID FOR COLLECT ADD INTO IT-
  52. rbxassetid://131323304
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement