【发布时间】:2020-10-19 13:26:15
【问题描述】:
script.Parent.Yes.MouseButton1Click:connect(function()
if game.Players.LocalPlayer.leaderstats.Stage.Value < 20 and db then
db = false
script.Parent.Question.Text = "YOU NEED ATLEAST 20 STAGES TO REBIRTH!"
wait(3)
script.Parent.Visible = false
open = false
db = true
elseif db then
game.ReplicatedStorage.Rebirth:FireServer()
script.Parent.Visible = false
open = false
end
end)
为什么在第 2 行显示一个错误,提示尝试比较字符串和数字?
【问题讨论】: