13:68 'end' 附近预期的'<eof>'

我正在尝试修复一个脚本,但我不知道如何编写脚本,如果有人能帮助我,那就太好了。我的问题在最后一行,第13行出现了一个错误,它说

[13:68] 附近预期的 'end' '\u003ceof\u003e'

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "t" then
Wag = Instance.new("Sound")
Wag.SoundId = "rbxassetid://4621721605"
Wag.Parent = game.Lighting
Wag.Volume = 10
Wag:Play()
wait(2.3)
game.Players.LocalPlayer.Character:BreakJoints()
wait(2)
game.Players.LocalPlayer:Kick("test.")
点赞
用户4984564
用户4984564

错误正是告诉你的那样:Lua 希望在第四行找到一个 end 来关闭 if,但实际上文件直接结束了。

2020-06-24 12:33:52