So, I feel kind of embarrassed for not knowing how to fix this or how to even do it correctly in the first place, but what I'm trying to do is make a script enabled when the player touches a part. This is in a local script.
local plr = game.Players.LocalPlayer
local name = plr.Name
script.Parent.Touched:Connect(function(hit)
if hit.Parent.Name == name then
plr.PlayerGui.ArmorShopOwner.Frame.TextLabel.NPCTalk.Disabled = false
end
end)

1 comment
Where is this local script located?