Hi, so I have the error attempt to index nil with 'Value'
in a local script in StarterGUI:
for _,v in pairs(workspace.Checkpoints:GetChildren()) do
v.Touched:Connect(function(hit)
if hit.Parent == player.Character then
if player.PlayerGui.SpeedRun.TimerHolder.Visible == true then
if v.Name == "20" then
if tag.Value == "Easy" then --ERROR HERE
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "You have speedrunned the easy section in " ..timer.TextLabel.Text.. "! Good job!",
Font = Enum.Font.SourceSansBold,
Color = BrickColor.new("Sea green").Color
})
endTimer()
exit.Visible = false
stagetrans.Enabled = true
timer.Visible = false
skipstage.Enabled = true
elseif tag.Value ~= "Easy" then
return
end
--more code here that's not relevant
I made the line easy to see. I have the value made on a server script in serverscriptservice. I don’t know whats happening and would appreciate anyone who would help me. Thanks!