What does the error mean??
script.Parent.Touched:Connect(function(hit) if hit then local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player.leaderstats.Coin.Value >= script.Parent.Requirement.Value then player.leaderstats.Coin.Value -= script.Parent.Requirement.Value for i,v in pairs(workspace.Maps.DesertMap:GetChildren()) do v.Transparency = 0.75 v.CanCollide = false end if player.leaderstats.Coin.Value < script.Parent.Requirement.Value then player.PlayerGui.Status.NotEnoughMoney.Visible = true wait(1) player.PlayerGui.Status.NotEnoughMoney.Visible = false end end end end)
The error means that the script is trying to index something that does not exist.