如何解决Roblox脚本错误
我很难找出问题所在。有帮助吗?
local petModule = require(game.ServerScriptService:WaitForChild("PetModule"))
script.Parent.ClickDetector.MouseClick:Connect(function(player) end
if player.leaderstats.Cash.Value >= 500 then
player.leaderstats.Cash.Value = player.leaderstats.Cash.Value - 500
local pet = petModule.chooseRandomPet()
print(pet.Name.." selected")
end
end)
解决方法
其中的一个:
script.Parent.ClickDetector.MouseClick:Connect(function(player)
尝试:
script.Parent.MouseClick:Connect(function(player)
解决您的ClickDetector
问题
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。