Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i, tool in pairs(game.ServerStorage:WaitForChild("Tools"):GetChildren()) do
- if tool:IsA("Tool") then
- local new = Instance.new("ImageLabel")
- new.Image = tool.TextureId
- new.Name = tool.ItemNumber.Value
- local name = Instance.new("StringValue", new)
- name.Name = "ToolName"
- name.Value = tool.Name
- local cost = Instance.new("NumberValue", new)
- cost.Name = "Cost"
- cost.Value = tool.Cost.Value
- new.Parent = game.ReplicatedStorage.ToolsImage
- end
- end
- local isthere = 0
- for i, v in pairs(game.ServerStorage.Tools:GetChildren()) do
- isthere = isthere+1
- end
- local new = Instance.new("NumberValue", game.ReplicatedStorage)
- new.Name = "TotalTools"
- new.Value = isthere
Add Comment
Please, Sign In to add comment