Attempt to index string with "Value"

Hiya developers, i am unaware why i am getting this error?

  19:28:58.262  Workspace.Door.Script:13: attempt to index string with 'Value'  -  Server - Script:13
local clickDetector = workspace.Door.ClickDetector
local isClaimed = game.ReplicatedStorage.Plots.House1
local setName = game.ReplicatedStorage.Plots.House1.Name


clickDetector.MouseClick:Connect(function(plr)
	if isClaimed.Value == "Yes" then 
		print("This plot cannot be claimed")
	elseif isClaimed.Value == "No" then 
		isClaimed.Value = "Yes"
		setName.Value = plr.Name
	end
           
end)

Any help is appreciated!

If the Name object is named Name, change it to something else. Luau is reading a property of House1, which is also Name.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.