如何修复'end' expected near '<eof>'
?我试着在代码的最后一行加上end,也是在汇编语言中,它仍然显示了这个错误。(顺便说一句,我对lua很陌生)。
repeat wait() until game.workspace:FindFirstChild("NPC")
wait(2)
if game.PlaceID == 3541987450 then
print("KHEI")
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name == "DevilRoom" then
if v.BrickColor == BrickColor.new("Dark stone grey") and v.Position ~= Vector3.new(-1283.07092, 1164.82434, -2338.98315, 0.0816411376, -0, -0.996661782, 0, 1, -0, 0.996661782, 0, 0.0816411376) then
game.StarterGui:SetCore("SendNotification", {
Title = "COLLECTOR";
Text = "HE SPAWNED" .. "\n" .. "[Plains]";
Duration = 10000;
})
a = Instance.new("Sound")
a.SoundId = "rbxassetid://39518470341"
a.Parent = game.Lighting
a.Volume = 3
a:Play()
elseif v.BrickColor == BrickColor.new("Bronze") and v.Position ~= Vector3.new(-2604.72559, 1097.82373, 1475.93469, 0.995581567, -0, -0.0939007998, 0, 1, -0, 0.0939007998, 0, 0.995581567) then
game.StarterGui:SetCore("SendNotification", {
Title = "COLLECTOR";
Text = "HE SPAWNED" .. "\n" .. "[Jungle]";
Duration = 10000;
})
a = Instance.new("Sound")
a.SoundId = "rbxassetid://3951847031"
a.Parent = game.Lighting
a.Volume = 3
a:Play()
elseif v.BrickColor == BrickColor.new("Fawn brown") and v.Position ~= Vector3.new(-1546.47192, 363.750061, 2445.54663, 0.999748111, 0, 0.0224423129, 0, 1, 0, -0.0224423129, 0, 0.999748111) then
game.StarterGui:SetCore("SendNotification", {
Title = "COLLECTOR";
Text = "HE SPAWNED" .. "\n" .. "[Desert]";
Duration = 10000;
})
a = Instance.new("Sound")
a.SoundId = "rbxassetid://3951847031"
a.Parent = game.Lighting
a.Volume = 3
a:Play()
https://stackoverflow.com/questions/62052851
复制相似问题