Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnClick(plr)
- local canGet = true
- if plr.Team == game.Teams["Грузчики"] then
- for _, i in pairs(plr.Backpack:GetChildren()) do
- if i.Name == "Box" then
- canGet = false
- end
- end
- if canGet then
- local Box = game.ReplicatedStorage.Backpack.Box:Clone()
- Box.Parent = plr.Backpack
- end
- end
- end
- script.Parent.ClickDetector.MouseClick:Connect(OnClick)
Advertisement
Add Comment
Please, Sign In to add comment