-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathfoundation-hitboxexpander.lua
More file actions
66 lines (60 loc) · 2.35 KB
/
foundation-hitboxexpander.lua
File metadata and controls
66 lines (60 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
_G.HeadSize = 7
_G.Disabled = true
spawn(function()
while wait() do
spawn(function()
local sg = game:GetService("StarterGui")
local plrs = game:GetService("Players")
local lplr = plrs.LocalPlayer
local mouse = lplr:GetMouse()
for _, v in pairs(plrs:GetPlayers()) do
if tostring(v.Name) ~= tostring(lplr.Name) and tostring(v.Team) ~= "Foundation" then --This is where I think the problem might be, it's not reading the last and condition correctly
pcall(function()
v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize, _G.HeadSize, _G.HeadSize)
v.Character.HumanoidRootPart.Transparency = 1
v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
v.Character.HumanoidRootPart.Material = "Neon"
v.Character.HumanoidRootPart.CanCollide = false
end)
else
pcall(function()
v.Character.HumanoidRootPart.Size = Vector3.new(1, 1, 1)
v.Character.HumanoidRootPart.Transparency = 1
v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
v.Character.HumanoidRootPart.Material = "Neon"
v.Character.HumanoidRootPart.CanCollide = false
end)
end
end
end)
end
end)
function isnil(thing)
return (thing == nil)
end
local function round(n)
return math.floor(tonumber(n) + 0.5)
end
function UpdatePlayerChams()
for i,v in pairs(game:GetService'Players':GetChildren()) do
pcall(function()
if not isnil(v.Character) then
for _,k in pairs(v.Character:GetChildren()) do
if k:IsA'BasePart' and not k:FindFirstChild'Cham' and k.Name ~= "HumanoidRootPart" then
local cham = Instance.new('BoxHandleAdornment',k)
cham.ZIndex= 10
cham.Adornee=k
cham.AlwaysOnTop=true
cham.Size=k.Size
cham.Transparency=.99
cham.Color3=v.TeamColor.Color
cham.Name = 'Cham'
end
end
end
end)
end
end
while wait() do
UpdatePlayerChams()
end