#Error Is Workspace.EnterArea.Entered19 attempt to index nil with 'PlayerGui'

17 messages · Page 1 of 1 (latest)

real kelp
#

the error is in this line: plr.PlayerGui.AreaEnterGui.AreaTitle:TweenPosition(UDim2.new(0.374, 0,

viral shale
#

sometimes touch.Parent is not the character since accessories have a part called Handle or something, make sure touch.Parent is the character.

real kelp
#
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

viral shale
#

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.

real kelp
#

location is a part

#

i mean no

#

location is a folder

#

inside of it theres

#

a part

viral shale
#

yeah, it doesn't have a position then

#

since folder is just like a container ig

real kelp
#

oh

#

I hav found the problem

#

i had a virus script

#

it removed now