Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

can anyone help me fix this script please it should activate when the trigger is destroyed?

the error :Players.danibroskull123.PlayerGui.LocalScript:8: invalid argument #3 (CFrame expected, got Instance)

the script: local TweenService = game:GetService("TweenService")

local Camera = game.Workspace.CurrentCamera

repeat wait() until game.Workspace.Triggers.DialogueTriggers:FindFirstChild("FoundEntranceTrigger") == nil wait(8) Camera.CameraType = Enum.CameraType.Scriptable Camera.CFrame = workspace.CameraPart

1 answer

✓ Accepted answer

Change Camera.CFrame = workspace.CameraPart to Camera.CFrame = workspace.CameraPart.CFrame so you reference the CFrame itself and not the camera.

2 comments

0

thank you so much

0

thank you so much

This discussion is preserved as it was. New answers, comments, and votes are closed.