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)

1 comment
This issue is happening again how can I solve the problem