Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Script generated by 3vpl
- for i, v in pairs(script.Parent:GetChildren()) do
- if v.ClassName == "TextButton" then
- v.Text = v.Name .. " - " .. v.Price.Value
- v.MouseButton1Click:connect(function()
- game.Workspace.BuyTools:FireServer(v.Name, v.Price.Value)
- end)
- end
- end
- while wait(1) do
- repeat
- wait()
- until game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
- if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - workspace.Stuff.TheShop.Position).magnitude <= 8 then
- script.Parent.Parent.Visible = true
- else
- script.Parent.Parent.Visible = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement