CriShoux

Untitled

Nov 7th, 2019
417
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. local function split(text)
  2. local split = {};
  3. local pos = string.find(text, "/");
  4. local current = string.sub(text, 1, pos - 1);
  5. local max = string.sub(text, pos + 1, #text);
  6. table.insert(split, current);
  7. table.insert(split, max);
  8. return split;
  9. end;
  10. local localPlayer = game:GetService("Players").LocalPlayer;
  11. while true do
  12. pcall(function()
  13. local text = game:GetService("Players").LocalPlayer.PlayerGui.Money.Frame.Presents.TextLabel.Text;
  14. if localPlayer.Character then
  15. if tonumber(split(text)[1]) < tonumber(split(text)[2]) then
  16. for i, v in pairs(game:GetService("Workspace"):GetChildren()) do
  17. if v:IsA("Model") and v.Name == "Present" and v:FindFirstChild("Color1") then
  18. if tonumber(split(text)[1]) < tonumber(split(text)[2]) then
  19. localPlayer.Character.HumanoidRootPart.CFrame = v.Color1.CFrame * CFrame.new(0, 0, 2);
  20. localPlayer.Character.Humanoid.Jump = true;
  21. end;
  22. wait();
  23. end;
  24. end;
  25. else
  26. localPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-61.4884834, 4.93510962, -56.6906967, -0.68624115, 4.14282185e-05, 0.727374077, 1.24313219e-05, 1, -4.52275272e-05, -0.727374077, -2.19947688e-05, -0.68624115);
  27. end;
  28. end;
  29. end);
  30. wait();
  31. end;
Advertisement
Add Comment
Please, Sign In to add comment