CameraReady = false
sR = game:GetService'RunService'
plr = game.Players.LocalPlayer
print'1'
repeat wait() until plr.Character
print'2'
if plr.Character then workspace.Remotes.engine:InvokeServer() end
print'3'
(localscript)
Plain and simple, ''3'' doesn't print. the script triggered by the Engine remotefunction does not have any yields either, so i cant see why its stopping the script.
The script triggered by engine by request:
(Yes i know CurrentCamera only works in localscripts this is just for tests)
function workspace.Remotes.engine.OnServerInvoke(plr)
plr.Character:Destroy()
workspace.CurrentCamera.CameraSubject = workspace.Thingy.Head --workspace.Thingy.CameraPos
wait(.1)
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
wait(.1)
workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame * CFrame.new(3.5, 0, 0)
wait(1)
workspace.CurrentCamera.CoordinateFrame = workspace.CurrentCamera.CoordinateFrame
workspace.Remotes.localengine:InvokeClient(plr)
plr.CameraMode = Enum.CameraMode.LockFirstPerson
end
