Ok so I have parts spread across a baseplate named "Hello" and so each part that is named "Hello" is inside a model and the model is inside a folder in workspace called "Wow." So whenever a player walks up to one of these parts, a simple text gui would become visible. Now this question was answered by someone named asdfghjk9019 however I forgot to mention that the parts where in different models. I tried making the script seeing whether the part was inside a model named "MAIN" which the model name of "Hello," however that was unsuccessful. I hope you guys kind of understand what I mean, sorry if it doesn't make sense. .~.
local c
script.Parent.TextLabel.Visible = false
while true do
for i,v in pairs(game.Workspace.Wow:GetChildren()) do
wait()
if v.Name == "Hello" and v.Parent.Name == "MAIN" then
local dis = (v.Position - game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position).magnitude
if dis <= 10 then
script.Parent.TextLabel.Visible = true
wait()
c = i
else
if i == c then
script.Parent.TextLabel.Visible = false
wait()
local c = nil
end
end
end
end
