I have a part in Workspace, and when you touch it. A remote event is supposed to fire, and a local script will recognize the fire, and then it will change the players camera. How ever, this script does not work. Would any body please help? Thank you :)
Server Script in Part:
script.Parent.Touched:Connect(function()
game.ReplicatedStorage.Events.TutorialEvents.Tutorial1:FireServer()
end)
Local Script in StartGUI:
game.ReplicatedStorage.Events.TutorialEvents.Tutorial1.OnClientEvent:Connect(function()
local player = game.Players.LocalPlayer
local character = player.Character
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.CameraPOS1.CFrame
end)

1 comment
Ill get to that in a sec