Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why wont my script end? i am making a part that will increase max zoom onTouch











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)   

2 answers

Maybe line 16 and 17 are way too down. Im not really sure....

2 comments

0

@Ceded6 Nope still has a red line under end, thats ok

0

oof

I'm pretty sure that Part.Touched:Connect(onPartTouch()) should be above if ( humanoid ) then hope this works!

1 comment

0

It now says"Unknown Global Part" And "Unknown Global Classic"

This discussion is preserved as it was. New answers, comments, and votes are closed.