Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 2 years ago

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

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

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

0
thank you so much danibroskull123 7 — 2y
0
thank you so much danibroskull123 7 — 2y
Ad

Answer this question