Advertisement
Upscalefanatic3

Limited Universe | Price GUI

Feb 10th, 2018
610
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. local Price=Instance.new('TextBox',Instance.new('ScreenGui',game.CoreGui))
  2. Price.Size = UDim2.new(0,125,0,25)
  3. Price.Position = UDim2.new(0,0,0.5,-7.5)
  4. Price.BackgroundColor3 = Color3.new(1,1,1)
  5. Price.Text = 'Price'
  6. Price.TextScaled = true
  7. Price.Font = 'SourceSansBold'
  8.  
  9. game.ReplicatedStorage.Limitteds.ChildAdded:connect(function(Child)
  10. for i,v in pairs(Child.Parent:GetChildren()) do
  11. for _,Seller in pairs(v:WaitForChild('Privates'):GetChildren()) do
  12. Seller:WaitForChild'Price'.Value = -tonumber(Price.Text)
  13. end
  14. end
  15. Child:WaitForChild('Privates').ChildAdded:connect(function(Seller)
  16. Seller:WaitForChild'Price'.Value = -tonumber(Price.Text)
  17. end)
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement