#Error Is Workspace.EnterArea.Entered19 attempt to index nil with 'PlayerGui'
17 messages · Page 1 of 1 (latest)
sometimes touch.Parent is not the character since accessories have a part called Handle or something, make sure touch.Parent is the character.
ok i tried a new thing ill send it wait and i got a otther error
local label = script.Parent.TextLabel
local location = nil
while wait() do
for i, v in pairs(locations:GetChildren()) do
local min = Vector3.new(v.Position.X + (v.Size.X / 2), v.Position.Y, 100, v.Position.Z + (v.Size.Z / 2))
local max = Vector3.new(v.Position.X - (v.Size.X / 2), v.Position.Y - 100, v.Position.Z - (v.Size.Z / 2))
local region = Region3.new(min, max)
for _, player in pairs (game.Workspace:FindPartsInRegion3(region, nil, math.huge)) do
if player.Parent:FindFirstChild('Humanoid') then
print ('Area')
end
end
end
end``` script
Position is not a valid member of RotateP "Workspace.Locations.INfecTION" - Client - Locationidentity:7 error
If Locations is a model, it doesn't have position property but you can get the position from its primaryPart, ofc if it has one.