Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
4,741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. local tier = "Noob" --Change this to the max tier you can capture
  2.  
  3. while wait() do
  4. for _,v in pairs(workspace.customers:GetChildren()) do
  5. if v and v:FindFirstChild("properties") then
  6. if v.properties.tier.Value == tier and v.properties.owner.Value == nil then
  7. local distance = game.Players.LocalPlayer:DistanceFromCharacter(v:GetPrimaryPartCFrame().p)
  8. if distance <= 70 then
  9. local customerModel = v
  10. game.ReplicatedStorage.remotes.bindCustomer:FireServer(customerModel)
  11. end
  12. end
  13. end
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement