I want to make it so that if a Player touches a part, the Camera Offset will change. This only works in Studio, how can I fix that?
local debounce = false function onTouch(part) local human = part.Parent:findFirstChild("Humanoid") if (human ~= nil) and debounce == false then debounce = true human.CameraOffset = Vector3.new(0, 2.2, 0) wait(2) debounce = false end end script.Parent.Touched:connect(onTouch)