The goal for this script is to find if a player is within 10 units of distance any object defined under a certain name. The Script i have so far is
plr = game.Players.LocalPlayer
char = plr.Character
torso = char:WaitForChild("Torso")
NameList={'Crate','XPart'}
while wait() do
if torso.Position-game.workspace.Loot:Waitforchild("NameList").Position.magnitude <= 10 then
script.Parent.Visible = true
end
end
And gives this error: Waitforchild is not a valid member of Folder All the parts are stored in a folder.
Thanks

1 comment
WaitForChild not Waitforchild