【发布时间】:2020-09-20 06:44:43
【问题描述】:
我正在尝试编写一个脚本,当你触摸一个字符的命中框时,会出现某个聊天,但输出窗口显示“Argument 1 missing or nil”。
代码:
local debounce = false
game.Workspace.RowanAsleep.RowanAsleepHitbox.Touched:Connect(function(hit)
if not debounce then
debounce = true
if game.Players:GetPlayerFromCharacter(hit.Parent)then
game.ReplicatedStorage.RowanTalking.RowanSleeping:FireClient()
end
wait(2)
debounce = false
end
end)
【问题讨论】: