I don't know much about scripting but here's the script:
function onTouched(part)
if part.Parent then
local player = part.Parent:FindFirstChild("Humanoid")
if player then
player.CameraMaxZoomDistance = 15
player.CameraMinZoomDistance = 15
player.CharacterJumpPower = 28
end
end
end
script.Parent.Touched:connect(onTouched)
What I'm trying to achieve is to make the player who touched it's zoom distance change, but the script appears to not be working.

1 comment
i think you need to respawn the player before it works