Advertisement
Dodikman

СТИВ ВАН ПИС СУНДУКИ

Jul 13th, 2019
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.58 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2.  
  3. local workingWith = game.Workspace:FindFirstChildOfClass('Folder')
  4.  
  5. function getAllChests()
  6.     for k, v in pairs(workingWith:GetChildren()) do
  7.         if #v:GetChildren() > 1 then
  8.             local chest = v:FindFirstChildOfClass('UnionOperation')
  9.             chest.Anchored = true
  10.             chest.Size = chest.Size + Vector3.new(0.1, 0.1, 0.1)
  11.             chest.CFrame = plr.Character.HumanoidRootPart.CFrame
  12.         end
  13.     end
  14. end
  15.  
  16. game:GetService('UserInputService').InputBegan:Connect(function(input_object)
  17.     if input_object.KeyCode == Enum.KeyCode.U then
  18.         getAllChests()
  19.     end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement