Advertisement
KeeplookID

BedWars [BETA] Script Bed Aura

Jun 7th, 2021
1,094
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. while wait() do
  2. pcall(function()
  3. for i,v in pairs(game:GetService("Workspace").Map.Blocks:GetChildren()) do
  4. if v.Name == "bed" and v.Covers.BrickColor ~= game.Players.LocalPlayer.TeamColor and game.Players.LocalPlayer:DistanceFromCharacter(v.Position) < 150 then
  5. spawn(function()
  6. game:GetService("ReplicatedStorage").rbxts_include.node_modules.net.out._NetManaged.BreakBlock:InvokeServer({
  7. ["blockRef"] = {
  8. ["blockPosition"] = v.Position/3--.new(186, 14, 108)
  9. },
  10. ["hitPosition"] = v.Position,
  11. ["hitNormal"] = Vector3.new(1, 0, 0)
  12. })
  13. end)
  14. end
  15. end
  16. end)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement