当我运行我的lua代码时,我得到了'end'附近的错误'name' 12号线
这是代码:
local i = 1
local plr = game.Players.LocalPlayer
function start()
repeat
wait()
game.ReplicatedStorage.addpoints:FireServer()
until i == 2
end
function end()
i = 2
end
plr.Chatted:connect(function(message)
if message == "start" then
start()
elseif message == "end" then
end()
end
end)
Run Code Online (Sandbox Code Playgroud)
任何修复?
lua ×1