Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local workingWith = game.Workspace:FindFirstChildOfClass('Folder')
- function getAllChests()
- for k, v in pairs(workingWith:GetChildren()) do
- if #v:GetChildren() > 1 then
- local chest = v:FindFirstChildOfClass('UnionOperation')
- chest.Anchored = true
- chest.Size = chest.Size + Vector3.new(0.1, 0.1, 0.1)
- chest.CFrame = plr.Character.HumanoidRootPart.CFrame
- end
- end
- end
- game:GetService('UserInputService').InputBegan:Connect(function(input_object)
- if input_object.KeyCode == Enum.KeyCode.U then
- getAllChests()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement