You can write your topic however you want, but you need to answer these questions:
When the CFrame of the flashlight = its starting cframe i want a feature to work
It just is not working
Ignore everything in gray
script.Parent.Behind.MouseEnter:Connect(function()
if workspace.campart.FlashLight.CFrame == defaultCF then
--if right then
-- return
--end
right = false
left = false
center = false
if toggle == false then
toggle = true
script.Parent.Front.Visible = false
script.Parent.RightDoor.Visible = false
script.Parent.LeftDoor.Visible = false
game:GetService("RunService"):UnbindFromRenderStep("CameraLookAtMouse")
local ts = game:GetService("TweenService")
local part = workspace.campart
local info = TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0)
local properties = {CFrame = workspace.campart.campart4.CFrame} --workspace.CurrentCamera.CFrame --CFrame.Angles(0,180,0)}
local tween = ts:Create(workspace.CurrentCamera,info,properties)
tween:Play()
wait(0.2)
end