RBXHack_s

Arsenal [Valentines Day Event - Farm Hearts]

Feb 26th, 2022 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. --Create Platform
  2. local platform = Instance.new('Part', workspace)
  3. platform.Size = Vector3.new(1000,0,10200)
  4. platform.Anchored = true
  5. platform.Position = Vector3.new(100,-250,-200)
  6. platform.Name = "bro"
  7. platform.Locked = true
  8.  
  9. --Define Locals
  10. local Plr = game:GetService("Players").LocalPlayer
  11. local startcount = Plr.PlayerGui.Menew.ValentinesDay.Container.In.NewStat.Text
  12. local lastpos = 100.312464, -246.67946, -190.512454
  13. local count = 0
  14. local me = Plr.Character
  15.  
  16. print(startcount)
  17.  
  18. -- Watch for heart spawns then teleport
  19. game.Workspace.Debris.ChildAdded:Connect(function(v)
  20. if v.Name == "Heart" and v ~= nil then
  21. me.HumanoidRootPart.CFrame = v.CFrame
  22. count = count+1
  23. print(count)
  24. end
  25. end)
  26.  
  27. -- If removed teleport to baseplate
  28. game.Workspace.Debris.ChildRemoved:Connect(function(v)
  29. if v.Name == "Heart" then
  30. me:MoveTo(Vector3.new(lastpos))
  31. end
  32. end)
Add Comment
Please, Sign In to add comment