0

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

[13:68] 预计在“<eof>”附近出现“结束”

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.")
4

1 回答 1

2

这个错误正是它告诉你的:Lua 期望找到 aend来关闭if第四行,但文件只是结束了。

于 2020-06-24T12:33:52.387 回答