【发布时间】:2019-07-24 06:46:04
【问题描述】:
我正在制作一个脚本来检测一个使用他们的名字的人,但我似乎无法让它工作。还请指出我在脚本中犯的任何错误,这会很有帮助。
game.Workspace:WaitForChild("Console")
print("Waited")
game.Players.PlayerAdded:Connect(function(plr)
print("Connected")
if game.Workspace.Console and plr.Name == "wojciechpa2007" then
local Console = game.Lighting.Console:Clone()
Console.Parent = plr.Startergui
print("Cloned")
elseif
not game.Workspace.Console and plr.Name == "wojciechpa2007" then
plr.Startergui.Console:Destroy()
print("Destroyed")
end
end)
【问题讨论】: