xpa1nx0

basebattles script

Dec 13th, 2023
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Global = require(game:GetService("ReplicatedStorage").Libraries.Global)
  3.  
  4. for i,v in pairs (game:GetService("ReplicatedStorage").Weapons.Guns:GetChildren()) do
  5. for g,x in pairs (v:GetChildren()) do
  6. if x:FindFirstChild("Configuration") then
  7. local Config = require(x.Configuration)
  8. Config.firemode = "automatic"
  9. Config.automatic = true
  10. Config.maxAmmo = math.huge
  11. end
  12. end
  13. end
  14.  
  15. while task.wait() do
  16. for i,v in pairs (game:GetService("Players"):GetChildren()) do
  17. if v ~= Player and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  18. if Global.Teams[v] ~= Global.Teams[Player] then
  19. v.Character.HumanoidRootPart.Size = Vector3.new(50,50,50)
  20. v.Character.HumanoidRootPart.CanCollide = false
  21. v.Character.HumanoidRootPart.Transparency = 0.5
  22. if Global.Teams[v] == "Blue" then
  23. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Royal blue")
  24. elseif Global.Teams[v] == "Red" then
  25. v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really red")
  26. end
  27. elseif Global.Teams[v] == Global.Teams[Player] then
  28. v.Character.HumanoidRootPart.Size = Vector3.new(1,1,1)
  29. v.Character.HumanoidRootPart.Transparency = 1
  30. end
  31. end
  32. end
  33. end
Add Comment
Please, Sign In to add comment