Server side
print("Start")
local pepe = script.Parent.TurnCamera:InvokeClient(player , Part)
print("End")
Client Side
script.Parent.OnClientInvoke = function(Part)
print("Function")
game.Players.LocalPlayer.PlayerScripts.Cmera.Disabled = true
for i = 1,400 do
local CameraPart = Part.Parent.PlayerSphere
local c = 0
local cframe = CameraPart.CFrame * CFrame.Angles(0, math.rad(c), 0) * CFrame.new(0, 0, -5)
cframe = CFrame.new(cframe.p, CameraPart.Position)
workspace.CurrentCamera.CFrame = cframe;
c = c + 3;
wait()
end
return nil
end
Yes I know for some reason this is not a good idea but i have no choice. it prints out “Start” and nothing after.