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)

2 comments
Hint:the client handles what the player sees
I'm very new to scripting so I don't really know what to do with that hint :(