Advertisement
Hellotop2

Untitled

Dec 31st, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. --Script generated by 3vpl
  2. for i, v in pairs(script.Parent:GetChildren()) do
  3. if v.ClassName == "TextButton" then
  4. v.Text = v.Name .. " - " .. v.Price.Value
  5. v.MouseButton1Click:connect(function()
  6. game.Workspace.BuyTools:FireServer(v.Name, v.Price.Value)
  7. end)
  8. end
  9. end
  10. while wait(1) do
  11. repeat
  12. wait()
  13. until game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  14. if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - workspace.Stuff.TheShop.Position).magnitude <= 8 then
  15. script.Parent.Parent.Visible = true
  16. else
  17. script.Parent.Parent.Visible = false
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement