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!