我制作了一个点击脚本,把玩家的角色变成僵尸如果他们点击它,它几乎可以工作,但相机不跟随玩家的新角色,工作区的相机主题仍然是玩家的老人形
剧本:
script.Parent.MouseClick:Connect(function(plr)
if plr.Team == game.Teams.Mastermind then
script.Parent.Parent:WaitForChild("AI Chase"):Destroy()
script.Parent.MaxActivationDistance = 0
script.Parent:WaitForChild("RemoteEvent"):FireClient(plr)
wait(0.5)
plr.Character = script.Parent.Parent
end
end)本地脚本:
local debounce = false
script.Parent.MouseClick:Connect(function(plr)
if plr.Team == game.Teams.Mastermind then
if not debounce then
debounce = true
repeat wait() workspace.Camera.CameraType = Enum.CameraType.Fixed until workspace.Camera.CameraType == Enum.CameraType.Fixed
workspace.Camera.CameraSubject = script.Parent.Parent.PrimaryPart
end
end
end)发布于 2022-03-24 06:36:35
但我做了一个远程事件火灾,并设置工作空间的相机,以新角色的人形,它现在工作!
https://stackoverflow.com/questions/71584202
复制相似问题