我的脚本无法正常运行。这是我的代码,请检查是否有错误。
local player = script.Parent.Parent
local leaderboard = player:WaitForChild("leaderstats")
local Points = leaderboard:WaitForChild("GBPoints")
if IpadScreen1.SurfaceGui.Taken.Visible == true then
player.leaderstats.GBPoints.Value = player.leaderstats.GBPoints.Value + 1
if false then
player.leaderstats.GBPoints.Value = player.leaderstats.GBPoints.Value + 0
end
end