So I'm making a script that changes a selected player's camera to a series of parts, and in one script it works flawlessly, but in this one, it does not work at all. Did I screw something up here? I'm not getting any errors in the output, but testing to see if this remoteevent was actually fired leaves no print in the output.
script.CameraEvent2.OnClientEvent:Connect(function(plr)
local RunService = game:GetService"RunService"
local UserInputService = game:GetService"UserInputService"
RunService:BindToRenderStep("MouseLock",Enum.RenderPriority.Last.Value + 1, function()
UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
end)
wait()game:GetService("StarterGui"):SetCore("ResetButtonCallback", false)
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.Alleyway.MainCam.CFrame
local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Icon = "http://www.roblox.com/asset/?id=175158447"
wait(2)
camera.CFrame = workspace.Alleyway.OfficerCam.CFrame
wait(12)
camera.CFrame = workspace.Alleyway.MainCam.CFrame
wait(4)
camera.CFrame = workspace.Alleyway.ExecuteeCam.CFrame
end)
[SOLVED] Minor mistake involving not parenting the LocalScript. My bad lol
