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.
function onTouched(part) if part.Parent then local human = part.Parent:FindFirstChild("Humanoid") if human then local player = game.Players:GetPlayerFromCharacter(part.Parent) if player then player.CameraMaxZoomDistance = 15 player.CameraMinZoomDistance = 15 human.JumpPower = 28 end end end end script.Parent.Touched:connect(onTouched)
hope this helped!