RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Set a players camera to a specific part when it is touched"
-- local script local part = script.Parent local function onTouch(otherPart) local player = game.Players:FindFirstChild(otherPart.Parent.Name) if player then local character = player.Character local humanoid = character:FindFirstChild("Humanoid") if humanoid then local camera = workspace.CurrentCamera camera.CameraSubject = part camera.CameraType = Enum.CameraType.Scriptable wait(3) camera.CameraSubject = humanoid camera.CameraType = Enum.CameraType.Custom end end end part.Touched:Connect(onTouch)