【发布时间】:2022-12-17 10:38:29
【问题描述】:
local RunService = game:GetService('RunService')
local function onHeartbeat()
local cameraPos = game.Workspace.Camera.CFrame.Position -- Also tried with Workspace.currentCamera
print(cameraPos)
end
RunService.Heartbeat:Connect(onHeartbeat)
为什么即使玩家(以及相机?)移动,打印的值也始终相同?
【问题讨论】: