local function onPartTouch(otherPart)
local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") if ( humanoid ) then game.StarterPlayer.CameraMode = Classic game.StarterPlayer.CameraMaxZoomDistance = 100 end end Part.Touched:Connect(onPartTouch()) end)
Maybe line 16 and 17 are way too down. Im not really sure....
I'm pretty sure that Part.Touched:Connect(onPartTouch()) should be above if ( humanoid ) then hope this works!
Closed as Non-Descriptive by Nguyenlegiahung and JesseSong
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?