【发布时间】:2021-12-28 19:28:58
【问题描述】:
我已尝试遵循几个指南,但尚未找到解决方案。
local id = 1180578480
local marketService = game:GetService("MarketplaceService")
function onTouched(m)
p = m.Parent:findFirstChild("Humanoid")
if marketService:UserOwnsGamepassAsync(user.UserId, id) then
if p ~= nil then
p.Torso.CFrame=CFrame.new(0,8,9)
end
end
end
script.Parent.Touched:connect(onTouched)
【问题讨论】: