NAZOR

Untitled

Aug 8th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.05 KB | None | 0 0
  1. --// Vars
  2. local WS = game:GetService("Workspace")
  3. local PS = game:GetService("Players")
  4. local Lootables = WS:WaitForChild("Lootables")
  5. local HumRoot = PS.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
  6.  
  7. local NewO = Instance.new("Part", workspace)
  8. NewO.CFrame = HumRoot.CFrame
  9. NewO.CanCollide = false
  10. NewO.Anchored = true
  11.  
  12. function Interact(O)
  13. local Event = game:GetService("ReplicatedStorage").Remotes.CompleteInteraction
  14. Event:FireServer(O)
  15. end
  16.  
  17. PS.LocalPlayer.Character.Humanoid:ChangeState(11)
  18. for _,v in pairs (workspace:GetDescendants()) do
  19.  
  20. if v.Name == "LootablePainting" then
  21. local Picture = v:FindFirstChild("Picture")
  22. repeat wait() HumRoot.CFrame = Picture.CFrame Interact(v) until v.Parent == nil
  23. end
  24.  
  25. if v.Name == "Artifact" then
  26. local Handle = v:FindFirstChild("Handle")
  27. repeat wait() HumRoot.CFrame = Handle.CFrame Interact(v) until v.Parent == nil
  28. end
  29.  
  30. if v.Name == "Samurai" then
  31. local Part = v:FindFirstChildWhichIsA("Part")
  32. repeat wait() HumRoot.CFrame = Part.CFrame Interact(v) until v.Parent == nil
  33. end
  34.  
  35. if v.Name == "Coke" then
  36. local Cola = v:FindFirstChild("Cola")
  37. repeat wait() HumRoot.CFrame = Cola.CFrame Interact(v) until v.Parent == nil
  38. end
  39.  
  40. if v.Name == "WeaponBagger" then
  41. local Barrel = v:FindFirstChild("Barrel")
  42. repeat wait() HumRoot.CFrame = Barrel.CFrame Interact(v) until v.Parent == nil
  43. end
  44.  
  45. if v.Name == "GoldBars" then
  46. local Bar = v:FindFirstChild("Bar")
  47. repeat wait() HumRoot.CFrame = Bar.CFrame Interact(v) until v.Parent == nil
  48. end
  49.  
  50. if v.Name == "Money" then
  51. local Buck = v:FindFirstChild("Bucks")
  52. repeat wait() HumRoot.CFrame = Buck.CFrame Interact(v) until v.Parent == nil
  53. end
  54.  
  55. if v.Name == "SmallJewels2" then
  56. local Part = v:FindFirstChildWhichIsA("Part")
  57. repeat wait() HumRoot.CFrame = Part.CFrame Interact(v) until v.Parent == nil
  58. end
  59.  
  60. if v.Name == "Jewels" then
  61. local Part = v:FindFirstChildWhichIsA("Part")
  62. repeat wait() HumRoot.CFrame = Part.CFrame Interact(v) until v.Parent == nil
  63. end
  64.  
  65. if v.Name == "Cash Register" then
  66. local Drawer = v:WaitForChild("Drawer")
  67. repeat wait() HumRoot.CFrame = Drawer.CFrame Interact(v) until v.Name == "OpenedRegister"
  68. end
  69.  
  70. if v.Name == "SmallJewels" then
  71. local Ring = v:WaitForChild("Part")
  72. repeat wait() HumRoot.CFrame = Ring.CFrame Interact(v) until v.Parent == nil
  73. end
  74.  
  75. if v.Name == "DepositMoney" then
  76. local Hitbox = v:WaitForChild("Hitbox")
  77. repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
  78. end
  79.  
  80. if v.Name == "DepositMoneyStack" then
  81. local Hitbox = v:WaitForChild("Hitbox")
  82. repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
  83. end
  84.  
  85. if v.Name == "DepositGoldBar" then
  86. local Hitbox = v:WaitForChild("Hitbox")
  87. repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
  88. end
  89.  
  90. if v.Name == "DepositRing" then
  91. local Hitbox = v:WaitForChild("Hitbox")
  92. repeat wait() HumRoot.CFrame = Hitbox.CFrame Interact(v) until v.Parent == nil
  93. end
  94. end
  95.  
  96. PS.LocalPlayer.Character.Humanoid:ChangeState(11)
  97.  
  98. warn("Teleported")
  99. HumRoot.CFrame = NewO.CFrame
  100. NewO:Remove()
Add Comment
Please, Sign In to add comment